How hamedsafikhani/zx303-gps works
zx303-GPS is a TCP server for ZX303 GPS trackers. Trackers connect and send protocol packets; the server interprets requests, returns device responses, records logs and location reports, and can retrieve queued messages for a device. The README also describes configuring the tracker by SMS and setting up geocoding. The source excerpt shows PostgreSQL writes and a Google Maps import, but does not establish geocoding call paths; those links are therefore omitted.
Main entry points: GPS.py Client handler
Components 10
TCP service
- TCP listener
GPS.py - Connection acceptor
GPS.py - Client handler
GPS.py
Device protocol
- Packet dispatch
GPS.py - Response builders
GPS.py - GPS positioning
GPS.py - LBS positioning
GPS.py
Persistence
- PostgreSQL
Other components
- GPS tracker
- SMS configuration
Connections 12
- TCP listener → Connection acceptor: starts
- GPS tracker → TCP listener: connects
- Connection acceptor → Client handler: dispatches
- Client handler → Packet dispatch: passes packets
- Packet dispatch → Response builders: builds replies
- Packet dispatch → GPS positioning: routes GPS
- Packet dispatch → LBS positioning: routes LBS
- Client handler → PostgreSQL: logs and queries
- GPS positioning → PostgreSQL: writes positions
- LBS positioning → PostgreSQL: writes positions
- Client handler → GPS tracker: sends replies
- SMS configuration → GPS tracker: configures