*\r
* Copyright (c) 2013-2015 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmpprotocols.h,v 1.38 2015/09/20 10:51:37 fm Exp $\r
+ * $Id: irmpprotocols.h,v 1.43 2015/11/18 08:27:50 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_S100_PROTOCOL 45 // very similar to RC5, but 14 instead of 13 data bits\r
#define IRMP_ACP24_PROTOCOL 46 // Stiebel Eltron ACP24 air conditioner\r
#define IRMP_TECHNICS_PROTOCOL 47 // Technics, similar to Matsushita, but 22 instead of 24 bits\r
-#define IRMP_RADIO1_PROTOCOL 48 // Radio protocol (experimental status), do not use it yet!\r
+#define IRMP_PANASONIC_PROTOCOL 48 // Panasonic (Beamer), start bits similar to KASEIKYO\r
\r
-#define IRMP_N_PROTOCOLS 48 // number of supported protocols\r
+#define IRMP_RADIO1_PROTOCOL 49 // Radio protocol (experimental status), do not use it yet!\r
+\r
+#define IRMP_N_PROTOCOLS 50 // number of supported protocols\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* timing constants:\r
#define KASEIKYO_FRAMES 2 // KASEIKYO sends 1st frame 2 times\r
#define KASEIKYO_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * PANASONIC (Beamer), start bit timings similar to KASEIKYO\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define PANASONIC_START_BIT_PULSE_TIME 3600.0e-6 // 3600 usec pulse\r
+#define PANASONIC_START_BIT_PAUSE_TIME 1600.0e-6 // 1690 usec pause\r
+#define PANASONIC_PULSE_TIME 565.0e-6 // 565 usec pulse\r
+#define PANASONIC_1_PAUSE_TIME 1140.0e-6 // 1140 usec pause\r
+#define PANASONIC_0_PAUSE_TIME 316.0e-6 // 316 usec pause\r
+#define PANASONIC_AUTO_REPETITION_PAUSE_TIME 40.0e-3 // repetition after 40 ms?\r
+#define PANASONIC_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40 ms\r
+#define PANASONIC_ADDRESS_OFFSET 24 // skip 24 bits: 010000000000010000000001\r
+#define PANASONIC_ADDRESS_LEN 16 // read 16 address bits\r
+#define PANASONIC_COMMAND_OFFSET 40 // skip 40 bits\r
+#define PANASONIC_COMMAND_LEN 16 // read 16 command bits\r
+#define PANASONIC_COMPLETE_DATA_LEN 56 // complete length\r
+#define PANASONIC_STOP_BIT 1 // has stop bit\r
+#define PANASONIC_LSB 1 // LSB...MSB?\r
+#define PANASONIC_FRAMES 1 // PANASONIC sends 1 frame\r
+#define PANASONIC_FLAGS 0 // flags\r
+\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* RECS80:\r
*---------------------------------------------------------------------------------------------------------------------------------------------------\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_FRAMES 2 // DENON sends each frame 2 times\r
-#define DENON_AUTO_REPETITION_PAUSE_TIME 65.0e-3 // inverted repetition after 65ms\r
-#define DENON_FRAME_REPEAT_PAUSE_TIME 130.0e-3 // frame repeat after 2 * 65ms\r
+#define DENON_AUTO_REPETITION_PAUSE_TIME 45.0e-3 // inverted repetition after 45ms\r
+#define DENON_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
#define DENON_ADDRESS_OFFSET 0 // skip 0 bits\r
#define DENON_ADDRESS_LEN 5 // read 5 address bits\r
#define DENON_COMMAND_OFFSET 5 // skip 5\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_BIT_TIME 444.0e-6 // 889 usec pulse/pause\r
+#define RC6_BIT_TIME 444.0e-6 // 444 usec pulse/pause\r
+#define RC6_BIT_2_TIME 889.0e-6 // 889 usec pulse/pause\r
+#define RC6_BIT_3_TIME 1333.0e-6 // 1333 usec pulse/pause\r
#define RC6_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
#define RC6_ADDRESS_OFFSET 5 // skip "1" + 3 mode bits + 1 toggle bit\r
#define RC6_ADDRESS_LEN 8 // read 8 address bits\r
#define FAN_COMMAND_OFFSET 0 // skip 0 bits\r
#define FAN_COMMAND_LEN 11 // read 10 bits\r
#define FAN_COMPLETE_DATA_LEN 11 // complete length\r
-#define FAN_STOP_BIT 0 // has NO stop bit\r
+#define FAN_STOP_BIT 0 // has NO stop bit (fm: this seems to be wrong)\r
#define FAN_LSB 0 // MSB\r
#define FAN_FLAGS 0 // flags\r
\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_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms???\r
+#define BOSE_FRAMES 1\r
+#define BOSE_AUTO_REPETITION_PAUSE_TIME 40.0e-3 // repetition after 40ms?\r
+#define BOSE_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms?\r
#define BOSE_ADDRESS_OFFSET 0 // skip 0 bits\r
#define BOSE_ADDRESS_LEN 0 // read 16 address bits\r
#define BOSE_COMMAND_OFFSET 0 // skip 16 bits (8 address + 8 /address)\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_STOP_BIT 0 // has stop bit (fm: sure?)\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