Search found 203 matches

by ESP_alisitsyn
Tue Jun 28, 2022 8:20 am
Forum: ESP-IDF
Topic: MODBUS mbc_master_start(); cannot start it
Replies: 1
Views: 1290

Re: MODBUS mbc_master_start(); cannot start it

Hello EmrahDuatepe, In your code, you are missing the required parts of Modbus initialization and start. This causes the main task to be deleted after Modbus initialization. 1. Port initialization https://docs.espressif.com/projects/esp-modbus/en/latest/esp32/port_initialization.html#modbus-api-port...
by ESP_alisitsyn
Wed Jun 15, 2022 12:01 pm
Forum: ESP IoT Solution 中文讨论版
Topic: ESP32 MODBUS协议栈
Replies: 7
Views: 17309

Re: ESP32 MODBUS协议栈

Hello @sjdczw,

Support of multi-master and multi-slave Modbus is not ready.
by ESP_alisitsyn
Tue Jun 14, 2022 3:14 pm
Forum: ESP-IDF
Topic: Modbus TCP SLAVE incorrect mode ERROR
Replies: 3
Views: 2178

Re: Modbus TCP SLAVE incorrect mode ERROR

Hello ClosedLoop, Please change the code as below: // Modbus slave initialization static esp_err_t slave_init(mb_communication_info_t* pcomm_info) { mb_register_area_descriptor_t reg_area; // Modbus register area descriptor structure void* slave_handler = NULL; // Initialization of Modbus controller...
by ESP_alisitsyn
Mon May 23, 2022 7:40 am
Forum: ESP-IDF
Topic: OTA for slave board over RS485 ModBus
Replies: 2
Views: 1930

Re: OTA for slave board over RS485 ModBus

Hello alhadi, Did you try the`https://github.com/espressif/esp-modbus` library with the OTA? The library does not support OTA update functionality from the box and some issues are expected. The current implementation of ESP-Modbus uses RTOS-driven tasks to handle the Modbus requests which can be blo...
by ESP_alisitsyn
Thu May 12, 2022 2:17 pm
Forum: ESP-IDF
Topic: Freemodbus is missing in esp idf master branch
Replies: 2
Views: 1684

Re: Freemodbus is missing in esp idf master branch

Hi, The freemodbus component migrated to https://github.com/espressif/esp-modbus . Documentation: https://docs.espressif.com/projects/esp-modbus/en/latest/esp32/ The examples for modbus https://github.com/espressif/esp-idf/tree/a82e6e63d9/examples/protocols/modbus/serial/mb_slave are still actual an...
by ESP_alisitsyn
Tue May 10, 2022 10:10 am
Forum: ESP-IDF
Topic: Modbus TCP Slave + W5500 static IP information
Replies: 9
Views: 6422

Re: Modbus TCP Slave + W5500 static IP information

@JonathanJol , Thank you for your code snippet and clarification. The code you provided is fully functional and Modbus communication with the static IP can be established once you set the netif interface correctly in the Modbus slave configuration as @ESP_ondrej described above. https://docs.espress...
by ESP_alisitsyn
Mon May 09, 2022 3:56 pm
Forum: General Discussion
Topic: Modbus master and endianness
Replies: 1
Views: 2013

Re: Modbus master and endianness

@rtborg , It is possible to add support for the other four options for FLOAT format. I was discussing about this here: https://esp32.com/viewtopic.php?f=2&t=23040&hilit=modbus+floating https://github.com/espressif/esp-modbus/issues/3 The new float type defines can be added here: https://github.com/e...
by ESP_alisitsyn
Mon May 09, 2022 2:57 pm
Forum: ESP-IDF
Topic: Modbus TCP Slave + W5500 static IP information
Replies: 9
Views: 6422

Re: Modbus TCP Slave + W5500 static IP information

Hello @JonathanJol, What do you mean under "ESP32 IP address"? Is it the address of the WiFi interface? The Modbus TCP example uses the example_connect common code to initialize the netif. It supports an ethernet connection over the W5500 driver. The master IP address should be obtained automaticall...