winusb

WinUSB Installation

China☆狼群 提交于 2019-12-09 19:34:40
问题 I wanted to experiment a bit with WinUSB. I've installed the WinDDK and I'm about to create my first INF-file for my driver. I'm following the MSDN guide to do this. The guide contains a sample INF file and the instructions to "changing USB_Install in section names to an appropriate DDInstall value". Fair enough, only problem is I have no idea what 'appropriate DDInstall values' are. I'm not really an expert with INF files and I can only guess that the guide probably wants me to change the

USB Driver Installation Issue for Microcontroller using Custom INF

℡╲_俬逩灬. 提交于 2019-12-06 01:13:01
I'm working with the NXP LPC1788 microcontroller and I'm trying to create a driver on the host computer to communicate with it via USB. I believe that I've managed to get the device handling standard USB requests properly (the PC is able to read the string descriptors properly). I'm having trouble writing a sample USB driver and installing it for the device, though. I'm working with Microsoft Visual Studio 2013. My steps were: Creating a WinUSB Application, which produces a "Driver" and "Driver Package" project. Modifying the generated INF file to use my device's VID and PID. Building the

Software based Android accessory on Windows

你说的曾经没有我的故事 提交于 2019-12-04 07:55:47
问题 I would like to turn my computer into an Android accessory using my application. So instead of a specialized hardware this will be just PC that will switch the phone into accessory mode, thus launching some Java app on the phone associated with the host hardware and create a communication channel. I've found a sample code (plus some Java Android app) to do this on Linux using libusb. It works by "opening" the phone using the standard VID and PID. Then it sends a command to turn on the

I have a DEVINST, I need the Device Path

走远了吗. 提交于 2019-12-02 10:48:19
问题 I'm trying to open a WinUSB device that is part of a composite device. I have located the correct child device using cfgmgr32, and have its DEVINST number. In order to open it with WinUSB, I need to first call CreateFile, for which I need the Device Path. The Device Path looks like: \\\\?\\usb#vid_9999&pid_0102#3555303335351909000b0#{a5dcbf10-6530-11d2-901f-00c04fb951ed} How can I obtain the Device Path? 回答1: This function returns a list of NULL-terminated Device Paths (that's what we get

I have a DEVINST, I need the Device Path

此生再无相见时 提交于 2019-12-02 04:04:43
I'm trying to open a WinUSB device that is part of a composite device. I have located the correct child device using cfgmgr32, and have its DEVINST number. In order to open it with WinUSB, I need to first call CreateFile, for which I need the Device Path. The Device Path looks like: \\\\?\\usb#vid_9999&pid_0102#3555303335351909000b0#{a5dcbf10-6530-11d2-901f-00c04fb951ed} How can I obtain the Device Path? This function returns a list of NULL-terminated Device Paths (that's what we get from CM_Get_Device_Interface_List ) You need to pass it the DEVINST , and the wanted interface GUID . Since

Smartcard Reader and ChromeApp

人走茶凉 提交于 2019-12-01 08:04:44
I want to make a Chrome App that can access a USB SmartCard Reader (HID Global OmniKey 3121). Did someone ever succeed in doing that? Unfortunately, I cannot see it using usb.getDevices . script.js (called by index.html which is itself called by background.js onLaunched ): //dom elements var findBtn = document.querySelector( "button#find-btn" ) var deviceInfo = document.querySelector( "p#device-info" ) //{click} findBtn.addEventListener( "click", findDevice ) /* * Try to find HID OmniKey 3x21 */ function findDevice () { var options = { filters: [ { vendorId: 1899, //OmniKey AG productId: 12321

Smartcard Reader and ChromeApp

笑着哭i 提交于 2019-12-01 07:45:42
问题 I want to make a Chrome App that can access a USB SmartCard Reader (HID Global OmniKey 3121). Did someone ever succeed in doing that? Unfortunately, I cannot see it using usb.getDevices . script.js (called by index.html which is itself called by background.js onLaunched ): //dom elements var findBtn = document.querySelector( "button#find-btn" ) var deviceInfo = document.querySelector( "p#device-info" ) //{click} findBtn.addEventListener( "click", findDevice ) /* * Try to find HID OmniKey 3x21

WinUSB driver on Windows 10 IoT

左心房为你撑大大i 提交于 2019-11-30 08:20:34
问题 I'm trying to use the WinUsb.sys driver that comes with Windows (including Windows 10 IoT of Raspberry Pi 2). Using devcon.exe I can see that the USB I'm trying to use is connected (it is named USB\VID_1234&PID_ABCD\5&3753427A&0&4 ), but I don't know how to force it to use the WinUsb.sys driver. I found some instructions on microsoft.com but that seems to be for a standard Windows installation where you have Device Manager available (which I don't have on IoT). The INF file example on this

WinUSB driver on Windows 10 IoT

和自甴很熟 提交于 2019-11-29 06:24:04
I'm trying to use the WinUsb.sys driver that comes with Windows (including Windows 10 IoT of Raspberry Pi 2). Using devcon.exe I can see that the USB I'm trying to use is connected (it is named USB\VID_1234&PID_ABCD\5&3753427A&0&4 ), but I don't know how to force it to use the WinUsb.sys driver. I found some instructions on microsoft.com but that seems to be for a standard Windows installation where you have Device Manager available (which I don't have on IoT). The INF file example on this page also refers to a CAT-file, which I assume this is some sort of driver signature, and I don't know

How to install ADB driver for any android device?

拥有回忆 提交于 2019-11-27 13:47:01
I am an android developer. I have a new HTC Inspire 4g phone but I don't know how to install usb driver for it. This is my android_winusb.inf file: ; ; Android WinUsb driver installation. ; [Version] Signature = "$Windows NT$" Class = AndroidUsbDeviceClass ClassGuid = {3F966BD9-FA04-4ec5-991C-D326973B5128} Provider = %ProviderName% DriverVer = 12/06/2010,4.0.0000.00000 CatalogFile.NTx86 = androidwinusb86.cat CatalogFile.NTamd64 = androidwinusba64.cat ; ; This section seems to be required for WinUsb driver installation. ; If this section is removed the installer will report an error ; "Required