Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joaoviktor22 opened this issue Mar 15, 2023 · 3 comments

Comments

@joaoviktor22
Copy link

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.

@github-actions github-actions bot changed the title How to Read Device Identification Function 43 / 14 (0x2B / 0x0E) with MODBUS Master RTU How to Read Device Identification Function 43 / 14 (0x2B / 0x0E) with MODBUS Master RTU (IDFGH-9653) Mar 15, 2023
@alisitsyn
Copy link
Collaborator

alisitsyn commented Mar 20, 2023

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 alisitsyn self-assigned this Mar 20, 2023
@joaoviktor22
Copy link
Author

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.

@alisitsyn
Copy link
Collaborator

@joaoviktor22 ,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants