Forums

USB port access

Auteur Réponses
gregk Dimanche 10 Octobre 2021 à 6:36
gregkAnonymous

I am working to get an app working, that connects to external hardware (a drone). It is software that updates and configures the drone. The app loads fine but fails to detect the connected equipment. I reviewed the debug log file, and the details are below. Any suggestions on where to start?

[10/10/21 12:04:40] - Running wine- NLDApp.exe (Working directory : /Users/gregk/Library/PlayOnMac/wineprefix/nld/drive_c/Program Files)
adb.exe F 10-10 12:04:45   248   252 sysdeps_win32.cpp:2678] _wenviron is not set, did you link with -municode?
[10/10/21 12:18:05] - Running wine- /Users/gregk/Library/PlayOnMac/wineprefix/nld/drive_c/Program Files/NLDApp.exe (Working directory : /Users/gregk/Library/PlayOnMac/wineprefix/nld/drive_c/Program Files)
0094:err:plugplay:process_IOService_Device object 0x6d03
0094:err:plugplay:process_IOService_Device object 0x6f03
0094:err:plugplay:process_IOService_Device Unable to create plug in interface for USB deviceobject 0x8803
0094:err:plugplay:process_IOService_Device object 0x8703
0094:err:plugplay:process_IOService_Device object 0x7103
0094:err:plugplay:process_IOService_Device object 0x8503
0094:err:plugplay:process_IOService_Device object 0x8403
0024:fixme:seh:get_thread_times not implemented on this platform
0024:fixme:server:invoke_system_apc syscall frame changed in APC function, frame 0x0, saved_frame 0x32fce4.
0024:fixme:win:RegisterDeviceNotificationA The notification filter will requires an A->W when filter support is implemented
0024:fixme:service:I_ScRegisterDeviceNotification Notification filters are not yet implemented.
adb.exe F 10-10 12:18:11   248   252 sysdeps_win32.cpp:2678] _wenviron is not set, did you link with -municode?

 

Dadu042 Dimanche 10 Octobre 2021 à 11:27
Dadu042

USB ports seems poorly supported by Wine.

gregk Dimanche 10 Octobre 2021 à 11:54
gregkAnonymous

Some more data in case anyone has ideas...

The output below relates to the device that appears after connecting. I saw one article and tried to symlink - but still no good.

https://wiki.winehq.org/Wine_User%27s_Guide#Serial_and_Parallel_Ports

 

    +-o DJI@14300000  <class AppleUSBDevice, id 0x10000797e, registered, matched, active, busy 0 (216 ms), retain 26>
        {
          "sessionID" = 132021557337527
          "iManufacturer" = 2
          "bNumConfigurations" = 1
          "idProduct" = 31
          "bcdDevice" = 65535
          "Bus Power Available" = 250
          "USB Address" = 39
          "bMaxPacketSize0" = 64
          "iProduct" = 3
          "iSerialNumber" = 4
          "bDeviceClass" = 0
          "Built-In" = No
          "locationID" = 338690048
          "bDeviceSubClass" = 0
          "bcdUSB" = 512
          "USB Product Name" = "DJI"
          "PortNum" = 3
          "non-removable" = "no"
          "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
          "bDeviceProtocol" = 0
          "IOUserClientClass" = "IOUSBDeviceUserClientV2"
          "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=4,"CapabilityFlags"=32768,"MaxPowerState"=4,"DriverPowerState"=4}
          "kUSBCurrentConfiguration" = 1
          "Device Speed" = 2
          "USB Vendor Name" = "DJI"
          "idVendor" = 11427
          "uid" = "USB:2CA3001F456789ABCDEF"
          "IOGeneralInterest" = "IOCommand is not serializable"
          "USB Serial Number" = "0123456789ABCDEF"
          "IOClassNameOverride" = "IOUSBDevice"
        }
 

Edité par gregk