esp-modbus icon indicating copy to clipboard operation
esp-modbus copied to clipboard

How to Read Device Identification Function 43 / 14 (0x2B / 0x0E) with MODBUS Master RTU (IDFGH-9653)

Open joaoviktor22 opened this issue 2 years ago • 3 comments

Hello,

I'm trying to get the ID of my slave using my MODBUS Master RTU, but I'm having trouble reading the Device Identification with Function 43 and 03 (Extended Objects). I've searched extensively, but haven't found a solution yet. If anyone knows how to do this, I would greatly appreciate your help.

joaoviktor22 avatar Mar 15 '23 15:03 joaoviktor22

Hello @joaoviktor22,

The Modbus Function 43: Read Device Identification is not supported by the stack. Usually vendors using the Function 17 (0x11): Report Slave ID command returning a free-form string of vendor/model/serial-number, instead of the Read Device Identification which is supported. As per Modbus specification page 44, the stack requires to implement an encapsulated Modbus interface with composed data elements (objects). The example of implementation can be taken from libmodbus library.

alisitsyn avatar Mar 20 '23 18:03 alisitsyn

Thank you for your response. I had originally intended to use function 43, but I was able to resolve the issue by directly implementing UART communication. Thank you for your assistance.

joaoviktor22 avatar Apr 05 '23 18:04 joaoviktor22

@joaoviktor22 ,

Thank you for update and this feature request. This command will be added to the feature list with low priority.

alisitsyn avatar Apr 06 '23 10:04 alisitsyn