tree: 158ca51aaa6c48a6cb64c9ba8baf4c3703394691 [path history] [tgz]
  1. abnt_codi.c
  2. Kconfig
  3. Make.defs
  4. Makefile
  5. README.md
industry/abnt_codi/README.md

Industry / abnt_codi ABNT CODI

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 baudrate of 110 BPS and uses 8 octects:

OctetBitsDescription
0010-7Number of seconds to the end of current active demand (LSB)
0020-3Number of seconds to the end of current active demand (MSB)
4Bill indicator. It is inverted at each demand replenishment
5Reactive Interval Indicator. Inverted at end react interval
6If 1 means the reactive-capacitive is used to calculate UFER
7If 1 means the reactive-inductive is used to calculate UFER
0030-3Current seasonal segment:
0001 – tip
0010 – out of tip
1000 – reserved
4-5Type of charging indicator (flag):
00 – Blue
01 – Green
10 – Irrigators
11 – Other
6Not used
7If equal 1 means reactive rate is enabled
0040-7Number of pulses for active energy of cur dem interv (LSB)
0050-6Number of pulses for active energy of cur dem interv (MSB)
7Not used
0060-7Number of pulses for reactive energy of cur dem interv (LSB)
0070-6Number of pulses for reactive energy of cur dem interv (MSB)
7Not used
0080-7Inverted bits of xor from previous octects