Skip to content
joschindlbeck edited this page Jan 15, 2020 · 6 revisions

Welcome to the pyagoconnector wiki!

Work in progress - expect error & other trouble

How it works

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.

Settings in AGOpenGPS

UDP must be set on and the IP and port must match the IP and port of the connector

Running the connector

Via console

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...

Via Monitor

python.exe ago_monitor.py

Opens a (very) simple (flickering) monitor that shows received PGNs from AGOpenGPS

Seetings in pgn_definition.json

In the pgn_definition json you define the PGNS the connector is listening to in the following format: