Watt-hour fields are actually (at minimum) 4 bytes.

Firmware v8 has an "e"-type message of unknown purpose.
This commit is contained in:
Victor Chang
2024-01-11 22:30:55 -08:00
parent 5ade21f0de
commit b0e38c1faa
3 changed files with 23 additions and 15 deletions

View File

@@ -98,10 +98,10 @@ Blank cells have never been seen to be anything other than zero. Some cells have
</tr>
<tr> <th>0</th> <td colspan=1 align="center">0x18</td><td colspan=1 align="center">Incrementor</td><td colspan=1 align="center">0x01</td><td colspan=1></tr>
<tr> <th>4</th> <td colspan=2></td><td colspan=1 align="center">0x25</td><td colspan=1 align="center">ImportWh~</td></tr>
<tr> <th>8</th> <td colspan=1 align="center">~ImportWh</td><td colspan=1 align="center">0x16</td><td colspan=1 align="center">0x09</td><td colspan=1></td></tr>
<tr> <th>8</th> <td colspan=3 align="center">~ImportWh</td><td colspan=1></td></tr>
<tr> <th>12</th> <td colspan=1></td><td colspan=1 align="center">0x01</td><td colspan=2></td></tr>
<tr> <th>16</th> <td colspan=1></td><td colspan=2 align="center">ExportWh</td><td colspan=1 align="center">0x97</td></tr>
<tr> <th>20</th> <td colspan=3></td><td colspan=1 align="center">0x01</td></tr>
<tr> <th>16</th> <td colspan=1></td><td colspan=3 align="center">ExportWh~</td></tr>
<tr> <th>20</th> <td colspan=1 align="center">~ExportWh</td><td colspan=2></td><td colspan=1 align="center">0x01</td></tr>
<tr> <th>24</th> <td colspan=1 align="center">0x03</td><td colspan=1></td><td colspan=1 align="center">0x22</td><td colspan=1 align="center">0x01</td></tr>
<tr> <th>28</th> <td colspan=2></td><td colspan=1 align="center">0x02</td><td colspan=1 align="center">0x03</td></tr>
<tr> <th>32</th> <td colspan=1></td><td colspan=1 align="center">0x22</td><td colspan=1 align="center">0xE8</td><td colspan=1 align="center">0x03</td></tr>
@@ -113,13 +113,13 @@ Blank cells have never been seen to be anything other than zero. Some cells have
#### ImportWh
Bytes 7 to 8, (16 bit int, probably unsigned, LSB)
Bytes 7 to 10, (32 bit int, probably unsigned, LSB)
Cumulative watt-hours consumed from the grid. Unknown when the value resets, but probably never resets since ESP32 never sends a clock sync to the MGM111 so it likely just rolls over.
#### ExportWh
Bytes 17 to 18, (16 bit int, probably unsigned, LSB)
Bytes 17 to 20, (32 bit int, probably unsigned, LSB)
Cumulative watt-hours sent to the grid. Unknown when the value resets, but probably never resets since ESP32 never sends a clock sync to the MGM111 so it likely just rolls over.

View File

@@ -11,7 +11,8 @@ Each message sent or received begins with a `$` (hex 24). Messages end with a c
| m | 0x6d | Get mac address (of the MGM111)|
| i | 0x69 | Get install code |
| f | 0x66 | Get firmware version |
| d | 0x64 | Sent after holding the reset button for 5 seconds |
| d | 0x64 | Reset - Sent from the ESP32 after holding the reset button for 5 seconds |
| e | 0x65 | Unknown - Occasionally sent from the MGM111 with the V8 firmware |
## Sending messages
@@ -48,3 +49,6 @@ Seems to return 0x01 even if the Vue is not in range of the meter and seems to r
#### Meter reading response payload
The meter response payload has its own page [protocol-meter-reading.md](protocol-meter-reading.md)
#### Unknown 0x65 type
Occasionally sent by the MGM111 with a 1 byte payload that has a value from 0 to 2. No discernible pattern.