<div dir="ltr">At last - a good answer.<br><br>thanks,<br>erez.<br><br><div class="gmail_quote">On Tue, Aug 31, 2010 at 11:33 PM, Oron Peled <span dir="ltr"><<a href="mailto:oron@actcom.co.il">oron@actcom.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tuesday, 31 בAugust 2010 12:22:02 Oleg Goldshmidt wrote:<br>
> 2010/8/31 Erez D <<a href="mailto:erez0001@gmail.com">erez0001@gmail.com</a>>:<br>
> > I am looking for a simple way to know which serial ports i have.<br>
<br>
</div>Instead of searching through /proc and /sys you should use hal:<br>
* To see everything, simply run 'lshal'<br>
* To find UDI's of all serial devices, run:<br>
hal-find-by-capability --capability serial<br>
* To get a specific property (e.g: the device file name):<br>
hal-get-property --udi <udi_string> --key linux.device_file<br>
<br>
>From a program, just use the HAL API's.<br>
HAL is being deprecated (by DeviceKit/udev), but is still there<br>
for a while (at least with respect to legacy hardware like serial<br>
ports).<br>
<font color="#888888"><br>
--<br>
Oron Peled Voice: +972-4-8228492<br>
<a href="mailto:oron@actcom.co.il">oron@actcom.co.il</a> <a href="http://users.actcom.co.il/%7Eoron" target="_blank">http://users.actcom.co.il/~oron</a><br>
"Normal people ... believe that if it ain't broke, don't fix it.<br>
Engineers believe that if it ain't broke, it doesn't have enough<br>
features ... yet." -- Scott Adams<br>
</font></blockquote></div><br></div>