Server to handle the GPS strings sent by tk102-2/B compatible GPS trackers (tk103, tk104 ?).
The python script listens on a port and handles connections.
##,imei:_IMEI_,A;LOADTHEN
_IMEI_;ONOR
imei:_IMEI_,tracker,1212220931,,F,083137.000,A,5620.2932,N,01253.7255,E,0.00,0;If server does not receive _IMEI_; every 90 seconds, it times out (after 182 seconds), and kills the thread handling the tracker.
A command can be send to a tracker by writing something to a file in the tracker's directory.
'echo "C600" > cmd' sets the interval on the tracker to 10 minutes. It sends the command: **,_IMEI_,C,600s to the tracker. The following are implemented:Every new thread creates a tk102pid_PID directory which contains the following bookkeeping information:
After the tracker has disappeared, a file called exit is created in the directory to signify that the directory contents are no long "live". It will be removed on the next start-up of the server.
Protocol partly from this google doc
Dcoker ENV PG_DBNAME=aa PG_USER=bb PG_PASS=dd PG_HOST=127.0.0.1 PG_PORT=5432
LICENSE
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Content type
Image
Digest
Size
21.3 MB
Last updated
almost 7 years ago
docker pull milekz/tk102:3.0.1