Question about ESP32 modbus slave example

jackyc58
Posts: 2
Joined: Wed Apr 24, 2019 8:41 am

Question about ESP32 modbus slave example

Postby jackyc58 » Thu May 02, 2019 6:34 am

Has anyone used the ESP32 modbus feature?

I use the latest (git at 2019/04/30) ESP-IDF and the accompanying example modbus_slave, I tested it to get the following result:

Modbus Master send: 01 01 00 00 00 04 3D C9
Modbus_slave replies to two results:
01 01 01 05 91 8B (The first reply after booting)
40 40 40 41 64 F1 (Reply after the second time)

Q1. “40 40 40 41 64 F1” Is this correct? If so, how do you interpret the content?
Q2. If it is the format of the first reply (01 01 01 05 91 8B), how to set it in the program?

Thanks!

ESP_alisitsyn
Posts: 211
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: Question about ESP32 modbus slave example

Postby ESP_alisitsyn » Tue May 07, 2019 7:42 am

Hi jackyc58,

I would like to make a link here to our discussion on GitHub with the answers: https://github.com/espressif/esp-idf/issues/3431
Please let me know if you have any other questions.

--
Alex

Who is online

Users browsing this forum: devlat, khervey and 102 guests