[haiku-development] Re: Device file for COM1?

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 15 Dec 2009 09:18:36 +0100

On 2009-12-15 at 07:56:22 [+0100], Michael Crawford <mdcrawford@xxxxxxxxx> 
wrote:
> I'm trying to enable serial debug output, but I'm not having much luck.
> 
> I'm not completely sure that my cables are set up correctly.  What I'd 
> like to do to help diagnose this is send some data out my serial port 
> from Haiku, while I'm booted into the desktop.
> 
> I looked around the /dev directory for the serial device file.  There is 
> /dev/pt and /dev/tt, but my impression is that those devices are for 
> pseudo-ttys for use by Terminal.  I need the device for the physical 
> serial port.  I googled around and searched the list archives, but I 
> couldn't find it anywhere - that would be a good thing to document on the 
> Haiku website.
> 
> I looked at the Haiku source code.  If I'm reading it correctly, I should 
> have a /dev/ports/pc_serial directory - but I don't.
> 
> My Haiku box has an Intel Desktop Motherboard, which has an internal 
> header for serial but no external connector.  Today I bought what I hope 
> is the correct cable, to bring the signal from the header out to a DB9 
> connector.  The cable was labeled IDC 10/DB9 Male.  Is that the right 
> cable?  It was the only cable that Frys had that looked like it had the 
> right kinds of connectors on it.

The problem is that the pc_serial driver works only on BeOS. On Haiku, the 
TTY layer has changed and the driver needs to be adapted.

Best regards,
-Stephan


Other related posts: