Search found 73 matches

by ESP_alisitsyn
Fri Jan 22, 2021 2:33 pm
Forum: ESP-IDF
Topic: Modbus TCP/IP invalid response from slave
Replies: 1
Views: 106

Re: Modbus TCP/IP invalid response from slave

Hello @prokampas, Why you are using mbc_master_send_request(&req, &data); function of modbus controller instead of mbc_tcp_master_set_parameter(), mbc_tcp_master_get_parameter() ? I can expect several reasons for the failures: 1. Incorrect initialisation of master and state machine. 2. The device do...
by ESP_alisitsyn
Fri Jan 22, 2021 1:55 pm
Forum: ESP-IDF
Topic: master salve implemtatation esp idf 4.0
Replies: 13
Views: 2212

Re: master salve implemtatation esp idf 4.0

Hi JuhToiva,

Thanks for the update. Let me know if you have any issues.
by ESP_alisitsyn
Wed Jan 13, 2021 8:08 am
Forum: General Discussion
Topic: When will Modbus TCP/IP be in ESP_IDF 4.x ?
Replies: 3
Views: 500

Re: When will Modbus TCP/IP be in ESP_IDF 4.x ?

Hi @adam_esp,

The previous answer from @fahad_ali_sarwar is correct. The Modbus TCP master/slave functionality implemented from ESP-IDF v4.2.
https://docs.espressif.com/projects/esp ... ght=modbus
by ESP_alisitsyn
Wed Jan 13, 2021 8:00 am
Forum: ESP-IDF
Topic: Modbus RTU:making request without "parameter descriptor" setup
Replies: 1
Views: 381

Re: Modbus RTU:making request without "parameter descriptor" setup

Hi davdav, since modbus request will be made "on-the-fly" (no knowledge of what function code and/or register number is requested), is it possible to avoid the setup of the "parameter descriptor" as reported in the example: is is possible to use only "mbc_master_send_request" API to read/write the m...
by ESP_alisitsyn
Wed Jan 13, 2021 7:50 am
Forum: ESP-IDF
Topic: MODBUS reading even addresses only
Replies: 1
Views: 321

Re: MODBUS reading even addresses only

Hi @xyashpatilx, I need more information about your master data dictionary and slave register descriptors to identify the issue. The existing serial master and slave examples work just fine with default configuration and stress tested. For now i can propose to increase CONFIG_FMB_MASTER_TIMEOUT_MS_R...
by ESP_alisitsyn
Tue Jan 12, 2021 4:46 pm
Forum: ESP-IDF
Topic: Setting Stop bits in Modbus Serial
Replies: 1
Views: 344

Re: Setting Stop bits in Modbus Serial

Hello @sabin.john, The additional option in `mb_communication_info_t` can be implemented. The reason why it was not implemented is compatibility with original freemodbus code which does not provide a way to explicitly select number of stop bits (See the BOOL xMBPortSerialInit(Char ucPORT, ULONG ulBa...
by ESP_alisitsyn
Tue Jan 12, 2021 3:07 pm
Forum: ESP-IDF
Topic: master salve implemtatation esp idf 4.0
Replies: 13
Views: 2212

Re: master salve implemtatation esp idf 4.0

Hi @JuhToiva, Modbus uses the timer group to measure the required timeouts which can be configured using kconfig options (CONFIG_FMB_TIMER_GROUP, CONFIG_FMB_TIMER_INDEX). The Error code 0x105 is ESP_ERR_NOT_FOUND (for your reference: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-re...
by ESP_alisitsyn
Tue Dec 22, 2020 2:47 pm
Forum: ESP-IDF
Topic: Modbus TCP Implementation
Replies: 32
Views: 5915

Re: Modbus TCP Implementation

@ jas39_,

This has been already fixed in my MR. Thanks for finding.
by ESP_alisitsyn
Mon Nov 23, 2020 9:50 am
Forum: ESP-IDF
Topic: mbc_serial_master_set_request
Replies: 1
Views: 232

Re: mbc_serial_master_set_request

Hello,

The modbus controller layer is above Modbus. This logic with parameter name was used as additional check to avoid or detect possible data dictionary misconfiguration issues from user side.
by ESP_alisitsyn
Tue Nov 17, 2020 9:01 pm
Forum: ESP-IDF
Topic: Modbus TCP Implementation
Replies: 32
Views: 5915

Re: Modbus TCP Implementation

It is pretty simple to implement in current update but let me know if you need help. Please make sure your callback function can safely return after maximum timeout even when r/w operation is not completed.

Go to advanced search