X-Git-Url: http://cloudbase.mooo.com/gitweb/irmp.git/blobdiff_plain/0715cf5e8840eccaf2268c4cee7f9fb91a4e355d..43c535be41b070573e3fced6cce8ba290c7af060:/irmpprotocols.h diff --git a/irmpprotocols.h b/irmpprotocols.h index 8b566fe..d119d6c 100644 --- a/irmpprotocols.h +++ b/irmpprotocols.h @@ -5,7 +5,7 @@ * * Copyright (c) 2013-2015 Frank Meyer - frank(at)fli4l.de * - * $Id: irmpprotocols.h,v 1.33 2015/05/27 09:33:14 fm Exp $ + * $Id: irmpprotocols.h,v 1.36 2015/06/15 10:30:10 fm Exp $ * * 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 @@ -69,9 +69,11 @@ #define IRMP_MERLIN_PROTOCOL 42 // Merlin (Pollin 620 185) #define IRMP_PENTAX_PROTOCOL 43 // Pentax camera #define IRMP_FAN_PROTOCOL 44 // FAN (ventilator), very similar to NUBERT, but last bit is data bit instead of stop bit -#define IRMP_RADIO1_PROTOCOL 45 // Radio protocol (experimental status), do not use it yet! +#define IRMP_S100_PROTOCOL 45 // very similar to RC5, but 14 instead of 13 data bits +#define IRMP_ACP24_PROTOCOL 46 // Stiebel Eltron ACP24 air conditioner +#define IRMP_RADIO1_PROTOCOL 47 // Radio protocol (experimental status), do not use it yet! -#define IRMP_N_PROTOCOLS 45 // number of supported protocols +#define IRMP_N_PROTOCOLS 47 // number of supported protocols /*--------------------------------------------------------------------------------------------------------------------------------------------------- * timing constants: @@ -275,6 +277,22 @@ typedef uint8_t PAUSE_LEN; #define RC5_LSB 0 // MSB...LSB #define RC5_FLAGS IRMP_PARAM_FLAG_IS_MANCHESTER // flags +/*--------------------------------------------------------------------------------------------------------------------------------------------------- + * S100: very similar to RC5, but 14 insted of 13 bits + *--------------------------------------------------------------------------------------------------------------------------------------------------- + */ +#define S100_BIT_TIME 889.0e-6 // 889 usec pulse/pause +#define S100_FRAME_REPEAT_PAUSE_TIME 88.9e-3 // frame repeat after 88.9ms + +#define S100_ADDRESS_OFFSET 1 // skip 1 bit (2nd start) +#define S100_ADDRESS_LEN 6 // read 1 toggle bit (for key repetition detection) + 5 address bits +#define S100_COMMAND_OFFSET 7 // skip 5 bits (2nd start + 1 toggle + 5 address) +#define S100_COMMAND_LEN 7 // read 7 command bits +#define S100_COMPLETE_DATA_LEN 14 // complete length +#define S100_STOP_BIT 0 // has no stop bit +#define S100_LSB 0 // MSB...LSB +#define S100_FLAGS IRMP_PARAM_FLAG_IS_MANCHESTER // flags + /*--------------------------------------------------------------------------------------------------------------------------------------------------- * DENON: *--------------------------------------------------------------------------------------------------------------------------------------------------- @@ -362,15 +380,15 @@ typedef uint8_t PAUSE_LEN; * - has NO frame repetition *--------------------------------------------------------------------------------------------------------------------------------------------------- */ -#define FAN_START_BIT_PULSE_TIME 1340.0e-6 // 1340 usec pulse -#define FAN_START_BIT_PAUSE_TIME 340.0e-6 // 340 usec pause -#define FAN_1_PULSE_TIME 1340.0e-6 // 1340 usec pulse -#define FAN_1_PAUSE_TIME 340.0e-6 // 340 usec pause -#define FAN_0_PULSE_TIME 500.0e-6 // 500 usec pulse -#define FAN_0_PAUSE_TIME 1300.0e-6 // 1300 usec pause +#define FAN_START_BIT_PULSE_TIME 1280.0e-6 // 1280 usec pulse +#define FAN_START_BIT_PAUSE_TIME 380.0e-6 // 380 usec pause +#define FAN_1_PULSE_TIME 1280.0e-6 // 1280 usec pulse +#define FAN_1_PAUSE_TIME 380.0e-6 // 380 usec pause +#define FAN_0_PULSE_TIME 380.0e-6 // 380 usec pulse +#define FAN_0_PAUSE_TIME 1280.0e-6 // 1280 usec pause #define FAN_FRAMES 1 // FAN sends only 1 frame (NUBERT sends 2) -#define FAN_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // auto repetition after 35ms -#define FAN_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 45ms +#define FAN_AUTO_REPETITION_PAUSE_TIME 6.6e-3 // auto repetition after 6.6ms +#define FAN_FRAME_REPEAT_PAUSE_TIME 6.6e-3 // frame repeat after 6.6ms #define FAN_ADDRESS_OFFSET 0 // skip 0 bits #define FAN_ADDRESS_LEN 0 // read 0 address bits #define FAN_COMMAND_OFFSET 0 // skip 0 bits @@ -826,6 +844,25 @@ typedef uint8_t PAUSE_LEN; #define PENTAX_LSB 0 // LSB...MSB #define PENTAX_FLAGS 0 // flags +/*--------------------------------------------------------------------------------------------------------------------------------------------------- + * ACP24: Stiebel Eltron ACP24 air conditioner + *--------------------------------------------------------------------------------------------------------------------------------------------------- + */ +#define ACP24_START_BIT_PULSE_TIME 390.0e-6 // 390 usec pulse +#define ACP24_START_BIT_PAUSE_TIME 950.0e-6 // 950 usec pause +#define ACP24_PULSE_TIME 390.0e-6 // 390 usec pulse +#define ACP24_1_PAUSE_TIME 1300.0e-6 // 1300 usec pause +#define ACP24_0_PAUSE_TIME 950.0e-6 // 950 usec pause +#define ACP24_FRAME_REPEAT_PAUSE_TIME 22.0e-3 // frame repeat after 22ms? +#define ACP24_ADDRESS_OFFSET 0 // skip 0 bits +#define ACP24_ADDRESS_LEN 0 // read 6 address bits +#define ACP24_COMMAND_OFFSET 0 // skip 6 bits +#define ACP24_COMMAND_LEN 0 // read 0 bits (70 bits will be read and compressed by special routine) +#define ACP24_COMPLETE_DATA_LEN 70 // complete length +#define ACP24_STOP_BIT 1 // has stop bit +#define ACP24_LSB 0 // LSB...MSB +#define ACP24_FLAGS 0 // flags + /*--------------------------------------------------------------------------------------------------------------------------------------------------- * RADIO1 - e.g. Tevion *---------------------------------------------------------------------------------------------------------------------------------------------------