com port list

com port list

Erez D erez0001 at gmail.com
Wed Sep 1 08:36:13 IDT 2010


At last - a good answer.

thanks,
erez.

On Tue, Aug 31, 2010 at 11:33 PM, Oron Peled <oron at actcom.co.il> wrote:

> On Tuesday, 31 בAugust 2010 12:22:02 Oleg Goldshmidt wrote:
> > 2010/8/31 Erez D <erez0001 at gmail.com>:
> > > I am looking for a simple way to know which serial ports i have.
>
> Instead of searching through /proc and /sys you should use hal:
>  * To see everything, simply run 'lshal'
>  * To find UDI's of all serial devices, run:
>     hal-find-by-capability --capability serial
>  * To get a specific property (e.g: the device file name):
>     hal-get-property --udi <udi_string> --key linux.device_file
>
> From a program, just use the HAL API's.
> HAL is being deprecated (by DeviceKit/udev), but is still there
> for a while (at least with respect to legacy hardware like serial
> ports).
>
> --
> Oron Peled                                 Voice: +972-4-8228492
> oron at actcom.co.il                  http://users.actcom.co.il/~oron<http://users.actcom.co.il/%7Eoron>
> "Normal people ... believe that if it ain't broke, don't fix it.
> Engineers believe that if it ain't broke, it doesn't have enough
> features ... yet." -- Scott Adams
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100901/9615e9da/attachment-0001.html>


More information about the Linux-il mailing list