Accessing USB from Wine/Linux/ARM

Questions about Wine on Linux
Locked
atech
Level 1
Level 1
Posts: 7
Joined: Sat Aug 07, 2021 6:23 pm

Accessing USB from Wine/Linux/ARM

Post by atech »

Hello all , this is my first time posting in this forum ..I am running wine under linux(Twister OS Armbian) on a SBC (Orange Pi 4 with RK3399 SOC) and my target application is window executable *.exe . I am trying to access a USB hardware connected to USB port but facing problem , I tried running with command line and the *.exe file executes and the full GUI is visible BUT this windows executable is not able to see the USB device connected to USB port although the device is shown under lsusb .for better understanding I am attaching few screen shots which will be more helpful in understanding the problem , thank you.
atech
Level 1
Level 1
Posts: 7
Joined: Sat Aug 07, 2021 6:23 pm

Re: Accessing USB from Wine/Linux/ARM

Post by atech »

Screen shots attached....

three.png
second.png
first.png
atech
Level 1
Level 1
Posts: 7
Joined: Sat Aug 07, 2021 6:23 pm

Re: Accessing USB from Wine/Linux/ARM

Post by atech »

Dear All Forum Member...seems there is no solution for above mentioned USB issue ?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Accessing USB from Wine/Linux/ARM

Post by jkfloris »

this windows executable is not able to see the USB device connected to USB port although the device is shown under lsusb
Does the device work with Linux or does it require special Windows drivers?
Which USB device do you try to connect?
steve_johnson56
Level 2
Level 2
Posts: 11
Joined: Sun Jul 18, 2021 6:00 pm

Re: Accessing USB from Wine/Linux/ARM

Post by steve_johnson56 »

Also, please plug the device in and post back the output of lsusb
atech
Level 1
Level 1
Posts: 7
Joined: Sat Aug 07, 2021 6:23 pm

Re: Accessing USB from Wine/Linux/ARM

Post by atech »

steve_johnson56 wrote: Fri Aug 13, 2021 11:15 pm Also, please plug the device in and post back the output of lsusb
Hello All, First of really very sorry for this delayed reply ..
below is the lsusb output FYI >
lsusb.png
Device of interest is the entry with :-

Bus 003 Device 005: ID 0483:5750 STMicroelectronics LED badge -- mini LED display -- 11x44
atech
Level 1
Level 1
Posts: 7
Joined: Sat Aug 07, 2021 6:23 pm

Re: Accessing USB from Wine/Linux/ARM

Post by atech »

Anyone ?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Accessing USB from Wine/Linux/ARM

Post by jkfloris »

Does Wine recognize the device?
Is there a symbolic link to the device?

Code: Select all

ls -asl ~/.wine/dosdevices/
Do you have enough rights to access the device?
Can you use a native Linux program to access the device?

In the first screenshot you use the sudo command.
Please read: https://wiki.winehq.org/FAQ#Should_I_ru ... as_root.3F
atech
Level 1
Level 1
Posts: 7
Joined: Sat Aug 07, 2021 6:23 pm

Re: Accessing USB from Wine/Linux/ARM

Post by atech »

jkfloris wrote: Mon Aug 23, 2021 4:48 pm Does Wine recognize the device?
Is there a symbolic link to the device?

Code: Select all

[u][b][size=150]ls -asl ~/.wine/dosdevices/[/size][/b][/u]
F.Y.I
dosdevices.png
daveweaton
Level 2
Level 2
Posts: 23
Joined: Mon Aug 30, 2021 2:14 am

Re: Accessing USB from Wine/Linux/ARM

Post by daveweaton »

I'm not sure on how current this might be but you could try:

Code: Select all

sudo modprobe usbserial vendor=0x0483 product=0x5750[\code]
Then [code]dmesg
to see if the device was connected and assigned to a ttyusb device.
This is all from this link: [url]https://www.fir3net.com/UNIX/Linux/how- ... linux.html[/code]

It also indicates you may need to run minicom to set up the port parameters such as baud rate, etc.

Don't know if any of this is going to work or not or what impact your using sudo as noted by jkfloris may have.
daveweaton
Level 2
Level 2
Posts: 23
Joined: Mon Aug 30, 2021 2:14 am

Re: Accessing USB from Wine/Linux/ARM

Post by daveweaton »

BTW - I just noticed your post says ARM. Has the program been compiled to run on ARM? Are you using a hardware emulator for x86?
atech
Level 1
Level 1
Posts: 7
Joined: Sat Aug 07, 2021 6:23 pm

Re: Accessing USB from Wine/Linux/ARM

Post by atech »

daveweaton wrote: Mon Aug 30, 2021 3:29 pm BTW - I just noticed your post says ARM. Has the program been compiled to run on ARM? Are you using a hardware emulator for x86?
No dear its x86 windows native application .
daveweaton
Level 2
Level 2
Posts: 23
Joined: Mon Aug 30, 2021 2:14 am

Re: Accessing USB from Wine/Linux/ARM

Post by daveweaton »

Hummm, maybe "no dear - I'm using a hardware emulator box86 to emulate a x86 environment on ARM". Of course, that's just me dear. Perhaps you should post if the information in the link was of any help to you or not.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Accessing USB from Wine/Linux/ARM

Post by jkfloris »

Can you manually add the USB device? Read the Wiki for more information:
https://wiki.winehq.org/Wine_User%27s_G ... llel_Ports

There are some python scripts on github that also work with this device.
Do you get the LED display to work with such a program?
Locked