2022-10-14 12:12 AM
Hello eveyone,
I'm trying to communicate with MODBUS TCP between a STM32 Nucleo-F429ZI board and a PLC.
There is a LAN8742A transceiver on the board, do you know any modbus TCP library that is compliant with ?
Thanks in advance for you time
2022-10-14 03:28 AM
Hi @AKrie.4 and welcome to the Community :),
If you refer to the reference manual RM0090 you can conclude that the Modbus communication is not supported in STM32F429 MCU device.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Thank you
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-10-14 09:36 AM
Hi,
Please see FreeModbus library https://www.embedded-experts.at/en/freemodbus/about/
You can download library from: https://github.com/cwalter-at/freemodbus
Best Regards,
Slawek
2022-10-17 02:43 AM
Hi @KDJEM.1 ,
of course it is not, but with transceiver
2022-10-19 11:05 AM
Do you even understand what an absolute nonsense you wrote there? Modbus is a software protocol, which runs on top of hardware connections. The Modbus/RTU format uses an UART connection and the Modbus/TCP format typically uses an Ethernet network, both of which are present on STM32 MCUs.
2022-10-29 06:39 AM
previously I have used FreeModbus, but this project is not that actively maintained.
see https://github.com/debevv/nanoMODBUS. It is maintained and offers both server (multiple clients) and client connections.
2023-08-21 04:41 PM
I am looking at nanoMODBUS. you mention it supports a server with multiple clients. Can you tell me how you know this? I am struggling to figure out how to implement a Modbus TCP server that supports multiple clients. The Linux example seems to imply it will support multiple clients. However, it looks like it is just trying to receive from one client at a time. If a client drops off, it relies on a timeout to discover that. Meanwhile, the other clients have to wait for the timeout to expire. That won't work in my application.
Any guidance is appreciated.
2023-10-16 04:08 AM
Doesn't the server represent the "slave" according to the "classic" Modbus (via UART)?
So technically there should only be one client (the "master") which polls multiple servers ("slaves")?
Just asking. I am pretty new to this.