We have been trying to use a Jetson to decode a RC SBUS signal for use in a drone project. We are in the process of writing a python library to decode the SBUS signal.
SBUS is just a serial communication at 100000 bps (baud) and 8e2. Using pySerial the data we are getting appear to be one bit off from the data we collected from the logic analyzer. We have verified the data frame size, the end bits, parity, and baud rate is all correct. We have tried it on the serial port in the J41 header (/dev/ttyTHS1) as well as with a USB to TTL converter (/dev/ttyUSB0).
Any ideas?
Code:
import time
import board
import busio
import serial
uart = serial.Serial("/dev/ttyUSB0", baudrate=100000, bytesize=serial.EIGHTBITS, timeout = 10,
parity=serial.PARITY_EVEN,stopbits=serial.STOPBITS_TWO)
while True:
#Read it
in_byte = uart.read(1)
print(bin(in_byte[0]))