https://bugs.winehq.org/show_bug.cgi?id=52162
Bug ID: 52162 Summary: Ubuntu windows program has com1 the PIC micro programmer has usb device shows on /dev/ttyUSB0 Product: Wine Version: 6.23 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: usb Assignee: wine-bugs@winehq.org Reporter: mw0sbx@hotmail.com Distribution: ---
marc@SPUPERMICRO-X9DRH-iF:~/.wine/drive_c/windows$ wine --version wine-5.0 (Ubuntu 5.0-3ubuntu1)
Ubuntu - windows program has COM1 the PIC micro programmer has usb leed the device shows up using dmesg -w as /dev/ttyUSB0
program is called MicroPro.exe
tried editing the wine registry as stated online by adding
HKEY local machine >>> software >> wine >> ports
string value COM1 >> DATA /dev/ttyUSB0
dmesg -w [ 2059.674461] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2059.674466] usb 2-1.2: Product: USB <-> Serial [ 2059.674469] usb 2-1.2: Manufacturer: FTDI [ 2059.675373] ftdi_sio 2-1.2:1.0: FTDI USB Serial Device converter detected [ 2059.675448] usb 2-1.2: Detected FT232BM [ 2059.675906] usb 2-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
Still doesn't work no matter what i try program keeps reporting problem with coms port.
https://bugs.winehq.org/show_bug.cgi?id=52162
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #1 from joaopa jeremielapuree@yahoo.fr --- Not a blocker. Severity is normal. And 5.0.3 is very old. At first, you need to update to the latest wine: wine-6.23
If the bug still occurs, please report again.
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #2 from Marc mw0sbx@hotmail.com --- UPDATED WINE to 6.23
marc@SPUPERMICRO-X9DRH-iF:~/.wine/drive_c/diypgmrs$ wine --version wine-6.23
Ubuntu - windows program has COM1 the PIC micro programmer has usb leed the device shows up using dmesg -w as /dev/ttyUSB0
program is called MicroPro.exe
tried editing the wine registry as stated online by adding
HKEY local machine >>> software >> wine >> ports
string value COM1 >> DATA /dev/ttyUSB0
dmesg -w [ 2059.674461] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2059.674466] usb 2-1.2: Product: USB <-> Serial [ 2059.674469] usb 2-1.2: Manufacturer: FTDI [ 2059.675373] ftdi_sio 2-1.2:1.0: FTDI USB Serial Device converter detected [ 2059.675448] usb 2-1.2: Detected FT232BM [ 2059.675906] usb 2-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
Still doesn't work
https://bugs.winehq.org/show_bug.cgi?id=52162
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Severity|blocker |normal Status|UNCONFIRMED |NEEDINFO CC| |o.dierick@piezo-forte.be
--- Comment #3 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Issues in a single application are severity level 'normal'. Read more about severity level descriptions there: https://wiki.winehq.org/Bugs#severity
Did you follow the guide there?: https://wiki.winehq.org/Wine_User%27s_Guide#Serial_and_Parallel_Ports
Do you see a symbolic link com1 → /dev/ttyUSB0 in ~/.wine/dosdevices?
Check that your user has read-write access to the /dev/ttyUSB0 device file. What is the result of 'ls -l /dev/ttyUSB0'?
Please attach a WINEDEBUG=+int terminal output. Instruction to get a debugging log can be found there: https://wiki.winehq.org/FAQ#get_log
Regards.
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #4 from Marc mw0sbx@hotmail.com --- crw-rw---- 1 root dialout 188, 0 Dec 5 11:56 /dev/ttyUSB0
marc@SPUPERMICRO-X9DRH-iF:~/.wine/dosdevices$ ls -l com1 lrwxrwxrwx 1 marc marc 12 Dec 5 13:06 com1 -> /dev/ttyUSB0
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #5 from Marc mw0sbx@hotmail.com --- marc@SPUPERMICRO-X9DRH-iF:~/.wine$ ls -l ~/.wine/dosdevices/ total 0 lrwxrwxrwx 1 marc marc 10 Dec 3 21:54 c: -> ../drive_c lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com1 -> /dev/ttyUSB0 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com10 -> /dev/ttyS7 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com11 -> /dev/ttyS8 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com12 -> /dev/ttyS9 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com13 -> /dev/ttyS10 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com14 -> /dev/ttyS11 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com15 -> /dev/ttyS12 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com16 -> /dev/ttyS13 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com17 -> /dev/ttyS14 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com18 -> /dev/ttyS15 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com19 -> /dev/ttyS16 lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com2 -> /dev/ttyUSB1 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com20 -> /dev/ttyS17 lrwxrwxrwx 1 marc marc 10 Dec 3 23:00 com200 -> /dev/ttyS0 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com21 -> /dev/ttyS18 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com22 -> /dev/ttyS19 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com23 -> /dev/ttyS20 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com24 -> /dev/ttyS21 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com25 -> /dev/ttyS22 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com26 -> /dev/ttyS23 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com27 -> /dev/ttyS24 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com28 -> /dev/ttyS25 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com29 -> /dev/ttyS26 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com3 -> /dev/ttyS0 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com30 -> /dev/ttyS27 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com31 -> /dev/ttyS28 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com32 -> /dev/ttyS29 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com33 -> /dev/ttyS30 lrwxrwxrwx 1 marc marc 11 Dec 5 17:49 com34 -> /dev/ttyS31 lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com35 -> /dev/ttyUSB0 lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com36 -> /dev/ttyUSB1 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com4 -> /dev/ttyS1 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com5 -> /dev/ttyS2 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com6 -> /dev/ttyS3 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com7 -> /dev/ttyS4 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com8 -> /dev/ttyS5 lrwxrwxrwx 1 marc marc 10 Dec 5 17:49 com9 -> /dev/ttyS6 lrwxrwxrwx 1 marc marc 8 Dec 3 21:54 d:: -> /dev/sr0 lrwxrwxrwx 1 marc marc 19 Dec 3 21:54 e: -> '/media/marc/My Data' lrwxrwxrwx 1 marc marc 8 Dec 3 21:54 e:: -> /dev/sr1 lrwxrwxrwx 1 marc marc 1 Dec 3 21:54 z: -> /
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #6 from Marc mw0sbx@hotmail.com --- In wine registry I have under ports
COM1 /dev/ttyUSB0 COM2 /dev/ttyUSB1
i noticed in dosdevices there is
lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com1 -> /dev/ttyUSB0 lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com2 -> /dev/ttyUSB1
lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com35 -> /dev/ttyUSB0 lrwxrwxrwx 1 marc marc 12 Dec 5 17:49 com36 -> /dev/ttyUSB1
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #7 from Marc mw0sbx@hotmail.com --- http://www.kitsrus.com/pic.html
The software i was trying to get to run on coms USB port is here you obviously need a pic programmer to attach to it.
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #8 from Marc mw0sbx@hotmail.com --- I did sudo wine MicroPro.exe and run as root the coms now comes up in the program and you can change the board type but it still says error resetting board.
but i also see this in terminal
marc@SPUPERMICRO-X9DRH-iF:~/.wine/drive_c/diypgmrs$ sudo wine micropro.exe [sudo] password for marc: 0074:err:plugplay:enumerate_new_device Unable to install a function driver for device L"WINEBUS\VID_845E&PID_0001\0&0000&0&0". 0074:err:plugplay:enumerate_new_device Unable to install a function driver for device L"WINEBUS\VID_845E&PID_0002\0&0000&0&0". 0050:fixme:imm:ImeSetActiveContext (0x159eb0, 0): stub 0050:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000159EB0): stub 002c:fixme:imm:ImeSetActiveContext (0x15bff0, 1): stub 002c:fixme:imm:ImmReleaseContext (000000000001004C, 000000000015BFF0): stub 00e0:err:setupapi:create_dest_file failed to create L"C:\windows\system32\notepad.exe" (error=80) 00e8:fixme:imm:ImeSetActiveContext (0x3f840, 1): stub 00e8:fixme:imm:ImmReleaseContext (0000000000010092, 000000000003F840): stub 00e8:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20 00e8:fixme:file:NtLockFile I/O completion on lock not implemented yet 00e8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION 00e8:err:mscoree:LoadLibraryShim error reading registry key for installroot 00e8:err:mscoree:LoadLibraryShim error reading registry key for installroot 00e8:err:mscoree:LoadLibraryShim error reading registry key for installroot 00e8:err:mscoree:LoadLibraryShim error reading registry key for installroot 00fc:fixme:file:NtLockFile I/O completion on lock not implemented yet 00fc:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION 00fc:err:mscoree:LoadLibraryShim error reading registry key for installroot 00fc:err:mscoree:LoadLibraryShim error reading registry key for installroot 00fc:err:mscoree:LoadLibraryShim error reading registry key for installroot 00fc:err:mscoree:LoadLibraryShim error reading registry key for installroot 00fc:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5) 00fc:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5) 00e8:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1) 00e8:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1) wine: configuration in L"/root/.wine" has been updated. 0024:fixme:imm:ImeSetActiveContext (0x531da8, 1): stub 0024:fixme:imm:ImmReleaseContext (000100EC, 00531DA8): stub 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub 0170:err:comm:stop_waiting failed to clear waiting state: 0xc0000008 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub 0194:err:comm:stop_waiting failed to clear waiting state: 0xc0000008 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub 019c:err:comm:stop_waiting failed to clear waiting state: 0xc0000008 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub 01a8:err:comm:stop_waiting failed to clear waiting state: 0xc0000008 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub 0024:fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #9 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Marc from comment #8)
I did sudo wine MicroPro.exe and run as root the coms now comes up in the program and you can change the board type but it still says error resetting board.
Hello,
Running Wine as root has broken your prefix. Please follow instructions in section 6.2 and 6.3 of the FAQ to fix it: https://wiki.winehq.org/FAQ#Should_I_run_Wine_as_root.3F
However, if it works as root, it means that it's a permission issue.
Is your user in the 'dialout' group? You can check if your user is in the 'dialout' group with the command 'groups'. If it doesn't list 'dialout', add your user to the group with the command: sudo adduser marc dialout. logout and login your user for the new group to take effect.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #10 from Marc mw0sbx@hotmail.com --- Did the folowing
sudo chown -R $USER:$USER .wine
Then
sudo adduser marc dialout
Then
marc@SPUPERMICRO-X9DRH-iF:~/.wine/drive_c/diypgmrs$ groups marc adm cdrom sudo dip plugdev lpadmin lxd sambashare
So checked as it wasnt showing like you said but trying to add again it said this
[sudo] password for marc: The user `marc' is already a member of `dialout'.
so now i will reboot and see if it takes effect.
https://bugs.winehq.org/show_bug.cgi?id=52162
--- Comment #11 from Marc mw0sbx@hotmail.com --- Runs as normal user now can change coms port on program and board type but board still disconnects from the program.
Need to find a windows machine and verify board and program are ok.
https://bugs.winehq.org/show_bug.cgi?id=52162
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|usb |serial
https://bugs.winehq.org/show_bug.cgi?id=52162
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |hardware