Another thing... While reading out the port data, in parallel to decoding this into integers and floats, I'd like to append the raw port data to a string variable, which i can store to a tag to have the raw data captured. I guess HEX could be a suitable format for this...
The below HEX string is a LNAV payload, which I convert to bytes and send to the RedLion for testing, using Python. I'd like the raw data tag generated by the RedLion to have the same content if possible.
The below HEX string is a LNAV payload, which I convert to bytes and send to the RedLion for testing, using Python. I'd like the raw data tag generated by the RedLion to have the same content if possible.
Python:
hex_string = '8C94ED100000BEE9004943DE67FF90000000E7032200EBFF31000000FFFF040000000000000032007D00FCFFE4F9503E7A354F3E8AAFB343722A1A3E02CDBA3C5361BB3CB31C7B3F1713593C2EDB4C3CFEE2B343CE51183C98FF'
data = bytearray.fromhex(hex_string)
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(data, ('192.168.100.100', 8002))