LinHES Forums http://forum.linhes.org/ |
|
directv d11 - channel change help http://forum.linhes.org/viewtopic.php?f=14&t=14901 |
Page 1 of 3 |
Author: | ej4176 [ Wed Apr 11, 2007 7:08 pm ] |
Post subject: | directv d11 - channel change help |
I"ve given up on lirc for now - maybe forever. I'm using the directv.pl script to change the channels but when Irun mythbackend I get this in teh terminal (mythbackend still runs ok): Any kick in the right direction is appreciated. Can't locate Device/SerialPort.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/bin/directv.pl line 50. BEGIN failed--compilation aborted at /usr/local/bin/directv.pl line 50. 2007-04-11 20:59:15.422 ret_pid(8736) child(8736) status(0x200) 2007-04-11 20:59:15.422 ChannelBase: external tuning program exited with error 2 Can't locate Device/SerialPort.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/bin/directv.pl line 50. BEGIN failed--compilation aborted at /usr/local/bin/directv.pl line 50. 2007-04-11 20:59:16.452 ret_pid(8738) child(8738) status(0x200) 2007-04-11 20:59:16.452 ChannelBase: external tuning program exited with error 2 2007-04-11 20:59:16.452 TVRec(1) Error: Setting start channel '3' failed, and backup '3' failed as well. |
Author: | ej4176 [ Thu Apr 12, 2007 5:41 am ] |
Post subject: | |
I am trying to install the SerialPort.pm and see if that helps. I'll report back in case anyone else runs into this issue and misses the obvious just as I did. |
Author: | bruce_s01 [ Thu Apr 12, 2007 8:06 am ] |
Post subject: | |
Does the script run as mythtv from the command line? if not check that mythtv is a member of the dialout group in /etc/groups. Bruce S. |
Author: | ej4176 [ Thu Apr 12, 2007 9:27 am ] |
Post subject: | |
I have 2 users on the system and both are in the mythtv group. Are you suggesting that I do: sudo /usr/local/bin/directv.pl and see what I get? I'll give it a try after I load the serial perl modules. Thanks! |
Author: | ej4176 [ Thu Apr 12, 2007 12:05 pm ] |
Post subject: | |
I got a little further with the script today during my lunch hour. I installed the serial-perl packages and now I do not get the same errors I was getting but it looks like my serial port isnt communicating and times out - which kills mythbackend as soon as I start mythfrontend. It's possible that my usb->serial converter isn't working right or my serial port my not be comminucating at all. I also forgot to check the groups - doh! I changed the baud rate in the script to 9600 and before running mythbackend I did: sudo stty -ixon -F /dev/ttyS0 Closer but still no cigar! |
Author: | bruce_s01 [ Fri Apr 13, 2007 8:27 am ] |
Post subject: | |
Quote: Are you suggesting that I do: Yes, but of course you'll have to pass the channel number as well.Code: sudo /usr/local/bin/directv.pl Quote: I have 2 users on the system and both are in the mythtv group. Both (mythtv and A.N.Other) should be a member of the dialout group.Quote: It's possible that my usb->serial converter isn't working right or my serial port my not be comminucating at all. I also forgot to check the groups - doh! Are you sure that your USB->Serial converter would be /dev/ttyS0? That is normally the on board serial port, even if your machine doesn't have a serial port exposed, it's still possible for it to be enabled.
You'll need to use dmesg or look though /var/log/messages to see what Serial port your USB device appears as. Bruce S. |
Author: | ej4176 [ Fri Apr 13, 2007 11:35 am ] |
Post subject: | |
I'm not sure that is my serial port..but I'm hoping ![]() I am using the onboard serial port and converting that through a null modem cable to usb into the D11-300 receiver. When I run the directv.pl script from the cli I get a list of available commands/parameters to pass to the script. I'm guessing that if i can't get a signal then the port is either wrong/not actve or my usb to serial adapter isn't working properly. I will add both users to the dialput group and see if that helps any and repotr back. Thx! |
Author: | ej4176 [ Sun Apr 15, 2007 5:04 pm ] |
Post subject: | |
Ordered a supported usb -> serial adapter and will repotr back when I get it and have a chance to install it. I read somewhere that the d11-300 does not have any handshaking capability to that's probably where the supported adapters come into play. |
Author: | bruce_s01 [ Sun Apr 15, 2007 7:16 pm ] |
Post subject: | |
I was going to ask a couple more questions, but had a quick google and found this, which I assume you've found already. Bruce S. |
Author: | JoeF [ Sun Apr 15, 2007 8:27 pm ] |
Post subject: | |
bruce_s01 wrote: I was going to ask a couple more questions, but had a quick google and found this, which I assume you've found already.
Bruce S. The info from that page helped me a couple days ago setting up channel changing with my D11. I used a cheap USB-Serial adapter from a local retailer. To test if it is supported, just connect it to the PC. It should be detected as pl2303. I then connected it to the PC with a null-modem cable with female connectors on both sides. Despite the recent change mentioned on the page, I had to set the baudrate to 115200. Works like a charm. |
Author: | ej4176 [ Mon Apr 16, 2007 12:39 pm ] |
Post subject: | |
I have already looked at that one Bruce. joeF: how do I see if it is detected? I have a usb -> serial adapter that was left over from some blackberry here at work (keyspan). I've ordered one that is supposed to work so I'll find out in a few days. |
Author: | Word [ Mon Apr 16, 2007 11:49 pm ] |
Post subject: | |
After much work i got it to work with the baud rate of 9600 (not 152*** nonsense that it says it's supposed to be at, both work but 9600 works all the time EDIT: just read up some more and looked at the suggested possibility of a firmware upgrade...honest to god i've gotten both to work but 152*** is hit and miss 9600 works...you're probably using 152*** right now anyway so switching to 9600 should be your best bet) as was said earlier you MUST add mythtv to the 'dialout' group, that was the last of my woes with the serial control script. If you can get it to work just with 9600 baud rate and mythtv in the dialout group :thumbsup: otherwise I'll upload my script somewhere and you can have a go with that. I recommend cutecom to test connectivity type 0xFA as a command and you should receive nonsense back. (for cutecom remember, 9600 baudrate, databits 8, 1 stop bit, no handshake, read write). Good luck ![]() |
Author: | JoeF [ Tue Apr 17, 2007 12:56 pm ] |
Post subject: | |
ej4176 wrote: I have already looked at that one Bruce.
joeF: how do I see if it is detected? /var/log/messages should show the info. Also, if it is a pl2303, the module should be loaded. You can check with lsmod. |
Author: | ej4176 [ Wed Apr 18, 2007 10:41 am ] |
Post subject: | |
I did not see lp2303 listed anywhere in the messages.log. Maybe its called something differnet on my system? I'm hoping the adapter is whole problem and will report back after trying it. On a bright note I think I fixed my lirc issues. |
Author: | JoeF [ Wed Apr 18, 2007 10:46 pm ] |
Post subject: | |
It would look like this: Apr 14 15:43:17 x kernel: usb 4-2.1: new full speed USB device using uhci_hcd and address 8 Apr 14 15:43:17 x kernel: usb 4-2.1: new device found, idVendor=067b, idProduct=2303 Apr 14 15:43:17 x kernel: usb 4-2.1: new device strings: Mfr=1, Product=2, SerialNumber=0 Apr 14 15:43:17 x kernel: usb 4-2.1: Product: USB-Serial Controller Apr 14 15:43:17 x kernel: usb 4-2.1: Manufacturer: Prolific Technology Inc. Apr 14 15:43:17 x kernel: usb 4-2.1: configuration #1 chosen from 1 choice Apr 14 15:43:17 x kernel: pl2303 4-2.1:1.0: pl2303 converter detected Apr 14 15:43:17 x kernel: usb 4-2.1: pl2303 converter now attached to ttyUSB1 |
Page 1 of 3 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |