rtl433  UNKNOWN
RTL-433 utility
nexa.c File Reference

Nexa decoder. More...

Functions

static int nexa_callback (r_device *decoder, bitbuffer_t *bitbuffer)
 Nexa decoder. More...
 

Variables

static char * output_fields []
 
r_device nexa
 

Detailed Description

Nexa decoder.

Copyright (C) 2017 Christian Juncker Brædstrup

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

◆ nexa_callback()

static int nexa_callback ( r_device decoder,
bitbuffer_t bitbuffer 
)
static

Nexa decoder.

Might be similar to an x1527. S.a. Kaku, Proove.

Tested devices:

  • Magnetic sensor - LMST-606

Packet gap is 10 ms.

This device is very similar to the proove magnetic sensor. The proove decoder will capture the OFF-state but not the ON-state since the Nexa uses two different bit lengths for ON and OFF.

References bitbuffer::bb, bitbuffer_invert(), bitbuffer_manchester_decode(), bitbuffer::bits_per_row, DATA_INT, data_make(), DATA_STRING, DECODE_ABORT_EARLY, DECODE_ABORT_LENGTH, decoder_output_data(), and bitbuffer::syncs_before_row.

Variable Documentation

◆ nexa

r_device nexa
Initial value:
= {
.name = "Nexa",
.modulation = OOK_PULSE_PPM,
.short_width = 270,
.long_width = 1300,
.sync_width = 2700,
.tolerance = 200,
.gap_limit = 1500,
.reset_limit = 2800,
.decode_fn = &nexa_callback,
.disabled = 0,
.fields = output_fields,
}
Pulse Position Modulation. Short gap = 0, Long = 1.
Definition: r_device.h:12
static char * output_fields[]
Definition: nexa.c:71
static int nexa_callback(r_device *decoder, bitbuffer_t *bitbuffer)
Nexa decoder.
Definition: nexa.c:28

◆ output_fields

char* output_fields[]
static
Initial value:
= {
"model",
"id",
"channel",
"state",
"unit",
"group",
NULL,
}