yuhej wrote: > I can see that Gambas can handle the serial ports which is a very good news > for me. > Can someone tell me how can I get the list of the serial ports of my > computer? I wish to make an autodetect function and only allow to select > from the working serial ports. > > Robi > I think you want /dev/ttyS0, ttyS1, etc... Also, I don't have a serial port on my laptop, but my USB to serial converter creates a device called /dev/ttyUSB0. All these devices are present on my system (Ubuntu latest), but I have no idea how to check if they are valid. Obviously, sending data to /dev/ttyS0 would do nothing on my laptop.
You could setup handshaking routines to check and see if there's a device that can respond on all of those devices. Your device would have to be able to do hardware or software handshaking though. Other than that, it's out of my league. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user