Re: Serial port programming C++ - detect serial ports on linux



On Tue, 26 Sep 2006 23:04:12 +0200, Adib Taraben wrote:

How can I detect the serial ports on linux system? On w32 there is a
registry setting for that. Is there something similar on linux? Or do I
have to poll all possible devices and see which answers?

Possibly something like:

lars@ibmr52:~$ dmesg | grep ttyS
[17179571.444000] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A

--
Lars Rune Nøstdal
http://lars.nostdal.org/

.



Relevant Pages

  • Re: RTOS market
    ... It mentions Linux and several Windows breeds ... VxWorks and put all the others players as "others" hiding the ... but doesn't show their main competitors (other than Linux and Windows.) ... As very different product categories are contemplated in this poll, ...
    (comp.arch.embedded)
  • Re: Obsucure Inquier article about Intel mentions VMS (and not any other OS)
    ... >> vendorand will use Linux. ... >> the customers just won't deal with the vendoragain. ... > The poll would need greater granularity in regards of the target linux ... Self-selecting poll responses are by definition anecdotal. ...
    (comp.os.vms)
  • Re: Ingres on Itanium, not to good
    ... It's a "better" version of poll(), if you will, just a little ... That Ingres used the (deprecated in Linux) selectvs. pollis just ... to cap pollat 1024 and use epoll() above that. ...
    (comp.databases.ingres)
  • Re: ntp server rejected
    ... show on your QNX box and your Linux box? ... ntpq> lpe ... error 0.000590 poll 10 ...
    (comp.protocols.time.ntp)
  • Re: Run process with timeout
    ... > I have a python script under linux where I poll many hundreds of ... > interfaces with mrtg every 5 minutes. ...
    (comp.lang.python)