The situation is this: I have a USB device (a custom device I'm trying to talk to) with two endpoints, one writing to the device, one reading from the device. Both are bulk transfers. Every communication transaction takes the form of (1) Write a command to the device (2) Read the response. I'm using libusb (version 0.1 rather than the 1....
I'm trying to talk to a USB device using libusb, but I feel like I'm tripping up on the first leg of the race. I know precisely what endpoints I need to talk to, etc., but I can't even get that far. I have, in essence:
usb_device *dev = ...; // opened from get_busses()
usb_set_configuration(dev, dev->config[0].bConfigurationValue); //...
Hello Everyone,
I want to write and read a response from USB HID device in Linux using user space library. Googling for a while, I found that libhid will be a solution for the problem.
So, when I use "hid_interrupt_write" and "hid_interrupt_read" to send and receive data, this error occured: error submitting URB: No such file or dire...
Alright. I figured it out. transfer.flags needed to be a byte instead of an int. Silly me. Now I'm getting an error code from ioctl, errno 16, which I think means the device is busy. What a workaholic. I've asked on the libusb mailing list.
Below is what I have so far. This isn't really that much code. Most of it is ctypes structures fo...
Updates:
I wrote an asynchronous C version and it works as it should.
Turns out the speed issue was due to Python's GIL. There's a method to fine tune its behavior.
sys.setcheckinterval(interval)
Setting interval to zero (default is 100) fixes the slow speed issue. Now all that's left is to figure out is what's causing the other issu...
Hi
i have problem with libhid .
i found that there 2 way 4 accessing the usb-hid in linux
1)linux default libraries like input.h and hiddev.h and ...
2)using libhid
i found libhid some confusing and try to use input.h but i have problem with that 2.
i dont know how to get information about my device from ubuntu
i use open() to op...
Can anyone tell me how to program USB devices with Objective-C as an iPhone application?
I want to access USB device contents through iPhone
...
Hi all-
I am currently in a Windows 7 dev. environment working to get a device to initialize with libusbdotnet.
The device (a USB mass storage device) connects and runs using the default USB-MASS Storage driver for Windows. I want to replace this driver with the one created by the .INF Wizard in libusbdotnet.
The operating system is...
I've been developing some software which uses the libusb-win32 library to interact with some USB hardware I've been developing. Now I'm trying to run the same software on windows 64 but the drivers don't seem to work (understandably).
Are there any alternatives for 64 bit Windows I've overlooked?
...
I am having some trouble with the pyusb module. I have narrowed down the problem to a single line, and have created a small example script to replicate the error.
#!/usr/bin/env python
"""
This module was created to isolate the problem in the pyusb package.
Operating system: Mac OS 10.6.3
Python Version: 2.6.4
libusb 1.0.8 has been...
How can I reference a class/framework/library like libusb in an Objective-C class?
Currently I have tried to initiate an enum/struct-function from the library inside my @interface in my .h-file.
But that doesn't work, apparently. :/
I have it "installed" (it's in /usr/local), and tried adding both the files and as framework. Doesn't hel...
I've been asked (if it's possible) to write a program monitoring the input of at least 20 microphones, on a single computer.
Currently I'm prototyping in python (2.6), on a Ubuntu system using Alsa. My attempts so far have created quite a few questions...
Ubuntu is a requirement, Alsa isn't, and python is an ideal.
For hardware, one s...
When I tried to compile a program this came up:
C:\Users\Mohit\Developer\C_Workspace\iPhoneInteraction\Debug>make all
Building file: ../src/test.c
Invoking: Cygwin C Compiler
gcc -I"C:\cygwin\usr\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"s
rc/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.c"
cygwin warning:
MS-D...
public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(0x20DF, 0x0001);
// Find and open the usb device.
MyUsbDevice = UsbDevice.OpenUsbDevice(MyUsbFinder);
// If the device is open and ready
if (MyUsbDevice == null) throw new Exception("Device Not Found.");
See the screen shot below for where I pulled the VendorID and ...
This is not a homework problem, though it is a work problem. Where months ago, I would have just written up a specification and the boss would have contracted it out, money's tight. So I'm trying to do this myself.
I'm a weak C coder, and I'm lucky if gcc spits out something that will run without segfaulting, or sometimes anything at al...
It's a FT2232D chip, and the LED is connected to BDBUS6.
The library is less documented than I might like (better than FTDI's own library though, which doesn't even work on modern kernels), the only example code I can find that does this uses a deprecated function (I tried, it doesn't seem to work), and I'm absolutely stumped.
The har...
I am working on a small script using the USB bindings for ruby.
Since this is just a wrapper around libusb, all of C++'s features are visible through the abstraction, for example when usb_bulk_read requires giving a buffer as an argument (which would just be a pointer in C).
How can I create a buffer which is 64bytes long, for the foll...
I have been toying around with PyUSB lately, and found that it works beautifully on Linux (Ubuntu has libusb 0.1 and 1.0, as well as OpenUSB)... but only if I run the program with root privileges (with sudo, of course).
Can anyone tell me why it requires elevated privileges and, more importantly, if I can change the permissions somehow ...
I'd like to try to make a user-space device driver using libusb on Mac, but I'm confused where to start. In the SDK installer (which I got from http://www.ellert.se/twain-sane) it said something about examples which I couldn't find anywhere on my computer.
Could anyone please describe how do I set up libusb for development on OS X? May ...
Hello.
I am writing a libusb program to interact with a usb gamepad.
I found it, opened it, detached from kernel, claimed interface, and when I try to usb_interrupt_read it returns -110 (resource temporarily unavailable)
what is doing on?
also, usb_set_configuration fails, so I commented it out. do I need it?
Why isn't it reading?
i = ...