/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
- * irmp-system.h - irmp target system definitions\r
+ * irmpprotocols.h - irmp protocols\r
*\r
* DO NOT INCLUDE THIS FILE, WILL BE INCLUDED BY IRMP.H or IRSND.H!\r
*\r
- * Copyright (c) 2012 Frank Meyer - frank(at)fli4l.de\r
+ * Copyright (c) 2013-2015 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmpprotocols.h,v 1.5 2012/07/11 12:44:30 fm Exp $\r
+ * $Id: irmpprotocols.h,v 1.31 2015/02/26 15:42:53 fm Exp $\r
*\r
* This program is free software; you can redistribute it and/or modify\r
* it under the terms of the GNU General Public License as published by\r
#endif\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
- * IR protocols\r
+ * IR protocols:\r
*---------------------------------------------------------------------------------------------------------------------------------------------------\r
*/\r
#define IRMP_SIRCS_PROTOCOL 1 // Sony\r
#define IRMP_LEGO_PROTOCOL 29 // LEGO Power Functions RC\r
#define IRMP_THOMSON_PROTOCOL 30 // Thomson\r
#define IRMP_BOSE_PROTOCOL 31 // BOSE\r
-\r
-#define IRMP_N_PROTOCOLS 31 // number of supported protocols\r
+#define IRMP_A1TVBOX_PROTOCOL 32 // A1 TV Box\r
+#define IRMP_ORTEK_PROTOCOL 33 // ORTEK - Hama\r
+#define IRMP_TELEFUNKEN_PROTOCOL 34 // Telefunken (1560)\r
+#define IRMP_ROOMBA_PROTOCOL 35 // iRobot Roomba vacuum cleaner\r
+#define IRMP_RCMM32_PROTOCOL 36 // Fujitsu-Siemens (Activy remote control)\r
+#define IRMP_RCMM24_PROTOCOL 37 // Fujitsu-Siemens (Activy keyboard)\r
+#define IRMP_RCMM12_PROTOCOL 38 // Fujitsu-Siemens (Activy keyboard)\r
+#define IRMP_SPEAKER_PROTOCOL 39 // Another loudspeaker protocol, similar to Nubert\r
+#define IRMP_LGAIR_PROTOCOL 40 // LG air conditioner\r
+#define IRMP_SAMSUNG48_PROTOCOL 41 // air conditioner with SAMSUNG protocol (48 bits)\r
+#define IRMP_MERLIN_PROTOCOL 42 // Merlin (Pollin 620 185)\r
+\r
+#define IRMP_RADIO1_PROTOCOL 43 // Radio protocol (experimental status), do not use it yet!\r
+\r
+#define IRMP_N_PROTOCOLS 43 // number of supported protocols\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* timing constants:\r
\r
#define IRMP_TIMEOUT_LEN (PAUSE_LEN)(F_INTERRUPTS * IRMP_TIMEOUT_TIME + 0.5)\r
\r
-// some flags of struct IRMP_PARAMETER:\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * flags of struct IRMP_PARAMETER:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define IRMP_PARAM_FLAG_IS_MANCHESTER 0x01\r
#define IRMP_PARAM_FLAG_1ST_PULSE_IS_1 0x02\r
#define IRMP_PARAM_FLAG_IS_SERIAL 0x04\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * SIRCS:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define SIRCS_START_BIT_PULSE_TIME 2400.0e-6 // 2400 usec pulse\r
#define SIRCS_START_BIT_PAUSE_TIME 600.0e-6 // 600 usec pause\r
#define SIRCS_1_PULSE_TIME 1200.0e-6 // 1200 usec pulse\r
#define SIRCS_LSB 1 // LSB...MSB\r
#define SIRCS_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * NEC & NEC42 & NEC16 & LGAIR:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define NEC_START_BIT_PULSE_TIME 9000.0e-6 // 9000 usec pulse\r
#define NEC_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause\r
#define NEC_REPEAT_START_BIT_PAUSE_TIME 2250.0e-6 // 2250 usec pause\r
#define NEC42_COMMAND_LEN 8 // read 8 command bits\r
#define NEC42_COMPLETE_DATA_LEN 42 // complete length (2 x 13 + 2 x 8)\r
\r
+#define LGAIR_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define LGAIR_ADDRESS_LEN 8 // read 8 address bits\r
+#define LGAIR_COMMAND_OFFSET 8 // skip 8 bits (8 address)\r
+#define LGAIR_COMMAND_LEN 16 // read 16 bits (16 command)\r
+#define LGAIR_COMPLETE_DATA_LEN 28 // complete length (8 address + 16 command + 4 checksum)\r
+\r
#define NEC16_ADDRESS_OFFSET 0 // skip 0 bits\r
#define NEC16_ADDRESS_LEN 8 // read 8 address bits\r
#define NEC16_COMMAND_OFFSET 8 // skip 8 bits (8 address)\r
#define NEC16_COMMAND_LEN 8 // read 8 bits (8 command)\r
#define NEC16_COMPLETE_DATA_LEN 16 // complete length\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * SAMSUNG & SAMSUNG32 & SAMSUNG48:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define SAMSUNG_START_BIT_PULSE_TIME 4500.0e-6 // 4500 usec pulse\r
#define SAMSUNG_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause\r
#define SAMSUNG_PULSE_TIME 550.0e-6 // 550 usec pulse\r
-#define SAMSUNG_1_PAUSE_TIME 1650.0e-6 // 1650 usec pause\r
-#define SAMSUNG_0_PAUSE_TIME 550.0e-6 // 550 usec pause\r
+#define SAMSUNG_1_PAUSE_TIME 1500.0e-6 // 1550 usec pause\r
+#define SAMSUNG_0_PAUSE_TIME 500.0e-6 // 500 usec pause\r
\r
#define SAMSUNG_FRAME_REPEAT_PAUSE_TIME 25.0e-3 // frame repeat after 25ms\r
#define SAMSUNG_ADDRESS_OFFSET 0 // skip 0 bits\r
#define SAMSUNG32_COMMAND_OFFSET 16 // skip 16 bits\r
#define SAMSUNG32_COMMAND_LEN 16 // read 16 command bits\r
#define SAMSUNG32_COMPLETE_DATA_LEN 32 // complete length\r
-#define SAMSUNG32_FRAMES 1 // SAMSUNG32 sends each frame 1 times\r
+#define SAMSUNG32_FRAMES 2 // SAMSUNG32 sends each frame 2 times // fm: correct?\r
#define SAMSUNG32_AUTO_REPETITION_PAUSE_TIME 47.0e-3 // repetition after 47 ms\r
#define SAMSUNG32_FRAME_REPEAT_PAUSE_TIME 47.0e-3 // frame repeat after 47ms\r
\r
+#define SAMSUNG48_COMMAND_OFFSET 16 // skip 16 bits\r
+#define SAMSUNG48_COMMAND_LEN 32 // read 32 command bits\r
+#define SAMSUNG48_COMPLETE_DATA_LEN 48 // complete length\r
+#define SAMSUNG48_FRAMES 2 // SAMSUNG48 sends each frame 2 times\r
+#define SAMSUNG48_AUTO_REPETITION_PAUSE_TIME 5.0e-3 // repetition after 5 ms\r
+#define SAMSUNG48_FRAME_REPEAT_PAUSE_TIME 47.0e-3 // frame repeat after 47ms\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * MATSUSHITA:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define MATSUSHITA_START_BIT_PULSE_TIME 3488.0e-6 // 3488 usec pulse\r
#define MATSUSHITA_START_BIT_PAUSE_TIME 3488.0e-6 // 3488 usec pause\r
#define MATSUSHITA_PULSE_TIME 872.0e-6 // 872 usec pulse\r
#define MATSUSHITA_1_PAUSE_TIME 2616.0e-6 // 2616 usec pause\r
#define MATSUSHITA_0_PAUSE_TIME 872.0e-6 // 872 usec pause\r
-#define MATSUSHITA_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
+#define MATSUSHITA_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms\r
#define MATSUSHITA_ADDRESS_OFFSET 12 // skip 12 bits\r
#define MATSUSHITA_ADDRESS_LEN 12 // read 12 address bits\r
#define MATSUSHITA_COMMAND_OFFSET 0 // skip 0 bits\r
#define MATSUSHITA_LSB 1 // LSB...MSB?\r
#define MATSUSHITA_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * KASEIKYO:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define KASEIKYO_START_BIT_PULSE_TIME 3380.0e-6 // 3380 usec pulse\r
#define KASEIKYO_START_BIT_PAUSE_TIME 1690.0e-6 // 1690 usec pause\r
#define KASEIKYO_PULSE_TIME 423.0e-6 // 525 usec pulse\r
#define KASEIKYO_FRAMES 2 // KASEIKYO sends 1st frame 2 times\r
#define KASEIKYO_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * RECS80:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define RECS80_START_BIT_PULSE_TIME 158.0e-6 // 158 usec pulse\r
#define RECS80_START_BIT_PAUSE_TIME 7432.0e-6 // 7432 usec pause\r
#define RECS80_PULSE_TIME 158.0e-6 // 158 usec pulse\r
#define RECS80_LSB 0 // MSB...LSB\r
#define RECS80_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * RC5:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define RC5_BIT_TIME 889.0e-6 // 889 usec pulse/pause\r
-#define RC5_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
+#define RC5_FRAME_REPEAT_PAUSE_TIME 88.9e-3 // frame repeat after 88.9ms\r
\r
#define RC5_ADDRESS_OFFSET 1 // skip 1 bit (2nd start)\r
#define RC5_ADDRESS_LEN 6 // read 1 toggle bit (for key repetition detection) + 5 address bits\r
#define RC5_LSB 0 // MSB...LSB\r
#define RC5_FLAGS IRMP_PARAM_FLAG_IS_MANCHESTER // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * DENON:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define DENON_PULSE_TIME 310.0e-6 // 310 usec pulse in practice, 275 in theory\r
#define DENON_1_PAUSE_TIME 1780.0e-6 // 1780 usec pause in practice, 1900 in theory\r
#define DENON_0_PAUSE_TIME 745.0e-6 // 745 usec pause in practice, 775 in theory\r
#define DENON_LSB 0 // MSB...LSB\r
#define DENON_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * RC6:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define RC6_START_BIT_PULSE_TIME 2666.0e-6 // 2.666 msec pulse\r
#define RC6_START_BIT_PAUSE_TIME 889.0e-6 // 889 usec pause\r
#define RC6_TOGGLE_BIT_TIME 889.0e-6 // 889 msec pulse/pause\r
#define RC6_LSB 0 // MSB...LSB\r
#define RC6_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * RECS80EXT:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define RECS80EXT_START_BIT_PULSE_TIME 158.0e-6 // 158 usec pulse\r
#define RECS80EXT_START_BIT_PAUSE_TIME 3637.0e-6 // 3637 usec pause\r
#define RECS80EXT_PULSE_TIME 158.0e-6 // 158 usec pulse\r
#define RECS80EXT_LSB 0 // MSB...LSB\r
#define RECS80EXT_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * NUBERT:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define NUBERT_START_BIT_PULSE_TIME 1340.0e-6 // 1340 usec pulse\r
#define NUBERT_START_BIT_PAUSE_TIME 340.0e-6 // 340 usec pause\r
#define NUBERT_1_PULSE_TIME 1340.0e-6 // 1340 usec pulse\r
#define NUBERT_LSB 0 // MSB?\r
#define NUBERT_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * SPEAKER:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define SPEAKER_START_BIT_PULSE_TIME 440.0e-6 // 1340 usec pulse\r
+#define SPEAKER_START_BIT_PAUSE_TIME 1250.0e-6 // 340 usec pause\r
+#define SPEAKER_1_PULSE_TIME 1250.0e-6 // 1340 usec pulse\r
+#define SPEAKER_1_PAUSE_TIME 440.0e-6 // 340 usec pause\r
+#define SPEAKER_0_PULSE_TIME 440.0e-6 // 500 usec pulse\r
+#define SPEAKER_0_PAUSE_TIME 1250.0e-6 // 1300 usec pause\r
+#define SPEAKER_FRAMES 2 // Nubert sends 2 frames\r
+#define SPEAKER_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // auto repetition after 35ms\r
+#define SPEAKER_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 45ms\r
+#define SPEAKER_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define SPEAKER_ADDRESS_LEN 0 // read 0 address bits\r
+#define SPEAKER_COMMAND_OFFSET 0 // skip 0 bits\r
+#define SPEAKER_COMMAND_LEN 10 // read 10 bits\r
+#define SPEAKER_COMPLETE_DATA_LEN 10 // complete length\r
+#define SPEAKER_STOP_BIT 1 // has stop bit\r
+#define SPEAKER_LSB 0 // MSB?\r
+#define SPEAKER_FLAGS 0 // flags\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * BANG_OLUFSEN:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define BANG_OLUFSEN_START_BIT1_PULSE_TIME 200.0e-6 // 200 usec pulse\r
#define BANG_OLUFSEN_START_BIT1_PAUSE_TIME 3125.0e-6 // 3125 usec pause\r
#define BANG_OLUFSEN_START_BIT2_PULSE_TIME 200.0e-6 // 200 usec pulse\r
#define BANG_OLUFSEN_LSB 0 // MSB...LSB\r
#define BANG_OLUFSEN_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * GRUNDIG & NOKIA\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define GRUNDIG_NOKIA_IR60_BIT_TIME 528.0e-6 // 528 usec pulse/pause\r
#define GRUNDIG_NOKIA_IR60_PRE_PAUSE_TIME 2639.0e-6 // 2639 usec pause after pre bit\r
#define GRUNDIG_NOKIA_IR60_FRAME_REPEAT_PAUSE_TIME 117.76e-3 // info frame repeat after 117.76 ms\r
#define NOKIA_COMMAND_LEN 8 // read 8 command bits\r
#define NOKIA_COMPLETE_DATA_LEN 17 // complete length: 1 start bit + 8 address bits + 8 command bits\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * IR60:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define IR60_FRAMES 2 // IR60 sends each frame 1+1 times\r
#define IR60_AUTO_REPETITION_PAUSE_TIME 22.2e-3 // repetition after 22.2ms\r
#define IR60_TIMEOUT_TIME 5000.0e-6 // timeout grundig frame, switch to IR60\r
#define IR60_COMMAND_LEN 7 // read 6 command bits\r
#define IR60_COMPLETE_DATA_LEN 7 // complete length\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * SIEMENS & RUWIDO:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+\r
+#if 0\r
#define SIEMENS_OR_RUWIDO_START_BIT_PULSE_TIME 275.0e-6 // 275 usec pulse\r
#define SIEMENS_OR_RUWIDO_START_BIT_PAUSE_TIME 550.0e-6 // 550 usec pause\r
#define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME 275.0e-6 // 275 usec short pulse\r
#define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME_2 550.0e-6 // 550 usec long pulse\r
#define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME 275.0e-6 // 275 usec short pause\r
#define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME_2 550.0e-6 // 550 usec long pause\r
+#else\r
+#define SIEMENS_OR_RUWIDO_START_BIT_PULSE_TIME 370.0e-6 // 370 usec pulse\r
+#define SIEMENS_OR_RUWIDO_START_BIT_PAUSE_TIME 550.0e-6 // 550 usec pause\r
+#define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME 370.0e-6 // 370 usec short pulse\r
+#define SIEMENS_OR_RUWIDO_BIT_PULSE_TIME_2 680.0e-6 // 680 usec long pulse\r
+#define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME 275.0e-6 // 275 usec short pause\r
+#define SIEMENS_OR_RUWIDO_BIT_PAUSE_TIME_2 550.0e-6 // 550 usec long pause\r
+#endif\r
+\r
#define SIEMENS_OR_RUWIDO_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
#define SIEMENS_OR_RUWIDO_STOP_BIT 0 // has no stop bit\r
#define SIEMENS_OR_RUWIDO_LSB 0 // MSB...LSB\r
#define SIEMENS_COMMAND_LEN 11 // read 10 + 1 command bits, last bit is only check bit\r
#define SIEMENS_COMPLETE_DATA_LEN 22 // complete length\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * FDC:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define FDC_START_BIT_PULSE_TIME 2085.0e-6 // 2085 usec pulse\r
#define FDC_START_BIT_PAUSE_TIME 966.0e-6 // 966 usec pause\r
#define FDC_PULSE_TIME 300.0e-6 // 300 usec pulse\r
#define FDC_LSB 1 // LSB...MSB\r
#define FDC_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * RCCAR:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define RCCAR_START_BIT_PULSE_TIME 2000.0e-6 // 2000 usec pulse\r
#define RCCAR_START_BIT_PAUSE_TIME 2000.0e-6 // 2000 usec pause\r
#define RCCAR_PULSE_TIME 600.0e-6 // 360 usec pulse\r
#define RCCAR_LSB 1 // LSB...MSB\r
#define RCCAR_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * JVC:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define JVC_START_BIT_PULSE_TIME 9000.0e-6 // 9000 usec pulse\r
#define JVC_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause\r
#define JVC_PULSE_TIME 560.0e-6 // 560 usec pulse\r
#define JVC_LSB 1 // LSB...MSB\r
#define JVC_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * NIKON:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define NIKON_START_BIT_PULSE_TIME 2200.0e-6 // 2200 usec pulse\r
#define NIKON_START_BIT_PAUSE_TIME 27100.0e-6 // 27100 usec pause\r
#define NIKON_PULSE_TIME 500.0e-6 // 500 usec pulse\r
#define NIKON_LSB 0 // LSB...MSB\r
#define NIKON_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * KATHREIN:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define KATHREIN_START_BIT_PULSE_TIME 210.0e-6 // 1340 usec pulse\r
#define KATHREIN_START_BIT_PAUSE_TIME 6218.0e-6 // 340 usec pause\r
#define KATHREIN_1_PULSE_TIME 210.0e-6 // 1340 usec pulse\r
#define KATHREIN_LSB 0 // MSB\r
#define KATHREIN_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * NETBOX:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define NETBOX_START_BIT_PULSE_TIME 2400.0e-6 // 2400 usec pulse\r
#define NETBOX_START_BIT_PAUSE_TIME 800.0e-6 // 800 usec pause\r
#define NETBOX_PULSE_TIME 800.0e-6 // 800 usec pulse\r
#define NETBOX_LSB 1 // LSB\r
#define NETBOX_FLAGS IRMP_PARAM_FLAG_IS_SERIAL // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * LEGO:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define LEGO_START_BIT_PULSE_TIME 158.0e-6 // 158 usec pulse ( 6 x 1/38kHz)\r
#define LEGO_START_BIT_PAUSE_TIME 1026.0e-6 // 1026 usec pause (39 x 1/38kHz)\r
#define LEGO_PULSE_TIME 158.0e-6 // 158 usec pulse ( 6 x 1/38kHz)\r
#define LEGO_LSB 0 // MSB...LSB\r
#define LEGO_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * THOMSON:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define THOMSON_PULSE_TIME 550.0e-6 // 550 usec pulse\r
#define THOMSON_1_PAUSE_TIME 4500.0e-6 // 4500 usec pause\r
#define THOMSON_0_PAUSE_TIME 2000.0e-6 // 2000 usec pause\r
#define THOMSON_FRAMES 1 // THOMSON sends 1 frame\r
-#define THOMSON_AUTO_REPETITION_PAUSE_TIME 65.0e-3 // repetition after 65ms\r
-#define THOMSON_FRAME_REPEAT_PAUSE_TIME 65.0e-3 // frame repeat after 65ms\r
+#define THOMSON_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // repetition after 35ms\r
+#define THOMSON_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 35ms\r
#define THOMSON_ADDRESS_OFFSET 0 // skip 0 bits\r
#define THOMSON_ADDRESS_LEN 4 // read 4 address bits\r
#define THOMSON_COMMAND_OFFSET 5 // skip 4 address bits + 1 toggle bit\r
#define THOMSON_LSB 0 // MSB...LSB\r
#define THOMSON_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * BOSE:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define BOSE_START_BIT_PULSE_TIME 1060.0e-6 // 1060 usec pulse\r
-#define BOSE_START_BIT_PAUSE_TIME 1430.0e-6 // 1430 usec pause\r
+#define BOSE_START_BIT_PAUSE_TIME 1425.0e-6 // 1425 usec pause\r
#define BOSE_PULSE_TIME 550.0e-6 // 550 usec pulse\r
#define BOSE_1_PAUSE_TIME 1425.0e-6 // 1425 usec pause\r
#define BOSE_0_PAUSE_TIME 437.0e-6 // 437 usec pause\r
#define BOSE_LSB 1 // LSB...MSB\r
#define BOSE_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * A1TVBOX:\r
+ * In reality A1 TV Box has no start bit with 300/340 usec. There are 2 start bits "10" with 250us pulse + 150us pause + 150us pause + 250us pulse\r
+ * This is not very easy to detect, because 1st and 2nd pause of both start bits are closely spaced.\r
+ * So IRMP looks for pseudo start bit with 300/340 usec and ignores the second half of the 2nd bit (250us pulse)\r
+ * This method only works because the first data bit (which is the 3rd bit) following is always "1":\r
+ * IRMP treats the first "long" pulse (250us of 2nd start bit + 250us of 1st data bit) of this "1" as a first _short_ pulse.\r
+ * This is a bug in IRMP's manchester decoder, but a good feature here ;-)\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define A1TVBOX_START_BIT_PULSE_TIME 300.0e-6 // 300 usec pulse\r
+#define A1TVBOX_START_BIT_PAUSE_TIME 340.0e-6 // 340 usec pause\r
+#define A1TVBOX_BIT_PULSE_TIME 250.0e-6 // 250 usec pulse\r
+#define A1TVBOX_BIT_PAUSE_TIME 150.0e-6 // 150 usec pulse\r
+#define A1TVBOX_STOP_BIT 0 // has no stop bit\r
+#define A1TVBOX_LSB 0 // MSB...LSB\r
+#define A1TVBOX_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1 ) // flags\r
+#define A1TVBOX_FRAMES 1 // A1TVBOX sends each frame 1 times\r
+#define A1TVBOX_ADDRESS_OFFSET 1 // skip 1 bits\r
+#define A1TVBOX_ADDRESS_LEN 8 // read 8 address bits\r
+#define A1TVBOX_COMMAND_OFFSET 9 // skip 9 bits (start bit + address)\r
+#define A1TVBOX_COMMAND_LEN 8 // read 8 command bits\r
+#define A1TVBOX_COMPLETE_DATA_LEN 17 // complete length incl. start bit\r
+#define A1TVBOX_FRAME_REPEAT_PAUSE_TIME 50.0e-3 // 50 msec pause between frames, don't know if it is correct\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * MERLIN:\r
+ * See notes for A1TVBOX\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define MERLIN_START_BIT_PULSE_TIME 210.0e-6 // 300 usec pulse\r
+#define MERLIN_START_BIT_PAUSE_TIME 420.0e-6 // 340 usec pause\r
+#define MERLIN_BIT_PULSE_TIME 210.0e-6 // 250 usec pulse\r
+#define MERLIN_BIT_PAUSE_TIME 210.0e-6 // 150 usec pulse\r
+#define MERLIN_STOP_BIT 0 // has no stop bit\r
+#define MERLIN_LSB 0 // MSB...LSB\r
+#define MERLIN_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1 ) // flags\r
+#define MERLIN_FRAMES 1 // MERLIN sends each frame 1 times\r
+#define MERLIN_ADDRESS_OFFSET 1 // skip 1 bits\r
+#define MERLIN_ADDRESS_LEN 8 // read 8 address bits\r
+#define MERLIN_COMMAND_OFFSET 8 // skip 9 bits (start bit + address)\r
+#define MERLIN_COMMAND_LEN 10 // read 8 command bits\r
+#define MERLIN_COMPLETE_DATA_LEN 19 // complete length incl. start bit\r
+#define MERLIN_FRAME_REPEAT_PAUSE_TIME 50.0e-3 // 50 msec pause between frames, don't know if it is correct\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * ORTEK (Hama): 6 address bits + 2 frame type bits + 6 command bits + 1 parity bit + 1 unknown bit + "1" + "0"\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define ORTEK_START_BIT_PULSE_TIME 2000.0e-6 // 2000 usec pulse\r
+#define ORTEK_START_BIT_PAUSE_TIME 1000.0e-6 // 1000 usec pause\r
+#define ORTEK_BIT_TIME 500.0e-6 // 500 usec pulse/pause\r
+#define ORTEK_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
+#define ORTEK_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define ORTEK_ADDRESS_LEN 8 // read 6 address bits + 2 special bits\r
+#define ORTEK_COMMAND_OFFSET 8 // skip 6 address bits + 2 special bits\r
+#define ORTEK_COMMAND_LEN 6 // read 6 command bits\r
+#define ORTEK_COMPLETE_DATA_LEN 18 // complete length\r
+#define ORTEK_STOP_BIT 0 // has no stop bit\r
+#define ORTEK_LSB 0 // MSB...LSB\r
+#define ORTEK_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * TELEFUNKEN:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define TELEFUNKEN_START_BIT_PULSE_TIME 600.0e-6 // 600 usec pulse\r
+#define TELEFUNKEN_START_BIT_PAUSE_TIME 1500.0e-6 // 1500 usec pause\r
+#define TELEFUNKEN_PULSE_TIME 600.0e-6 // 600 usec pulse\r
+#define TELEFUNKEN_1_PAUSE_TIME 1500.0e-6 // 1500 usec pause\r
+#define TELEFUNKEN_0_PAUSE_TIME 600.0e-6 // 600 usec pause\r
+#define TELEFUNKEN_FRAME_REPEAT_PAUSE_TIME 22.0e-3 // frame repeat after XX ms ?????\r
+#define TELEFUNKEN_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define TELEFUNKEN_ADDRESS_LEN 0 // read 0 address bits\r
+#define TELEFUNKEN_COMMAND_OFFSET 0 // skip 0 bits\r
+#define TELEFUNKEN_COMMAND_LEN 15 // read 15 bits\r
+#define TELEFUNKEN_COMPLETE_DATA_LEN 15 // complete length\r
+#define TELEFUNKEN_STOP_BIT 1 // has stop bit\r
+#define TELEFUNKEN_LSB 0 // LSB...MSB\r
+#define TELEFUNKEN_FLAGS 0 // flags\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * ROOMBA\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define ROOMBA_START_BIT_PULSE_TIME 2790.0e-6 // 2790 usec pulse\r
+#define ROOMBA_START_BIT_PAUSE_TIME 930.0e-6 // 930 usec pause\r
+#define ROOMBA_0_PULSE_TIME 930.0e-6 // 930 usec pulse\r
+#define ROOMBA_1_PULSE_TIME 2790.0e-6 // 2790 usec pulse\r
+#define ROOMBA_0_PAUSE_TIME 2790.0e-6 // 2790 usec pause\r
+#define ROOMBA_1_PAUSE_TIME 930.0e-6 // 930 usec pause\r
+#define ROOMBA_FRAME_REPEAT_PAUSE_TIME 18.0e-3 // frame repeat after 18ms\r
+#define ROOMBA_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define ROOMBA_ADDRESS_LEN 0 // read 0 address bits\r
+#define ROOMBA_COMMAND_OFFSET 0 // skip 0 bits\r
+#define ROOMBA_COMMAND_LEN 7 // read 7 bits\r
+#define ROOMBA_COMPLETE_DATA_LEN 7 // complete length\r
+#define ROOMBA_STOP_BIT 0 // has stop bit\r
+#define ROOMBA_LSB 0 // MSB...LSB\r
+#define ROOMBA_FLAGS 0 // flags\r
+#define ROOMBA_FRAMES 8 // ROOMBA sends 8 frames (this is a lie, but more comfortable)\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * RC-MM (32, 24, or 12 bit)\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define RCMM32_START_BIT_PULSE_TIME 500.0e-6 // 500 usec pulse\r
+#define RCMM32_START_BIT_PAUSE_TIME 220.0e-6 // 220 usec pause\r
+#define RCMM32_PULSE_TIME 230.0e-6 // 230 usec pulse\r
+#define RCMM32_00_PAUSE_TIME 220.0e-6 // 220 usec pause\r
+#define RCMM32_01_PAUSE_TIME 370.0e-6 // 370 usec pause\r
+#define RCMM32_10_PAUSE_TIME 540.0e-6 // 540 usec pause\r
+#define RCMM32_11_PAUSE_TIME 720.0e-6 // 720 usec pause\r
+\r
+#define RCMM32_FRAME_REPEAT_PAUSE_TIME 80.0e-3 // frame repeat after 80 ms\r
+#define RCMM32_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define RCMM32_ADDRESS_LEN 16 // read 16 address bits\r
+#define RCMM32_COMMAND_OFFSET 17 // skip 17 bits\r
+#define RCMM32_COMMAND_LEN 15 // read 15 bits\r
+#define RCMM32_COMPLETE_DATA_LEN 32 // complete length\r
+#define RCMM32_STOP_BIT 1 // has stop bit\r
+#define RCMM32_LSB 0 // LSB...MSB\r
+#define RCMM32_FLAGS 0 // flags\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * RADIO1 - e.g. Tevion\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define RADIO1_START_BIT_PULSE_TIME 3000.0e-6 // 3000 usec pulse\r
+#define RADIO1_START_BIT_PAUSE_TIME 7000.0e-6 // 7000 usec pulse\r
+#define RADIO1_0_PULSE_TIME 500.0e-6 // 500 usec pulse\r
+#define RADIO1_0_PAUSE_TIME 1000.0e-6 // 1000 usec pause\r
+#define RADIO1_1_PULSE_TIME 1000.0e-6 // 1000 usec pulse\r
+#define RADIO1_1_PAUSE_TIME 500.0e-6 // 500 usec pause\r
+\r
+#define RADIO1_FRAME_REPEAT_PAUSE_TIME 25.0e-3 // frame repeat after 25ms\r
+#define RADIO1_ADDRESS_OFFSET 4 // skip 4 bits\r
+#define RADIO1_ADDRESS_LEN 16 // read 16 address bits\r
+#define RADIO1_COMMAND_OFFSET 20 // skip 4 + 16 bits\r
+#define RADIO1_COMMAND_LEN 3 // read 3 command bits\r
+#define RADIO1_COMPLETE_DATA_LEN 23 // complete length\r
+#define RADIO1_STOP_BIT 1 // has stop bit\r
+#define RADIO1_LSB 1 // LSB...MSB?\r
+#define RADIO1_FLAGS 0 // flags\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * Frame Repetitions:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
#define AUTO_FRAME_REPETITION_TIME 80.0e-3 // SIRCS/SAMSUNG32/NUBERT: automatic repetition after 25-50ms\r
\r
#endif // _IRMP_PROTOCOLS_H_\r