Expand description
JSY-MK-194 is hardware to read power of line. Please see official website.
This crate was inspered by jsy-mk-194.cpp library.
JSY-MK-194 return data in 61 bytes array:
| Order of data | Data | byte index |
|---|---|---|
| 1 | header of response | 0, 1, 2 |
| 2 | voltage1 | 3, 4, 5, 6 |
| 3 | current1 | 7, 8, 9, 10 |
| 4 | power1 | 11, 12, 13, 14 |
| 5 | positive kwh1 | 15, 16, 17, 18 |
| 6 | power factor1 | 19, 20, 21, 22 |
| 7 | negative kwh1 | 23, 24, 25, 26 |
| 8 | negative1 | 27 |
| negative2 | 28 | |
| not used | 29, 30 | |
| 9 | frequency | 31, 32, 33, 34 |
| 10 | voltage2 | 35, 36, 37, 38 |
| 11 | current2 | 39, 40, 41, 42 |
| 12 | power2 | 43, 44, 45, 46 |
| 13 | positive kwh2 | 47, 48, 49, 50 |
| 14 | power factor2 | 51, 52, 53, 54 |
| 15 | negative kwh2 | 55, 56, 57, 58 |
| 16 | crc | 59, 60 |
Modules§
- error
- Error of JsyMk194 struct
Structs§
- Channel
- Channel struct to get information. JSY MK 194 has 2 channels
- JsyMk194
- Global struct to communicate with JSY MK 194
Enums§
- Change
Bitrate - Value to change bitrate
Traits§
- Uart
- Uart trait that must be impremented for specific hardware