View unanswered posts    View active topics

All times are UTC - 6 hours





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

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Apr 09, 2007 6:30 pm 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
It seems that both of my serial port are not functioning (to me). I have my serial IR receiver connected to COM1 for LIRC, and my LED's hooked to COM2 for my Tuner Encoder Status (LED's). Both of these were working before and now things seemed to be all messed up.

running dmseg | grep ttyS shows
Code:
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x3f8 (irq = 3) is a 16550A
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 3) is a 16550A


Seems that the ports are being recognized. Now what? Any suggestions?

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 09, 2007 6:35 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Before what? Perhaps providing a bit of information about what changed between "the before" when they worked and "the after" when they didn't would be in order...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 09, 2007 7:04 pm 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
Two weeks ago something went wrong with my mythbackend. Would not stop or start. Was able to salivage my recording but I had to re-upgrade my system. Did the re-upgrade (R5E50), replaced all my old files for LIRC, configured recstat for COM2, restarted the system and neither LIRC or RECSTAT.

running /etc/init.d/recstat start states that it is running, restarting everything works but the LED's do not function.

running /etc/init.d/lirc start shows that LIRC is running, but running irw and pressing remote buttons show nothing responding.

My lircd.conf (/etc/lirc/) and lircrc (/home/share/mythtv/.mythtv) are the same from when the receiver was originally working. Also my /etc/lirc/hardware.conf is set for

Code:
LIRC_DEVICE="/dev/lirc0"
MODULES="lirc_dev and lirc_serial"

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 8:01 am 
Offline
Joined: Tue Aug 08, 2006 7:08 pm
Posts: 561
Location: UK
Have you checked the membership of the dialout group? Perhaps this got clobbered during the re-upgrade.

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: Tue Apr 10, 2007 9:28 am 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
I am fairly sure my dialout was changed to include mythtv. I will check when I have access to my machine.

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 3:09 pm 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
Just verified that my /etc/group file has dialout:x:20:mythtv. Anything else that could cause this problem?

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 5:41 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You might want to try connecting a "null modem" cable between the two ports, setting them both to the same speed, writing to the one and reading from the other. I think even "cat" would work once they're configured. Something like:
Code:
yes >/dev/ttyS0 & cat /dev/ttyS1

If you see a long stream of "y"s they're working.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 10:56 am 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
Have done a little bit of searching and was wondering if ttyS0 and ttys0 are the same. According to what I have found com1 should be ttyS0, yet in my /dev folder all I have is ttys0.

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 1:58 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
spideyk21 wrote:
Have done a little bit of searching and was wondering if ttyS0 and ttys0 are the same. According to what I have found com1 should be ttyS0, yet in my /dev folder all I have is ttys0.
They are not the same. Odd that your serial devices are missing, do you have ttyS1 - ttyS4?

You could try recreating them with mknod:
Code:
mknod ttyS0 c 4 64
The major/minor numbers may be different depending on which version of KM you are using, the above example is from my R5D1 system on the same motherboard you are using.
Code:
root@myth2:/dev# ls -l /dev/ttyS*
crw-rw-rw-  1 root dialout 4, 64 May  7  2004 /dev/ttyS0
crw-rw-rw-  1 root dialout 4, 65 May  7  2004 /dev/ttyS1
crw-rw-rw-  1 root dialout 4, 66 May  7  2004 /dev/ttyS2
crw-rw-rw-  1 root dialout 4, 67 May  7  2004 /dev/ttyS3
crw-rw-rw-  1 root dialout 4, 68 May  7  2004 /dev/ttyS4

Hope this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 10:25 am 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
Apparently my /dev folder does contain ttyS0 and ttyS1 even though I can not see them.
Code:
located ttyS0

shows them to be in the /dev folder

I did notice that my ttyS* have different privileges then yours do slowtolearn.
Code:
lroot@myth2:/dev# ls -l /dev/ttyS*
crw-rw----  1 root dialout 4, 64 Apr 13  05:05 /dev/ttyS0
crw-rw----  1 root dialout 4, 65 Apr 13  05:05 /dev/ttyS1
crw-rw----  1 root dialout 4, 66 Apr 13  05:05 /dev/ttyS2
crw-rw----  1 root dialout 4, 67 Apr 13  05:05 /dev/ttyS3

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 4:04 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
spideyk21 wrote:
Apparently my /dev folder does contain ttyS0 and ttyS1 even though I can not see them.
Code:
located ttyS0

shows them to be in the /dev folder

I did notice that my ttyS* have different privileges then yours do slowtolearn.
Code:
lroot@myth2:/dev# ls -l /dev/ttyS*
crw-rw----  1 root dialout 4, 64 Apr 13  05:05 /dev/ttyS0
crw-rw----  1 root dialout 4, 65 Apr 13  05:05 /dev/ttyS1
crw-rw----  1 root dialout 4, 66 Apr 13  05:05 /dev/ttyS2
crw-rw----  1 root dialout 4, 67 Apr 13  05:05 /dev/ttyS3
I'm confused by the "I can not see them" statement? In which way? The ls -l shows them... As long as the mythtv user is a member of the dialout group your permissions should be fine.

I know that when I switched to the serial IR receiver I had to add
Code:
setserial /dev/ttyS0 uart none
to my /etc/init.d/bootmisc.sh file to disable the port. Perhaps that was missed during the upgrade?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 7:00 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Just in case you missed it, there are a number of serial related items in the known changes and known issues sections of the R5E50 upgrade notes that may apply to you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 11:20 pm 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
I commented out the InputDevice sections in my xorg.conf per the instructions, but I am not sure if I got it all. What exactly needs to be commented out of my xorg.conf that deals with the serial port?

I have already done the dialout part and my mythbox is going through a router with firewall protection.

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 14, 2007 8:36 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
spideyk21 wrote:
What exactly needs to be commented out of my xorg.conf that deals with the serial port?

Just the serial mouse definition block. It looks something like this:
Code:
Section "InputDevice"
        Identifier  "Serial Mouse"
        Driver      "mouse"
        Option      "Protocol" "Microsoft"
        Option      "Device" "/dev/ttyS0"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "70"
        Option      "SendCoreEvents"  "true"
EndSection

Remove the whole section otherwise your X server will try to open the device and tie it up.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2007 3:34 pm 
Offline
Joined: Wed Apr 18, 2007 12:03 pm
Posts: 2
spideyk, did you ever get it working?


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

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