Topics

MQTT in agl


David Khouya
 

Hi,

I'm currently looking forward to write an application to manage our device communication with our compagny cloud using MQTT, but before going forward, I was wondering if there's any interestion component of AGL that used mqtt at this time?

Best Regards,


Jan Simon Moeller
 

Hi David!

Take a look at the telematic demo image. IIRC this uses mqtt.

Best regards,
Jan-Simon

------
Jan-Simon Möller
AGL Release Manager
The Linux Foundation

Visit us at:
www.automotivegradelinux.org
lists.automotivelinux.org
www.linuxfoundation.org

On Fri, Apr 3, 2020 at 3:51 PM David Khouya <dakhouya@...> wrote:

Hi,

I'm currently looking forward to write an application to manage our device communication with our compagny cloud using MQTT, but before going forward, I was wondering if there's any interestion component of AGL that used mqtt at this time?

Best Regards,


Scott Murray
 

On Fri, 3 Apr 2020, David Khouya wrote:

Hi,

I'm currently looking forward to write an application to manage our device communication with our compagny cloud using MQTT, but before going forward, I was wondering if there's any interestion component of AGL that used mqtt at this time?
The simple recorder app I put together for the telematics demo image uses
MQTT via libmosquitto, it's at:

https://git.automotivelinux.org/apps/agl-telematics-demo-recorder/

Scott


David Khouya
 

Thanks for the fast feedback! 

I'll look into that! Also in the road map is there any generic connectivity service that will be develop into AGL or it will always stay as an application that the customer need to include in its distro?


Scott Murray
 

On Fri, 3 Apr 2020, David Khouya wrote:

Thanks for the fast feedback!

I'll look into that! Also in the road map is there any generic
connectivity service that will be develop into AGL or it will always
stay as an application that the customer need to include in its distro?
So far the V2C EG hasn't pushed things into that direction, but one could
imagine wrapping something like MQTT in an AGL binder to create an API.
The biggest issue with that is there are many cloud APIs, so either a
common API needs to be quite abstract to allow sitting on top of the
different backends, or a separate API is needed for each, which doesn't
seem sustainable IMO. I believe one of the goals of the AECC (aecc.org)
is to try to create some standards in this area, but that's a relatively
new initiative and it'll likely take a while.

Scott


RAKESH
 

On Fri, Apr 3, 2020 at 07:43 PM, Scott Murray wrote:
r for the telematics demo image uses
MQTT via libmosquitto, it's at:

Hi Scott,

Is there any documentation to use this telematics demo. I meant How to document.
Also I tried building telematics demo application and when i launched the application using virtual box it is prompting me for Username and password Which i dont have.
Please let me know how to proceed further. Please provide me How to document if available.

Regards,
RAkesh KR


Jan Simon Moeller
 

Hi Rakesh,

build the demo with 'agl-devel' on, then log-in as 'root' without password.

If you need any other library, use  IMAGE_INSTALL_append = " libfoo" in your conf/local.conf .

HTH.

Best regards,
Jan-Simon

------
Jan-Simon Möller
AGL Release Manager
The Linux Foundation

Visit us at:
www.automotivegradelinux.org
lists.automotivelinux.org
www.linuxfoundation.org


On Wed, Oct 21, 2020 at 12:46 PM RAKESH <RAKESH.MUGUDHA@...> wrote:
On Fri, Apr 3, 2020 at 07:43 PM, Scott Murray wrote:
r for the telematics demo image uses
MQTT via libmosquitto, it's at:

Hi Scott,

Is there any documentation to use this telematics demo. I meant How to document.
Also I tried building telematics demo application and when i launched the application using virtual box it is prompting me for Username and password Which i dont have.
Please let me know how to proceed further. Please provide me How to document if available.

Regards,
RAkesh KR


RAKESH
 

I tried with the below command but yet again im asked for login and password!!!

$source meta-agl/scripts/aglsetup.sh -f -b raspberrypi3 agl-telematics-demo agl-devel agl-profile-telematics
$bitbake agl-telematics-demo-platform

Did i do something wrong here..?


Jan Simon Moeller
 

Did you try root enter ?

RAKESH <RAKESH.MUGUDHA@...> schrieb am Do., 22. Okt. 2020, 08:02:

I tried with the below command but yet again im asked for login and password!!!

$source meta-agl/scripts/aglsetup.sh -f -b raspberrypi3 agl-telematics-demo agl-devel agl-profile-telematics
$bitbake agl-telematics-demo-platform

Did i do something wrong here..?


RAKESH
 

Yes id did run as root..
Is this command is good to build for raspberrypi3?
source meta-agl/scripts/aglsetup.sh -f -b raspberrypi3 agl-telematics-demo agl-devel agl-profile-telematics


RAKESH
 

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:
 
    Do not use Bitbake as root.
 
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

I guess i missed running as a root.  Now if i try im getting above error.
 


jeapo
 

Hi Rakesh,

When Jan Simon told you to try "root" enter is not when you run bitbake command.

If you executed the aglsetup.h script with "agl-devel" feature, you can use "root" login in your Raspberry Pi.

Regards,

Jean-Baptiste Pons

Le jeu. 22 oct. 2020 à 11:14, RAKESH <RAKESH.MUGUDHA@...> a écrit :
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:
 
    Do not use Bitbake as root.
 
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

I guess i missed running as a root.  Now if i try im getting above error.
 


RAKESH
 

Hi Jeapo,

Thanks for the help and sorry for the confusion caused.
I am very new to Telematics domain i wanted to understand the working principles and features of it .
I wanted to test or try telematics recorder. Can you please help me how can we use telematics recorder app to test and what is the  requirements for the demo?

Thanks in Advance
Regards,
Rakesh KR


Scott Murray
 

On Thu, 22 Oct 2020, RAKESH wrote:

Hi Jeapo,

Thanks for the help and sorry for the confusion caused.
I am very new to Telematics domain i wanted to understand the working principles and features of it .
I wanted to test or try telematics recorder. Can you please help me how can we use telematics recorder app to test and what is the  requirements for the demo?
The demo is quite simple, the recorder app reads vehicle and engine speed
from the CAN binding and sends them to a configured MQTT broker. I'd
advise looking at the telematics-recorder application README.md file for
how to configure the broker, you will need to update the config in
/etc/xdg/telematics-recorder.conf with the information for the broker you
want to use:

https://git.automotivelinux.org/apps/agl-telematics-demo-recorder/tree/README.md

There is code to also read the current location from the GPS binding, but
a working GPS set up isn't necessary for recreating the demo (using GPS is
off by default). For CAN, there is an expectation that a CAN adapter be
present, the telematics demo image has known working support for a couple
of different USB attached ones, and should work with others, though it may
take some tweaks. If you do not have CAN hardware and still want to
experiment with the demo as is, you will have to rig up using a vcan
interface with the CAN binding.

Scott


RAKESH
 

Hi Scott,

Thank you for the detailed information. I will try accordingly.

Regards
Rakesh KR