Dobrica Pavlinušić's random unstructured stuff
HDHomeRun: Revision 1

HDHomeRun DUAL
Model: HDHR3-EU
Device ID: 12208216
Firmware: 20161117

http://www.silicondust.com/support/linux/



hdhomerun_config

dpavlin@klin:~/klin/HDHomeRun/libhdhomerun$ ./hdhomerun_config discover
hdhomerun device 12208216 found at 192.168.3.78

dpavlin@svarog:~/HDHomeRun/libhdhomerun$ ./hdhomerun_config discover
hdhomerun device 12208216 found at 192.168.1.194


dpavlin@klin:~/klin/HDHomeRun/libhdhomerun$ ./hdhomerun_config 12208216 get help
Supported configuration options:
/sys/copyright
/sys/dvbc_modulation
/sys/debug
/sys/features
/sys/hwmodel
/sys/model
/sys/restart <resource>
/sys/version
/tuner<n>/channel <modulation>:<freq|ch>
/tuner<n>/channelmap <channelmap>
/tuner<n>/debug
/tuner<n>/filter "0x<nnnn>-0x<nnnn> [...]"
/tuner<n>/lockkey
/tuner<n>/program <program number>
/tuner<n>/streaminfo
/tuner<n>/status
/tuner<n>/target <ip>:<port>

upgrade

dpavlin@klin:~/klin/HDHomeRun/libhdhomerun$ ./hdhomerun_config 12208216 upgrade ../hdhomerun3_dvbtc_firmware_20170930.bin 
uploading firmware...
upgrading firmware...
rebooting...
upgrade complete - now running firmware 20170930

gui

dpavlin@klin:~/klin/HDHomeRun/hdhomerun_config_gui$ ./configure
dpavlin@klin:~/klin/HDHomeRun/hdhomerun_config_gui$ make
dpavlin@klin:~/klin/HDHomeRun/hdhomerun_config_gui$ LD_PRELOAD=../libhdhomerun/libhdhomerun.so ./src/hdhomerun_config_gui 

# on svarog

dpavlin@svarog:~/HDHomeRun/hdhomerun_config_gui$ cat debian-install.sh 
sudo apt install pkg-config libgtk2.0-dev
./configure 
make

dpavlin@svarog:~/HDHomeRun/hdhomerun_config_gui$ sh -xe debian-install.sh 


scan

dpavlin@svarog:~/HDHomeRun/libhdhomerun$ ./hdhomerun_config 12208216 scan 0 scan-0

dpavlin@svarog:~/HDHomeRun/libhdhomerun$ ./hdhomerun_config 12208216 scan 1 scan-1

config

channelmap

root@svarog:~# hdhomerun_config 12208216 get /tuner0/channelmap
eu-bcast
root@svarog:~# hdhomerun_config 12208216 get /tuner1/channelmap
eu-bcast

tune to channel

root@svarog:~# hdhomerun_config 12208216 set /tuner0/channel auto:57

root@svarog:/home/dpavlin/HDHomeRun/libhdhomerun# hdhomerun_config 12208216 get /sys/features
channelmap: eu-bcast eu-cable au-bcast au-cable tw-bcast tw-cable
modulation: t8qam64 t8qam16 t8qpsk t7qam64 t7qam16 t7qpsk t6qam64 t6qam16 t6qpsk a8qam256-* a8qam128-* a8qam64-* a7qam256-* a7qam128-* a7qam64-* a6qam256-* a6qam128-* a6qam64-*
auto-modulation: auto auto8t auto7t auto6t auto8c auto7c auto6c

# signal strenght
root@svarog:~# hdhomerun_config 12208216 get /tuner0/status
ch=auto:57 lock=t8qam16 ss=82 snq=91 seq=100 bps=14930208 pps=0

root@svarog:~# hdhomerun_config 12208216 get /tuner0/debug
tun: ch=auto:57 lock=t8qam16:762000000 ss=81 snq=91 seq=100 dbg=-502/8744
dev: bps=14930208 resync=0 overflow=0
ts:  bps=14930208 te=0 crc=0
net: pps=0 err=0 stop=0

detecting programs on channel

root@svarog:~# hdhomerun_config 12208216 get /tuner0/streaminfo
4404: 0 TREND TV
4434: 0 Laudato TV
tsid=0x0D44
onid=0x20BF

root@svarog:~# hdhomerun_config 12208216 set /tuner0/program 4404

root@svarog:~# hdhomerun_config 12208216 get /tuner0/filter
0x1158-0x115b


play video

dpavlin@klin:~$ ssh svarog hdhomerun_config 12208216 save /tuner0 - | ffplay -