Replies: 8 comments 4 replies
|
and field "MajorMinorRevision": "3.8.0" |
|
In fact, the register's string length shall be according to device specification, it is not configured or decided by modpoll tool. For your request, we need to modify modsim code to simulate a 16-character long string value, see gavinying/modsim@392113d#diff-1214100fc30f036ad98e2a546fcb20b6fb7a7cf375bff7fcbb4a099590f6cbfdR97 Now, you could use below config to retrieve 16-byte long string value from modsim device, I will later update the modpoll example config files to include above usages as well. thanks. Btw, the modsim is only a very simple example of Modbus simulator (all logics are in one python file), you could fork it and easily make changes to adapt to your further tests. |
Thanks, I see my misunderstanding now. |
|
Sorry for the late response, you are absolutely right, 16-character long string is 8 words, so here we shall poll 8 registers in the config file. |
To clarify my intend, my request is targeting to improve usability of modpoll for all possible use cases as it is such a great tool! So far I found modpoll to work perfectly in environments where device specifications are fully correct, but errors in specifications and implementations are are a fact of life. |
|
I have to agree that the current document is far from covering all features or potential usecases of Meanwhile, I would also like to say, I always welcome contributions from users, because people love to see and learn from actual examples, you might have just come through a hard time (due to non-standard vendor implementation or even incorrect vendor specs) to figure out a modpoll config for a specific device, now the other people happens to use the same vendor might be benefit from your work if you could share it. It could be a config file or any writeups of your experience or tips. PULL REQUESTS ARE WELCOME. In fact, this is the gist of creating this Happy coding and sharing :) |
I plan to contribute like I did in many other OSS projects already. I try to read data from devices supporting SunSpec but have to rely currently on an ESP32-based simulator. This emulator is written in Tasmota script and suffers from a number of issues I hope to fix. The emulator's ModBus related code is below current power in W = 40097 |
|
Do you have the SunSpec Modbus protocol? why not follow the document straight away? also interested to know if your goal is to read data from actual SunSpec device, or to create a SunSpec emulator? |
Uh oh!
There was an error while loading. Please reload this page.
Ideal for tests would be to extract:
Originally posted by @mi-hol in #77 (comment)
All reactions