So I edited the hardware_settings_config.xml file to enable the motion output to 127.0.0.1 ... according to the seemingly standard Codemasters way:
But from what I can tell there's no telemetry data being sent??
As a first validation I just used this simple Python code but there's nothing coming on the socket when I launch a custom event and start driving ...:
I've verified with another simple python script to *send* the UDP data to port 20777 and the receiver *does* work ...
Code:
<motion enabled="true" ip="127.0.0.1" port="20777" delay="1" extradata="1" />
But from what I can tell there's no telemetry data being sent??
As a first validation I just used this simple Python code but there's nothing coming on the socket when I launch a custom event and start driving ...:
Code:
import socket
DIRT_IP = ""
DIRT_PORT = 20777
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind((DIRT_IP, DIRT_PORT))
while True:
data, addr = sock.recvfrom(4096) # buffer size ...
print "received message:", data
I've verified with another simple python script to *send* the UDP data to port 20777 and the receiver *does* work ...