spark_counter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
spark_counter [2016/09/30 17:29] – update links kingkevin | spark_counter [2016/10/01 10:01] – [peacefair PZEM-004] connector kingkevin | ||
---|---|---|---|
Line 37: | Line 37: | ||
{{: | {{: | ||
- | The meter also provides a UART port to query the measured values. | + | The meter also provides a UART port (using an XH-4P connector) |
Two opto-couplers isolate the main power meter circuits from the TX and RX UART ports. | Two opto-couplers isolate the main power meter circuits from the TX and RX UART ports. | ||
Line 52: | Line 52: | ||
The {{: | The {{: | ||
The UART configurations is 9600 bps 8N1. | The UART configurations is 9600 bps 8N1. | ||
- | Before querying | + | All commands include a device address (i.e. C0 A8 01 01 = 192.168.1.1). |
- | Else it won't reply to the other commands. | + | Only the device with the specified address will respond. |
- | The manual uses an IP as address (192.168.1.1 = C0 A8 01 01). | + | This allows to query multiple devices on the same UART port, one after another, when they have different addresses. |
- | No idea why you would set an IP for a UART address. | + | Thus you have to set the device' |
+ | This address | ||
The commands use the following 7 bytes message format: | The commands use the following 7 bytes message format: |
spark_counter.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1