-
Hello Experts: I am trying to write an Arduino sketch for receiving/reading B&O remote commands from a Beo4 remote control. What mystifies me is: How to read out/detect that the Beo4 sends repeat codes when a button is pressed continuously. I know that this only works with some of the buttons like >> and << and up/down and volume. I can see that the remote is sending codes when these buttons are pressed continuously from a connected oscilloscope and also from the 'LED feedback' that is enabled in my sketch. In other words, the LED is blinking fast, but no new codes are produced when IrReceiver.decode() is called. The 'flags' also do not change. This is my sketch: #define DECODE_BEO //turns on B&O decoding in IRremote.hpp #include <IRremote.hpp> int IR_RECEIVE_PIN = 10; void setup() IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK); // Start the receiver void loop() {
} A typical output looks like (Beo4 set to "TV" and volume up is pressed): protocol 24 Thanks much in advance for your help! And my apologies if my questions has an obvious solution that escaped me. I am a bit out of my depth here...;-). |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Please post the serial output of the SimpleReceiver example for a repeated and a not repeated command. |
Beta Was this translation helpful? Give feedback.
-
Thanks much for your reply! I tried the SimpleReceiver, and it does the same. The LED blinks rapidly when the remote sends repeat codes, but there are no additional printouts. Just this (pressing the volume up button on the Beo4): Protocol=Bang&Olufsen Address=0x1 Command=0x60 Raw-Data=0x160 16 bits MSB first |
Beta Was this translation helpful? Give feedback.
-
Learning process: I used 9600 baud for the Serial port in the above test. I switched back to the 115200 in the original SimpleReceiver sketch and now I get this: Protocol=Bang&Olufsen Address=0x1 Command=0x60 Raw-Data=0x160 16 bits MSB first Overflow
|
Beta Was this translation helpful? Give feedback.
-
Yes, but I guess I did not read it throughly enough. I found what you marked: "Can only receive single messages and back to back repeats will result in overflow" |
Beta Was this translation helpful? Give feedback.
-
I just tried. And it is working! Awesome! Thank you very much! Could you explain what the 'Frame Gap' has to do with this? |
Beta Was this translation helpful? Give feedback.
Did you do this?
#define ENABLE_BEO_WITHOUT_FRAME_GAP
#define RECORD_GAP_MICROS 13000