Reading rs485 data on TRB246

Hello everyone!

I am trying to write a simple script that scans rs485 incoming data. Data are periodic messages of raw hex bytes, fixed length, with a specific end byte. I can view the data on PC using Docklight, messages are ok. But I cannot with the incoming messages on the TRB246 cli.

A simple cat < /dev/rs485 does not show anything.

microcom /dev/rs485 -s 9600 permitts to send data from TRB246 to PC. But does not display any simulated data sent by PC with Docklight (ASCII or HEX format).

echo “hello” > /dev/rs485 shows “hello” on Docklight (on PC)

I tried to configure rs485 device with WebUI ‘Over IP’ section, does not help. I tried to disable everything dealing with rs485 on Webui, does not help.

setup:

Please, do you know how to display rs485 incoming raw data?

Thank you in advance!

Note: for RS485 half duplex, D+/D- must connected to R+/R- respectively.

I have achieved to receive my data, and interprete with shell cmd.

BUT sometimes cat /dev/rs485 works, sometimes it doesn’t. Why??? setup remains unchanged

This topic was automatically closed after 15 days. New replies are no longer allowed.