USBDriverKit

RSS for tag

Develop drivers for USB-based devices using USBDriverKit.

Posts under USBDriverKit tag

192 Posts

Post

Replies

Boosts

Views

Activity

IOKit: Retrieving USB Name, Vendor ID and Product ID after Serial Connection.
Firstly let me start by saying I'm totally new to using IOKit and fairly new to Swift. That said, I've successfully managed to detect the insertion and removal of my USB serial device in my Swift, MacOS app. Therefore calling ls /dev/tty.* lists the same devices as via the IOServiceAddMatchingNotification(notifyPort, kIOFirstMatchNotification, IOServiceMatching("IOSerialBSDClient"), matchingCallback, selfPtr, &matchedIterator) call inside the resulting callback. This is a great start. As you can imagine telling the user you've found "/dev/tty.usbmodem[some number]" isn't particularly user friendly. So once I retrieve the IODialinDevice property from the aforementioned callback is there a way for me to lookup the USB device's Vendor ID and Product ID and ideally retrieve the human readable name for said USB device, so I can then expose that to the User? Thanks.
4
0
3.9k
Oct ’21
Activating a USB modem after Big Sur restart
I have a USB modem that worked fine under Mojave. With Big Sur (11.2.3), the device is not recognized immediately after a restart (/dev/cu.usbmodem123456781 does not exist). However, if I unplug the device and then replug into the USB port, /dev/cu.usbmodem123456781 exists and can be used. I'm accessing the device programmatically in a macOS app, using Objective-C. After a restart, System Report correctly lists the USB modem (even before unplug/replug) as follows: USB Modem:   Product ID: 0x1340   Vendor ID: 0x0572 (Conexant Systems, Inc.)   Version: 1.00   Serial Number: 12345678   Speed: Up to 12 Mb/s   Manufacturer: Conexant   Location ID: 0x14110000 / 5   Current Available (mA): 500   Extra Operating Current (mA): 0 What can I do so that /dev/cu.usbmodem123456781 exists after a restart?
2
0
2.1k
Oct ’21
Urgent! About "Provisioning Profile" request
We are the developer team of Nanjing Qinheng Microelectronics Co., Ltd. Recently, we have carried out device driver development and system adaptation for a variety of USB-to-serial chips. At present, our project is stagnant in the release stage because the "Provisioning Profile" does not contain our vendor ID(0x1A86). The release process of this driver will affect millions of users worldwide. We hope that the "Provisioning Profile" can be completed more quickly. This is very important for our customer and the experience of Apple's Big Sur.
2
0
1.4k
Sep ’21
External Accessory: USB endpoints Configuration in iOS
Hi I want to develop an iOS application running on iPAD Pro, which communicates to the custom external accessory which is connected to iPAD over USB interface. The accessory is MFI Compatible. The accessory supports multiple end points "Control, Interrupt, 4 Bulk In & 4 Bulk Out". I need help to understand what are the options in iOS to add support for USB accessory with multiple endpoints.
0
0
798
Sep ’21
DriverKit for Camera. Is Apple going to deliver something like CameraKit?
Apple presented how to Create audio drivers with DriverKit on the latest WWDC 2021. Video presentation: https://developer.apple.com/videos/play/wwdc2021/10190 Code sample: https://developer.apple.com/documentation/audiodriverkit/creating_an_audio_device_driver We need a similar approach for cameras. The audio driver mentioned above can be compiled using the new Xcode 13 beta. So this approach is in progress. We need to develop a custom driver for the camera. Is there a solution in DriverKit for cameras? Is it planned? Should we develop a driver from scratch using USBDriverKit? Any suggestions are appreciated.
0
0
832
Sep ’21
The entitlement, USB Transport and UserClient Access, doesn't work
Hi, I have requested USB Transport and UserClient Access successfully, but the applications containing the entitlemet don't work. driver.dext: User-mode usb driver Driver.app: Application to install the user-mode driver Error Termination Reason: Namespace CODESIGNING, Code 0x01 ・entitlement file of driver.dext <key>com.apple.developer.driverkit</key> <true/> <key>com.apple.developer.driverkit.transport.usb</key> <array> <dict> <key>idVendor</key> <integer>****</integer> </dict> </array> ・entitlement file of Driver.app <key>com.apple.developer.driverkit.userclient-access</key> <array> <string>****bundle id of driver.dext</string> </array> ・driver.dext provisioning profile CMS command <key>Entitlements</key> <dict> <key>com.apple.developer.driverkit.transport.usb</key> <array> </array> <key>com.apple.developer.driverkit</key> <true/> <key>com.apple.application-identifier</key> <string>bundle id</string> <key>keychain-access-groups</key> <array> <string>****</string> </array> <key>com.apple.developer.team-identifier</key> <string>****</string> </dict> ・Driver.app provisioning profile CMS command <key>Entitlements</key> <dict> <key>com.apple.developer.system-extension.install</key> <true/> <key>com.apple.application-identifier</key> <string>bundle ID</string> <key>keychain-access-groups</key> <array> <string>****.*</string> </array> <key>com.apple.developer.team-identifier</key> <string>****</string> </dict> Would you let me know the solutions if you have?
1
0
1.1k
Aug ’21
DriverKit - single process with multiple services
I'm working on custom solution that uses USB device/interface drivers. For correct setup I need ability to communicate between my own Services, declared in IOKit Personalities of my DEXT. At the moment I'm seeing the one way to do it via some shared state. But DriverKit by default launches each USB service in separate process when device is connected. Documentation says that there is "IOUserServerOneProcess" key could be declared in Info.plist. But seems it does not work: all my USB services run in different processes. Could anybody suggest a way how to interact between own DriverKit services or run them in context of the single process?
5
0
2.7k
Aug ’21
The entitlement,com.apple.developer.driverkit.transport.usb, cannot take effect.
Hello, I have requested com.apple.developer.driverkit.transport.usb successfully, but it cannot be used according to the steps provided by Apple. The console has an error log:“Unsatisfied entitlements: com.apple.developer.driverkit.transport.usb”, has anyone encountered the same problem , If you have solved it, please tell me the solution. Thank you
6
0
2.8k
Aug ’21
IOKit: Retrieving USB Name, Vendor ID and Product ID after Serial Connection.
Firstly let me start by saying I'm totally new to using IOKit and fairly new to Swift. That said, I've successfully managed to detect the insertion and removal of my USB serial device in my Swift, MacOS app. Therefore calling ls /dev/tty.* lists the same devices as via the IOServiceAddMatchingNotification(notifyPort, kIOFirstMatchNotification, IOServiceMatching("IOSerialBSDClient"), matchingCallback, selfPtr, &matchedIterator) call inside the resulting callback. This is a great start. As you can imagine telling the user you've found "/dev/tty.usbmodem[some number]" isn't particularly user friendly. So once I retrieve the IODialinDevice property from the aforementioned callback is there a way for me to lookup the USB device's Vendor ID and Product ID and ideally retrieve the human readable name for said USB device, so I can then expose that to the User? Thanks.
Replies
4
Boosts
0
Views
3.9k
Activity
Oct ’21
USB Accessories not work
Please help me, my ipad pro 2020 after update iPadOS 15 usb acc not recognized. I tried to connect my ext keyboard, mouse, or sd card and my ipad not recognized the acc. I was turn on USB Acc in menu FaceID. Please help me. Before Update it's works fine
Replies
0
Boosts
0
Views
511
Activity
Oct ’21
Activating a USB modem after Big Sur restart
I have a USB modem that worked fine under Mojave. With Big Sur (11.2.3), the device is not recognized immediately after a restart (/dev/cu.usbmodem123456781 does not exist). However, if I unplug the device and then replug into the USB port, /dev/cu.usbmodem123456781 exists and can be used. I'm accessing the device programmatically in a macOS app, using Objective-C. After a restart, System Report correctly lists the USB modem (even before unplug/replug) as follows: USB Modem:   Product ID: 0x1340   Vendor ID: 0x0572 (Conexant Systems, Inc.)   Version: 1.00   Serial Number: 12345678   Speed: Up to 12 Mb/s   Manufacturer: Conexant   Location ID: 0x14110000 / 5   Current Available (mA): 500   Extra Operating Current (mA): 0 What can I do so that /dev/cu.usbmodem123456781 exists after a restart?
Replies
2
Boosts
0
Views
2.1k
Activity
Oct ’21
Urgent! About "Provisioning Profile" request
We are the developer team of Nanjing Qinheng Microelectronics Co., Ltd. Recently, we have carried out device driver development and system adaptation for a variety of USB-to-serial chips. At present, our project is stagnant in the release stage because the "Provisioning Profile" does not contain our vendor ID(0x1A86). The release process of this driver will affect millions of users worldwide. We hope that the "Provisioning Profile" can be completed more quickly. This is very important for our customer and the experience of Apple's Big Sur.
Replies
2
Boosts
0
Views
1.4k
Activity
Sep ’21
External Accessory: USB endpoints Configuration in iOS
Hi I want to develop an iOS application running on iPAD Pro, which communicates to the custom external accessory which is connected to iPAD over USB interface. The accessory is MFI Compatible. The accessory supports multiple end points "Control, Interrupt, 4 Bulk In & 4 Bulk Out". I need help to understand what are the options in iOS to add support for USB accessory with multiple endpoints.
Replies
0
Boosts
0
Views
798
Activity
Sep ’21
DriverKit for Camera. Is Apple going to deliver something like CameraKit?
Apple presented how to Create audio drivers with DriverKit on the latest WWDC 2021. Video presentation: https://developer.apple.com/videos/play/wwdc2021/10190 Code sample: https://developer.apple.com/documentation/audiodriverkit/creating_an_audio_device_driver We need a similar approach for cameras. The audio driver mentioned above can be compiled using the new Xcode 13 beta. So this approach is in progress. We need to develop a custom driver for the camera. Is there a solution in DriverKit for cameras? Is it planned? Should we develop a driver from scratch using USBDriverKit? Any suggestions are appreciated.
Replies
0
Boosts
0
Views
832
Activity
Sep ’21
USB Hub not working since MacOS Big Sur update
2019 16 inch Mac book pro. Since updating to MacOS Big Sur my USB C hub isn't being recognised or being supplied power. I have checked with my friend's USB hub which works fine. Product is a Dodocool.
Replies
4
Boosts
0
Views
4.2k
Activity
Aug ’21
The entitlement, USB Transport and UserClient Access, doesn't work
Hi, I have requested USB Transport and UserClient Access successfully, but the applications containing the entitlemet don't work. driver.dext: User-mode usb driver Driver.app: Application to install the user-mode driver Error Termination Reason: Namespace CODESIGNING, Code 0x01 ・entitlement file of driver.dext <key>com.apple.developer.driverkit</key> <true/> <key>com.apple.developer.driverkit.transport.usb</key> <array> <dict> <key>idVendor</key> <integer>****</integer> </dict> </array> ・entitlement file of Driver.app <key>com.apple.developer.driverkit.userclient-access</key> <array> <string>****bundle id of driver.dext</string> </array> ・driver.dext provisioning profile CMS command <key>Entitlements</key> <dict> <key>com.apple.developer.driverkit.transport.usb</key> <array> </array> <key>com.apple.developer.driverkit</key> <true/> <key>com.apple.application-identifier</key> <string>bundle id</string> <key>keychain-access-groups</key> <array> <string>****</string> </array> <key>com.apple.developer.team-identifier</key> <string>****</string> </dict> ・Driver.app provisioning profile CMS command <key>Entitlements</key> <dict> <key>com.apple.developer.system-extension.install</key> <true/> <key>com.apple.application-identifier</key> <string>bundle ID</string> <key>keychain-access-groups</key> <array> <string>****.*</string> </array> <key>com.apple.developer.team-identifier</key> <string>****</string> </dict> Would you let me know the solutions if you have?
Replies
1
Boosts
0
Views
1.1k
Activity
Aug ’21
Can I parse a file on a USB drive from IOS? (Eg OTG cable to iPhone)
Can I parse a file on a USB drive from IOS? (Eg OTG cable to iPhone). Is USB device that mounts as file system normally, e.g. on MacBook Which library/framework to use? Or is it possible from iPad if not from iPhone?
Replies
2
Boosts
0
Views
1.8k
Activity
Aug ’21
USB-C ports
Is it possible that one of my USB-C Ports would be disabled after updating to the Monterrey beta on a MacBook Air?
Replies
0
Boosts
0
Views
435
Activity
Aug ’21
DriverKit - single process with multiple services
I'm working on custom solution that uses USB device/interface drivers. For correct setup I need ability to communicate between my own Services, declared in IOKit Personalities of my DEXT. At the moment I'm seeing the one way to do it via some shared state. But DriverKit by default launches each USB service in separate process when device is connected. Documentation says that there is "IOUserServerOneProcess" key could be declared in Info.plist. But seems it does not work: all my USB services run in different processes. Could anybody suggest a way how to interact between own DriverKit services or run them in context of the single process?
Replies
5
Boosts
0
Views
2.7k
Activity
Aug ’21
The entitlement,com.apple.developer.driverkit.transport.usb, cannot take effect.
Hello, I have requested com.apple.developer.driverkit.transport.usb successfully, but it cannot be used according to the steps provided by Apple. The console has an error log:“Unsatisfied entitlements: com.apple.developer.driverkit.transport.usb”, has anyone encountered the same problem , If you have solved it, please tell me the solution. Thank you
Replies
6
Boosts
0
Views
2.8k
Activity
Aug ’21