View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Apr 19, 2009 10:02 pm 
Offline
Joined: Tue Feb 14, 2006 8:48 pm
Posts: 22
Location: San Diego, CA USA
System is R6, running since 1 Mar 2009. I'm in San Diego, California and have been getting my schedule info from Schedules Direct for local over-the-air broadcasts. I decided to go somewhat digital in that I'm using a Tivax STB-T8 controlled from the serial port and feeding the composite output to my PVR-150 card, similar to using a set-top converter box.

My problem is that when the change_channel script gets called to change the channel, there is no channel passed in. To troubleshoot the problem I reduced my script to the following:

/usr/local/bin/change_channel
Code:
#! /bin/bash
# Script used to change channels
# configured to control a Tivax STB-T8 via serial port
CHANNEL=$1

echo $(date --rfc-3339=seconds)  $* >> /var/log/change_channel.log

exit 0

When I look at the log file all I get is the date info, nothing else.

The data in my channel table is this:
Code:
mysql> select chanid, channum, freqid, sourceid, callsign, name from channel;
+--------+---------+--------+----------+----------+---------+
| chanid | channum | freqid | sourceid | callsign | name    |
+--------+---------+--------+----------+----------+---------+
|   1000 | 6-1     | NULL   |        1 | XETV-DT  | XETVDT  |
|   1001 | 8-1     | NULL   |        1 | KFMB-DT  | KFMBDT  |
|   1002 | 10-1    | NULL   |        1 | KGTV-DT  | KGTVDT  |
|   1003 | 15-1    | NULL   |        1 | KPBS-DT  | KPBSDT  |
|   1004 | 39-1    | NULL   |        1 | KNSD-DT  | KNSDDT  |
|   1005 | 39-2    | NULL   |        1 | KNSD-DT2 | KNSDDT2 |
|   1006 | 39-3    | NULL   |        1 | KNSD-DT3 | KNSDDT3 |
|   1007 | 51-1    | NULL   |        1 | KUSI-DT  | KUSIDT  |
|   1008 | 69-1    | NULL   |        1 | KSWB-DT  | KSWBDT  |
+--------+---------+--------+----------+----------+---------+
9 rows in set (0.00 sec)

It is my understanding that the channum is supposed to be passed directly to the change_channel script but for some reason it doesn't. I know that the script gets called because I have log entries in both my /var/log/change_channel.log and in the /var/log/mythtv/mythbackend.log that correspond to when the channels should change.

This is affected with both recording and watching live TV and changing channels.

Any hints on where to start looking for problems? I wonder if it is a problem with the channel number having a dash in it. I'll have to test after tonights recording.

Solution:
It turns out I was mistaken about the channum being sent to the change_channel script. What is really sent is the freqid. The clue I needed was here http://www.mythtv.org/pipermail/mythtv-dev/2004-July/024263.html My values were null because I had to hand create each channel due to some other unknown problem. When I went back and made the freqid=channum everything worked as expected.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 77 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu