X-Git-Url: https://git.rvb.name/rtl-433.git/blobdiff_plain/ca13278b24eb61443559bcb61e64627fba3d8823..6d15c6f967221af825cf84e3ed12b96c763b127b:/src/devices/ec3k.c diff --git a/src/devices/ec3k.c b/src/devices/ec3k.c new file mode 100644 index 0000000..6ddbb10 --- /dev/null +++ b/src/devices/ec3k.c @@ -0,0 +1,45 @@ +/* EC3k Energy Count Control + * + * "Voltcraft Energy Count 3000" sensor sold by Conrad + * aka “Velleman NETBSEM4” + * aka “La Crosse Techology Remote Cost Control Monitor – RS3620”. + * aka "ELV Cost Control" + * + * Stub driver + * + * Copyright (C) 2015 Tommy Vestermark + * 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. + */ +#include "rtl_433.h" +#include "util.h" + +static int ec3k_callback(bitbuffer_t *bitbuffer) { + bitrow_t *bb = bitbuffer->bb; + + // Validate package + unsigned bits = bitbuffer->bits_per_row[0]; + if (bits >= 550 && bits <= 590) { // Package should be around 578?! + fprintf(stdout, "Energy Count 3000:\n"); + bitbuffer_print(bitbuffer); + return 1; + } + return 0; +} + + +r_device ec3k = { + .name = "Energy Count 3000 (868.3 MHz)", + .modulation = FSK_PULSE_PCM, + .short_limit = 50, // NRZ decoding + .long_limit = 50, // Bit width + .reset_limit = 800, // 16 zeros (up to 12 seen)... + .json_callback = &ec3k_callback, + .disabled = 1, + .demod_arg = 0, +}; + + +