Detecting USB devices in Wine-environment for Spectrometer

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
vizier87
Newbie
Newbie
Posts: 1
Joined: Mon Aug 29, 2016 10:52 pm

Detecting USB devices in Wine-environment for Spectrometer

Post by vizier87 »

Hi guys,

First post here.

I have successfully installed the Avasoft 8 Spectrometer software on Wine on my Raspi Jessie. However, the Spectrometer connected via USB is not detected. I wonder if there are other patches in Wine which allows for USB devices to be emulated?

Although I have a feeling that it might be a bigger problem that I think. :cry:

Thanks.
Vizier87
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Detecting USB devices in Wine-environment for Spectromet

Post by dimesio »

If communication with the device is pure serial over USB, you might be able to get it to work by symlinking the device to a com port. https://wiki.winehq.org/Wine_User%27s_G ... llel_Ports
WAGNUM
Newbie
Newbie
Posts: 1
Joined: Tue Sep 06, 2016 11:41 am

Re: Detecting USB devices in Wine-environment for Spectromet

Post by WAGNUM »

dimesio wrote:If communication with the device is pure serial over USB, you might be able to get it to work by symlinking the device to a com port. https://wiki.winehq.org/Wine_User%27s_G ... llel_Ports
I'm also new to WINE, have it installed on my Mac. I too cannot get WINE to detect when I plug in a USB cord to an automotive controller. My Mac's system report does show the usb port is recognizing the automotive controller when plugged in, but the application running in WINE does not.

I read your link about symlinking, unfortunately I have no idea what this means or how to do this. Could someone walk me through this, very slowly? Thanks!!
thethinker
Level 1
Level 1
Posts: 9
Joined: Fri Dec 11, 2009 1:27 am

Re: Detecting USB devices in Wine-environment for Spectromet

Post by thethinker »

I'm going to bump this because I am having a very similar problem. I want to connect a spectrometer from SBIG and control it with some windows software. The USB device is indeed recognized in Linux (Ubuntu MATE in this case):

Code: Select all

$ lsusb
Bus 003 Device 009: ID 0d97:0101 Santa Barbara Instrument Group SBIG Astronomy Camera (with firmware)
And the software (CCDOps) installs and runs fine. Following similar advice from around the web (and the previous comment), we need to map the com ports to the USB ports. However, I am using wine-devel, version 2.11, and that appears to have already been done:

Code: Select all

$ ls -la ~/.wine/dosdevices/
total 12
drwxrwxr-x 2 cduston cduston 4096 Jul  7 12:48 .
drwxrwxr-x 4 cduston cduston 4096 Jul  7 12:50 ..
lrwxrwxrwx 1 cduston cduston   10 Jul  7 11:25 c: -> ../drive_c
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com1 -> /dev/ttyS0
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com10 -> /dev/ttyS9
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com11 -> /dev/ttyS10
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com12 -> /dev/ttyS11
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com13 -> /dev/ttyS12
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com14 -> /dev/ttyS13
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com15 -> /dev/ttyS14
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com16 -> /dev/ttyS15
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com17 -> /dev/ttyS16
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com18 -> /dev/ttyS17
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com19 -> /dev/ttyS18
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com2 -> /dev/ttyS1
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com20 -> /dev/ttyS19
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com21 -> /dev/ttyS20
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com22 -> /dev/ttyS21
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com23 -> /dev/ttyS22
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com24 -> /dev/ttyS23
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com25 -> /dev/ttyS24
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com26 -> /dev/ttyS25
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com27 -> /dev/ttyS26
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com28 -> /dev/ttyS27
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com29 -> /dev/ttyS28
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com3 -> /dev/ttyS2
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com30 -> /dev/ttyS29
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com31 -> /dev/ttyS30
lrwxrwxrwx 1 cduston cduston   11 Jul  7 12:48 com32 -> /dev/ttyS31
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com4 -> /dev/ttyS3
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com5 -> /dev/ttyS4
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com6 -> /dev/ttyS5
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com7 -> /dev/ttyS6
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com8 -> /dev/ttyS7
lrwxrwxrwx 1 cduston cduston   10 Jul  7 12:48 com9 -> /dev/ttyS8
lrwxrwxrwx 1 cduston cduston    8 Jul  7 12:15 d:: -> /dev/sr0
lrwxrwxrwx 1 cduston cduston   13 Jul  7 12:01 h: -> /home/cduston
lrwxrwxrwx 1 cduston cduston    1 Jul  7 11:25 z: -> /
However, the device is still not recognized by the software. Does anyone have any thoughts? The only thing I can think of is the *right* port is not being mapped - so how do I determine which port in /dev is pointing to my camera?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Detecting USB devices in Wine-environment for Spectromet

Post by dimesio »

Those are all plain serial ports; serial over USB ports would show up as /dev/ttyUSB*. The User's Guide has instructions on how to change Wine's default mapping: https://wiki.winehq.org/Wine_User%27s_G ... llel_Ports.

Note this will only work if your device really is serial over USB.
thethinker
Level 1
Level 1
Posts: 9
Joined: Fri Dec 11, 2009 1:27 am

Re: Detecting USB devices in Wine-environment for Spectromet

Post by thethinker »

dimesio wrote:Those are all plain serial ports; serial over USB ports would show up as /dev/ttyUSB*. The User's Guide has instructions on how to change Wine's default mapping: https://wiki.winehq.org/Wine_User%27s_G ... llel_Ports.

Note this will only work if your device really is serial over USB.
I appreciate the answer - it clarifies what I have been learning today about this problem. I'll edit the registry, but I am worried that my Linux system is configured differently. For instance, when I have both USB ports utilized (one split to keyboard/mouse, the other attached to this camera), I still don't have any entries that look like /dev/ttyUSB*. I do, however, have entries like /dev/usb/hiddev0 and /dev/usb/hiddev1. I assume these are the correct ones for serial over USB. I will probably try them both, but do you have any thoughts about that?

Thanks in advance.

(and I am quite sure the device I am interested in is serial over USB. For instance, the software used for this camera says "Windows for Serial and Parallel Port based cameras.")
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Detecting USB devices in Wine-environment for Spectromet

Post by dimesio »

Mice and keyboards aren't normally ttyUSB devices; mine are under /dev/input.
I do, however, have entries like /dev/usb/hiddev0 and /dev/usb/hiddev1.
That could be your spectrometer. Wine's HID support is very new and incomplete, but there are some instructions for testing: https://wiki.winehq.org/Hid. You'll need the latest development (not stable) release.
Locked