I am trying to read a Futaba SBUS receiver on the Jetson Nano. I am using a Python program to read from the Jetson’s RX pin (8). As per SBUS guidelines, I invert the signal using a circuit and I set the baud rate to 100000. I was also able to see the signals through an oscilloscope.
Here is the code:
#!/usr/bin/python3 import time import serial serial_port = serial.Serial( port="/dev/ttyTHS1", baudrate=100000, bytesize=serial.EIGHTBITS, parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_TWO, ) time.sleep(1) try: while True: data = serial_port.read() print(data) except KeyboardInterrupt: print("Exiting Program") except Exception as exception_error: print("Error occurred. Exiting Program") print("Error: " + str(exception_error)) finally: serial_port.close() pass
However, when I run the program, the program doesn’t show anything, as if pin 8 isn’t receiving any signals. Am I doing something wrong? Any help into this would be appreciated.