https://bugs.winehq.org/show_bug.cgi?id=40121
Bug ID: 40121 Summary: serial port issues with .NET applications Product: Wine Version: 1.9.3 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: winebugzilla@k2c42.dy.fi Distribution: ---
Created attachment 53604 --> https://bugs.winehq.org/attachment.cgi?id=53604 Output of NovaLCT Mars and MiniComPort
I tried to run NovaLCT Mars in wine (added it to appdb). http://novastar-led.com/down/software/Sync/NovaLCT-MarsV4.4.0Setup.zip
It didn't find any serial ports.
I was using dotnet20 and dotnet40 from winetricks.
Then I tried this: https://code.msdn.microsoft.com/windowsapps/SerialPort-Sample-in-VBNET-fb040...
When starting the serial port sample (MiniComPort.exe) it throws IndexOutOfRangeException.
By looking at the source code it seems that System.IO.Ports.SerialPort.GetPortNames returns an empty list.
If I ignore the exception, the rest of the MiniComPort program works. It can send and receive some bytes.
Inotifywait revealed that NovaLCT Mars doesn't open the ttyUSB device like the MiniComPort.exe does.
I also tried with wine-mono-4.5.6 but neither of those programs starts that way.
https://bugs.winehq.org/show_bug.cgi?id=40121
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40121
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Did you map any serial ports in the wine prefix folder before trying to run the program?
https://www.winehq.org/docs/wineusr-guide/misc-things-to-configure
https://bugs.winehq.org/show_bug.cgi?id=40121
--- Comment #2 from Mikko Tuumanen winebugzilla@k2c42.dy.fi --- I did map serial ports in the wine prefix. I ran both NovaLCT-Mars and the MiniComPort.exe in the same wineprefix.
https://bugs.winehq.org/show_bug.cgi?id=40121
--- Comment #3 from Mikko Tuumanen winebugzilla@k2c42.dy.fi --- NovaLCT-Mars 4.4.0 doesn't seem to be available any more, but 4.4.1 is here: http://novastar-led.com/File/software/
https://bugs.winehq.org/show_bug.cgi?id=40121
jmvb villeg.jm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |villeg.jm@gmail.com
--- Comment #4 from jmvb villeg.jm@gmail.com --- Did you solve it? Are you in OSX
https://bugs.winehq.org/show_bug.cgi?id=40121
--- Comment #5 from Mikko Tuumanen winebugzilla@k2c42.dy.fi --- No, I haven't solved this. This is only a guess, but perhaps NovaLCT mars gets a list of com ports like the MiniComPort.exe does and when the list is erroneously empty it just reports no com ports to the user.
I think the problem with MiniComPort.exe should be fixed first and if that doesn't help then do something else to fix NovaLCT-Mars.
And no, I haven't tried this on OS X.
https://bugs.winehq.org/show_bug.cgi?id=40121
Daniel Kuhn cheeef@swissonline.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cheeef@swissonline.ch
--- Comment #6 from Daniel Kuhn cheeef@swissonline.ch --- This issue still exists with all kind of .NET apps which communicate through COM-Ports.
Another example is: https://www.eltima.com/download/serial_port_monitor.exe
At least a workaround would be helpful. Regular Win32 apps seem to find the port just fine.
https://bugs.winehq.org/show_bug.cgi?id=40121
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |mountmgr.sys Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED
--- Comment #7 from Alex Henrie alexhenrie24@gmail.com --- Mono gets the list of serial ports from HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM: https://github.com/mono/mono/blob/e0e93f396d5f084dd2df09f705f1373d99872270/m...
So, this bug is a duplicate of bug 11811 which was fixed last year.
I did test serial_port_monitor.exe on Wine 3.3 and it correctly detected my USB serial port (plug and play, no configuration necessary).
*** This bug has been marked as a duplicate of bug 11811 ***
https://bugs.winehq.org/show_bug.cgi?id=40121
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alex Henrie alexhenrie24@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=40121
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download, hardware URL| |https://www.eltima.com/down | |load/serial_port_monitor.ex | |e
https://bugs.winehq.org/show_bug.cgi?id=40121
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|serial port issues with |.NET applications fail to |.NET applications |enumerate serial ports | |using | |'System.IO.Ports.SerialPort | |.GetPortNames' (missing | |'HKLM\HARDWARE\DeviceMap\ | |\Serialcomm' registry | |entries) CC| |focht@gmx.net