usb

usb Mass Storage driver for am335x

让人想犯罪 __ 提交于 2020-07-22 06:07:31
问题 i want to loard a usb drive storage module so i make when i load usb mass storage module the usb drive detect in /media or /dev/sda1 I have one customized bord using an am335x processor and this board has one USB port(for USB drive connector) and one micro USB port. and also have kernel source code and version is 4.4.16 now i follow the command to compile kernel source code make distclean CROSS_COMPILE=arm-linux-gnueabihf- make am335x_fujitel_defconfig CROSS_COMPILE=arm-linux-gnueabihf- note=

usb Mass Storage driver for am335x

你离开我真会死。 提交于 2020-07-22 06:06:30
问题 i want to loard a usb drive storage module so i make when i load usb mass storage module the usb drive detect in /media or /dev/sda1 I have one customized bord using an am335x processor and this board has one USB port(for USB drive connector) and one micro USB port. and also have kernel source code and version is 4.4.16 now i follow the command to compile kernel source code make distclean CROSS_COMPILE=arm-linux-gnueabihf- make am335x_fujitel_defconfig CROSS_COMPILE=arm-linux-gnueabihf- note=

USB Hotplugging callbacks with python on Windows

天涯浪子 提交于 2020-07-07 11:32:08
问题 Is it possible to write a python script such that a function is called whenever a USB device is added or removed on Windows? libusb (and corresponding python modules such as libusb1) appears to be the most popular solution, but it lacks hotplugging callback registration support in Windows. A feature request has been open for this since 2015, and it's still not implemented. I've seen some hacks query Windows' usb devices at some interval, do a diff of the current list of devices from the

How to set `com.apple.developer.driverkit.transport.usb` entitlement?

风格不统一 提交于 2020-07-01 15:49:30
问题 I am unsure about how to set the com.apple.developer.driverkit.transport.usb key in my dext entitlements file. The Info.plist file already contains the IOKitPersonalities dictionary, and reading about the com.apple.developer.driverkit.transport.usb dictionary it looks like it should contains entries with the same information as the entries of IOKitPersonalities . The entitlements file for a project that is very similar to what is being shown in the WWDC video about driver kit sets this to:

How to set `com.apple.developer.driverkit.transport.usb` entitlement?

≡放荡痞女 提交于 2020-07-01 15:47:29
问题 I am unsure about how to set the com.apple.developer.driverkit.transport.usb key in my dext entitlements file. The Info.plist file already contains the IOKitPersonalities dictionary, and reading about the com.apple.developer.driverkit.transport.usb dictionary it looks like it should contains entries with the same information as the entries of IOKitPersonalities . The entitlements file for a project that is very similar to what is being shown in the WWDC video about driver kit sets this to:

Detect the state of a switch connected to USB with python

僤鯓⒐⒋嵵緔 提交于 2020-06-28 13:36:19
问题 I would like to ask if there is a way to detect the state of a switch, connected through a usb. The switch has 2 states, on and off. Possibly with Python, on Windows. Or, am I able to implement a script that will consider the switch to be a keyboard extension. Thank you in advance! EDIT #import usb.core #import usb.util import usb # find our device #dev = usb.core.find(find_all=True) busses = usb.busses() # was it found? #if dev is None: # raise ValueError('Device not found') for bus in

UWP C# app cannot open driver for device connected via USB

ぐ巨炮叔叔 提交于 2020-06-16 21:37:11
问题 I am trying to read data from a device that is connected via USB. My app is UWP C# . manufacturer of device supplied a .NET dll file. I can successfully open the driver, get driver config and read data with a C# console application (console application works without any problems) . However, same code does not work in UWP app. my code compiles and i am able to load dll. The code does nothing when device API's are called in UWP app. i was thinking it may have something to do with specifying

Receiving notification/event/signal of usb device insertion in c++

我只是一个虾纸丫 提交于 2020-05-27 06:42:45
问题 I have been looking for a while, but I have not been able to find an answer to this question. I am trying to receive a connection notification for a specific usb device. Here is what I have/know: I am running the linux kernel version 3.2. I have the id's needed to identify the usb device. I have created a kernel module for reading and writing to the device. The kernel module has been tested and works properly. The kernel module creates /dev/Component#. I am trying to write a program that is

libusb calls without sudo using udev-rules

99封情书 提交于 2020-04-30 05:11:11
问题 Tested on Kubuntu 16.04 64 bit only. I have an application which source is not under my control. It uses some libusb calls which ends up in e.g.: libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/031: Permission denied libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes. When running the above mentioned application as root, it works as expected. When I change the permissions of the regarding file like: sudo chmod a+w /dev/bus/usb/001/031

ControlTransfer instruction not sending value parameter from setup packetr in LibUsbDotNet

戏子无情 提交于 2020-04-14 06:25:12
问题 I have a USB device that I need to be able to talk to from a .net application. The device is not a standard HID device and in order to initilise it I've been given a trace of packets from a USB Protocol Analyser / Sniffer for the packets used when intialising it on another type of machine. I need to replicate this packet sequence from my .net application to initialise the device. Everything is working well until I get to a particular control transfer packet / class type request. The trace I