Home Forums Game Frame Technical Support Remote doesn't always register Reply To: Remote doesn't always register

#2957
Christophe
Participant

Was able to finally install Arduino IDE and start playing with the code comfortably on my mac at home. So this is a different place, which would rule out any outside IR perturbation from other devices at work.

btw: I’m having some issues when building for Teensy LC (will probably open a new post for that) with gameFrameV2.ino.elf section '.text' will not fit in region'FLASH' and region 'FLASH' overflowed by 3036 bytes. Had some difficulty finding the correct versions of some lib (SdFat) which have changed recently, and also Teensyduino needs to be in 1.31-beta to be compatible with Arduino 1.6.12 (which I downloaded).

Anyway, with the Arduino serial monitor, I see the following happening when using the stock remote with stock remote.ini on GameFrame with stock firmware (logs below)

You can see that there is always a rogue IR code received before the correct one.
This would explain why the IR record screen has issues: it probably reads these codes and think that they are the code the for first POWER button. Also would maybe explain the “blinking” of icons: usually the sequence is “bad code, REPEAT, good code”. Your code in irReceiver() may not understand whats going on, and think that it was a repeat of the last key pressed on the remote, and return command ‘R’ to the caller code, instead of the intended code (‘M’ in this case). But if I press the button long enough on the remote (> 150ms?) then maybe it will have a chance to see the proper code. This would explain the symptom of having to press hard/longer on buttons just so that it last more than 150 or 300ms??


# from the clock screen, I press menu a few times

Loading image ‘/00system/digits.bmp’
IR code received: 1032981240 <— 3D920AF8 ?
IR code received: 2155864095 <— MENU BUTTON correct code for menu
Interpreted as: M

# switching to the menu screen
Loading image ‘/00system/bright_1.bmp’
IR code received: 3887053538 <—- E7AFBAE2 (this one is seen frequently)
IR code received: 4294967295 <—- FFFFFFFF
Interpreted as: R
IR code received: 2155864095 <— pressed MENU again
Interpreted as: M

Loading image ‘/00system/play_1.bmp’
IR code received: 3887053538 <— E7AFBAE2 this code again
IR code received: 4294967295 <— FFFFFFFF
Interpreted as: R
IR code received: 2155864095 <— MENU BUTTON
Interpreted as: M

Loading image ‘/00system/time_3.bmp’
IR code received: 196227623 <— 0BB23227 another weird code
IR code received: 4294967295
Interpreted as: R
IR code received: 2155864095 <— MENU BUTTON
Interpreted as: M

Loading image ‘/00system/mode_1.bmp’
IR code received: 3887053538 <– E7AFBAE2 gain
IR code received: 4294967295
Interpreted as: R
IR code received: 2155864095 <— MENU BUTTON
Interpreted as: M

Loading image ‘/00system/game.bmp’
IR code received: 3887053538 <— E7AFBAE2 again
IR code received: 2155864095 <— MENU BUTTON
Interpreted as: M

Loading image ‘/00system/bright_1.bmp’
IR code received: 2823767411 <— A84F4573
IR code received: 4294967295 <— FFFFFFFF
Interpreted as: R
IR code received: 2155864095 <— MENU BUTTON
Interpreted as: M

Loading image ‘/00system/play_1.bmp’
IR code received: 3887053538 <— E7AFBAE2 again
IR code received: 4294967295 <— FFFFFFFF
Interpreted as: R
IR code received: 32895 <— 807F truncated prefix of valid code
IR code received: 4294967295 <— FFFFFFFF
Interpreted as: R
IR code received: 2155864095 <— MENU BUTTON
Interpreted as: M

Loading image ‘/00system/time_3.bmp’
IR code received: 3887053538 <— E7AFBAE2
IR code received: 2400927396 <— 8F1B3EA4 ??
IR code received: 4294967295 <— FFFFFFFF
Interpreted as: R

# then the regular clock resumes