[ir] Web-based Remote Control

Apologies for inaccuracies in the old threads quoted,

In old 1.19 to 1.20 versions of ir pressing Yellow or Green buttons with the multi key macros would cause an immediate humax crash because they are repeating buttons and my old fat fingers are not fast enough to only generate a single button press action, running multiple macros simultaneously brought the humax down.

Early attempts to fix this (the block repeats option) didn't and @af123 was implementing another fix when he fell ill
I don't understand the Foreign flags either but it appears to be 1 on initial button press and 0 on generated repeats.

The good news is that this fix is in the current package 1.22 and Green and Yellow button macros now work correctly to change channels without crashing (when using the Humax remotes)

The F1 code introduces a 1 second pause as documented in the wiki

Humaxtv.log for pressing the Yellow button:-
Code:
458    macro thread exiting.
457    +New IR code: 0x00000001 0xec131000 (13) [foreign=0]
456    GetEvents(): faking key 13 (1)
455    GetQueueSize: 1
454    +New IR code: 0x00000000 0xec131000 (13) [foreign=0]
453    GetEvents(): faking key 13 (2)
452    GetQueueSize: 1
451    InjectCommand: setting signal (0x100ab80)
450    InjectCommand: Input list 0
449    InjectCommand: Buffers 0 0100ad08 1 0100ad14
448    InjectCommand: Got mutex
447  
446    Injecting 13
445    Macro inject: 13
444    +New IR code: 0x00000001 0xfa051000 (5) [foreign=0]
443    GetEvents(): faking key 05 (1)
442    GetQueueSize: 1
441    +New IR code: 0x00000000 0xfa051000 (5) [foreign=0]
440    GetEvents(): faking key 05 (2)
439    GetQueueSize: 1
438    InjectCommand: setting signal (0x100ab80)
437    InjectCommand: Input list 0
436    InjectCommand: Buffers 0 0100acf0 1 0100acfc
435    InjectCommand: Got mutex
434  
433    Injecting 05
432    Macro inject: 5
431    Macro inject: f1
430    +New IR code: 0x00000001 0xe51a1001 (1a) [foreign=1]
429    Blocking 1a.
428    Real IR code: 0x00000001 0xe51a1000 (1a) [foreign=0]
427    GetQueueSize real
426    +New IR code: 0x00000001 0xe51a1001 (1a) [foreign=1]
425    Blocking 1a.
424    Real IR code: 0x00000001 0xe51a1000 (1a) [foreign=0]
423    GetQueueSize real
422    macro thread starting for 1a (0x1018948).
421    +New IR code: 0x00000001 0xfa051000 (5) [foreign=0]
420    1a is assigned to a MACRO. Replacing with 5.
419    Real IR code: 0x00000001 0xe51a1000 (1a) [foreign=0]
418    GetQueueSize real = 1
417    GetQueueSize real
416    +New IR code: 0x00000000 0xfa051000 (5) [foreign=0]
415    1a is assigned to a MACRO. Replacing with 5.
414    Real IR code: 0x00000000 0xe51a1000 (1a) [foreign=0]
413    GetQueueSize real = 1





The only oddity is that when using a LG magic remote that can operate the humax it only issues the first button press of the macro i.e. switches to channel 3 rather than 33 - from the log the macro processing doesn't complete.
Code:
487    +New IR code: 0x00000000 0xf00f1000 (f) [foreign=0]
486    Real IR code: 0x00000000 0xf00f1000 (f) [foreign=0]
485    GetQueueSize real = 1
484    GetQueueSize real
483    +New IR code: 0x00000000 0xf00f1000 (f) [foreign=0]
482    Real IR code: 0x00000000 0xf00f1000 (f) [foreign=0]
481    GetQueueSize real = 1
480    GetQueueSize real
479    +New IR code: 0x00000000 0xfa051000 (5) [foreign=0]
478    1a is assigned to a MACRO. Replacing with 5.
477    Real IR code: 0x00000000 0xe51a1000 (1a) [foreign=0]
476    GetQueueSize real = 1
This is not a real problem - the code can't really be expected to handle all of the myriad of other manufacturers remotes.

I hope this helps
 
Last edited:
Back
Top