2024-06-23 05:20 AM - edited 2024-06-23 05:27 AM
Hello ST Community,
I am currently working on a project using the Nucleo-H753ZI without an RTOS, and I have followed a tutorial by Controllers Tech to set up TCP/Ethernet. I am using Static IP assignment.
I can Transmit and Receive data though Hercules Tool. However, when I try to use the ModbusTool for TCP connection, the STM32 does not seem to receive any data.
Problem Description:
Configuration Details:
Steps Taken:
Could anyone provide insights into why the STM32 is not receiving data from the ModbusTool? Are there specific configurations or settings I might be missing? Any advice or guidance would be greatly appreciated. I have attached the IOC file for reference.
Thank you in advance for your help!
Best regards,
Umair Jarullah.
Solved! Go to Solution.
2024-06-25 07:23 AM
Thanks for youor reply. I found it yesterday that, there was a logical error in my code i was using strncpy that was causing problem, so i changed it to memcpy.
2024-06-25 03:18 AM - edited 2024-06-25 03:19 AM
Hello @imium,
For successful Modbus communication, it's crucial that your application correctly implements the Modbus protocol.
You can refer to the Modbus protocol reference guide here for detailed information. Additionally, a free Modbus stack is available for download at FreeModbus, which might be suitable for your project needs.
With Regards,
2024-06-25 07:23 AM
Thanks for youor reply. I found it yesterday that, there was a logical error in my code i was using strncpy that was causing problem, so i changed it to memcpy.