usb

Reading and writing to/from serial device via USB on Linux with perl or PHP

假如想象 提交于 2019-12-06 07:57:06
问题 I'm having a problem reading from a serial device on Linux. The problem is rather weird, and I wasn't able to nail down the causes. I'm opening the /dev/ttyUSB0 file with PHP and beginning to communicate with the device according to the device's protocol. Many times I encountered a situation where the PHP script waits for the device to respond. When I ran a Perl script in parallel which supposed to do the same it sent a request to the same device, and quit supposedly without getting a

Chrome App usb DigitalPersona fingerprinted reader not found

廉价感情. 提交于 2019-12-06 07:43:18
I'm trying develop Google Chrome App(or extension, not sure) to use DigitalPersona fingerprint reader on Windows. Following : https://developer.chrome.com/apps/usb https://github.com/GoogleChrome/chrome-app-samples/tree/master/usb var DEVICE_INFO = { "vendorId": 1466, //0x05BA "productId": 10 //0x000A }; chrome.usb.findDevices(DEVICE_INFO, call_method); Result is "App was granted the 'usbDevices' permission, but device not found". p.s. the usb information above was found in windows device manager. Don't know why this happened. Does Google Chrome not support DigitalPersona fingerprint reader? p

USB Driver Compilation Error

和自甴很熟 提交于 2019-12-06 07:24:11
I'm currently trying to compile a Linux USB UART driver, which is provided here: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410 The driver consists of 2 header files and one large C file. These are the contents of the Makefile: obj-m := vizzini.o KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) EXTRA_CFLAGS := -DDEBUG=0 all: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install clean: rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions vtty This is the error the compiler is throwing

Virtual USB device

倾然丶 夕夏残阳落幕 提交于 2019-12-06 07:01:14
I have been googling for a virtual USB stub. The idea is to make a driver that you can feed with the dataflow that normally comes from the USB controller chip. From windows it should work transparent, so it shows the "Installing New Hardware" bubble and ect., when a virtual device is connected. I know about the USB/IP open source project, is there any other projects libraries? 来源: https://stackoverflow.com/questions/9740429/virtual-usb-device

Can't see mouse and keyboard device with usbManager android

試著忘記壹切 提交于 2019-12-06 06:37:34
I work on a project where I need get data of keyboard and mouse on a service. I also have to be able to send data to my device hid. To do this, I want use the usb host mode. When I get list of device, I can see a mass storage but no mouse and keyboard. After search, I have seen that usbManager don't return mouse and keyboard device. I have tried to change permissions (on /system/etc/permissions) whitout success). I have run the application USB Device Info and I see mouse and keyboard on linux device and not on android devices. I use android 4.2.2. Is it possible to get hid data of mouse (and

ACR122U NFC Peer to Peer demo not working

心不动则不痛 提交于 2019-12-06 06:23:20
I've got an ACR122U NFC card reader and ACR122T token from ACS. I'm trying to run their NFC Peer to Peer demo. I've installed the ACR122U SDK, mysql and connector, set up the database, and added the escape command to the registry. When I try to run the peer to peer demo I carry out the following steps (with resultant log results shown) Insert NFC ACR122T into USB port. Open the Smart Poster application and click initalise with reader 0. Log: D1: 2:04:57 PM Program ready D1: 2:05:02 PM Succesful connection to : ACS ACR122U PICC Interface 0 Direct Mode D1: 2:05:02 PM << FF 00 48 00 FF D1: 2:05

Native way to get the feature report descriptor of HID device?

老子叫甜甜 提交于 2019-12-06 06:14:11
We have some HID devices (touch digitizers) that communicate with an internal R&D tool. This tool parses the raw feature reports from the devices to draw the touch reports along with some additional data that are present in the raw feature report but filtered out by the HID driver of Windows 7 (eg, pressure data is not present in WM_TOUCH messages). However, we have started working with some devices that may have different firmware variants, and thus that do not share the same ordering or bytelength of the fields and I need to modify our R&D tool so that it will adapt transparently to all the

Creating multiple partitions on USB using C#

血红的双手。 提交于 2019-12-06 06:09:53
问题 Iam trying to use DeviceIOControl to create multiple partiions in USB. It is always creating only one partition. Here is my source code [DllImport("kernel32.dll", SetLastError = true)] static extern IntPtr CreateFile(string lpFileName, uint dwDesiredAccess, uint dwShareMode, IntPtr lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, IntPtr hTemplateFile); [DllImport("kernel32")] static extern int CloseHandle(IntPtr handle); [DllImport("kernel32")] private static

USB Accessory not communicating after restart

↘锁芯ラ 提交于 2019-12-06 06:07:15
I'm trying to figure out why my application does not start communicating with the USB accessory after the phone restarts. If I unplug the cable and plug it back in, the communication resumes. The application is targeted at Android API 19. At the app install I set it to always be the Home app and when I first connect it to the accessory I check the box to always permit the access to the current accessory. So when I restart the phone, the app opens up automatically, it goes through the steps of checking for permission ( usbmanager.hasPermission ) and it actually has the permission without any

Use the device_filter.xml resource file to filter USB enumeration results

时间秒杀一切 提交于 2019-12-06 05:47:15
问题 Following the instructions in the Android USB Host documentation, I managed to detect new USB devices via a USB_DEVICE_ATTACHED intent. To restrict notifications to certain devices, a resource file can be specified: <activity ...> ... <intent-filter> <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> </intent-filter> <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@xml/device_filter" /> </activity> device_filter.xml: <?xml