Re: Serial and parallel port detection
On 4 March 2013 10:12, Jacques Pelletier wrote: > Is it possible to do this in C? > > Also, what are the name of the serial devices? > > Is serial port via bluetooth or IrDA supported? I have used birda for IrDA to talk to Nokia 8210 mobile phone this was back in 2003 on OpenBSD, and was the 3.1/3.2 era. So this would be possible, but I've not tried it in the last 10 years :~) Cheers Fred
Re: Serial and parallel port detection
2013/3/4 Jacques Pelletier : > Le 2013-03-04 01:49, Theo de Raadt a écrit : > >>> For use in the GUI of an application, I need to have a list of detected >>> serial and parallel ports. This list is used to fill a combo box where >>> the user select the port to use (example: in Windows, it would be a list >>> with COM1,COM2, etc. >>> >>> On OpenBSD, how can we retrieve the detected serial and parallel ports? >> There is no clean machine-independent way. >> >> You could perhaps do something like use the output of pstat -t, but >> remove the console and pseudo-ttys, and you would probably be OK. >> >> The console devices will be somewhat machine dependent, but the >> pseudo-ttys >> are easy to spot. >> >> > Is it possible to do this in C? Since pstat is written in C, the answer most obviously would be "yes" > Also, what are the name of the serial devices? Differs on different platforms and type of devices. USB-serials wont be named as onboard serial ports and so on. -- May the most significant bit of your life be positive.
Re: Serial and parallel port detection
Le 2013-03-04 01:49, Theo de Raadt a écrit : For use in the GUI of an application, I need to have a list of detected serial and parallel ports. This list is used to fill a combo box where the user select the port to use (example: in Windows, it would be a list with COM1,COM2, etc. On OpenBSD, how can we retrieve the detected serial and parallel ports? There is no clean machine-independent way. You could perhaps do something like use the output of pstat -t, but remove the console and pseudo-ttys, and you would probably be OK. The console devices will be somewhat machine dependent, but the pseudo-ttys are easy to spot. Is it possible to do this in C? Also, what are the name of the serial devices? Is serial port via bluetooth or IrDA supported? Is serial port redirection possible? JP
Re: Serial and parallel port detection
> For use in the GUI of an application, I need to have a list of detected > serial and parallel ports. This list is used to fill a combo box where > the user select the port to use (example: in Windows, it would be a list > with COM1,COM2, etc. > > On OpenBSD, how can we retrieve the detected serial and parallel ports? There is no clean machine-independent way. You could perhaps do something like use the output of pstat -t, but remove the console and pseudo-ttys, and you would probably be OK. The console devices will be somewhat machine dependent, but the pseudo-ttys are easy to spot.
Serial and parallel port detection
Hi, For use in the GUI of an application, I need to have a list of detected serial and parallel ports. This list is used to fill a combo box where the user select the port to use (example: in Windows, it would be a list with COM1,COM2, etc. On OpenBSD, how can we retrieve the detected serial and parallel ports? JP