CRC errors and no DEBUG with power meter and RTU example code #166
-
Hello, I'm new here, coming from #136 (comment) (see minimodbus code and output in unfoldable details there)... I'm now struggling with some CRC errors and after reading through this forum I think I need to:
I can't seem to have an HexDump of the packets on the bus as shown in other discussions, what am I doing wrong? From what I'm reading in the library code, the error handler should have hexdump macros too... Unfortunately I'm on holidays and don't have an oscilloscope/LA at reach to see what's going on electrically :-S Here's my relatively precarious setup with a couple of resistors, one of them biasing to GND with 220Ohm: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 23 replies
-
Please try again with |
Beta Was this translation helpful? Give feedback.
-
Thanks, progress, see commit brainstorm/esp-modbus-power-meter@c8a16b8! Now I see proper hexdumps :D
|
Beta Was this translation helpful? Give feedback.
-
There is a very similar device that has a manual available that includes Communications and Modbus register specs. |
Beta Was this translation helpful? Give feedback.
-
There's a 78L05 LDO GND, powering a RS485 transceiver, so I could use that for the ESP32S2 board's GND (and perhaps as 5V supply substituting it by a beefier LDO that can do more than 100mA to power up the ESP): |
Beta Was this translation helpful? Give feedback.
There's a 78L05 LDO GND, powering a RS485 transceiver, so I could use that for the ESP32S2 board's GND (and perhaps as 5V supply substituting it by a beefier LDO that can do more than 100mA to power up the ESP):