Search found 9 matches

by Chriserke
Tue Apr 28, 2020 6:18 pm
Forum: ESP32 IDF
Topic: Modbus slave data storage [IDFGH-3202]
Replies: 6
Views: 655

Re: Modbus slave data storage [IDFGH-3202]

Thanks for the help i'll see if i can make the floats work some other time.
by Chriserke
Tue Apr 28, 2020 1:39 pm
Forum: ESP32 IDF
Topic: Modbus slave data storage [IDFGH-3202]
Replies: 6
Views: 655

Re: Modbus slave data storage [IDFGH-3202]

Hello,

I've tried some stuff and it seems that changing data_chan0 to 3 from float to uint16 seems to do the trick.

Changing the value in the tool now also changes the value when i try and print it.

However i'm guessing that this is probably not how it's supposed to be done.
by Chriserke
Tue Apr 28, 2020 2:28 am
Forum: ESP32 IDF
Topic: Modbus slave data storage [IDFGH-3202]
Replies: 6
Views: 655

Modbus slave data storage [IDFGH-3202]

Hello, When trying to modify the modbus slave example i've run into some issues. I'm trying to print the registers values after they have been changed however the value never changes on the esp32 side. Running the modbus poll tool shows that after i've written a value to the esp32 slave that it has ...
by Chriserke
Wed Mar 11, 2020 2:55 pm
Forum: ESP32 IDF
Topic: Modbus slave
Replies: 13
Views: 3461

Re: Modbus slave

Hello, I'm using visual GDB with the release version 4.0. The official visual GDB support does not go higher than version 4.0 as of now for esp-idf. So i'll see what i can do but it might not work. EDIT: I tried the master version (4.1) and the same issue pops up. So i guess ill get back to debuggin...
by Chriserke
Wed Mar 11, 2020 10:25 am
Forum: ESP32 IDF
Topic: Modbus slave
Replies: 13
Views: 3461

Re: Modbus slave

Hello, The reboot seems to be fixed. And i can sometimes receive some data like once every 10-20 tries as can be seen in the console. And ASCii was used to make debugging on the scope easier. Anyway i'm not sure what the issue is now though. Perhaps you have some insights as to what could cause this...
by Chriserke
Wed Mar 11, 2020 9:25 am
Forum: ESP32 IDF
Topic: Modbus slave
Replies: 13
Views: 3461

Re: Modbus slave

The esp seems to be rebooting when using the modbus. with the following error: assertion "( eRcvState == STATE_RX_RCV ) || ( eRcvState == STATE_RX_WAIT_EOF )" failed: file "C:/SysGCC/esp32/esp-idf/v4.0/components/freemodbus/modbus/ascii/mbascii.c", line 424, function: xMBASCIITimerT1SExpired abort()...
by Chriserke
Tue Mar 10, 2020 8:45 am
Forum: ESP32 IDF
Topic: Modbus slave
Replies: 13
Views: 3461

Re: Modbus slave

Hello,

The board used is a custom PCB with an esp32 WROOM 32D.
Would this still be the case?
by Chriserke
Mon Mar 09, 2020 3:25 pm
Forum: ESP32 IDF
Topic: Modbus slave
Replies: 13
Views: 3461

Re: Modbus slave

Hello, The error stems from the modbus poll tool. I have changed the baudrate in the example to 9600 and the uart pins to RX 16 and TX17. With the mode being default so i believe RTU on the esp side. On the image below you can see the settings/error. Would you have an idea as to what is the problem ...
by Chriserke
Mon Mar 09, 2020 2:36 pm
Forum: ESP32 IDF
Topic: Modbus slave
Replies: 13
Views: 3461

Modbus slave

Hello, i've been trying to run the esp-idf modbus slave example in combination with a modbus master/poll tool. Before this i've verified the working of the rs485 transceiver module with the rs485 echo example and a rs485 cable to the pc. However running the slave modbus example gives a timeout readi...

Go to advanced search