-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Work in progress - expect error & other trouble
pyagoconnector creates a simple UDP Server as separate thread that is listening to messages from AGOpenGPS. The server is created with the IP address of the host and port 8888. As AGO organizes its UDP messages in PGN (parameter group numbers), the PGNs the connector is listening can be configuered in the pgn_definition.json file.
UDP must be set on and the IP and port must match the IP and port of the connector
python.exe connector.py
Starts the connector and received data is periodically printed to the console
Server startet: 192.168.188.57:8888
Current Data:
((127, 254), {'sdRelayLo': 0, 'sdSpeed': 108, 'sdDistanceHi': 125, 'sdDistanceLo': 20, 'sdSteerAngleHi': 0, 'sdSteerAngleLo': 0, 'Undefined6': 0, 'Undefined7': 0})
((127, 250), {'rdSectionControlByteHi': 0, 'rdSectionControlByteLo': 0, 'rdSpeedXFour': 108, 'rdTramLine': 0, 'rdTree': 0, 'rdUTurn': 0, 'rdHydLift': 0, 'Undefined7': 0})
((127, 252), {})
Current Data:
((127, 254), {'sdRelayLo': 0, 'sdSpeed': 108, 'sdDistanceHi': 125, 'sdDistanceLo': 20, 'sdSteerAngleHi': 0, 'sdSteerAngleLo': 0, 'Undefined6': 0, 'Undefined7': 0})
((127, 250), {'rdSectionControlByteHi': 0, 'rdSectionControlByteLo': 0, 'rdSpeedXFour': 108, 'rdTramLine': 0, 'rdTree': 0, 'rdUTurn': 0, 'rdHydLift': 0, 'Undefined7': 0})
((127, 252), {})
etc...
python.exe ago_monitor.py
Opens a (very) simple (flickering) monitor that shows received PGNs from AGOpenGPS
In the pgn_definition json you define the PGNS the connector is listening to in the following format: