USBDriverKit

RSS for tag

Develop drivers for USB-based devices using USBDriverKit.

USBDriverKit Documentation

Posts under USBDriverKit tag

55 Posts
Sort by:
Post not yet marked as solved
0 Replies
320 Views
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?
Posted
by
Post not yet marked as solved
0 Replies
406 Views
Hello all, I am new to using USB port communications on the Mac; and I was wondering how do I open read and write to an Arduino or similar board with C++ on the MacOS? I know how to do this in python but I HAVE to do it in C/C++ for my particular project. I have read docs like these but they are very outdated: https://developer.apple.com/library/archive/documentation/DeviceDrivers/Conceptual/USBBook/USBOverview/USBOverview.html#//apple_ref/doc/uid/TP40002644-BBIHAIAG Anything will help thanks!
Posted
by
Post not yet marked as solved
0 Replies
208 Views
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.
Posted
by
Post not yet marked as solved
1 Replies
323 Views
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?
Posted
by
Post not yet marked as solved
0 Replies
340 Views
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 :)
Posted
by
Post not yet marked as solved
0 Replies
282 Views
Добрый день, после перехода на MacOS Montaray, при подключении хаба Canyon, (сам он при этом работает, индикатор подсвечивается, зарядку через него идет) перестали работать USB 2.0 , 3.0 и MicroSD. Ранее на BigSur все было корректно, как теперь работать за ПК? Нужно перекидывать фото с MicroSD, пользоваться флешками и внешними накопителями
Posted
by
Post not yet marked as solved
0 Replies
346 Views
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.
Posted
by
Post not yet marked as solved
1 Replies
521 Views
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!
Posted
by
Post not yet marked as solved
1 Replies
725 Views
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!
Posted
by
Post not yet marked as solved
1 Replies
590 Views
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.
Posted
by
Post not yet marked as solved
0 Replies
321 Views
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!
Posted
by
Post not yet marked as solved
0 Replies
289 Views
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.
Posted
by
Post not yet marked as solved
0 Replies
440 Views
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?
Posted
by
Post not yet marked as solved
4 Replies
749 Views
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.
Posted
by
Post not yet marked as solved
0 Replies
279 Views
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
Posted
by
Post not yet marked as solved
2 Replies
498 Views
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.
Posted
by
Post not yet marked as solved
0 Replies
667 Views
Dear Apple Expert, Our project uses libUSB library to interact with a USB based camera device. Our application is working fine in macOS Mojave (10.14.6 ). When the new MacOS 12 beta version was made available, we tested our code. But when we try to claim the interface via "CreateInterfaceIterator" API, we are getting "kIOReturnExclusiveAccess" error code and ultimately our application fails. The failure is observed in both libUSB versions 1.0.23 and 1.0.24. Could you help us by explaining if there is change in the new OS with respect to access to USB devices?
Posted
by
Post not yet marked as solved
0 Replies
241 Views
How do I adjust the latency timer for the AppleUSBFTDI driver? I am developing an app in Swift using Xcode on a MacBook Pro M1 running Big Sur, for clinical brain-computer interface (BCI) research. The app needs very low-latency streaming from an external USB device. The external device is a headset which connects via Bluetooth to an FT231X chip mounted on a USB-Serial dongle. The FT231X chip reads timestamped EEG data from the headset. The issue is that the AppleUSBFTDI driver is buffering the packets coming in from the headset, which causes jitter in the timestamps. Typically, with proprietary drivers from FTDI, the solution is to reconfigure them to reduce the latency timer to 1ms. The Info.plist is edited to add new key/value pairs. Is there a similar solution for Apple's built-in driver?
Posted
by
Post not yet marked as solved
0 Replies
434 Views
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.
Posted
by