rtl433  UNKNOWN
RTL-433 utility
newkaku.c File Reference

Kaku decoder. More...

Functions

static int newkaku_callback (r_device *decoder, bitbuffer_t *bitbuffer)
 Kaku decoder. More...
 

Variables

static char * output_fields []
 
r_device newkaku
 

Detailed Description

Kaku decoder.

Function Documentation

◆ newkaku_callback()

static int newkaku_callback ( r_device decoder,
bitbuffer_t bitbuffer 
)
static

Kaku decoder.

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

Two bits map to 2 states, 0 1 -> 0 and 1 0 -> 1 Status bit can be 1 1 -> 1 which indicates DIM value. 4 extra bits are present with value start pulse: 1T high, 10.44T low

  • 26 bit: Address
  • 1 bit: group bit
  • 1 bit: Status bit on/off/[dim]
  • 4 bit: unit
  • [4 bit: dim level. Present if [dim] is used, but might be present anyway...]
  • stop pulse: 1T high, 40T low

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

◆ newkaku

r_device newkaku
Initial value:
= {
.name = "KlikAanKlikUit Wireless Switch",
.modulation = OOK_PULSE_PPM,
.short_width = 300,
.long_width = 1400,
.sync_width = 2700,
.tolerance = 200,
.reset_limit = 3200,
.decode_fn = &newkaku_callback,
.disabled = 0,
.fields = output_fields,
}
Pulse Position Modulation. Short gap = 0, Long = 1.
Definition: r_device.h:12
static int newkaku_callback(r_device *decoder, bitbuffer_t *bitbuffer)
Kaku decoder.
Definition: newkaku.c:22
static char * output_fields[]
Definition: newkaku.c:76

◆ output_fields

char* output_fields[]
static
Initial value:
= {
"model",
"id",
"unit",
"group_call",
"command",
"dim",
"dim_value",
NULL,
}