Android USB Host – bulkTransfer() is losing data
UsbConnection.bulktransfer(…) is buggy. Use UsbRequest.queue(…) Api. Many people has reported that using bulktransfer directly fails around 1% or 2% of the input transfers.
UsbConnection.bulktransfer(…) is buggy. Use UsbRequest.queue(…) Api. Many people has reported that using bulktransfer directly fails around 1% or 2% of the input transfers.
Pyinstaller produces a binary depending from the python you used to build it. So if you use python 2.7 64 bit it is not possible, as far as I know, to produce a 32 bit executable. This is because Pyinstaller archives all modules and their dependencies (dlls, pyds etc..) which are 64 bit due to … Read more
I think this function is not passing the correct endpoint int status = connection.bulkTransfer(endpoint, getEvent, getEvent.length, TIMEOUT); which is coming from UsbInterface intf = device.getInterface(0); UsbEndpoint endpoint = intf.getEndpoint(0); maybe the USB interface is not correct. Please check if index 0 parameter is correct.
Edit: Proof of concept here I strongly recommend this project, USB IP. It is a way of connecting USB devices over the network. There is a Windows client. What this means is, you install the client on your Windows computer. This device then expects to talk to a USB device connected to a Linux computer, … Read more
I think that a simple way to do this would be using Soundflower and Soundflowerbed. I can’t see how to make the USB mics inputs to Soundflower and then pipe them into a Java. It sounds like you have Soundflower installed already. Soundflowerbed is found in the same disk image as Soundflower and is a … Read more
I can think of a quick code like this. Since all USB ports can be accessed via /dev/bus/usb/< bus >/< device > For the ID generated, even if you unplug the device and reattach it [ could be some other port ]. It will be the same. import re import subprocess device_re = re.compile(“Bus\s+(?P<bus>\d+)\s+Device\s+(?P<device>\d+).+ID\s(?P<id>\w+:\w+)\s(?P<tag>.+)$”, re.I) … Read more
I’ve tried using SharpUSBLib and it screwed up my computer (needed a system restore). Happened to a coworker on the same project too. I’ve found an alternative in LibUSBDotNet: http://sourceforge.net/projects/libusbdotnet Havn’t used it much yet but seems good and recently updated (unlike Sharp). EDIT: As of mid-February 2017, LibUSBDotNet was updated about 2 weeks ago. … Read more
You can do this using udisks. It is not installed by default, but it is easy enough to install (the package is like a megabyte in size once installed)… sudo apt-get install udisks Once installed, you can detach a USB drive with the following commands… sudo udisks –unmount /dev/sdb1 sudo udisks –detach /dev/sdb The first … Read more
When you request permission inside your app it seems that the checkbox “use by default for this USB device” does nothing (I am not sure why this checkbox even shows up on this popup. Instead you should register an intent handler for your activity in the manifest: <activity … … > <intent-filter> <action android:name=”android.hardware.usb.action.USB_DEVICE_ATTACHED” /> … Read more
After five years waiting, now it’s possible to sniff usb packets on windows See http://desowin.org/usbpcap/tour.html for a quick tour. It works pretty well