From: Neil W. <ne...@nw...> - 2005-06-09 21:47:14
|
Hi Charles, > ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A > ttyS0 at I/O 0x2f8 (irq = 4) is a 16550A > ttyS1 at I/O 0x3f8 (irq = 3) is a 16550A I know absolutely nothing about Linux, but! The above I/O address's and irq's look strange. I assume that a ttyS0 is a serial port on the Linux system as per COM1 on a PC's BIOS and ttyS1 is a serial port on the Linux system as per COM2 on a PC's BIOS Your device ttyS0 is being shown as been at address 3F8 (1st line) as well as address 2F8 (third line), it can only be one or the other i.e. ttyS0 or ttyS1 (COM1 or COM2) etc etc So I would expect to see the following ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A - On a Windows PC this is COM1 for the I/O addr and the IRQ ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A - On a Windows PC this is COM2 for the I/O addr and the IRQ I think these are your error points where the ttyS* are being re assigned again > ttyS0 at I/O 0x2f8 (irq = 4) is a 16550A - Above Line 3 > ttyS1 at I/O 0x3f8 (irq = 3) is a 16550A - Above Line 4 Regards, Neil Wrightson. > -----Original Message----- > From: Charles Rose [mailto:ch...@ro...] > Sent: Thursday, 9 June 2005 10:45 AM > To: mis...@li... > Subject: [mh] Serial issues > > > I've decided to have another go at MisterHouse after starting > and giving up > about a year ago. First, I'm trying to ensure that I'm > talking to both > serial ports on my Linux box, which is running the latest > Ubuntu Hoary > release. I'm using the Debian build (ver 2.97) and the first > serial port > (/dev/ttyS0) seems to work fine -- I'm able to send and > receive from it. > > When I shutdown and move the mh.ini entries to point to > /dev/ttyS1 to test > things out, the mh.log entries show that I'm sending commands > out, however > they are not making it to the device. Also, Misterhouse is > not receiving > on that port. The completely odd thing is that I can run > Minicom on the > port and it works flawlessly: I can send and receive to my > heart's content. > > So, to try to make the second port work with Misterhouse, > I've done the > following: > > 1) Ensured that misterhouse is running as root (it is, > according to "ps aux"), > > 2) Ran the .config script to Convert C headers to Perl headers, > > 3) Make sure that /dev/ttyS1 has the same permissions as /dev/ttyS0, > > 4) Ran setserial and stty on both ports and ensured that > their settings > were identical, > > 5) Looked at the /var/log/messages file, which shows the > following on bootup: > > Serial: 8250/16550 driver $Revision: 1.90 $ 54 ports, IRQ > sharing enabled > ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A > ttyS0 at I/O 0x2f8 (irq = 4) is a 16550A > ttyS1 at I/O 0x3f8 (irq = 3) is a 16550A > > Any ideas would certainly be appreciated... :> > > Thanks, > > Charles > > PS -- The relevant mh.log entries with debug on for serial > and homebase are: > > [ > - creating HomeBase object on port /dev/ttyS1 > ] > No error messages after... > > [ > Serial_Item: port-HomeBase self-Serial_Item=HASH(0x926a0b8) state= > !03V35+ > date= > !03V35+ > interface= > serial port=HomeBase out= > !03V35+ > > results=10 > ] > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far > can you shotput > a projector? How fast can you ride your desk chair down the > office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > > |