Hi @Wisssje,
See my answers here: https://github.com/espressif/esp-modbus/issues/145.
Search found 221 matches
- Fri Oct 31, 2025 10:42 am
- Forum: ESP-IDF
- Topic: ESP32 RS485 DTR Pin
- Replies: 1
- Views: 1837
- Thu Oct 09, 2025 8:06 am
- Forum: ESP-IDF
- Topic: Error Modbus RTU Slave ESP=IDF
- Replies: 1
- Views: 915
Re: Error Modbus RTU Slave ESP=IDF
Hello carlos789 ,
See my answers here: https://github.com/espressif/esp-modbus ... t-14633896
Thanks.
See my answers here: https://github.com/espressif/esp-modbus ... t-14633896
Thanks.
- Mon Feb 24, 2025 9:18 am
- Forum: ESP-IDF
- Topic: mbc_master_start() can not connect to slaves
- Replies: 5
- Views: 8303
Re: mbc_master_start() can not connect to slaves
I just missed the array count change. There are two possible reasons for the issue with the connection you mentioned.
1. The issue with the slave_ip_address_table[]. The NULL in the last element is required without it the master will not able to connect and it is most possible reason for the issue ...
1. The issue with the slave_ip_address_table[]. The NULL in the last element is required without it the master will not able to connect and it is most possible reason for the issue ...
- Fri Feb 14, 2025 10:06 am
- Forum: General Discussion
- Topic: Two modbus slave?
- Replies: 1
- Views: 2601
Re: Two modbus slave?
@Sanders,
It is possible with esp-modbus v2.0.1. https://github.com/espressif/esp-modbus/discussions/86
It is possible with esp-modbus v2.0.1. https://github.com/espressif/esp-modbus/discussions/86
- Fri Feb 14, 2025 8:42 am
- Forum: ESP-IDF
- Topic: mb_tcp_slave and wifi_station, first project
- Replies: 2
- Views: 1438
Re: mb_tcp_slave and wifi_station, first project
Please check your code in the function. You do not provide it here but it does not initialize the slave interface correctly https://docs.espressif.com/projects/esp ... ialization.
This is a reason for your failure.
Code: Select all
slave_init() This is a reason for your failure.
- Fri Feb 14, 2025 8:31 am
- Forum: ESP-IDF
- Topic: mbc_master_start() can not connect to slaves
- Replies: 5
- Views: 8303
Re: mbc_master_start() can not connect to slaves
@daannii10,
Please add the NULL in the ip address table. This should solve the issue.
https://docs.espressif.com/projects/esp ... on-options
Please add the NULL in the ip address table. This should solve the issue.
Code: Select all
char* slave_ip_address_table[] = {
"192.168.3.36",
NULL
};- Tue Feb 11, 2025 12:48 pm
- Forum: General Discussion
- Topic: Unable to run TCP Slave Modbus example in v2.0
- Replies: 5
- Views: 2136
Re: Unable to run TCP Slave Modbus example in v2.0
I'm not sure to understand. I didn't change anything to the default example of v2.
Actually, I created an issue on github but it is not visible (yet another flagged account issue...).
The messages I reported are the real ones I see in the output window of CSV using ESP Modbus 2.0.1~1 and ESP-IDF ...
- Tue Feb 11, 2025 11:57 am
- Forum: Documentation
- Topic: Migration guide for ESP-Modbus
- Replies: 4
- Views: 14625
Re: Migration guide for ESP-Modbus
I guess the "latest" in the link of the documentation in my first post is misleading since it is not updated (yet?). Your link is correct, but harder to find.
Yes, you are right. This legacy aspect is kind of misleading and will be fixed in coming updates. However, the esp-modbus v2 can work ...
Yes, you are right. This legacy aspect is kind of misleading and will be fixed in coming updates. However, the esp-modbus v2 can work ...
- Tue Feb 11, 2025 11:42 am
- Forum: General Discussion
- Topic: Unable to run TCP Slave Modbus example in v2.0
- Replies: 5
- Views: 2136
Re: Unable to run TCP Slave Modbus example in v2.0
I got errors in the code and looking at the source code I was able to fix them, but at run-time my modbus client did not work anymore (i.e. it does not process the incoming requests).
The esp-modbus v2 latest is verified and tested and can work with the esp-idf starting from v5.0. There still ...
The esp-modbus v2 latest is verified and tested and can work with the esp-idf starting from v5.0. There still ...
- Tue Feb 11, 2025 8:58 am
- Forum: Documentation
- Topic: Migration guide for ESP-Modbus
- Replies: 4
- Views: 14625
Re: Migration guide for ESP-Modbus
@AndreaS73
Thank you for the comment.
Yes, the new version of esp-modbus v2.0.1 has been released and this has been announced https://github.com/espressif/esp-modbus/discussions/86 . Please use the links to the documentation and examples from the discussion link above.
The official examples in ...
Thank you for the comment.
Yes, the new version of esp-modbus v2.0.1 has been released and this has been announced https://github.com/espressif/esp-modbus/discussions/86 . Please use the links to the documentation and examples from the discussion link above.
The official examples in ...