I am testing RS485 on our custom jetson orin nano but i tried this uploaded image on inside jetson orin nano and my laptop (jetson connected laptop via USB RS485 adapter) but there is no datas are transmitting. I thought the config is wrong. Help me to config the UART and RS485 on Custom jetson orin nano. I Tried UART also with disable the rs485 but its not working by connecting the rs485 A+ and B- (Short connection).
Note: inside minicom it showing Offline on both side sender and receiver.
*** Please note that this reply is generated by LLM automatically ***
To configure UART and RS485 on a custom Jetson Orin Nano, you’ll need to follow these steps:
UART Configuration:
First, ensure that the UART is enabled on the Jetson Orin Nano. You can do this by checking the device tree configuration. The device tree file for the Jetson Orin Nano is usually located at /boot/dtb/tegra234-p3701-0000-p3737-0000.dtb.
Use the dtc command to decompile the device tree file and check if the UART is enabled. For example:
* In the decompiled device tree file, search for the UART node (e.g., `uart@3100000`). Make sure that the `status` property is set to `"okay"` or `"enabled"`.
RS485 Configuration:
To enable RS485 on the Jetson Orin Nano, you’ll need to configure the UART to use RS485 mode. This can be done by modifying the device tree file.
* Save the changes and recompile the device tree file using the `dtc` command.
UART and RS485 Pin Configuration:
Ensure that the UART and RS485 pins are correctly configured on your custom Jetson Orin Nano board. The pinout for the Jetson Orin Nano is available in the NVIDIA documentation.
Verify that the UART and RS485 pins are connected to the correct pins on your RS485 adapter.
Minicom Configuration:
To test the UART and RS485 configuration, use a serial console program like Minicom.
Configure Minicom to use the correct UART device (e.g., /dev/ttyTHS1) and baud rate (e.g., 9600).
Set the serial port to use RS485 mode by adding the following command to the Minicom configuration file (usually ~/.minirc.dfl):
pu port /dev/ttyTHS1
pu baudrate 9600
pu bits 8
pu parity N
pu stopbits 1
pu rtscts yes
* Save the changes and restart Minicom.
Comparison with Other Jetson Modules:
The UART and RS485 configuration process is similar for other Jetson modules, such as the Jetson Xavier NX and Jetson AGX Orin.
However, the device tree file and pinout may differ between modules. Be sure to consult the relevant documentation for your specific Jetson module.
Troubleshooting Tips:
If you’re experiencing issues with UART or RS485 communication, try disabling RS485 and testing the UART connection only.
Verify that the RS485 adapter is correctly connected to the Jetson Orin Nano and that the pinout is correct.
Check the serial console output for any error messages or warnings related to UART or RS485 configuration.
By following these steps and troubleshooting tips, you should be able to configure UART and RS485 on your custom Jetson Orin Nano and establish communication with your laptop via the RS485 adapter.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***
We have not done the UART loopback test yet.
Our board is a custom carrier board
which has MAX485ESA+T transceiver built in, connected to
UART1 with RTS pin controlling DE/RE.
We configured RS485 in device tree but ioctl TIOCSRS485
returns False. We found CONFIG_SERIAL_RS485 is not set
in the JetPack 6 kernel.
Should we recompile the kernel with RS485 support or
is there another way?
Okay, I just expect that you have verified UART loopback test before connecting with other device like max485.
There may be the board in early stage allowing you to verify this.
i am not able to test uart with rs485 because that one was soldered internally and one more thing if i have to config rs485 minicom what are all the things i have to config because if i enabled the hardware flow control yes and other things yes means it gives automatically garbage values more without typing and if i type means nothing will come
Both sides i set 115200 and without typing it gives garbage values when i set hardware flow control to yes after garbage values if i typed means nothing is coming
The UART_IRDA_CSR_0 of UARTA(i.e. UART1) in your case should be 0x3100020.
You can get more details from 9.7.2.22 IRDA_CSR Register (UART_IRDA_CSR_0) in TRM document of Orin.