Search found 13 matches

by Nikostpn
Wed Jan 18, 2023 3:45 pm
Forum: ESP-IDF
Topic: Modbus Slave Example UART Event Queue Full
Replies: 6
Views: 3285

Re: Modbus Slave Example UART Event Queue Full

ESP_alisitsyn,

Thank you! The Modbus library was for the LabVIEW side; the ESP stuff worked fine.
by Nikostpn
Tue Jan 17, 2023 4:07 pm
Forum: ESP-IDF
Topic: Modbus Slave Example UART Event Queue Full
Replies: 6
Views: 3285

Re: Modbus Slave Example UART Event Queue Full

Hi ESP_alisitsyn, I've never replied, but the issue was resolved by using an appropriate Modbus handler. and library The original issue came from interfacing with a LabVIEW program, which (if I remember correctly) would poll the registers directly without using a Modbus interface (that is, just send...
by Nikostpn
Tue Jan 17, 2023 4:02 pm
Forum: ESP-IDF
Topic: How to properly define multiple Modbus register areas?
Replies: 3
Views: 1296

Re: How to properly define multiple Modbus register areas?

Hi ESP_alisitsyn, Thank you for your answer! I was able to resolve this. My issues were that I was linking the wrong modbus_params.h file -- since I went off the serial slave example, the esp-modbus stuff was automatically copied over as a component into my project once I started changing it, but th...
by Nikostpn
Tue Jan 10, 2023 5:20 pm
Forum: ESP-IDF
Topic: How to properly define multiple Modbus register areas?
Replies: 3
Views: 1296

How to properly define multiple Modbus register areas?

Hi, I'm having issues with defining multiple separate Modbus holding register areas using the serial slave example. I get the following error: "MB_CONTROLLER_SLAVE: mbc_slave_set_descriptor(217): mb incorrect descriptor or already defined." Here is how I define the areas in the main app: #define MB_...
by Nikostpn
Wed Mar 23, 2022 9:29 pm
Forum: ESP-IDF
Topic: Modbus Slave Example UART Event Queue Full
Replies: 6
Views: 3285

Re: Modbus Slave Example UART Event Queue Full

Hi @ESP_alisitsyn, Sorry for the late reply! The problem went away after the MB master code was configured to poll all the holding registers (the only registers used in the application) as needed; the problem was due to the fact master had to read and write to separate (holding) registers really fas...
by Nikostpn
Mon Feb 21, 2022 9:58 pm
Forum: ESP-IDF
Topic: Modbus Slave Example UART Event Queue Full
Replies: 6
Views: 3285

Modbus Slave Example UART Event Queue Full

Hi all, I'm working with this example with ESP-IDF V4.3.2: https://github.com/espressif/esp-idf/tree/master/examples/protocols/modbus/serial/mb_slave I have the Modbus slave running as one of my threads. When I interlace with a test program, I get the following: When I try to get my slave polled at ...
by Nikostpn
Fri Jan 28, 2022 12:22 am
Forum: ESP-IDF
Topic: Reconnecting - encountering 0x3007 ERR_WIFI_CONN && missing WIFI_EVENT_STA_START during subsequent connections
Replies: 0
Views: 1672

Reconnecting - encountering 0x3007 ERR_WIFI_CONN && missing WIFI_EVENT_STA_START during subsequent connections

Hi all, I'm wondering if there is a graceful way to disconnect from an AP and then reconnect to it. In my code, I use the same event handler and wifi_init_sta, but since I might have to change between APs, I have put out some of the initialization functions in the app main: ESP_ERROR_CHECK(esp_netif...
by Nikostpn
Thu Jan 27, 2022 10:51 pm
Forum: ESP-IDF
Topic: WIFI / WPS esp_wifi_connect() returns error
Replies: 2
Views: 4226

Re: WIFI / WPS esp_wifi_connect() returns error

Hi,

Were you able to resolve this issue or find out what causes it?

Thanks!
by Nikostpn
Wed Jan 19, 2022 8:16 pm
Forum: ESP-IDF
Topic: Driver error with ESP32 boards after updating to ESP-IDF 4.1
Replies: 1
Views: 4311

Re: Driver error with ESP32 boards after updating to ESP-IDF 4.1

Update:

I was able to solve the issue by removing the driver from the registry and then reinstalling it again.
by Nikostpn
Tue Dec 21, 2021 5:31 pm
Forum: ESP-IDF
Topic: Driver error with ESP32 boards after updating to ESP-IDF 4.1
Replies: 1
Views: 4311

Driver error with ESP32 boards after updating to ESP-IDF 4.1

Hi all, Overview: I've recently ran ESP-IDF Tools 2.12 Online to update the tools and the toolchain and now I'm having issues with drivers and connecting to ESP32 boards, including ESP32 HUZZAH32 from Adafruit and ESP32-S2-DevKitM-1. Problems: Now, whenever I'm trying to flash any of the boards that...