NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Hardware v
« Previous 1 … 6 7 8 9 10 … 263 Next »
Global Cache Channel Changer (IR Blaster) Executable

 
  • 0 Vote(s) - 0 Average
Global Cache Channel Changer (IR Blaster) Executable
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#1
2019-03-18, 08:07 AM
Hi,

Whilst many of you probably have DirectTV type "Web Tuner" channel changers for your Set Top Boxes (STBs), the STBs from our IPTV provider remains resolutely IR Based (i.e. operated by a Remote).

In my ongoing search for the perfect (quick, reliable) IR-based channel changer I have been trying various executables for my USB-UIRT, but I also had some Global Cache IP2IR devices (Flex and iTach) from another Project.

Executable from Global Cache:

A while back a NextPVR user asked whether the Global Cache devices had an executable. After some pestering of the Global Cache support I got hold of such an exe (which is based on Python) and an example script to make it work, so I thought I'd share it here. The helpful GC support folks said:

[QUOTE]"I looked through our internal scripts and I've attached a zip file that has a little test utility we've used internally. It's not quite what you described but might be close enough to allow you to perform most of the functions you wanted.

To run it you would call the following from a command line: main.exe 192.168.0.203 4998 sendir,1:1,1,38000,10,1,500,500

Where you'd replace 192.168.0.203 with your unit's IP address, and sendir,1:1,1,38000,10,1,500,500 with the IR code you want to send (in the GC format). The '4998' is the TCP port which will always be 4998 for IR units.[QUOTE]

Below is my batch file, with the IR codes for 0~9 and OK (specific for my remote) as learnt by the iTach unit (you can use GCs iLearn.exe or the free iScrutinizer with support via the folks at JP1). You only really need 0~9. Again this is only an example you need to learn your own codes and amend the red items below.

Code:
@echo off
[COLOR=#ff0000]E:[/COLOR]
[COLOR=#ff0000]CD E:\Storage\CompuHW\IoT_Stuff\Global Cache Utils\FromGlobalCacheSendIRExe\GC_CC_Exe[/COLOR]


set ip="[COLOR=#ff0000]192.168.1.25[/COLOR]"


:loop
if "%1"=="" goto :done


if "%1"=="0" goto :IR0
if "%1"=="1" goto :IR1
if "%1"=="2" goto :IR2
if "%1"=="3" goto :IR3
if "%1"=="4" goto :IR4
if "%1"=="5" goto :IR5
if "%1"=="6" goto :IR6
if "%1"=="7" goto :IR7
if "%1"=="8" goto :IR8
if "%1"=="9" goto :IR9
if "%1"=="[COLOR=#ff0000]OK[/COLOR]" goto :IROK


:: Continue if statements for as many digits/commands as necessary


:return
shift
goto :loop


::Make function for each IRn if statement above
:IR0
::Hard code IR code for 'IR0' case
[COLOR=#ff0000][/COLOR].\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBBBBBBBBBCCCCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR1
::Hard code IR code for 'IR1' case
[COLOR=#ff0000][/COLOR].\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCBBBBBBBBCCCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR2
::Hard code IR code for 'IR2' case
[COLOR=#ff0000][/COLOR].\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBBCBBBBBBCBCCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR3
::Hard code IR code for 'IR3' case
[COLOR=#ff0000][/COLOR].\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCCBBBBBBBBCCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR4
::Hard code IR code for 'IR4' case
.\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBBBCBBBBBCCBCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR5
::Hard code IR code for 'IR5' case
[COLOR=#ff0000][/COLOR].\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCBCBBBBBBCBCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR6
::Hard code IR code for 'IR6' case
.\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBBCCBBBBBCBBCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR7
::Hard code IR code for 'IR7' case
.\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCCCBBBBBBBBCCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR8
::Hard code IR code for 'IR8' case
.\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBBBBCBBBBCCCBCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR9
::Hard code IR code for 'IR9' case
.\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCBBCBBBBBCCBCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:IR[COLOR=#ff0000]OK[/COLOR]
::Hard code IR code for 'IROK' case
.\main.exe %ip% 4998 [COLOR=#ff0000]sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCBCCBBBBBCBBCCCC,22,1743,347,87,22,3692[/COLOR]
goto :return


:done
echo Complete


REM This will loop through the arguments and if they're a match to one of the predefined values it'll send the code in the matching "IRn" function. Then you would just call the batch file like this myBatch.bat 1 2 1 or with as many parameters as needed. Note: the batch file would need to be in the same directory as main.exe.
REM Learned Codes from a GC Unit can be in GC or GC_Compressed_Format (so they are shorter and easier to handle).
REM In NextPVR you must use a SPACE between the channel numbers in the arguments i.e. {channel_d1} {channel_d2} {channel_d3}; you might need {channel_d2} {channel_d23 {channel_d4}.
REM You many have OK or Enter - not that important

I could not upload the executable so here is a link to it.
It will only last 100 days I think, so maybe you will have to reply to the post :-).

Telnet Scripting Tool TST10:

Separately, I did some brief experimentation with the Telnet Scripting Toool TST10.exe, which is still available around the net.

This is a Batch File to Change ONE Channel (671) using TST10.exe.
Code:
ECHO On
E:
CD\
CD "E:\Storage\CompuHW\IoT_Stuff\TST10"
start cmd /c tst10.exe /r:SampleScriptCh671.txt /o:output.txt /m
REM
REM The WAIT command in the script must be completeir,1:<IRConn>,<ID>\x0D where <IRConn> is the IR Connector number ON the GC Device (see Manual) and <ID>=command isssued (IR Code).

This is the sample script (SampleScriptCh671.txt) that the batch file operates with. The sendir codes are the same one you learn using ilearn for the above. The "completeir,1:1,6" codes are just confirmation from the iTach units that the code was sent and the numbers should match the sent code sequence X:Y,Z.
Code:
[COLOR=#ff0000]192.168.1.25[/COLOR] 4998
[COLOR=#ff0000][/COLOR]SEND "[COLOR=#ff0000]sendir,1:1,6,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBBCCBBBBBCBBCCCCC,22,1743,347,87,22,3692\m"[/COLOR]
[COLOR=#ff0000][/COLOR]WAIT [COLOR=#ff0000]"completeir,1:1,6"[/COLOR]
[COLOR=#ff0000][/COLOR]SEND [COLOR=#ff0000]"sendir,1:1,7,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCCCBBBBBBBBCCCCC,22,1743,347,87,22,3692\m"[/COLOR]
[COLOR=#ff0000][/COLOR]WAIT [COLOR=#ff0000]"completeir,1:1,7"[/COLOR]
[COLOR=#ff0000][/COLOR]SEND [COLOR=#ff0000]"sendir,1:1,1,38400,3,69,347,173,22,22BBBBB,22,65BBBBBCBCBCBBBBBBBBCCCCCCC,22,1743,347,87,22,3692\m"[/COLOR]
[COLOR=#ff0000][/COLOR]WAIT [COLOR=#ff0000]"completeir,1:1,1"[/COLOR]

Whilst I guess some clever person could make the batch file dynamic based on {channel_d1} etc, clearly writing a separate script file for each channel is somewhat cumbersome, so the GC main.exe script above (first option) is probably your best bet unless you can find a telnet scripting tool that can go to a lookup table for the numbers 0~9 unfortunately so it can be used with ANY channel sequence. TST10.exe does not seem to stretch to this.

Hope this helps someone!

Cheers

Kristian
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  HDPVR2 ir blaster Question? newguy2022 9 2,073 2022-11-14, 12:17 AM
Last Post: sub
  Add Colossus as a Single Channel source txinga 4 1,838 2022-01-04, 08:51 PM
Last Post: txinga
  Python3 Based IR Blaster Using IquanaWorks USB pkscout 9 4,404 2020-06-04, 10:03 PM
Last Post: pkscout
  Improve reliability of STB channel changing? jksmurf 39 13,943 2019-09-29, 07:07 AM
Last Post: jksmurf
  New cable Box IR Blaster Issue stu2j 1 2,239 2019-09-19, 04:50 PM
Last Post: stu2j
  Colossus IR Blaster with Pace PX022ANM Xfinity X1 is working! curleymon 1 4,129 2019-05-23, 05:54 PM
Last Post: KAZUNA
  ir blaster MaxOne72 4 3,755 2019-03-07, 06:13 AM
Last Post: jksmurf
  Channel export/import with capture device change ga_mueller 9 4,402 2016-10-24, 01:07 AM
Last Post: sub
  Channel changing a UK SKY HD+ (sky make) via hauppauge colossus 2 IR Blaster TheWiFiWizard 13 8,282 2016-09-13, 09:06 AM
Last Post: martint123
  AutoIt3 program to change channel with WinLIRC drake3 0 2,318 2016-03-02, 03:47 AM
Last Post: drake3

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode