Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Microcontroller Modbus (RTU/TCP) Suggestion

Status
Not open for further replies.

sakibnaz

Full Member level 3
Joined
Jul 6, 2008
Messages
165
Helped
6
Reputation
12
Reaction score
6
Trophy points
1,298
Activity points
2,778
Hi All.

I need to implement Modbus Communication both RTU and TCP with STM32F103 Microcontroller. I am new with Modbus. Does Microcontroller needs Firmware Driver to enable Modbus communication? Is it pssible to use any external Chip for UART to Modbus?

Thanks.

Regards.
 

MODBUS TCP involves an ethernet interface, STM32F103 doesn't have it. You can either switch to a ST32 with built-in ethernet plus external PHY or use an chip with hardware TCP stack, e.g. from Wiznet. MODBUS RTU is usually implemented in software with standard UART peripherals.
 

Modbus is a high-level protocol, usually it is implemented using libs (free_modbus etc) or writing library yourself. Hardware parts varies. As FvM wrote, TCP uses an ethernet interface. RTU uses serial connection, it may be uart (never seen that), rs232, rs485 (the latter is a standard way for modbus as it allows long cables and multiple connections). For rs485 there are a lot of chips converting signals to and from uart.
 

Hi Thanks for reply.

For Modbus TCP is it possible to use any external Chip as UART to Modbus TCP Converter?

Thank you.

Regards.
 

It's possible. It's more complex, as you have to deal with not only modbus pdu, but also with ethernet frames. So you can use ethernet interface IC, again there are a lot of them with different protocols (parallel, spi, i2c etc).
 

hello,

For Modbus TCP is it possible to use any external Chip as UART to Modbus TCP Converter?
.

Yes, have a look on LANTRONIX XPORT MODBUS ...
use UART link .. and encapsulate Modbus into ethernet trames TCPIP

i allready used the classic version XPORT-03
RS232/Ethernet and Web page ..with java interfacing.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top