Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2018-03-28 21:16:04

mikeyh
Member
From: New Zealand
Registered: 2016-04-28
Posts: 44

USB TTL to modbus

Hi All,

Is it possible to use a USB - UART converter on the Monarco Hat to talk Modbus RTU to an external device. Would it require some coding or is it simpler than that?

Using the USB - UART converter I also have to add some hardware to turn it from full duplex to half so I can transmit over a single wire. But this shouldn't be an issue.

Cheers

Mike

Offline

#2 2018-03-29 09:07:03

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: USB TTL to modbus

Hi Mike,
I'm a bit confused. USB converter has nothing to do with the Monarco HAT, you plug it into the Raspberry Pi.

Also the full/half duplex is a bit unclear to me. What external device are you planning to talk to? Is there any datasheet/documentation available?

Please clarify the above so I can give some advice.

Kind regards,
Jaroslav

Offline

#3 2018-05-29 10:17:07

mikeyh
Member
From: New Zealand
Registered: 2016-04-28
Posts: 44

Re: USB TTL to modbus

Sorry to confuse the issue....! I guess what I'm trying to do is transmit Modbus through a USB to TTL adapter using REXYGEN. Would I need to use some coding for this?

Thanks

Mike

Offline

#4 2018-05-29 11:32:52

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: USB TTL to modbus

Hi Mike,
no coding is required. You just configure the Modbus driver to use e.g. /dev/ttyUSB0.

Jaroslav

Offline

Board footer

Powered by FluxBB