Got the error "no such device" when run "setserial" command.

Got the error "no such device" when run "setserial" command.

Post by Simon Tneoh Chee-Boo » Sat, 19 Sep 1998 04:00:00



Hello,
    Thanks in advance for any replys.
    I have problem to open the com port here. I suspect that my com port

is not setup properly. I found some articles mentioned about setserial.
What I did:
/bin/setserial -b /dev/cua0 uart 16550
And I got the error said that:
/dev/cua0: No such device
I even tried to put this command into /etc/rc.d/rc.local and reboot the
server, but still fails.
I tried on other linux servers that I have with the "setserial -a
/dev/xxxx",
I can get some information.
I wonder what's wrong with my server. It's not setup by me. Is it the
com port didn't set properly during the installation?
How can I solve this problem so that my program can talk to the port?
I have looked at the HOWTO documents still can get it works.

Thanks.

--

Application Developer   Hitechniaga Sdn. Bhd.
Tel: 603-966-0966        Fax: 603-966-0080

 
 
 

Got the error "no such device" when run "setserial" command.

Post by Richard S. Lumpki » Sat, 19 Sep 1998 04:00:00



> Hello,
>     Thanks in advance for any replys.
>     I have problem to open the com port here. I suspect that my com port

> is not setup properly. I found some articles mentioned about setserial.
> What I did:
> /bin/setserial -b /dev/cua0 uart 16550
> And I got the error said that:
> /dev/cua0: No such device
> I even tried to put this command into /etc/rc.d/rc.local and reboot the
> server, but still fails.
> I tried on other linux servers that I have with the "setserial -a
> /dev/xxxx",

Try using /dev/ttyS0 instead the /dev/cua0 terminology is shortly going
to disappear and may have already.  No I don't know why, I just a user
not a coder.

------------------------------------------------------------------------
Richard S. Lumpkin, Ph.D.                            Associate Professor
Department of Chemistry                                     256-890-6365
University of Alabama in Huntsville                     fax 256-890-6349
Huntsville, AL 35899                          http://chromophore.uah.edu
------------------------------------------------------------------------


 
 
 

Got the error "no such device" when run "setserial" command.

Post by Clifford Ki » Sat, 19 Sep 1998 04:00:00



Quote:>Hello,
>    Thanks in advance for any replys.
>    I have problem to open the com port here. I suspect that my com port
>is not setup properly. I found some articles mentioned about setserial.

 ^^^^^^^^^^^^^^^^^^^^^
That may be correct.

Quote:>What I did:
>/bin/setserial -b /dev/cua0 uart 16550
>And I got the error said that:
>/dev/cua0: No such device

Is /dev/cua0 configured as a serial device?   The major device number
should be a 5, e.g.,

corncob:~# ls -a /dev/cua0
crw-r-----   1 root     root       5,  64 Nov 28  1997 /dev/cua0
                                   ^
-----------------------------------|

If it is not a 5, remove it and do "mknod /dev/cua0 c 5 64", but read
the man pages first.  You might also have a look at /dev/DEVICES if it
exists on the system.  Then see if "setserial -a /dev/cua0" works.

-

--
Clifford Kite                                              Not a guru. (tm)

 
 
 

Got the error "no such device" when run "setserial" command.

Post by Ching-Hua Ti » Fri, 25 Sep 1998 04:00:00


[Posted and mailed]



Is COM# enabled in the BIOS?


>>Hello,
>>    Thanks in advance for any replys.
>>    I have problem to open the com port here. I suspect that my com port
>>is not setup properly. I found some articles mentioned about setserial.
>  ^^^^^^^^^^^^^^^^^^^^^

--
Ching-Hua Ting

Department of Automatic Control     Intercom: 22362, 22363, 25611
and Systems Engineering             In UK: (0114) 22+"intercom"
The University of Sheffield         Int'l: +44-114-22+"intercom"
United Kingdom S1 3JD               Fax:   +44-114-2731729