/dev/ttyTHS1 RX working but TX not.
I have disabled nvgetty and do system update and upgrade.
I have replace a new jetson nano and still can not send data through RX pin 8.
I have confirmed that both jetson and arduino ttl voltage is 3.3v.
I alse tried minicom to observe.
Jetson Nano RX,TX,GND <==> Esp8266 TX,RX,GND
Even Jetson Nano RX <==> Self TX has no response too.
Is there anything that I mismatched? Please help me. Thanks.
My python code runs as root:
class MCUControl(threading.Thread, metaclass=Singleton): def __init__(self): self.closed = False self.ser = serial.Serial('/dev/ttyTHS1', 115200) self.sendlock = threading.RLock() threading.Thread.__init__(self) self.setDaemon(True) def run(self,*args,**kwargs): while not self.closed: if self.ser.isOpen(): data = self.ser.readline() data = data.strip().decode() if data: print(data) self.send('d,660') # NO RESPONSE ON ARDUINO time.sleep(0.5) self.ser.close() def send(self, cmd): cmd += "\n" with self.sendlock: self.ser.write(cmd.encode()) def stop(self): self.closed = True
system version: JP 4.2.3