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

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


Attachments
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:
System.IO.Ports.SerialPort.GetPortNames()

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? 
Everytime

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
Hi,

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.