The software in Linux is divided into two types: User layer and Kernel layer. For example, the kernel compiles the driver of the temperature sensor, and the lm-sensors is responsible for interpreting the data submitted by the processing kernel at the user level. USB drive is a hardware-driven thing, and Libusb is a library that is provided for application development and USB drive interoperability (reading
Transferred from: http://cpbest.blog.163.com/blog/static/41241519201111575726966/LIBUSB is a Linux system that provides user-space access to the USB device's API to get or set USB device information from the Linux kernel. LSUSB This user space program, it is also relies on the interface API provided by LIBUSB to implem
driver for the handle and buttons, in order to be happy in the future, haha.Libusb is a user-side driver encapsulation library and a set of functions used by USB hosts to operate USB devices. With libusb, we do not need to modify the complicated Linux kernel driver for a certain type of USB device, this facilitates the use and debugging of devices. My computer's programming environment is ubuntu12.04 + gea
Linux LIBUSB installation and simple use one, reference documents:1. LIBUSB1 fails do_configure task with "Udev support requested but Libudev not installed" http://stackoverflow.com/questions/23712859/ Libusb1-fails-do-configure-task-with-udev-support-requested-but-libudev-not-ins 2. LIBUSB compilation error on Slackware -http://stackoverflow.com/questions/295
Integrate pcsc amp; ccid amp; libusb in Linux-Linux general technology-Linux programming and kernel information. For more information, see the following. The system used is CentOS 6.4 32-bit.
Pcsc-lite-1.8.8.tar
Ccid-1.4.12.tar
The libusbx-1.0.16.tar is installed properly on all 3.
[Root @ localhost tools] # ../ccid
Let guest identify USB devices1. The simplest method is as follows:$ Sudo gedit/etc/fstabAdd# The USB Group# Enable read and write permissions on USB devices for all usersNone/proc/bus/USB usbfs devmode = 666 0 0Then, the general user can use the USB device through libusb.
2. However, it is not safe to open the read and write permissions of USB devices to all users in some cases. A more secure approach is:1. added the user group usbfs.$ Sudo groupa
Android-4.2-3G porting path libusb (1)
Some time ago, we transplanted 3G modules to smart TV and found that Baidu Google, which transplanted 3G, found that it was basically on the linux development board,
Here, I will record the whole process of porting, so that others can avoid detours. If you have any suggestions or do not want to send a message, please leave a message ~
Currently, all 3G modules use usb
LIBHELLO.A Library, which writes only:-lhellogcc -o main main.c -L. -lhelloExecute the program./mainHello world!Creating a dynamic link library 0x00 creating a dynamic-link librarygcc -dynamiclib -o hello.dylib hello.oWe ls can see more of the directory under the command hello.dylib , which is the creation of the dynamic link library (. Dylib is under the MAC system, under Windows is. dll, Linux is. So)0x00 Link Dynamic Link librarygcc -o main1 main.
Using LIBUSB can achieve universal USB communication, but the implementation is more complex, you can use HIDAPI to encapsulate a layer, through HIDAPI call Libusb.
The specific process is as follows:
1, compile Libusb
Download Address: https://sourceforge.net/projects/libusb/files/
also does not require you to write the driver, all the work can be done in the user state. The way to use it is simple, here's an example: Http://sourceforge.net/apps/trac/libusb-win32/wiki/libusbwin32_documentation#IV.Examples, isn't it simple?PrincipleLibusb himself with a kernel driver, named Libusb0.sys, placed in the windowssystem32drivers inside. The user program calls Libusb0.dll, and the DLL puts the task to the driver. This ensures that the
Linux has a more complete support for USB, but look at the principle of the code, or feel confused. Someone recommended Libusb, search the internet for a bit of information, well, it feels really much simpler.
Let's introduce LIBUSB:
USB driver Development on Linux platform, mainly with kernel-driven development and
Summary of LIBUSB Transplantation
Summarize the process and issues of porting libusb to embedded platforms in this phase:LIBUSB offers a set of tools that are relatively capable of shielding different Linux versions, reducing the drive-porting of different platforms, providing 1.0 versions and 0.1 versions (the old way), and developers not recommending using 0.1
[Author:bo Shen Assume you has the cross toolchain installed on your Linux host, where I use Ubuntu 12.04 with ARM-LINUX-GNUEABIHF-GCC ins Talled. (If not, here is the command)--->8---For the SoC support hard float point$ sudo apt-get install GCC-ARM-LINUX-GNUEABIHFFor the SoC only support soft float point$ sudo apt-get install GCC-ARM-
descriptor. When the descriptor is obtained, the device descriptor is obtained, and then the configuration descriptor is obtained, and the configuration descriptor, interface descriptor, and endpoint descriptor are read back one at a time, depending on the configuration set length in the configuration descriptor. It may also have access to device serial numbers, vendor strings, product strings, and so on.
The detailed relationship is shown in the following illustration:
Below we look at the
Source: How to use QT under Libusb-win32 have been unable to find a suitable WIN7 under the Tiny6410 USB download software, just these days to start learning USB, so I intend to write a dedicated Tiny6410 for the WIN7 under the USB download software. Found the Libusb This library can be used as a non-drive USB development, that is, do not need to understand the Windows Driver development knowledge can be de
Interface in libusb: intusb_control_msg parameter transfer problem-Linux general technology-Linux programming and kernel information. The following is a detailed description. For interfaces in libusb: int usb_control_msg (struct usb_device_handle * dev, _ u8 request, _ u8 requesttype, _ b2value, _ b2index, void * data,
Use of the LIBUSB library
Turn from: http://blog.sina.com.cn/s/blog_4a5b632801009upv.html
Use LIBUSB before your Linux system must have a USB file system installed, here also describes the use of Hiddev device files to access the device, in order to not only compare the ease of using USB, but also provides a conversion into a
Operating environment: Ubuntu, based on LIBHID/LIBUSB for development Libusb Introduction:Libusb designed a series of external APIs to be called by the application, which can manipulate the hardware through these API applications, as seen from the source code of LIBUSB, which call the kernel's underlying interface (IOCTL), and kernel The functions used in driver
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.