Hi Robert,
Robert Nagy wrote:
> Hey
>
> Basically on linux ttyS* and ttyUSB* is used for serial device names, but this
> is not the case for *BSD, Solaris and probably OS X.
If this helps:
macbook-pro:dev foyc$ ls tty*
tty ttyse
tty.BlackBerry9530-BlackBer-1 ttysf
Thanks for the explanation.
SVN now has a slightly different and more obvious approach
On Thu, Apr 22, 2010 at 2:52 PM, Robert Nagy wrote:
> Hey
>
> Basically on linux ttyS* and ttyUSB* is used for serial device names, but
> this
> is not the case for *BSD, Solaris and probably OS X.
> On these
Yes that would solve the problem but currently every *BSD, Linux, Solaris, etc.
are identified as 'Unix'.
Using an universal regex would be the best of course, but linux uses so many
different
devices names on different architectures that it's gonna be a nightmare.
On (2010-04-22 19:48), Andreas
Hey
Basically on linux ttyS* and ttyUSB* is used for serial device names, but this
is not the case for *BSD, Solaris and probably OS X.
On these systems tty[0-9]+ or ttyU[0-9]+ is used so the current code ony works
on
linux.
What my diff does is that it gets the list of all tty devices from /dev
Hi guys,
We may be able to get some hints from the sysfs filesystem, if running
on Linux. In /sys/class/tty, we have the available TTY ports -
whether or not they're physical serial ports is another issue - but
maybe it doesn't matter. If on Linux, and the /sys/class/tty
directory is available,
Hi,
Am 22.04.2010 um 18:45 schrieb Robert Nagy:
> Can someone please have a look at this?
>
> On (2010-04-20 23:26), Robert Nagy wrote:
>> The attached diff makes SerialPort.GetPortNames() work on
>> all Unix systems other than Linux too, because ttyS* and
>> ttyUSB* is linux specific and on *BSD
Hello,
The attached diff makes SerialPort.GetPortNames() work on
> all Unix systems other than Linux too, because ttyS* and
> ttyUSB* is linux specific and on *BSD the serial ports are
> tty[0-9]+.
> (I've tested this code on Linux and it should also support
> ttySG0 (SGI running Linux (ia64)).
>
Can someone please have a look at this?
On (2010-04-20 23:26), Robert Nagy wrote:
> Hi
>
> The attached diff makes SerialPort.GetPortNames() work on
> all Unix systems other than Linux too, because ttyS* and
> ttyUSB* is linux specific and on *BSD the serial ports are
> tty[0-9]+.
> (I've tested
Hi
The attached diff makes SerialPort.GetPortNames() work on
all Unix systems other than Linux too, because ttyS* and
ttyUSB* is linux specific and on *BSD the serial ports are
tty[0-9]+.
(I've tested this code on Linux and it should also support
ttySG0 (SGI running Linux (ia64)).
The other way w