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
How to integrate GPS tracker to SiteWhere? #49
Comments
Hi @anhdenday, We have done testing with MeiTrack GPS devices in the past, but there are no examples in the current code base. The general idea is to use a socket event receiver to handle receiving and parsing payloads sent directly to SiteWhere from the device. An example of the general technique is shown in this GitHub repository: Note that the device must be configured to report to the SiteWhere host/port you have set up in the event source. The device will connect via TCP/IP and send a command payload. SiteWhere can parse the command via Groovy script and optionally carry on a conversation with the device before terminating the connection. Let me know if you have any questions. Regards, |
Thanks you for your reply @derekadams ,
Assuming that part[4], part[5]... is parameter that I parse from the payload
Of course, following your recommendation, it's just only the idea that I will do, Actually I dont have the device yet. Thanks you so much |
You will need to download the operation manual for the device and confirm how it connects and what the message payloads look like. Most of these types of devices use similar payloads, but each has its own nuances. Once you have the device and point it to SiteWhere, you should be able to see what it sends and update the script accordingly. |
Yes, my example code is assuming that the format of message payloads is look like the message payloads in GitHub repository like that you already mentioned above. |
Hi @derekadams,
As I see in Web Admin, SiteWhere support to connect to GPS tracker something like MeiTrack GPS device!!!
Could you please tell me how to connect it to SiteWhere? So that I can get lat, long from it!
Because As I see it's doesn't have the OS. So I could not use the provided Agent! Please give me an advice!
Thanks you so much
The text was updated successfully, but these errors were encountered: