rtl433  UNKNOWN
RTL-433 utility
emontx.c File Reference

OpenEnergyMonitor.org emonTx sensor protocol. More...

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
 

Detailed Description

OpenEnergyMonitor.org emonTx sensor protocol.

Copyright (C) 2016 Tommy Vestermark Copyright (C) 2016 David Woodhouse

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

◆ 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:41
static char * output_fields[]
Definition: emontx.c:135

◆ 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