USBDriverKit

RSS for tag

Develop drivers for USB-based devices using USBDriverKit.

Posts under USBDriverKit tag

192 Posts

Post

Replies

Boosts

Views

Activity

DriverKit entitlement for USB transport - support all vendor id's
Hey, We are developing a dext that would like to match with all USB devices, no matter the vendor. We use VendorID = * in the plist of the Dext to help achieve this when running it locally without entitlements. I know that the transport.usb entitlement requires a list of Vendor id's, but is it possible to receive an entitlement which is suitable for all VID's? Kind of like this: <key>com.apple.developer.driverkit.transport.usb</key> <array> <dict> <key>idVendor</key> <string>*</string> </dict> </array> Thanks
0
0
801
Feb ’22
Lack of Vendor ID for “USB transport" entitlement and Can't find "userclient-access" for AppID
I requested “USB transport " and "userclient-access" entitlements to Apple and they has approved. Apple team said I should create entitlement file and "transport.usb" entitlement should contain Vendor ID. I created also AppID and Provisionig profiles. After that, I build the Xcode project and the application doesn't work. I have two questions. Provisioning profile contains transport.usb entitlement "without" Vendor ID. Should it contain Vendor ID too? When I create AppID, I can choose "Additional Capabilities", but I can not find "userclient-access". How can I set the entitlement?
1
1
1.2k
Feb ’22
usb to serial / virtual COM
Dear All, I have looked for on this forum an answer to this question : it seems complicated and also depend of the MAC OS version. In fact, my team has developed an USB device. This device works on Windows OS. We have sold the product, it works on different OS versions (7, 10 and 11) This device works also on raspberry PI (linux core). Into these both OS, the product is detected like a serial port : I can use basic application of check that my product is perfectly functional. Now I want use it on MAC OS, my device appears into the list of USB components connected to my MAC. However I'm not able to indicate (or force) the serial port. I read lot of things, kext? ,,, could depend of MAC version however I cannot found a clear process to help me to install a virtual COM on my MAC OS. Do you have link to other forum (more hardware may be)? Do you have any technical documentation about this topic? regards, fu154
0
0
934
Jan ’22
External usb foot pedal driver generates unexpectedly mouse click NSEvents for macOS Monterey
External usb foot pedal driver should not generate mouse click NSEvents In Monterey external usb foot pedal driver unexpectedly also acts as a mouse device and generates NSLeftMouseDown/NSRightMouseDown events. If I click the middle button of external usb foot pedal and then NSRightMouseDown gets received then it has to be a system problem (or a driver problem) How to solve this issue?
4
0
1.5k
Jan ’22
USB issues with Big Sur
Hi, is anyone else having major with their USB ports using Big Sur ? every time I attach an Ex.HD the laptop crashes, on the odd occasion I have got to the point where I can open the icon of said Ex.HD but then it crashes. This really not good as I can't even plug-in my TimeMachine Ex.HD Anyone ???
14
0
6.8k
Dec ’21
SCSI write(10) command over USB
I'm developing an application in Objective C that works on vendor specific commands of SD cards using IOUSBHostPipe. These vendor SCSI passthrough commands are working fine. But when I try to issue a SCSI write(10) command, it seems to hang. The same implementation when done on Windows seems to be working fine. Is there a limitation to issuing a SCSI write(10) command in macOS? I'm a bit new to the macOS environment and would really appreciate some pointers to references that I can look into or any alternatives to this problem. Thanks in advance. Much appreciated :)
0
0
928
Dec ’21
AX88179 Drivers for Big Sur 11.0
Well it seems that the drivers for the ethernet adapters are probably going to need updating. Does anyone know where I can find the updated driver for Big Sur? I had this issue with the last beta and just remembered it now that I'm without an ethernet adapter to use. I use the 3 Gig adapter from Amazon Basics and it's worked excellent.
86
0
66k
Dec ’21
High CPU Usage for low latency USBDriverKit Audio Driver
I'm using USBDriverKit to write an audio driver for a High Speed USB device. In an attempt to understand the difference between DriverKit Extension and Kernel Extension latencies, I'm dispatching individual isochronous microframes that for this device each account for a duration 125µs, or 6 samples at 48kHz. I don't yet know what kind of latency I'm actually getting but I was surprised to see a high CPU usage of ~11% on a 512GB M1 mac mini running Big Sur 11.6. That's 8000 IsochIO() calls and 8000 completion callbacks per second. Instruments.app tells me that most of my time (60%) is being spent inside mach_msg, as part of a remote procedure call. Multiple questions occur to me: is this normal? should I expect lower CPU usage? isn't mach_msg blocking? shouldn't CPU usage be low? don't low latency audio folks avoid things like remote procedure calls? is seeking low latency throughput with USBDriverKit futile? does Monterey's AudioDriverKit enable lower latency, or is it a convenience API?
1
0
1.4k
Nov ’21
Перестали обнаруживаться USB и MicroSD
Добрый день, после перехода на MacOS Montaray, при подключении хаба Canyon, (сам он при этом работает, индикатор подсвечивается, зарядку через него идет) перестали работать USB 2.0 , 3.0 и MicroSD. Ранее на BigSur все было корректно, как теперь работать за ПК? Нужно перекидывать фото с MicroSD, пользоваться флешками и внешними накопителями
0
0
580
Nov ’21
app can not be minimized or full screen when running as root user
app can not be minimized or full screen when running as root user, due to macOS12 requests running as root user when an app trying to control usb device, such as the uvc camera controlled through uvc protocol, this is unnecessary before 12. how can i solve this issue, either control the uvc camera through uvc protocol without elevating the app's privilege, or app can be minimized when running as root user.
0
0
790
Nov ’21
USB ports, camera and sound on monitor not working on Monterey
Hi, yesterday I upgraded my Macbook Pro M1 to MacOS Monterey. My Monitor (HP Envy) has USB ports, an inbuilt camera and a bang & olufsen sound system. All of this is not working anymore, which is quite a problem since I need it for my full working equipment. The monitor is connected via USB-C. The monitor is still working (video signal) and charging the Macbook. The issue seems to exist for a lot USB-C hubs as well. Please fix it - I can´t really use Monterey like this. Many thanks!
1
0
1.4k
Nov ’21
M1-Macbook needs to restart to recognize USB-HID device.
We developed a C++ application to control our HID USB device, and it seems that the first time we connect our HID USB device to a brand new M1 Macbook, our application cannot detect this device, and we need to restart Macbook to recognize the device. After then, everything is working fine, we can unplug and plug the USB device without restarting Macbook for our application to detect this device. Here is our theory on why a restart is needed to "bootstrap" the device detection: M1 Macbook doesn't come with HID driver included, so the first time a HID device is connected, M1 Macbook need to install HID driver in the background to make it work. -- Can someone confirm this? Or maybe there are other reasons for the need to restart? We are using IOHIDManager from IOKit for the HID operations. Thanks!
0
0
906
Oct ’21
Default USB-C current without USB power delivery negotiation
Hi, We developed a Usb device, and we experience an issue when we tried to use it on a MacBook M1 (Apple Silicon). It seems that the MacBook M1 (and probably other models) advertise a default USB Current mode of 7.5Watt (1.5A@5V). When it also exists a 15 Watt mode (3A@5V). Can someone confirm that we understood correctly ? and is there a way to change the default USB Current to 15 Watt without USB-PD negotiation (we don't have it on our device). Thanks.
0
0
621
Oct ’21
DriverKit entitlement for USB transport - support all vendor id's
Hey, We are developing a dext that would like to match with all USB devices, no matter the vendor. We use VendorID = * in the plist of the Dext to help achieve this when running it locally without entitlements. I know that the transport.usb entitlement requires a list of Vendor id's, but is it possible to receive an entitlement which is suitable for all VID's? Kind of like this: <key>com.apple.developer.driverkit.transport.usb</key> <array> <dict> <key>idVendor</key> <string>*</string> </dict> </array> Thanks
Replies
0
Boosts
0
Views
801
Activity
Feb ’22
Lack of Vendor ID for “USB transport" entitlement and Can't find "userclient-access" for AppID
I requested “USB transport " and "userclient-access" entitlements to Apple and they has approved. Apple team said I should create entitlement file and "transport.usb" entitlement should contain Vendor ID. I created also AppID and Provisionig profiles. After that, I build the Xcode project and the application doesn't work. I have two questions. Provisioning profile contains transport.usb entitlement "without" Vendor ID. Should it contain Vendor ID too? When I create AppID, I can choose "Additional Capabilities", but I can not find "userclient-access". How can I set the entitlement?
Replies
1
Boosts
1
Views
1.2k
Activity
Feb ’22
usb to serial / virtual COM
Dear All, I have looked for on this forum an answer to this question : it seems complicated and also depend of the MAC OS version. In fact, my team has developed an USB device. This device works on Windows OS. We have sold the product, it works on different OS versions (7, 10 and 11) This device works also on raspberry PI (linux core). Into these both OS, the product is detected like a serial port : I can use basic application of check that my product is perfectly functional. Now I want use it on MAC OS, my device appears into the list of USB components connected to my MAC. However I'm not able to indicate (or force) the serial port. I read lot of things, kext? ,,, could depend of MAC version however I cannot found a clear process to help me to install a virtual COM on my MAC OS. Do you have link to other forum (more hardware may be)? Do you have any technical documentation about this topic? regards, fu154
Replies
0
Boosts
0
Views
934
Activity
Jan ’22
External usb foot pedal driver generates unexpectedly mouse click NSEvents for macOS Monterey
External usb foot pedal driver should not generate mouse click NSEvents In Monterey external usb foot pedal driver unexpectedly also acts as a mouse device and generates NSLeftMouseDown/NSRightMouseDown events. If I click the middle button of external usb foot pedal and then NSRightMouseDown gets received then it has to be a system problem (or a driver problem) How to solve this issue?
Replies
4
Boosts
0
Views
1.5k
Activity
Jan ’22
Is it possible to use both USB busses?
I have noticed that although System Report shows 2 USB 3.1 busses on the USB device tree only one of the busses is used whenever a device is plugged in to one of the ports. Is the other bus reserved for internal use or is it possible to have it used by an external device?
Replies
0
Boosts
0
Views
690
Activity
Jan ’22
HID touch input device support
After some iOS version, HID touch does not recognize so needs to install an extra touch driver on iOS(suppose it is after Big SUR iOS...) Is there any way to use HID touch function without installing touch driver?
Replies
0
Boosts
0
Views
1.2k
Activity
Jan ’22
can not use USB serial port cable to access the iOS device
Hi Team, Our app makes use of the Flutter library, but we now need to create a new feature with USB serial port cable support to get data. However, we cannot use USB serial port cable to access an IOS device. Could you please advise me on the best way to resolve this situation? Attached image FYI. Thank you all in advance.
Replies
1
Boosts
0
Views
2.5k
Activity
Dec ’21
USB issues with Big Sur
Hi, is anyone else having major with their USB ports using Big Sur ? every time I attach an Ex.HD the laptop crashes, on the odd occasion I have got to the point where I can open the icon of said Ex.HD but then it crashes. This really not good as I can't even plug-in my TimeMachine Ex.HD Anyone ???
Replies
14
Boosts
0
Views
6.8k
Activity
Dec ’21
How to transmit data into the iPad via USB-C?
Hello, we are a video capature cards manufacture. We have an new project which is aim to capature video from camera HDMI output and then transmite the video (compressed) into the latest iPad via USB-C port. What protocol should we use? iAP2 or general USB protocol? Thanks.
Replies
0
Boosts
0
Views
553
Activity
Dec ’21
iOS APP USB OTG hardware devices communicate
I want to develop an iOS APP that can interact with the hardware of USB OTG, such as sending data to and receiving data from the hardware. The peripheral type is BULK!   I did not find the relevant information on the Internet. Can anyone give me some guidance? thank you very much!
Replies
1
Boosts
0
Views
1.6k
Activity
Dec ’21
Ipad Driver for the SKR Mini E3 V2
Hello, I recently decided to upgrade my 3D printers mother board to the SKR Mini E3 and wanted to connect it to my Ipad Air Gen 3. There is no known driver for this so I'm going to try and make one instead. I have the window driver on github, but I'm not how to get started on writing a driver for Ipad. Can anyone please give me assistance?
Replies
1
Boosts
0
Views
791
Activity
Dec ’21
SCSI write(10) command over USB
I'm developing an application in Objective C that works on vendor specific commands of SD cards using IOUSBHostPipe. These vendor SCSI passthrough commands are working fine. But when I try to issue a SCSI write(10) command, it seems to hang. The same implementation when done on Windows seems to be working fine. Is there a limitation to issuing a SCSI write(10) command in macOS? I'm a bit new to the macOS environment and would really appreciate some pointers to references that I can look into or any alternatives to this problem. Thanks in advance. Much appreciated :)
Replies
0
Boosts
0
Views
928
Activity
Dec ’21
AX88179 Drivers for Big Sur 11.0
Well it seems that the drivers for the ethernet adapters are probably going to need updating. Does anyone know where I can find the updated driver for Big Sur? I had this issue with the last beta and just remembered it now that I'm without an ethernet adapter to use. I use the 3 Gig adapter from Amazon Basics and it's worked excellent.
Replies
86
Boosts
0
Views
66k
Activity
Dec ’21
High CPU Usage for low latency USBDriverKit Audio Driver
I'm using USBDriverKit to write an audio driver for a High Speed USB device. In an attempt to understand the difference between DriverKit Extension and Kernel Extension latencies, I'm dispatching individual isochronous microframes that for this device each account for a duration 125µs, or 6 samples at 48kHz. I don't yet know what kind of latency I'm actually getting but I was surprised to see a high CPU usage of ~11% on a 512GB M1 mac mini running Big Sur 11.6. That's 8000 IsochIO() calls and 8000 completion callbacks per second. Instruments.app tells me that most of my time (60%) is being spent inside mach_msg, as part of a remote procedure call. Multiple questions occur to me: is this normal? should I expect lower CPU usage? isn't mach_msg blocking? shouldn't CPU usage be low? don't low latency audio folks avoid things like remote procedure calls? is seeking low latency throughput with USBDriverKit futile? does Monterey's AudioDriverKit enable lower latency, or is it a convenience API?
Replies
1
Boosts
0
Views
1.4k
Activity
Nov ’21
Перестали обнаруживаться USB и MicroSD
Добрый день, после перехода на MacOS Montaray, при подключении хаба Canyon, (сам он при этом работает, индикатор подсвечивается, зарядку через него идет) перестали работать USB 2.0 , 3.0 и MicroSD. Ранее на BigSur все было корректно, как теперь работать за ПК? Нужно перекидывать фото с MicroSD, пользоваться флешками и внешними накопителями
Replies
0
Boosts
0
Views
580
Activity
Nov ’21
app can not be minimized or full screen when running as root user
app can not be minimized or full screen when running as root user, due to macOS12 requests running as root user when an app trying to control usb device, such as the uvc camera controlled through uvc protocol, this is unnecessary before 12. how can i solve this issue, either control the uvc camera through uvc protocol without elevating the app's privilege, or app can be minimized when running as root user.
Replies
0
Boosts
0
Views
790
Activity
Nov ’21
USB ports, camera and sound on monitor not working on Monterey
Hi, yesterday I upgraded my Macbook Pro M1 to MacOS Monterey. My Monitor (HP Envy) has USB ports, an inbuilt camera and a bang & olufsen sound system. All of this is not working anymore, which is quite a problem since I need it for my full working equipment. The monitor is connected via USB-C. The monitor is still working (video signal) and charging the Macbook. The issue seems to exist for a lot USB-C hubs as well. Please fix it - I can´t really use Monterey like this. Many thanks!
Replies
1
Boosts
0
Views
1.4k
Activity
Nov ’21
M1-Macbook needs to restart to recognize USB-HID device.
We developed a C++ application to control our HID USB device, and it seems that the first time we connect our HID USB device to a brand new M1 Macbook, our application cannot detect this device, and we need to restart Macbook to recognize the device. After then, everything is working fine, we can unplug and plug the USB device without restarting Macbook for our application to detect this device. Here is our theory on why a restart is needed to "bootstrap" the device detection: M1 Macbook doesn't come with HID driver included, so the first time a HID device is connected, M1 Macbook need to install HID driver in the background to make it work. -- Can someone confirm this? Or maybe there are other reasons for the need to restart? We are using IOHIDManager from IOKit for the HID operations. Thanks!
Replies
0
Boosts
0
Views
906
Activity
Oct ’21
Default USB-C current without USB power delivery negotiation
Hi, We developed a Usb device, and we experience an issue when we tried to use it on a MacBook M1 (Apple Silicon). It seems that the MacBook M1 (and probably other models) advertise a default USB Current mode of 7.5Watt (1.5A@5V). When it also exists a 15 Watt mode (3A@5V). Can someone confirm that we understood correctly ? and is there a way to change the default USB Current to 15 Watt without USB-PD negotiation (we don't have it on our device). Thanks.
Replies
0
Boosts
0
Views
621
Activity
Oct ’21
Problem about setting IOTTYBaseName in USBSerialDriverKit
I want know how to set IOTTYBaseName in USBSerialDriverKit.We try to use SetProperties method  inherit from IOService, but the method return -301 error code.
Replies
0
Boosts
0
Views
682
Activity
Oct ’21