2020-07-23 15:19:35 +02:00
|
|
|
|
# Industry / `abnt_codi` ABNT CODI
|
|
|
|
|
|
2019-06-15 16:38:04 +02:00
|
|
|
|
The ABNT CODI is an old energy meter standard used in Brazil.
|
|
|
|
|
|
|
|
|
|
This code interprets the end user serial output existent in the energy meter.
|
|
|
|
|
That output externalizes its data blinking an LED as a serial protocol at the
|
2020-07-23 15:19:35 +02:00
|
|
|
|
baudrate of `110 BPS` and uses `8` octects:
|
|
|
|
|
|
|
|
|
|
| Octet | Bits | Description
|
|
|
|
|
|:-----:|------:|-------------
|
|
|
|
|
| `001` | `0-7` | Number of seconds to the end of current active demand (`LSB`)
|
|
|
|
|
| `002` | `0-3` | Number of seconds to the end of current active demand (`MSB`)
|
|
|
|
|
| | `4` | Bill indicator. It is inverted at each demand replenishment
|
|
|
|
|
| | `5` | Reactive Interval Indicator. Inverted at end react interval
|
|
|
|
|
| | `6` | If `1` means the reactive-capacitive is used to calculate `UFER`
|
|
|
|
|
| | `7` | If `1` means the reactive-inductive is used to calculate `UFER`
|
|
|
|
|
| `003` | `0-3` | Current seasonal segment: <br> `0001` – tip <br> `0010` – out of tip <br> `1000` – reserved
|
|
|
|
|
| | `4-5` | Type of charging indicator (flag): <br> `00` – Blue <br> `01` – Green <br> `10` – Irrigators <br> `11` – Other
|
|
|
|
|
| | `6` | Not used
|
|
|
|
|
| | `7` | If equal `1` means reactive rate is enabled
|
|
|
|
|
| `004` | `0-7` | Number of pulses for active energy of cur dem interv (`LSB`)
|
|
|
|
|
| `005` | `0-6` | Number of pulses for active energy of cur dem interv (`MSB`)
|
|
|
|
|
| | `7` | Not used
|
|
|
|
|
| `006` | `0-7` | Number of pulses for reactive energy of cur dem interv (`LSB`)
|
|
|
|
|
| `007` | `0-6` | Number of pulses for reactive energy of cur dem interv (`MSB`)
|
|
|
|
|
| | `7` | Not used
|
|
|
|
|
| `008` | `0-7` | Inverted bits of _xor_ from previous octects
|