Hi, I'm trying to use serial port but the system says device busy. daemon# cu -l /dev/cuad0 -s 9600 /dev/cuad0: Device busy link down daemon# uname -an FreeBSD daemon.micom.mng.net 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Mon Jan 14 16:49:57 ULAT 2008 tsgan@daemon.micom.mng.net:/usr/obj/usr/src/sys/GDAEMON i386 It seems like no other program is using serial port. How to check whether something is using serial port? Any idea? thanks, Ganbold -- If you think the problem is bad now, just wait until we've solved it. -- Arthur Kasspe
On Mon, 4 Feb 2008, Ganbold wrote:> I'm trying to use serial port but the system says device busy. > > daemon# cu -l /dev/cuad0 -s 9600 > /dev/cuad0: Device busy > link downWhat does fstat /dev/cuad0 say? -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080204/c29d86ef/attachment.pgp
On Mon, Feb 04, 2008 at 12:53:58PM +0800, Ganbold wrote:> Hi, > > I'm trying to use serial port but the system says device busy. > > daemon# cu -l /dev/cuad0 -s 9600 > /dev/cuad0: Device busy > link downDoes the same happen if you do `cu -l ttyd0 -s 9600`?> How to check whether something is using serial port? > Any idea?fstat should help here. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |