-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there any example on how to ingest GPS data from GPS sensor connected to Jetson NX into MQQT? #50
Comments
I don't have a GPS, but it would be pretty much like any other data. You'd need a library to read your GPS info and then craft a "normal" MQTT message with your information being the payload. |
@rdejana Thank you for your reply!
terminal 2:
From this point there will be opened GUI of the gpsfeed. - two GUI windows;
From this point, given I am running the mosquito container from docker implementation like with
How to pass the tty/pts26 feed to the docker mosquito? could you extend, please? Thank you very much! Reference: |
with just python I could read, but I am still trying to figure out how to process it with mqtt
like
brainstormed here https://forums.developer.nvidia.com/t/windows-iot-core/177135/15 |
look over the library https://pypi.org/project/paho-mqtt/. You would read the message in, then turn that into your payload. |
You can add a device when you run a container with the option --device=/dev/ |
@rdejana Thank you for following up! |
what have tried? you can do things like read, send message, sleep, read again... |
trying to adjust the code [2] of the gps example.
then trying to run modified code so it would conenct/ publish to the mosquitto
References: |
Here is a very simple GO app that does what you are asking. I'm using the TCP connection from the gps feed simulator vs dealing with setting up the pts device.
I'm reading a message, then writing it directly to MQTT. Note, I'm leaving my MQTT connection open to reduce the TCP overhead. |
Thank you very much!
It looks like
the thing was to connect to a socket - that takes the pipeline without decomposition |
Cool. yea, I found socket easier to setup for the simulator. |
@rdejana May I know if you have got any successes reducing the size of the docker container produced from nvidia l4t-ml base image? as my colleague points out to an effort to find a solution for reducing the size from 4+gb to at least 0.5 gb |
Howdy -- @rdejana |
Hi guys, How is it going?
I am just wondering if you could share an example on how to send GPS data from Jetson with MQQT.
Thank you very much!
The text was updated successfully, but these errors were encountered: