Application Does not See USB Device cp210x

Questions about Wine on Linux
Locked
kerner1000
Newbie
Newbie
Posts: 3
Joined: Sat Dec 28, 2019 12:30 pm

Application Does not See USB Device cp210x

Post by kerner1000 »

the application "BL-30/Datalogger.exe" needs to connect to usb, but it seems it does not see the attached device.

tail /var/log/syslog:

Code: Select all

usb 1-6: new full-speed USB device number 15 using xhci_hcd
usb 1-6: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-6: Product: CP2102 USB to UART Bridge Controller
usb 1-6: Manufacturer: Silicon Labs
usb 1-6: SerialNumber: 0001
cp210x 1-6:1.0: cp210x converter detected
usb 1-6: cp210x converter now attached to ttyUSB0
mtp-probe: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6"
mtp-probe: bus: 1, device: 15 was not an MTP device
snapd[1265]: hotplug.go:199: hotplug device add event ignored, enable experimental.hotplug
mtp-probe: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6"
mtp-probe: bus: 1, device: 15 was not an MTP device
ModemManager[1250]: <info>  Couldn't check support for device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6': not supported by any plugin
I edited the registry according to the user guide:
https://wiki.winehq.org/Wine_User%27s_G ... llel_Ports

Code: Select all

$ ls -lha ~/.wine/dosdevices/
total 8,0K
drwxr-xr-x 2 alex alex 4,0K Dez 28 18:27 .
drwxr-xr-x 4 alex alex 4,0K Dez 28 18:28 ..
lrwxrwxrwx 1 alex alex   10 Dez 28 18:09 c: -> ../drive_c
lrwxrwxrwx 1 alex alex   12 Dez 28 18:27 com1 -> /dev/ttyUSB0
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com10 -> /dev/ttyS9
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com11 -> /dev/ttyS10
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com12 -> /dev/ttyS11
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com13 -> /dev/ttyS12
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com14 -> /dev/ttyS13
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com15 -> /dev/ttyS14
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com16 -> /dev/ttyS15
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com17 -> /dev/ttyS16
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com18 -> /dev/ttyS17
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com19 -> /dev/ttyS18
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com2 -> /dev/ttyS1
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com20 -> /dev/ttyS19
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com21 -> /dev/ttyS20
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com22 -> /dev/ttyS21
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com23 -> /dev/ttyS22
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com24 -> /dev/ttyS23
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com25 -> /dev/ttyS24
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com26 -> /dev/ttyS25
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com27 -> /dev/ttyS26
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com28 -> /dev/ttyS27
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com29 -> /dev/ttyS28
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com3 -> /dev/ttyS2
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com30 -> /dev/ttyS29
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com31 -> /dev/ttyS30
lrwxrwxrwx 1 alex alex   11 Dez 28 18:27 com32 -> /dev/ttyS31
lrwxrwxrwx 1 alex alex   12 Dez 28 18:27 com33 -> /dev/ttyUSB0
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com4 -> /dev/ttyS3
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com5 -> /dev/ttyS4
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com6 -> /dev/ttyS5
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com7 -> /dev/ttyS6
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com8 -> /dev/ttyS7
lrwxrwxrwx 1 alex alex   10 Dez 28 18:27 com9 -> /dev/ttyS8
lrwxrwxrwx 1 alex alex    1 Dez 28 18:09 z: -> /
The device that should connect is /dev/ttyUSB0.

I assume the USB configuration is correct like this, but the application "BL-30/Datalogger.exe" does not show any USB device.

What else I could do to see whats wrong?

Many thanks!
kerner1000
Newbie
Newbie
Posts: 3
Joined: Sat Dec 28, 2019 12:30 pm

Re: Application Does not See USB Device cp210x

Post by kerner1000 »

Resolved this issue by setting the baud rate:

Code: Select all

sudo stty -F /dev/ttyUSB0 speed 38400
kerner1000
Newbie
Newbie
Posts: 3
Joined: Sat Dec 28, 2019 12:30 pm

Re: Application Does not See USB Device cp210x

Post by kerner1000 »

Also, the current user needs to be member of the "dialout" group:

Code: Select all

sudo usermod -a -G dialout alex
Locked