rtl433  UNKNOWN
RTL-433 utility
esperanza_ews.c File Reference

Esperanza EWS-103 sensor on 433.92Mhz. More...

Functions

static int esperanza_ews_callback (r_device *decoder, bitbuffer_t *bitbuffer)
 Largely the same as kedsum, s3318p. More...
 

Variables

static char * output_fields []
 
r_device esperanza_ews
 

Detailed Description

Esperanza EWS-103 sensor on 433.92Mhz.

Copyright (C) 2015 Alberts Saulitis Enhanced (C) 2019 Christian W. Zuckschwerdt zany@.nosp@m.triq.nosp@m..net

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

◆ esperanza_ews_callback()

static int esperanza_ews_callback ( r_device decoder,
bitbuffer_t bitbuffer 
)
static

Largely the same as kedsum, s3318p.

See also
kedsum.c s3318p.c

Frame structure:

Byte:      0        1        2        3        4
Nibble:    1   2    3   4    5   6    7   8    9   10
Type:   00 IIIIIIII ??CCTTTT TTTTTTTT HHHHHHHH FFFFXXXX
  • 0: Preamble
  • I: Random device ID
  • C: Channel (1-3)
  • T: Temperature (Little-endian)
  • H: Humidity (Little-endian)
  • F: Flags
  • X: CRC-4 poly 0x3 init 0x0 xor last 4 bits

Sample Data:

Esperanze EWS: TemperatureF=55.5 TemperatureC=13.1 Humidity=74 Device_id=0 Channel=1

bitbuffer:: Number of rows: 14
[00] {0} :
[01] {0} :
[02] {42} 00 53 e5 69 02 00 : 00000000 01010011 11100101 01101001 00000010 00
[03] {0} :
[04] {42} 00 53 e5 69 02 00 : 00000000 01010011 11100101 01101001 00000010 00
[05] {0} :
[06] {42} 00 53 e5 69 02 00 : 00000000 01010011 11100101 01101001 00000010 00
[07] {0} :
[08] {42} 00 53 e5 69 02 00 : 00000000 01010011 11100101 01101001 00000010 00
[09] {0} :
[10] {42} 00 53 e5 69 02 00 : 00000000 01010011 11100101 01101001 00000010 00
[11] {0} :
[12] {42} 00 53 e5 69 02 00 : 00000000 01010011 11100101 01101001 00000010 00
[13] {0} :

References bitbuffer::bb, bitbuffer_extract_bytes(), bitbuffer::bits_per_row, emontx::crc, crc4(), DATA_DOUBLE, DATA_FORMAT, DATA_INT, data_make(), DATA_STRING, decoder_output_data(), and bitbuffer::num_rows.

Variable Documentation

◆ esperanza_ews

r_device esperanza_ews
Initial value:
= {
.name = "Esperanza EWS",
.modulation = OOK_PULSE_PPM,
.short_width = 2000,
.long_width = 4000,
.gap_limit = 4400,
.reset_limit = 9400,
.decode_fn = &esperanza_ews_callback,
.disabled = 0,
.fields = output_fields,
}
Pulse Position Modulation. Short gap = 0, Long = 1.
Definition: r_device.h:12
static int esperanza_ews_callback(r_device *decoder, bitbuffer_t *bitbuffer)
Largely the same as kedsum, s3318p.
Definition: esperanza_ews.c:53
static char * output_fields[]
Definition: esperanza_ews.c:99

◆ output_fields

char* output_fields[]
static
Initial value:
= {
"model",
"id",
"channel",
"temperature_F",
"humidity",
"mic",
NULL
}