rtl433  UNKNOWN
RTL-433 utility
efergy_e2_classic.c File Reference

Efergy e2 classic (electricity meter). More...

Functions

static int efergy_e2_classic_callback (r_device *decoder, bitbuffer_t *bitbuffer)
 Efergy e2 classic (electricity meter). More...
 

Variables

static char * output_fields []
 
r_device efergy_e2_classic
 

Detailed Description

Efergy e2 classic (electricity meter).

Copyright (C) 2015 Robert Högberg rober.nosp@m.t.ho.nosp@m.gberg.nosp@m.@gma.nosp@m.il.co.nosp@m.m

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Function Documentation

◆ efergy_e2_classic_callback()

static int efergy_e2_classic_callback ( r_device decoder,
bitbuffer_t bitbuffer 
)
static

Efergy e2 classic (electricity meter).

This electricity meter periodically reports current power consumption on frequency ~433.55 MHz. The data that is transmitted consists of 8 bytes:

  • Byte 1: Start bits (00)
  • Byte 2-3: Device id
  • Byte 4: Learn mode, sending interval and battery status
  • Byte 5-7: Current power consumption
    • Byte 5: Integer value (High byte)
    • Byte 6: integer value (Low byte)
    • Byte 7: exponent (values between -3? and 4?)
  • Byte 8: Checksum

Power calculations come from Nathaniel Elijah's program EfergyRPI_001.

References bitbuffer::bb, bitbuffer::bits_per_row, DATA_DOUBLE, DATA_FORMAT, DATA_INT, data_make(), DATA_STRING, and decoder_output_data().

Variable Documentation

◆ efergy_e2_classic

r_device efergy_e2_classic
Initial value:
= {
.name = "Efergy e2 classic",
.modulation = FSK_PULSE_PWM,
.short_width = 64,
.long_width = 136,
.sync_width = 500,
.gap_limit = 200,
.reset_limit = 400,
.disabled = 0,
.fields = output_fields,
}
FSK, Pulse Width Modulation. Short pulses = 1, Long = 0.
Definition: r_device.h:20
static char * output_fields[]
Definition: efergy_e2_classic.c:102
static int efergy_e2_classic_callback(r_device *decoder, bitbuffer_t *bitbuffer)
Efergy e2 classic (electricity meter).
Definition: efergy_e2_classic.c:32

◆ output_fields

char* output_fields[]
static
Initial value:
= {
"model",
"id",
"current",
"interval",
"battery",
"learn",
NULL,
}