Bug 12692 - SerialPort GetPortNames
Summary: SerialPort GetPortNames
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: unspecified
Hardware: Other Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-06-14 12:07 UTC by jrote1
Modified: 2013-06-17 14:56 UTC (History)
2 users (show)

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

A suggested GetPortNames Fix (980 bytes, patch)
2013-06-14 12:11 UTC, jrote1
Details | Diff

Description jrote1 2013-06-14 12:07:12 UTC
Description of Problem:

Steps to reproduce the problem:
1. Run System.IO.SerialPort.GetPortNames();

Actual Results:
If a USB Serial Port Is Connected It No longer outputs internal usb ports. It only outputs Serial Ports starting with ttyS and ttyUSB

Expected Results:
It should always display every serial port.

How often does this happen? 

Additional Information:
Why is the code made to do this as it is hard coded into the mono source. What is reasoning for this decision?
Comment 1 jrote1 2013-06-14 12:11:29 UTC
Created attachment 4115 [details]
A suggested GetPortNames Fix

A method from:

Location: mono/mcs/class/System/System.IO.Ports/SerialPort.cs 

Which I think is a fix for the problem
Comment 2 Rodrigo Kumpera 2013-06-17 14:55:55 UTC

Could you make a pull request out of this change and include some test case for it?

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