USBDriverKit

RSS for tag

Develop drivers for USB-based devices using USBDriverKit.

Posts under USBDriverKit tag

200 Posts

Post

Replies

Boosts

Views

Activity

How to share data between iPad app and macOS app using thunderbolt
Hi folks, I'm developing a real-time audio engine that runs on macOS but has also an iPad version that enables control of the macOS app using a touch screen. I want to share control data between the iPad app and the macOS app without using Wi-Fi. As a real-time thing, it would be great to be able to use a thunderbolt cable. Is there a way of doing it? Where can I find more info? Thanks for your time.
0
0
780
Mar ’22
USB Live Stream not working in osx 12
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?
1
0
2.4k
Mar ’22
Gravity Nova Usb C hub not showing ethernet connection
I have purchased the USB C hub by gravity and it has the ethernet port which is not appearing in my network settings. I have tried to see if it could be added but cant find anything. I have heard people talk about drivers but not sure what drivers or even if i need them. They dont say anything on the gravity website. Can anyone help?
1
0
1.3k
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.5k
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
1.1k
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.6k
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.9k
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
1.1k
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.5k
Nov ’21
Перестали обнаруживаться USB и MicroSD
Добрый день, после перехода на MacOS Montaray, при подключении хаба Canyon, (сам он при этом работает, индикатор подсвечивается, зарядку через него идет) перестали работать USB 2.0 , 3.0 и MicroSD. Ранее на BigSur все было корректно, как теперь работать за ПК? Нужно перекидывать фото с MicroSD, пользоваться флешками и внешними накопителями
0
0
738
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
947
Nov ’21
How to share data between iPad app and macOS app using thunderbolt
Hi folks, I'm developing a real-time audio engine that runs on macOS but has also an iPad version that enables control of the macOS app using a touch screen. I want to share control data between the iPad app and the macOS app without using Wi-Fi. As a real-time thing, it would be great to be able to use a thunderbolt cable. Is there a way of doing it? Where can I find more info? Thanks for your time.
Replies
0
Boosts
0
Views
780
Activity
Mar ’22
USB Live Stream not working in osx 12
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?
Replies
1
Boosts
0
Views
2.4k
Activity
Mar ’22
Gravity Nova Usb C hub not showing ethernet connection
I have purchased the USB C hub by gravity and it has the ethernet port which is not appearing in my network settings. I have tried to see if it could be added but cant find anything. I have heard people talk about drivers but not sure what drivers or even if i need them. They dont say anything on the gravity website. Can anyone help?
Replies
1
Boosts
0
Views
1.3k
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.5k
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
1.1k
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.6k
Activity
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 ???
Replies
14
Boosts
0
Views
6.9k
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
845
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
1.1k
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.5k
Activity
Nov ’21
Перестали обнаруживаться USB и MicroSD
Добрый день, после перехода на MacOS Montaray, при подключении хаба Canyon, (сам он при этом работает, индикатор подсвечивается, зарядку через него идет) перестали работать USB 2.0 , 3.0 и MicroSD. Ранее на BigSur все было корректно, как теперь работать за ПК? Нужно перекидывать фото с MicroSD, пользоваться флешками и внешними накопителями
Replies
0
Boosts
0
Views
738
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
947
Activity
Nov ’21