Hello!
I’m trying to use gpio uart pins on jetson AGX devkit (JetPack 4.4.1).
All operations i made in python3 with pyserial.
I tried 2 schemas:
- I connected pins with rs232 (6(GND) - gnd, 8(TX) - RX, 10(RX) - TX), then connected rs232 to usb serial adapter(rs232-usb) and connect in to usb on same jetson. So i got 2 ports: /dev/ttyUSB0 and /dev/ttyTHS0. I can send data from usb0 to ths0 and backwards. But data collected on output always differ from input. For example, if i send b’k’ it returns ‘J’, b’a’ - ‘0’, etc.
Both ports were opened with same parameters.(115200 8N1) - I tried to connect can bus controller, which sends string ‘S096300 C0165010.000 E0012143.0 R077.0 H1200 J060 ZCA94 \r\n’, but as output i got in hex “00 00 00 00 00 00 00 56 67 66 b3 ae f6 f6 cb 56 f6 d6 f6 36 ed f6 f6 f6 ab 7d fb eb b6 d6 76 96 36 ed f6 db f5 16 16 ed f6 7b 75 db fb f6 f6 5b 7d 9b fb f6 5b 95 f5 fb 2b eb”. Can controller works fine when connected via usb serial.
Port params were set as mentioned in controller’s documentation.(9600 8N1).