Page 1 of 1

RS485-1 on revpi flat pins

Posted: 20 Mar 2022, 10:41
by smartheit
Hello,
I used the RS485-0 (so /dev/ttyAMA) for the serial console and I want change to RS485-1 ( /dev/ttyS0 ).
Do you have a pin description of the RJ11 pins?

According to a spec I found in the Web the Pins are:
1: TXD+
2: GND
3: TXD-
4: RXD-
5: Not used
6: RXD+

I guess pin 1 is on the WLAN antenna connector side while pin 6 is on the RS485-0 side (measured 3 Ohms between Connector shield and Pin 2)

My USB - RS485 Adapter has GND, +5V, RS485+ and RS485- pins. For the RS485-0 console - which was working - P was connected to RS485+, N to RS485- and GND to GND.

To achieve the same with the RS485-1 (half duplex) TXD+ and RXD+ are connected to the the Terminal RS485+ of my RS485 USB Adapter. TXD- and RXD- to the RS485- port, and GND to GND.
Can you confirm that assumptions?

I noticed that there is a 3rd serial port available:
0 lrwxrwxrwx 1 root root 7 Mar 20 09:34 ttyRS485-0 -> ttyAMA0
0 lrwxrwxrwx 1 root root 5 Mar 20 09:34 ttyRS485-1 -> ttyS0
0 crw--w---- 1 root tty 4, 64 Mar 20 10:19 ttyS0
0 crw-rw---- 1 root dialout 188, 0 Mar 20 09:35 ttyUSB0

For what is ttyUSB0 ?

Thanks
Marco

Re: RS485-1 on revpi flat pins

Posted: 21 Mar 2022, 15:34
by p.rosenberger
Hi Marco,

ttyUSB0 is connected to the bluetooth device.

Best Regards,
Philipp

Re: RS485-1 on revpi flat pins

Posted: 22 Mar 2022, 09:19
by smartheit
Hi Philipp
thanks for the clarification with ttyUSB0. Do you have a pin description from the RJ11 connector?
Thanks
Marco

Re: RS485-1 on revpi flat pins

Posted: 22 Mar 2022, 09:21
by nicolaiB
Hi Marco,

please have a look at our documentation: https://revolutionpi.com/tutorials/over ... rect=en_US

Hope this helps.

Nicolai