Questions tagged [libusb]

libusb is a library that gives user level applications uniform access to USB devices across many different operating systems.

libusb is a library that gives user level applications uniform access to USB devices across many different operating systems. It's is an open source project licensed under the GNU Lesser General Public License.

There are two versions of the libusb API: the current libusb-1.0 API, and its legacy predecessor libusb-0.1. Please use libusb-1.0 for all new development.

861 questions
0
votes
0 answers

How to setup LibUSB with Qt Creator?

I have installed LibUSB, but I still can't set it into Qt Creator. Following is my .pro file. #------------------------------------------------- # # Project created by Qt Creator…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
0
votes
1 answer

How to install libusb?

I am having hard time installing libusb. I went across some YouTube videos, and they were talking about "INSTALLING" libusb. I went across another tutorial and they are saying we need to build it "manually". However, I downloaded libusb from…
Soldier
  • 539
  • 6
  • 11
  • 18
0
votes
1 answer

USB Java libraries

I am developing several data logger application which must connect with the USB dongle in order to read/write information. That is to say, I have to send commands to the USB port and the application should be able to read streams from the usb…
Jose Hdez
  • 2,297
  • 7
  • 38
  • 52
0
votes
0 answers

real time data recording in android via USB

I am trying to build this oscilloscope circuit that generates analogue signals at various frequencies. Say for example the 512 Hz button is pressed then it will generate a sine wave at 512 Hz, if 256 Hz is asked for then it will generate it etc. So…
0
votes
2 answers

octal constant error (libusb)

I am running Ubuntu 12.04 compiling a c++ file which has the following code #include #include using namespace std; int main(){ //pointer to pointer of device used to retrieve a list of devices libusb_device…
Amjad
  • 1,950
  • 5
  • 26
  • 41
0
votes
1 answer

Compiler error libusb

I am running Ubuntu 12.04 and using c++ I have the following code #include #include using namespace std; int main(){ //pointer to pointer of device used to retrieve a list of devices libusb_device **devs; …
Amjad
  • 1,950
  • 5
  • 26
  • 41
0
votes
0 answers

libusb data output

I am trying to output a data by using libusb_interrupt_transfer, the function returns 0, however, I cannot see any data transfer output from Wireshark (on the usb sniff mode) and the device does not respond the data that is supposed to be output.…
sven
  • 1,101
  • 7
  • 21
  • 44
0
votes
1 answer

libusb bulk transfer in pen drive

I am using libusb to interact with pen drive. We have to use the function int libusb_bulk_transfer(struct libusb_device_handle * dev_handle, unsigned char endpoint, unsigned char * data,int length,int * transferred,unsigned int timeout) But here…
Vipul Goyal
  • 33
  • 2
  • 10
0
votes
1 answer

System.IO.Serial

I have a usb device that is supposed to send a number when queried. The instructions I have are: Connect the USB port to a PC and then open the virtual serial port at 9600 baud, 8 data bits, no parity, 1 stop bit. Send ESC (I think it's char…
WCoaster
  • 39
  • 6
0
votes
1 answer

linux usb-hid :add libhid library to eclipse(C++) or netbeans IDEs or native input.h or hiddev.h?

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…
sajjadG
0
votes
1 answer

Include libusb in a package without the use of Macports

I'm making an installer for my Qt app that communicates with the USB port. For the app to work, libusb must be installed. I can do that using macports in terminal but that might be a hassle for my users so I'm packaging the app using Apple's package…
Yassir Ennazk
  • 6,970
  • 4
  • 31
  • 37
0
votes
1 answer

libUSB / WinUSB to WinDDK Driver Port

I want to port libUSB driver to the windows driver using WDK (In Kernel Mode). I found that libUSB internally uses the winUSB ( From libUSB Sources). This is what I do in the libusb, I get the handle using, libusb_open_device_with_vid_pid or…
coder000001
  • 476
  • 4
  • 22
0
votes
3 answers

How can I load a library with the System.load() function?

I need to load the library ld-uClibc-0.9.30.1.so for my Android Eclipse project. I try to load it with Sytem.load("/root/workspace/libs/ld-uClibc-0.9.30.1.so") from my host computer but I get the error: Cannot load library…
Eddy Gordo
  • 61
  • 1
  • 7
0
votes
1 answer

How to get information on the drive where the executable is located in c++

My app will be running from a USB key which have specific information like vendor-id, device-id, ... which I need. I tried using libusb, but despite the fact that I still can't make it work properly, how could I find the right usb drive to get…
perelo
  • 465
  • 5
  • 14
-1
votes
1 answer

Reading rfid tag from USB

I want to capture data from an RFID Tag that is coming from my USB port. My questions are as follows:- Any suggestions of a software that can sniff this data from the USB port? How do I receive this data and feed it into my C/C++ program? And also…