[ir] Web-based Remote Control

Black Hole

May contain traces of nut
If a real IR code is received just as one is being injected, it results in a crash.
An unavoidable limitation then. I haven't got that far down the line (still using the Harmony 300 with its own limitations), but hopefully JP1 programming will help avoid that.
 
OP
af123

af123

Administrator
Staff member
So how can I stop it auto updating without starting (and crashing) my box?
beta packages don't auto-update by default (and this is why : D ) - it's enabled by a separate option in the settings page.
I've removed the 1.20 version from the repository - it isn't crashing any of my three boxes though so I don't know what's going on yet.
 

Black Hole

May contain traces of nut
So how can I stop it auto updating without starting (and crashing) my box?
For Custom Firmware users willing to ride the bleeding edge of package development, thus providing valuable feedback before new features and possibly risky updates reach the main-stream users, feel free to subscribe to the beta trials programme:

...Install package opkg-beta from the package list;

...Updating the package list will now include packages from the beta repository;

...The auto-update package 2.0.4 (and above) defaults to not automatically updating installed packages to a beta release, even when the user has installed opkg-beta. This is so that (a) the beta participant remains aware of the exact version of beta installed; and (b) any packages the participant does not want to update to beta versions are not automatically enrolled in the beta trial.
Without opkg-beta installed, you can't even see a new beta package version exists - and it won't install automatically anyway.

Maybe this thread needs splitting into a new thread in the beta section.
 

Black Hole

May contain traces of nut
I've removed the 1.20 version from the repository - it isn't crashing any of my three boxes though so I don't know what's going on yet.
Removing it isn't going to help find the boundaries, although we need a way to revert. Could behaviour be dependent on the beta WebIF?
 

MymsMan

Ad detector
Some remote observations:

Made using ir 1.1.19 and 3 remote controls:
  1. RM-F104 original remote control
  2. Humax Freesat remote, no model number but supplied with HB-1000s, convex shape with numbers at bottom instead of top
  3. LG magic remote supplied with Smart TV
  • Although the humaxtv.log shows mulitple events Number & Colour keys dont repeat however long you hold the button pressed.
  • Left/right/up/down/prog+/- buttons do repeat but at a slower rate than the log events indicate
  • With the Humax remotes the screen shows the number pressed when the button is first pressed
  • With the LG remote the screen shows the number pressed when the button is released, the LG remote never causes the repeat flag events no mater how long a number key is held, for repeating keys it transmits a 0 flag event approx 5 times a second.
  • Using the Humax remotes I find it is almost impossible to create just a single 0 flag event, I nearly always get at least one, often many more, repeat flag events
    Code:
    Real IR code: 0x00000000 0xf9061000 (6) [foreign=0]Real IR code: 0x00000000 0xf8071000 (7) [foreign=0]
    Real IR code: 0x00000001 0xf8071000 (7) [foreign=0]
    Real IR code: 0x00000000 0xf7081000 (8) [foreign=0]
    Real IR code: 0x00000001 0xf7081000 (8) [foreign=0]
    Real IR code: 0x00000000 0xf6091000 (9) [foreign=0]
    Real IR code: 0x00000001 0xf6091000 (9) [foreign=0]
    Real IR code: 0x00000000 0xf50a1000 (a) [foreign=0]
    Real IR code: 0x00000001 0xf50a1000 (a) [foreign=0]
    Real IR code: 0x00000000 0xf40b1000 (b) [foreign=0]
    Real IR code: 0x00000001 0xf40b1000 (b) [foreign=0]
    Real IR code: 0x00000000 0xf30c1000 (c) [foreign=0]
    Real IR code: 0x00000001 0xf30c1000 (c) [foreign=0]
    Real IR code: 0x00000001 0xf30c1000 (c) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000000 0xfc031000 (3) [foreign=0]
    Real IR code: 0x00000001 0xfc031000 (3) [foreign=0]
    for a user with physical difficulties mutiple repeats would be almost certain
  • Using the LG remote (since it doesn't cause repeats) I only see the first key of a macro sequence is executed, I have in my ir3.map
    Code:
    1a:5,f1,5,13:YELLOW
    1d:3,4,13:GREEN
    • Pressing Yellow switches to channel 3 instead of 33
    • Pressing Green switches to 1 and not 13
      Code:
      MACRO
      Real IR code: 0x00000000 0xfa051000 (1a) [foreign=0]
      MACRO
      Real IR code: 0x00000000 0xfc031000 (1d) [foreign=0]
  • Using the Humax remote the macro is invoked for the initial button press and all of the repeat flagged entries which causes an immediate crash and automatic restart :(
    Code:
    Real IR code: 0x00000000 0xfa051000 (1a) [foreign=0]
    MACRO
    Real IR code: 0x00000001 0xfa051000 (1a) [foreign=0]
    al IR code: 0x00000001 0xfa051000 (1a) [foreign=0]
    macro thread starting.
    MACRO
    Real IR code: 0x00000001 0xfa051000 (1a) [foreign=0]
    macro thread starting.
    MACRO
    Real IR code: 0x00000001 0xfa051000 (1a) [foreign=0]
    macro thread starting.
    MACRO
    Real IR code: 0x00000001 0xfa051000 (1a) [foreign=0]
    macro thread starting.

  • To solve this I think the macro should only be triggered on the initial, 0 flag, entry and all of the repeat flagged entries should be ignored
  • For repeating butting the macro should only be retriggered, at a customisable interval, if the button is still held down. This would allow Prog+/- to run at a slower, more comfortable, rate for supported users.
 

MymsMan

Ad detector
I realise previous was done without the new 'Block repeats' enabled, but that option didn't help
Code:
MACRO
Real IR code: 0x00000000 0xfa051000 (1a) [foreign=0]
MACRO
Real IR code: 0x00000001 0xfa051000 (1a) [foreign=0]
macro thread starting.
MACRO
Blocking repeat.
Real IR code: 0x00000001 0xfa051001 (1a) [foreign=1]
macro thread starting.
MACRO
Blocking repeat.
Real IR code: 0x00000001 0xfa051001 (1a) [foreign=1]
macro thread starting.
 

Black Hole

May contain traces of nut
I speculate that some of my problems may be down to what the Harmony 300 does re long button presses. Until I replace it with JP1, I need the macro ability so have no choice.
 
OP
af123

af123

Administrator
Staff member
  • To solve this I think the macro should only be triggered on the initial, 0 flag, entry and all of the repeat flagged entries should be ignored
That sounds like a plan. I still haven't found out what was wrong with 1.20 unfortunately - it works on all of my boxes.
I'll build a new 1.21 with this approach to macros and put it somewhere..
 

MymsMan

Ad detector
I speculate that some of my problems may be down to what the Harmony 300 does re long button presses. Until I replace it with JP1, I need the macro ability so have no choice.
I can't get macros to work for me on either 1.1.19 or 1.1.17 - the macro is recognized because it appear in the log but only the first code in the list is executed.
 

Black Hole

May contain traces of nut
I can't get macros to work for me on either...
Sorry, I wasn't entirely clear: I meant I need the macro ability on the Harmony 300 (for turning on/off both TV and HDR), so I have no choice but to use the Harmony (with its potential "different" behaviour on long presses).

When it comes to it, I should be able to devolve all the macros to a JP1 - having working macros in ir is a stop-gap or a possible alternative. However, it's gotta be good to have a properly working ir package.

To solve this I think the macro should only be triggered on the initial, 0 flag, entry and all of the repeat flagged entries should be ignored
Seems obvious to me, surprised that's not how it works already.

For repeating butting the macro should only be retriggered, at a customisable interval, if the button is still held down. This would allow Prog+/- to run at a slower, more comfortable, rate for supported users.
I vote against that; I see no need to offer a slower repeat rather than no repeat at all except for something non-destructive (ie volume).
 

4ndy

Forum Supporter
However, it's gotta be good to have a properly working ir
I agree. At the moment ir has uninstalled itself from all four of my boxes. Version 1.20 will not install. If I delete opkg-update, I get the same issue with version 1.17

Code:
 >>> opkg install ir
Installing ir (1.20) to root...
Downloading http://hpkg.tv/hdrfoxt2/beta/ir_1.20_mipsel.opk.
Collected errors:
* opkg_download: Failed to download http://hpkg.tv/hdrfoxt2/beta/ir_1.20_mipsel.opk, wget returned 8.
* opkg_install_pkg: Failed to download ir. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package ir.

Done.
Operation complete.

Edit: I intended to say “if I uninstall opkg-beta ....”

Sent from my iPad using Tapatalk
 
Last edited:

4ndy

Forum Supporter
I had seen that, but assumed as it was still in the available list a previous version had replaced it, temporarily.

Certainly, if I uninstall opkg-beta ( what I intended to say, above), then version 1.17 should install. Am I missing something?


Sent from my iPad using Tapatalk
 

Ezra Pound

Well-Known Member
As far as know there is no package called ir_20_mipsel.opk currently available, so this line is bound to fail :-
Code:
Downloading http://hpkg.tv/hdrfoxt2/beta/ir_1.20_mipsel.opk
 

MymsMan

Ad detector
At the moment ir has uninstalled itself from all four of my boxes.
Packages don't uninstall themselves
Although 1.20 is failing to download you should still have the previous level installed, it shouldn't have been uninstalled by the failing download.

Has the ir command and remote webpages disappeared from your boxes?

If it has really gone you can download the opk file from the package list and then install the opk file
Code:
humax /mnt/hd2/mod/git # opkg install --force-downgrade ir_1.17_mipsel.opk
Downgrading ir on root from 1.19 to 1.17...
Humax software version: 1.03.12
Configuring ir.
 

4ndy

Forum Supporter
It became partially uninstalled, along with several other packages, when ir version 1.20 crashed all four boxes. See the HDRs All Getting Hot thread of a few days ago (sorry, can't link from phone).

Fix-flash-packages resolved the problem once I had been guided as to what the problem actually was. It seems that this diagnostic unistalled ir, but was not able to install it again, as it is no longer in the repository.

I will try the forced downgrade when I can. I take it I only enter the first two lines of code?

Sent from my SM-G950F using Tapatalk
 

4ndy

Forum Supporter
OK. I have downloaded the ir package onto my PC. I have used Filzilla to add a folder named "git" in /hd2/mod/and uploaded the file to that folder.
Annotation 2020-07-12 010551.png

I have then run
Code:
HDR2# /mnt/hd2/mod/git # opkg install --force-downgrade ir_1.17_mipsel.opk                                                                          
/bin/sh: /mnt/hd2/mod/git: Permission denied                                                                                                        
HDR2#
What have I got wrong?
 
Top