*\r
* DO NOT INCLUDE THIS FILE, WILL BE INCLUDED BY IRMP.H or IRSND.H!\r
*\r
- * Copyright (c) 2013 Frank Meyer - frank(at)fli4l.de\r
+ * Copyright (c) 2013-2015 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmpprotocols.h,v 1.20 2014/05/19 18:55:43 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
#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_RADIO1_PROTOCOL 39\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_N_PROTOCOLS 39 // number of supported protocols\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
#define SIRCS_FLAGS 0 // flags\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
- * NEC & NEC42 & NEC16:\r
+ * NEC & NEC42 & NEC16 & LGAIR:\r
*---------------------------------------------------------------------------------------------------------------------------------------------------\r
*/\r
#define NEC_START_BIT_PULSE_TIME 9000.0e-6 // 9000 usec pulse\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_COMPLETE_DATA_LEN 16 // complete length\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
- * SAMSUNG & SAMSUNG32:\r
+ * SAMSUNG & SAMSUNG32 & SAMSUNG48:\r
*---------------------------------------------------------------------------------------------------------------------------------------------------\r
*/\r
#define SAMSUNG_START_BIT_PULSE_TIME 4500.0e-6 // 4500 usec pulse\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
*/\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 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
#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