Integration of Shenzhen Concox Information Technol

2019-09-16 05:20发布

I have a concox GT06 device from which I want to send tracking data to my AWS Server.

The coding protocol manual that comes with it only explains the data structure and protocol.

How does my server receive the GPS data collected by my tracker?

2条回答
姐就是有狂的资本
2楼-- · 2019-09-16 05:59
  1. Verify if your server allows you to open sockets, which most low cost solutions do NOT allow for security reasons (i recommend using an Amazon EC2 virtual machine as your platform).
  2. Choose a port on which your application will listen to incoming data, verify if it is open (if not open it) and code your application (i use C++) to listen to that port.
  3. Compile and run your application on the server (and make sure that it stays alive).
  4. Configure your tracker (usually by sending an sms to it) to send data to your server's IP and to the port which your application is listening to.

If you are, as i suspect you are, just beginning, consider that you will invest 2 to 3 weeks to develop this solution from scratch. You might also consider looking for a predeveloped tracking platform, which may or may not be acceptable in terms of data security.

You can find examples and tutorials online. I am usually very open with my coding and would gladly send a copy of the socket server, but, in this case, for security reasons, i cannot do so.

查看更多
时光不老,我们不散
3楼-- · 2019-09-16 05:59

Instead of direct parsing of TCP or UDP packets you may use simplified solution putting in-between middleware backends specialized in data parsing e.g. flespi. In such approach you may use HTTP REST API to fetch each new portion of data from trackers sent to you dedicated IP:port (called channel) or even send standardized commands with HTTP REST to connected devices. At the same time it is possible to open MQTT connection using standard libraries and receive converted into JSON messages from devices as MQTT in real time, which is even better then REST due to almost zero latency. If you are using python you may take a look at open-source flespi_receiver library. In this approach with 10 lines of code you may have on your EC2 whole parsed into JSON messages from Concox GT06.

查看更多
登录 后发表回答