Page 2 of 7

Re: [App] libAirToSat D/E/F/H

Posted: Thu Feb 12, 2015 10:12 am
by monsieurxu
Hello, i'm interested of a kind of patch but with small modifications. I have a STB source on HDMI1 and a TV (air). As i have no sat tuner, i'd like a patch setting the TV able to automatically switch (at startup, without any command) on HDMI1 when STB is on, on TV source in other case.
Do you think this could be possible?

Re: [App] libAirToSat D/E/F/H

Posted: Thu Feb 12, 2015 10:36 am
by zoelechat
monsieurxu wrote:Hello, i'm interested of a kind of patch but with small modifications. I have a STB source on HDMI1 and a TV (air). As i have no sat tuner, i'd like a patch setting the TV able to automatically switch (at startup, without any command) on HDMI1 when STB is on, on TV source in other case.
Do you think this could be possible?
Theoretically everything is possible, but this has nothing to do with current patch which is just filling a gap: the severe lack of "switch to sat" button on all Samsung TVs. On the contrary, HDMI key (and even HDMI1) is already existing :)
I guess what you expect should be HDMI-CEC's job, or as workaround you still can ping your STB if it's alive then send HDMI key using samyGOrc in a startup script (switch wouldn't be done exactly on startup though, but as soon as SamyGO is loaded).

Re: [App] libAirToSat D/E/F/H

Posted: Sat Mar 07, 2015 11:38 am
by orlinm
Hm, strange results ... script libAirToSat works for me manually. But when I try to activate it via libRCremap with CMD support I receive log:

Code: Select all

[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: 'KEY_2' to command: '/mnt/opt/privateer/usr/bin/CMD_libAirToSat'
[RCremap] error init_rckeymap_config '/mnt/opt/privateer/usr/libso/libRCremap.config' 0
When I used original/test libRCremap.config.config ( that with changing VolUP - VolDN creating tst and other ) it worked fine
When I use my config - for example

Code: Select all

[
    {
        "KEY_2": "CMD:/mnt/opt/privateer/usr/bin/CMD_libAirToSat"
    }
]
appears that error and not work at all.
Someone can help me ?

Re: [App] libAirToSat D/E/F/H

Posted: Sat Mar 07, 2015 12:05 pm
by zoelechat
orlinm wrote:When I use my config - for example

Code: Select all

[
    {
        "KEY_2": "CMD:/mnt/opt/privateer/usr/bin/CMD_libAirToSat"
    }
]
appears that error and not work at all.
Someone can help me ?
Yeah, such issue/bug has already been noticed, you must not use any CMD as first (or only) remap in config. So if you don't expect to remap any other key, first remap any key to itself (e.g. "KEY_1": "KEY_1" then "KEY_2": "CMD:....")

Re: [App] libAirToSat D/E/F/H

Posted: Sat Mar 07, 2015 12:08 pm
by sectroyer
orlinm wrote:Hm, strange results ... script libAirToSat works for me manually. But when I try to activate it via libRCremap with CMD support I receive log:

Code: Select all

[RCremap] SamyGO RCremap v0.3.5 log - (c) bugficks 2013, small fixes by sectroyer 2014
[RCremap] mapping key: 'KEY_2' to command: '/mnt/opt/privateer/usr/bin/CMD_libAirToSat'
[RCremap] error init_rckeymap_config '/mnt/opt/privateer/usr/libso/libRCremap.config' 0
When I used original/test libRCremap.config.config ( that with changing VolUP - VolDN creating tst and other ) it worked fine
When I use my config - for example

Code: Select all

[
    {
        "KEY_2": "CMD:/mnt/opt/privateer/usr/bin/CMD_libAirToSat"
    }
]
appears that error and not work at all.
Someone can help me ?
IMHO you lack enter at the end of file ;)

Re: [App] libAirToSat D/E/F/H

Posted: Sat Mar 07, 2015 12:16 pm
by zoelechat
sectroyer wrote:IMHO you lack enter at the end of file ;)
Just in case, but that's not sufficient, if you don't remember ;) : viewtopic.php?f=70&t=8469&start=250#p67500

Re: [App] libAirToSat D/E/F/H

Posted: Sat Mar 07, 2015 1:52 pm
by orlinm
It's work now like charm :)
Thank you very much for support !
Now it's time to do some experiments with EPG API libEPG

Re: [App] libAirToSat D/E/F/H

Posted: Sun Apr 12, 2015 5:10 am
by rromcic
Then I switch CABLE/SAT on my ES7000, "Weak or No Signal" appear, and need to zap up/down for ok signal

AirToSat.log
SpoilerShow
[AirToSat] SamyGO D/E/F/H libAirToSat v0.2.4 - (c) zoelechat 2015
[AirToSat] lib_init, Setting to CABLE/SAT mode!
[AirToSat] dlsym '_ZN5TCAPI9GetWindowEN8TCWindow7EWindowE' failed.
[AirToSat] g_pAppWindow [0x85a0df8].
[AirToSat] _ZN9TCChannelC2Ev [0x10dc600].
[AirToSat] _ZN9TCChannelD2Ev [0x10d8a18].
[AirToSat] _ZNK9TCChannel5MajorEv [0x10dadd8].
[AirToSat] _ZN8TCWindow12GetTVChannelEP9TCChanneli [0x109136c].
[AirToSat] _ZN8TCWindow9GetTvModeEPii [0x1091260].
[AirToSat] _ZN8TCWindow9SetTvModeEii [0x1091284].
[AirToSat] _ZN8TCWindow10SetChannelEPK9TCChannelii [0x1093e78].
[AirToSat] dlsym '_ZN13TCWindowProxy12GetTVChannelEP9TCChanneli' failed.
[AirToSat] dlsym '_ZN13TCWindowProxy9GetTvModeEPii' failed.
[AirToSat] dlsym '_ZN13TCWindowProxy9SetTvModeEii' failed.
[AirToSat] dlsym '_ZN13TCWindowProxy10SetChannelEPK9TCChannelii' failed.
[AirToSat] lib_init, Switched to antenna: 3, channel: 316
[AirToSat] init done...
[AirToSat] >>> lib_deinit
[AirToSat] <<< lib_deinit

Re: [App] libAirToSat D/E/F/H

Posted: Thu May 21, 2015 12:57 pm
by zoelechat
rromcic wrote:Then I switch CABLE/SAT on my ES7000, "Weak or No Signal" appear, and need to zap up/down for ok signal
I also had that issue from the beginning, randomly and especially on first air/sat switch after TV boot. New version from 1st post should fix it :)

Re: [App] libAirToSat D/E/F/H

Posted: Fri May 22, 2015 7:45 pm
by zoelechat
New version, now logging destination antenna name in local language, in case you want to parse it and display it with libAlert for example (sample script added to first post).

Code: Select all

[AirToSat] Switched to antenna 0: Hertzien