XBee3 + Modbus (Max3483) #9868
Replies: 5 comments 5 replies
-
I don't know much about the XBee port (Digi have never released much info or the source code). I'm curious that you're using pull up/down on dio7 rather than driving it high low? If there's any other sort of pull up/down on the line then this will have no effect. Do you have a scope or logic analyser? Can you probe the UART TX/RX lines? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your hint, jimmo. And Robert, that's acutally us :-) Your help with the pressure sensor is still highly appreciated. |
Beta Was this translation helpful? Give feedback.
-
So I hooked on the the scope. Then I had to learn a little more about UART and Modbus than I expected to need. And to my surprise, The XBee is sending |
Beta Was this translation helpful? Give feedback.
-
stdout.buffer.write() does trigger an answer from the sensor. Great. I can't read it though. Upon the very first signal from the sensor, the XBee freezes. The signal is already on the RO (transceiver) - DIN (XBee) line, but even without a stdin.buffer.read() the XBee hangs immediatly. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much Robert, |
Beta Was this translation helpful? Give feedback.
-
Hi,
our setup is
sensor (RS485) - transceiver (Max3485, half duplex) - XBee 3
It seems I'm unable to send a valid "read holding registers". I verified hex code
b'\x01\x03\x08\x29\x00\x0a\x16\x65'
to be the right command (via QModbus).The regular modbus libraries don't fit on the XBee, as it seems. I am aware that there might be timing issues for writing TX that I might not be handling right (19200 baud, 2 stop bits).
This is what I'm trying to do:
I assume I must be doing something fundamentally wrong. Or is it just playing aroung with the
sleep_us
?With a different sensor which keeps sending by itself I only have to read from stdin. That works just fine. So I guess either my message or the timing must be wrong.
Beta Was this translation helpful? Give feedback.
All reactions