[mythtv-users] STB Power Status

Doug Vaughan r.d.vaughan at rogers.com
Wed Jan 9 15:52:25 UTC 2013


Ken,
     Although you mentioned using IR for channel changing, I use abash 
script and firewire that checks if the sa3250HD is powered on, If it is 
on the same script automatically turns it on. The only way I know of 
doing this kind of test is to use firewire.

Relevant snippet from bash script:

# Always check that the STB is powered on.
# If not powered on the do so.
#
# The node number if specific to auser's firewire setup
NODE=0
#
STB_OFF=1
STB_ON=2
STATUS=$(/home.user/sa3250cmd/sa3250cmd -n $NODE status ; echo $?)
# the status check is immediate but powering on provides a 1 second 
guard time
# so only power on if the STB is actually off
if [ $STATUS -ne $STB_ON ]
then
     /home/user/sa3250cmd/sa3250cmd -n $NODE on >> 
/home/user/joblog/channelchange.log 2>&1
     sleep 4
fi


"sa3250cmd" can be found at:
https://code.google.com/p/sa3250cmd/


More information about the mythtv-users mailing list