Page 3 of 3

Re: Ethernet RS232 / 485

Posted: Wed Feb 21, 2024 2:11 pm
by chipfryer27
Hi

I think your modules are self contained ModBus RTU's and are half-duplex, so would it not handle direction automatically? You would (presumably) send a read command and it would do the rest. Do you have a link to the datasheet / manual for setting up the RTU's?

Regards

Re: Ethernet RS232 / 485

Posted: Wed Feb 21, 2024 3:24 pm
by RGV250
Hi,
You are right that you send a read command and the RTU device replies but I think this is where the issue is going to be. (BTW, there is virtually no information on the modules but I did get one to work with the ESP32, the issue I had then was to change the address).

From what I read you send to the message port 10001 but then it has settings for the response which will be the IP/port of the Pi so will need a channel for that.
I hope to have the USB/serial for the weekend so can play around with 232 serial as there is no point trying Modbus until I get that working. I will probably just use a serial terminal program first to simplify it further.

Bob

Re: Ethernet RS232 / 485

Posted: Wed Feb 21, 2024 3:38 pm
by chipfryer27
Hi

Between the gadget and your Pi it's tcp/ip so bidirectional. It's only half-duplex between gadget and RTU, well unless I've missed something (easily done)

Regards

Re: Ethernet RS232 / 485

Posted: Wed Feb 21, 2024 4:49 pm
by RGV250
Hi,
It is probably me overthinking the manual, it is 92 pages. I will just wait for the serial cable now, I think it will soon become obvious if/how it works or not then.

Bob

Re: Ethernet RS232 / 485

Posted: Wed Feb 21, 2024 9:09 pm
by chipfryer27
Could be a beer free weekend if it arrives on time.
Here's hoping for a snap postal strike then...... :lol:

Re: Ethernet RS232 / 485

Posted: Wed Feb 21, 2024 10:52 pm
by RGV250
Hi,
It definitely seems I was reading the manual wrong, I put a link between Tx/Rx on the serial connector and using a terminal program (CoolTerm) it seems to work as you said. Also only need 4 channels (for 2 UDS devices) so I miss interpreted that as well.

Got to find the Modbus modules now.

Bob