Search found 221 matches

by ESP_alisitsyn
Fri Oct 31, 2025 10:42 am
Forum: ESP-IDF
Topic: ESP32 RS485 DTR Pin
Replies: 1
Views: 1837

Re: ESP32 RS485 DTR Pin

Hi @Wisssje,

See my answers here: https://github.com/espressif/esp-modbus/issues/145.
by ESP_alisitsyn
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.
by ESP_alisitsyn
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 ...
by ESP_alisitsyn
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
by ESP_alisitsyn
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

Code: Select all

slave_init() 
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.
by ESP_alisitsyn
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.

Code: Select all

char* slave_ip_address_table[] = {
        "192.168.3.36",
        NULL
    };
https://docs.espressif.com/projects/esp ... on-options
by ESP_alisitsyn
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 ...
by ESP_alisitsyn
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 ...
by ESP_alisitsyn
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 ...
by ESP_alisitsyn
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 ...

Go to advanced search