tuner error 7037

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
orbot
Posts: 6
Joined: Wed Mar 03, 2021 11:30 am
Device ID: 1067A183 1067A7DF 1067B6F8 1080F019

tuner error 7037

Post by orbot »

I made a simple batch file for a continuous autoscanner but I keep getting this occasional and seemingly random "tuner error 7037" in the command prompt. Once that error occurs, the tuner is stuck on channel 0 and can't be changed. If I open hdhomerun_config_gui and try to change the channel, it immediately goes back to channel 0. The only way I could fix it was to unplug the hdhomerun's power and plug it back in. I also run the RabbitEars Live Bandscan software and the same thing occasionally happens, the tuner gets stuck on channel 0 and I have to unplug the hdhomerun. This results in lost scan data if you're not constantly monitoring your hdhomeruns. I have three HDHR5-2US devices with Firmware: 20210224 and they all get this error.

Here are pictures of the batch file autoscanner:

Image

Here's the batch file. It posts the date/time to a text file and the command prompt, sets channel 36, waits 2 seconds, posts the channel number and streaminfo, then goes to channel 35 etc. etc. down to channel 14, then loops back to the start. I believe the RabbitEars Live Bandscan software uses the hdhomerun_config "scan" command instead.

Code: Select all

:loop

@echo Date/Time: %DATE% %TIME% >>1067A183_%DATE%.txt
@echo %DATE% %TIME%

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:36
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:35
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:34
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:33
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:32
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:31
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:30
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:29
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:28
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:27
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:26
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:25
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:24
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:23
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:22
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:21
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:20
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:19
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:18
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:17
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:16
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:15
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /tuner1/channel auto:14
@timeout 2 >nul
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo >>1067A183_%DATE%.txt
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/channel
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner1/streaminfo

@goto loop

electricleisure
Posts: 2
Joined: Sat Feb 06, 2021 11:45 am

Re: tuner error 7037

Post by electricleisure »

Hi! I have also written a similar scanning script, and am running into the same issue after some days/weeks of operation. My device is a HDHR5-4US running firmware 20200521. (Not sure if it matters, but the system running the scan is running FreeBSD 12.2-RELEASE).

The other tuners (3 of the 4) still work fine, but the tuner used for the scan is what gives me the issue. So far, the only workaround to get my 4th tuner working again seems to be to unplug the device and plug it back in. I'm hoping to find a better solution. :)

When it's locked up like this and I try to run a scan, it very quickly returns this output:

Code: Select all

% hdhomerun_config <my tuner id> scan /tuner3
SCANNING: 803000000 (us-bcast:69)
SCANNING: 797000000 (us-bcast:68)
SCANNING: 791000000 (us-bcast:67)
SCANNING: 785000000 (us-bcast:66)
SCANNING: 779000000 (us-bcast:65)
SCANNING: 773000000 (us-bcast:64)
SCANNING: 767000000 (us-bcast:63)
SCANNING: 761000000 (us-bcast:62)
SCANNING: 755000000 (us-bcast:61)
SCANNING: 749000000 (us-bcast:60)
SCANNING: 743000000 (us-bcast:59)
SCANNING: 737000000 (us-bcast:58)
SCANNING: 731000000 (us-bcast:57)
SCANNING: 725000000 (us-bcast:56)
SCANNING: 719000000 (us-bcast:55)
SCANNING: 713000000 (us-bcast:54)
SCANNING: 707000000 (us-bcast:53)
SCANNING: 701000000 (us-bcast:52)
SCANNING: 695000000 (us-bcast:51)
SCANNING: 689000000 (us-bcast:50)
SCANNING: 683000000 (us-bcast:49)
SCANNING: 677000000 (us-bcast:48)
SCANNING: 671000000 (us-bcast:47)
SCANNING: 665000000 (us-bcast:46)
SCANNING: 659000000 (us-bcast:45)
SCANNING: 653000000 (us-bcast:44)
SCANNING: 647000000 (us-bcast:43)
SCANNING: 641000000 (us-bcast:42)
SCANNING: 635000000 (us-bcast:41)
SCANNING: 629000000 (us-bcast:40)
SCANNING: 623000000 (us-bcast:39)
SCANNING: 617000000 (us-bcast:38)
SCANNING: 611000000 (us-bcast:37)
SCANNING: 605000000 (us-bcast:36)
SCANNING: 599000000 (us-bcast:35)
SCANNING: 593000000 (us-bcast:34)
SCANNING: 587000000 (us-bcast:33)
SCANNING: 581000000 (us-bcast:32)
SCANNING: 575000000 (us-bcast:31)
SCANNING: 569000000 (us-bcast:30)
SCANNING: 563000000 (us-bcast:29)
SCANNING: 557000000 (us-bcast:28)
SCANNING: 551000000 (us-bcast:27)
SCANNING: 545000000 (us-bcast:26)
SCANNING: 539000000 (us-bcast:25)
SCANNING: 533000000 (us-bcast:24)
SCANNING: 527000000 (us-bcast:23)
SCANNING: 521000000 (us-bcast:22)
SCANNING: 515000000 (us-bcast:21)
SCANNING: 509000000 (us-bcast:20)
SCANNING: 503000000 (us-bcast:19)
SCANNING: 497000000 (us-bcast:18)
SCANNING: 491000000 (us-bcast:17)
SCANNING: 485000000 (us-bcast:16)
SCANNING: 479000000 (us-bcast:15)
SCANNING: 473000000 (us-bcast:14)
SCANNING: 213000000 (us-bcast:13)
SCANNING: 207000000 (us-bcast:12)
SCANNING: 201000000 (us-bcast:11)
SCANNING: 195000000 (us-bcast:10)
SCANNING: 189000000 (us-bcast:9)
SCANNING: 183000000 (us-bcast:8)
SCANNING: 177000000 (us-bcast:7)
SCANNING: 85000000 (us-bcast:6)
SCANNING: 79000000 (us-bcast:5)
SCANNING: 69000000 (us-bcast:4)
SCANNING: 63000000 (us-bcast:3)
SCANNING: 57000000 (us-bcast:2)
Trying to manually tune it gives me the same error that you got:

Code: Select all

% hdhomerun_config <my tuner id> set /tuner3/channel 8vsb:31
ERROR: tuner error 7037
Unfortunately, we can't really figure anything out from the debug output:

Code: Select all

% hdhomerun_config <my tuner id> get /tuner3/debug
tun: ch=none lock=none ss=0 snq=0 seq=0 dbg=0
dev: bps=0 resync=0 overflow=0
ts:  bps=0 te=0 crc=0
net: pps=0 err=0 stop=0

% hdhomerun_config <my tuner id> get /tuner3/status
ch=none lock=none ss=0 snq=0 seq=0 bps=0 pps=0
Any ideas?

nickk
Silicondust
Posts: 16757
Joined: Tue Jan 13, 2004 9:39 am
x 88

Re: tuner error 7037

Post by nickk »

Thanks, we have reproduced the problem. Looking into the cause...

Nick

orbot
Posts: 6
Joined: Wed Mar 03, 2021 11:30 am
Device ID: 1067A183 1067A7DF 1067B6F8 1080F019

Re: tuner error 7037

Post by orbot »

Thanks for the replies and for looking into it. :)

electricleisure
Posts: 2
Joined: Sat Feb 06, 2021 11:45 am

Re: tuner error 7037

Post by electricleisure »

nickk wrote: Mon Mar 15, 2021 11:56 pm Thanks, we have reproduced the problem. Looking into the cause...

Nick
Thanks for checking it out! If you need someone to beta-test a fix, let me know.

orbot
Posts: 6
Joined: Wed Mar 03, 2021 11:30 am
Device ID: 1067A183 1067A7DF 1067B6F8 1080F019

Re: tuner error 7037

Post by orbot »

I saw this post that mentioned the hdhomerun_config.exe xxxxxxxxx set /sys/restart self command, and am happy to report that it can also be used to fix this frozen tuner issue instead of unplugging the hdhomerun. So I've been adding that command to some batch files and was able to check for a frozen tuner and reboot, all automatically.

For the RabbitEars Live Bandscan software, I made an auto-reboot batch file that runs in the background and checks all of my hdhomeruns every 600 seconds for channel number of "none" and reboots them if necessary.

Code: Select all

@title freeze checker
@echo %DATE% %TIME%

:wait
@timeout 600 >nul
@echo %DATE% %TIME%
@goto checka183

:checka183
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 get /tuner0/channel >"C:\Users\Chris\Desktop\ota\dx\tmp\tmpa183.txt"
@set /p freezea183=<"C:\Users\Chris\Desktop\ota\dx\tmp\tmpa183.txt"
@if "%freezea183%"=="none" goto reboota183
@goto checka7df

:reboota183
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A183 set /sys/restart self
@echo ...rebooting 1067A183...
@goto checka7df

:checka7df
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A7DF get /tuner0/channel >"C:\Users\Chris\Desktop\ota\dx\tmp\tmpa7df.txt"
@set /p freezea7df=<"C:\Users\Chris\Desktop\ota\dx\tmp\tmpa7df.txt"
@if "%freezea7df%"=="none" goto reboota7df
@goto checkb6f8

:reboota7df
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067A7DF set /sys/restart self
@echo ...rebooting 1067A7DF...
@goto checkb6f8

:checkb6f8
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067B6F8 get /tuner0/channel >"C:\Users\Chris\Desktop\ota\dx\tmp\tmpb6f8.txt"
@set /p freezeb6f8=<"C:\Users\Chris\Desktop\ota\dx\tmp\tmpb6f8.txt"
@if "%freezeb6f8%"=="none" goto rebootb6f8
@goto checkf019

:rebootb6f8
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1067B6F8 set /sys/restart self
@echo ...rebooting 1067B6F8...
@goto checkf019

:checkf019
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1080F019 get /tuner0/channel >"C:\Users\Chris\Desktop\ota\dx\tmp\tmpf019.txt"
@set /p freezef019=<"C:\Users\Chris\Desktop\ota\dx\tmp\tmpf019.txt"
@if "%freezef019%"=="none" goto rebootf019
@goto wait

:rebootf019
@"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 1080F019 set /sys/restart self
@echo ...rebooting 1080F019...
@goto wait

Post Reply