Bug 9945 - System.IO.Ports.SerialPort.GetPortNames fails to find all valid ports.
Summary: System.IO.Ports.SerialPort.GetPortNames fails to find all valid ports.
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 2.10.x
Hardware: Other Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-01-31 11:32 UTC by mickeyf
Modified: 2013-01-31 11:32 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test program (1.49 KB, text/x-csharp)
2013-01-31 11:32 UTC, mickeyf
Details

Description mickeyf 2013-01-31 11:32:55 UTC
Created attachment 3317 [details]
test program

Only ports of the form /dev/ttyS* seem to be found. BeagleBone (ARM) also uses /dev/ttyO*, and may use /dev/ttyUSB* In fact /dev/ttyO* is more likely to be valid than /dev/ttyS*.

Test program attached.

Output from test program on BeagleBone:

Per SerialPort.GetPortNames()

p1 : /dev/ttyS0
p1 : /dev/ttyS1
p1 : /dev/ttyS2
p1 : /dev/ttyS3
Count = 4


Per GetFiles("/dev/","tty*")
p2 : /dev/ttyO0
p2 : /dev/ttyO1
p2 : /dev/ttyO2
p2 : /dev/ttyO3
p2 : /dev/ttyO4
p2 : /dev/ttyO5
p2 : /dev/ttyS0
p2 : /dev/ttyS1
p2 : /dev/ttyS2
p2 : /dev/ttyS3
Count = 10

Note You need to log in before you can comment on or make changes to this bug.