Replies: 3 comments 8 replies
|
pymodbus do not have a web serial API, you are using a different project. Seems you get the raw modbus message, you can look at our documentation to find the structure....pymodbus would return the user data. |
|
I use pymodbus in my web browser with pyscript. pymodbus is installed in my browser but I use WEB SERIAL API instead of pyserial test my demo : https://titeppat.pyscriptapps.com/twilight-hill/latest/ |
|
I'm sorry, but I can't explain my problem (i'm french :-) ) I'll update my demo tomorrow. I haven't modified pyserial, I use pymodbus functions to generate my modbus frames. Step 1. build my message step2. function javascript "serialwrite" send my packet (010304fc0001450a) on my serial port step3. I receive the response in str format (010302000ff840)
I'll update my demo tomorrow but I'll need a modbus rtu device and a 485 converter. Thank you for your support |


Uh oh!
There was an error while loading. Please reload this page.
Hi
I use pymodbus with the WEBSERIAL API, I build my messages with buidPacket() and it works very well.
My response (javascript) is in this format: "01 03 02 00 05 78 47".
I can't find in the documentation how to decode this message (str format).
I'd like to read the data (0x05)
Can anyone help me?
thanks
All reactions