I am trying to communicate with PC using USB-RS485 connector. I opened sudo minicom -D /dev/ttyTHS1 but there is nothing I can send or receive on either PC or jetson.
I have performed the following Solution but no Avail. Kindly if possible clear my understanding what did i do wrong. #checked the device tree settings RS485 pin PX06 is enabled as Output
uart2_rts_px6 {
nvidia,pins = “uart2_rts_px6”;
nvidia,function = “uartb”;
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
}; set the gpio using libgpio to output
sudo gpioset gpiochip0 120=1
but when i do gpioget the output return Zero
used pyhton library
##usefull link about the gpio I found
#as per the link libgpio is the method for JETPACk 6 latest kernel
so i M doing write but it doesn’t change the value
sudo gpioset gpiochip0 120=1
###tried Disabling getty but still no Lead
systemctl stop nvgetty
systemctl disable nvgetty
would you like to access to the serial console?
please refer to Jetson Orin Nano Developer Kit Carrier Board Specification, you may check [Table 3-4. Button Header Description – J14] for using pin-3/4 to access to the target for debugging.
The problem is I unable to see the output in another GPIO as well not only RS485 (PZ.05) but also on GPIO(PX.06). let me share the hardware connection diagram…RS485 A is with A and Rs485 Differential B is with B.
I applied the Patch and rebuilt the kernel But it seems to be not working. I have cooler on that pin and it once turned on doesnt turn off.
sudo gpioset -m wait ''gpiofind “PZ.05”=1
>> Q1
you’ll need to add wait to keep the pin state,
for instance, # gpioset --mode=wait gpiochip0 135=1.
>> Q2
did you searching on the target?
you should see this from the Jetpack installation path.
for instance, $OUT/Linux_for_Tegra/bootloader/generic/BCT/tegra234-mb1-bct-pinmux-p3767-dp-a03.dtsi