rtl433  UNKNOWN
RTL-433 utility
emontx.c File Reference

Data Structures

struct  emontx
 

Functions

static int emontx_callback (r_device *decoder, bitbuffer_t *bitbuffer)
 

Variables

static unsigned char preamble [3] = { 0xaa, 0xaa, 0xaa }
 
static unsigned char pkt_hdr_inverted [3] = { 0xd2, 0x2d, 0xc0 }
 
static unsigned char pkt_hdr [3] = { 0x2d, 0xd2, 0x00 }
 
static char * output_fields []
 
r_device emontx
 

Function Documentation

◆ emontx_callback()

Variable Documentation

◆ emontx

Initial value:
= {
.name = "emonTx OpenEnergyMonitor",
.modulation = FSK_PULSE_PCM,
.short_width = 2000000.0f / (49230 + 49261),
.long_width = 2000000.0f / (49230 + 49261),
.reset_limit = 1200,
.decode_fn = &emontx_callback,
.disabled = 0,
.fields = output_fields,
}
FSK, Pulse Code Modulation.
Definition: r_device.h:19
static int emontx_callback(r_device *decoder, bitbuffer_t *bitbuffer)
Definition: emontx.c:39
static char * output_fields[]
Definition: emontx.c:133

◆ output_fields

char* output_fields[]
static
Initial value:
= {
"model",
"node",
"ct1",
"ct2",
"ct3",
"ct4",
"Vrms/batt",
"batt_Vrms",
"temp1_C",
"temp2_C",
"temp3_C",
"temp4_C",
"temp5_C",
"temp6_C",
"pulse",
NULL
}

◆ pkt_hdr

unsigned char pkt_hdr[3] = { 0x2d, 0xd2, 0x00 }
static

Referenced by emontx_callback().

◆ pkt_hdr_inverted

unsigned char pkt_hdr_inverted[3] = { 0xd2, 0x2d, 0xc0 }
static

Referenced by emontx_callback().

◆ preamble