View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 43 posts ] 
Go to page 1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Apr 11, 2007 7:08 pm 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 5:41 am 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 8:06 am 
Offline
Joined: Tue Aug 08, 2006 7:08 pm
Posts: 561
Location: UK
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.

_________________
Updated 2019/10/26: AthlonII X2 265 Gigabyte GA-970A-DS3P
16Gb PC 1866 DDR3, 500GB+2TB+4TB SATA HDD,
SATA DVD-RW Asus DRW-24D5MT , NVIDIA GeForce GT1080
Hauppauage Nova-T 500, Nova-T LinHes R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 9:27 am 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 12:05 pm 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 8:27 am 
Offline
Joined: Tue Aug 08, 2006 7:08 pm
Posts: 561
Location: UK
Quote:
Are you suggesting that I do:
Code:
sudo /usr/local/bin/directv.pl
Yes, but of course you'll have to pass the channel number as well.

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.

_________________
Updated 2019/10/26: AthlonII X2 265 Gigabyte GA-970A-DS3P
16Gb PC 1866 DDR3, 500GB+2TB+4TB SATA HDD,
SATA DVD-RW Asus DRW-24D5MT , NVIDIA GeForce GT1080
Hauppauage Nova-T 500, Nova-T LinHes R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 11:35 am 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 15, 2007 5:04 pm 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 15, 2007 7:16 pm 
Offline
Joined: Tue Aug 08, 2006 7:08 pm
Posts: 561
Location: UK
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.

_________________
Updated 2019/10/26: AthlonII X2 265 Gigabyte GA-970A-DS3P
16Gb PC 1866 DDR3, 500GB+2TB+4TB SATA HDD,
SATA DVD-RW Asus DRW-24D5MT , NVIDIA GeForce GT1080
Hauppauage Nova-T 500, Nova-T LinHes R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 15, 2007 8:27 pm 
Offline
Joined: Fri Mar 30, 2007 1:01 pm
Posts: 21
Location: Santa Ana, CA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 12:39 pm 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 11:49 pm 
Offline
Joined: Mon Sep 04, 2006 9:51 pm
Posts: 1
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 :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 17, 2007 12:56 pm 
Offline
Joined: Fri Mar 30, 2007 1:01 pm
Posts: 21
Location: Santa Ana, CA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 18, 2007 10:41 am 
Offline
Joined: Sat Apr 07, 2007 8:20 am
Posts: 49
Location: Mansfield, OH
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 18, 2007 10:46 pm 
Offline
Joined: Fri Mar 30, 2007 1:01 pm
Posts: 21
Location: Santa Ana, CA
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ] 
Go to page 1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 52 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