Dear Dirk,
I am currently using a RevPi Connect 5 configured as a Modbus RTU slave, while a Raspberry Pi 5 acts as the Modbus master, connected via USB RS485 to the X2 RS485 expansion port on the RevPi.
I have followed all available instructions to enable the RS485 terminal function on the RevPi, including building and running the C program that toggles the SER_RS485_TERMINATE_BUS flag. However, the /dev/ttyRS485 device does not appear on my RevPi. The only available serial device is /dev/ttyAMA10.
Despite configuring the Modbus device in PiCtory and mapping IO channels correctly (e.g., to DIO modules), the RevPi does not respond to Modbus RTU messages sent from the Raspberry Pi 5. A multimeter test also shows that the 120Ω termination resistor is not active, suggesting that the RS485 bus is not properly enabled on the X2 port.
I am confident that the wiring, PiCtory configuration, and register mappings are correct. However, attempts to communicate over RS485 consistently result in no response from the RevPi (timeout errors on the master side).
If you have:
Official documentation to enable and validate the X2 RS485 port,
Any steps or kernel configurations to ensure the RS485 device shows up correctly (e.g., /dev/ttyRS485),
Or example code or working configurations for RevPi Connect 5 RS485 slave setup,
…I would be very grateful if you could share them. I appreciate your time and look forward to any assistance you can provide.
RS-485 issue on RevPi Connect 5
Re: RS-485 issue on RevPi Connect 5
Hi
you you please share the output of
you you please share the output of
- ls -l /dev/ttyAMA*
- ls -l /dev/ttyRS485*
- cat /etc/revpi/image-release
- ls -l /lib/udev/rules.d/50-revpi.rules
- md5sum /lib/udev/rules.d/50-revpi.rules
Re: RS-485 issue on RevPi Connect 5
Hi,
This is some information of your require:
pi@RevPi144913:~$ ls -l /dev/ttyAMA*
crw-rw---- 1 root dialout 204, 64 Jul 4 17:49 /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 74 Jul 7 08:05 /dev/ttyAMA10
pi@RevPi144913:~$ ls -l /dev/ttyRS485*
ls: cannot access '/dev/ttyRS485*': No such file or directory
pi@RevPi144913:~$ cat /etc/revpi/image-release
250124-revpi-bookworm-arm64-default
pi@RevPi144913:~$ ls -l /lib/udev/rules.d/50-revpi.rules
-rw-r--r-- 1 root root 5246 Jan 24 18:41 /lib/udev/rules.d/50-revpi.rules
pi@RevPi144913:~$ md5sum /lib/udev/rules.d/50-revpi.rules
913a4f8322a6e1f93a0e843df588e701 /lib/udev/rules.d/50-revpi.rules
pi@RevPi144913:~$
This is some information of your require:
pi@RevPi144913:~$ ls -l /dev/ttyAMA*
crw-rw---- 1 root dialout 204, 64 Jul 4 17:49 /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 74 Jul 7 08:05 /dev/ttyAMA10
pi@RevPi144913:~$ ls -l /dev/ttyRS485*
ls: cannot access '/dev/ttyRS485*': No such file or directory
pi@RevPi144913:~$ cat /etc/revpi/image-release
250124-revpi-bookworm-arm64-default
pi@RevPi144913:~$ ls -l /lib/udev/rules.d/50-revpi.rules
-rw-r--r-- 1 root root 5246 Jan 24 18:41 /lib/udev/rules.d/50-revpi.rules
pi@RevPi144913:~$ md5sum /lib/udev/rules.d/50-revpi.rules
913a4f8322a6e1f93a0e843df588e701 /lib/udev/rules.d/50-revpi.rules
pi@RevPi144913:~$
Re: RS-485 issue on RevPi Connect 5
Thanks. What kernel version do you use (uname -a)?
Re: RS-485 issue on RevPi Connect 5
Hi,
It here: pi@RevPi144913:~$ uname -a
Linux RevPi144913 6.6.0-revpi6-rpi-v8 #1+deb12+1 SMP PREEMPT_RT Wed, 27 Nov 2024 14:13:38 +0000 aarch64 GNU/Linux
Thanks you so much!
It here: pi@RevPi144913:~$ uname -a
Linux RevPi144913 6.6.0-revpi6-rpi-v8 #1+deb12+1 SMP PREEMPT_RT Wed, 27 Nov 2024 14:13:38 +0000 aarch64 GNU/Linux
Thanks you so much!
Re: RS-485 issue on RevPi Connect 5
Please update the system with the latest versions and check if the issue persists. You can run the update as following:
sudo apt update && sudo apt full-upgrade
Nicolai
sudo apt update && sudo apt full-upgrade
Nicolai