question

ryanb avatar image
ryanb asked

Which serial interface is the Octo GX RS485 port mapped to?

Hello,

I'm investigating the options of writing an RS485 driver on the OctoGx, for specialised metering system. I'd like to know which UART (or serial interface) the RS485 port is mapped to in the Venus OS? Is it ttyUSB#?


Once I have this information, what would be the easiest way to test communication on this port, without a victron enabled RS485 device? I want to send data to the OctoGx RS485 port from an RS485 raspberry pi Hat.


Thanks in advance,


Ryan

gx device
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Yes, its probably one of the USB ports. Try lsusb; or snooping around in the udev configuration; to find out which port is what.


What I know is that the RS485 FTDI usb chip is programmed with some productid or name to make it be recognised as RS485 by Venus OS. But I don't remember the details; and don't have time to login and look around myself now; sorry.

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ryanb avatar image ryanb commented ·

Thank you, its mapped to /dev/ttyUSB0

I used this command to query udev :

udevadm info -q symlink /dev/ttyUSB0
0 Likes 0 ·

Related Resources

Additional resources still need to be added for this topic