I have two USB Holybro 915 MHz Telemetry Radios. These are usually used with Mavlink for communication between drones and ground stations, but I would like to use them to send small amounts of data - say, an integer every few seconds - from one computer to another, without using Mission Planner or the Mavlink protocol. One radio is plugged in (USB) to my Windows 10 laptop, another is plugged in (USB) to another laptop running Ubuntu. I have written a very simple python script in an attempt to send one byte of data from the Ubuntu laptop to the Windows laptop via the radios.
import serial ser = serial.Serial('/dev/ttyUSB0') ser.write(b'\x00')
Receiving (Windows 10):
import serial ser = serial.Serial('COM8') while True: print(ser.read(1))
It is my understanding that, at their core, these radios are simply USB<->Serial adapters which communicate over radio, so I should be able to send serial data from one to another. However, this is not the case. I will send a byte, say b'\x00', and it will receive something like b'\xfe' on the other end instead of b'\x00'. I've tried using different byte values, but for the overwhelming majority of them (with the exception of b'\xff' and b'\xfe'), the values will be received differently. Is there an error in my setup?
Link to the radios I am using: http://www.holybro.com/product/transceiver-telemetry-radio-v3-915mhz/
Firmware Version(installed via Mission Planner): RFD SiK 2.0 on HM-TRP