one, Linux under the USB driver
Separation and tiering is the most basic form of driver development in Linux, USB drive development in the host side mainly involved in two parts: Host controller driver and device driver.
Host cont
Based on the previously transplanted kernel, we transplanted the drivers separately. This article mainly transplanted the USB driver and clarified the mdev related to hot swapping. In kernel 2.6.30, the USB driver has been improved, you only need to modify the configuration sheet. The added content is as follows:
Devic
Label: style blog HTTP color ar OS use SP strong
There are two types of USB interface printers, one is UTP, that is, direct USB interface printing, most of which is available on the market. One type is virtual serial port. USB is used as the serial port. The following describes the driver settings of the two methods.
This article is divided into three sections to describe how to construct a simple USB filter driver, including "Fundamentals", "Program implementation", "Use INF installation." The purpose of this article is to want readers to understand the rationale, you can use the most popular and most convenient driver development tools other than DDK DriverStudio to impleme
ArticleDirectory
Method -:
Method 2:
Use Windows APIs
MSComm control used in MFC
Use USB to serial drive cypress_m8.ko (kernel> = 2.6)
Use hiddev
Introduction: USB 2com is a virtual serial port driver of USB to serial port converter.
Program (Windows2000/XP),
Recently to customers debugging a piece of CNC board, today customers bring a screen, and a USB touch screen chip connected to the screen. The screen will soon be ready for normal display.
Touch screen in the core to find the USB touch screen driver, the kernel started after the USB turn of the touch screen is also nor
"There are infinite advertisements and limited time." Don't look at the advertisements. Come back soon. (I find myself an advertising genius, but I am familiar with it, as if there is something similar in the game)Previously, we learned about the location structure of the USB driver in CE and the folder structure of the sample driver. Next, we need to know which
Windows 7 installation media does not support various USB 3.0 controllers. Therefore, Windows 7 may not be installed properly when you install Windows 7 on the chipset behind Intel Haswell (I .e: when you use a USB flash drive for installation, you are prompted to load the driver ). The main reason is that Intel's new platform no longer provides support for
multiple endpoints.
In a USB device, each device can contain one or more configurations. Different Configurations make the device display different combinations of functions. The configuration consists of multiple interfaces. An interface consists of multiple endpoints and represents a basic function. It is an object controlled by the driver of a USB device. a
. Cpu_usb_getinterruptstate Function
Determines whether there are currently interrupts for the USB port.
2. Cpu_usb_initialize Function
Initializes the client module at the driver layer.
3. Cpu_usb_protectpins Function
Puts USB pins into a known state to prevent spurious inputs.
4. Cpu_usb_rxenable Function
Enables a specified
Note: The user-level USB driver is well written. It seems that QT embedded porting is also based on this.Kernel-level USB drivers have problems in the following aspects:
1. When the customers who use our products have a 2.4 kernel platform and a 2.6 kernel platform, we need to design a driver that is compatible with th
Original: http://blog.csdn.net/johnwcheung/article/details/71576833Android under the device debugging, if the device provides a driver, according to the manufacturer's driver debugging can be, the device does not provide the driver, only in accordance with the common method of debugging.For Smart POS, cash registers, and other printing devices, how can the print
] usbcore:registered new Interface driver usbserial[668.692900] USBSERIAL:USB serial support registered for generic[668.692968] usbcore:registered new Interface driver Usbserial_generic[668.692973] USBSERIAL:USB serial Driver Core[668.704495] USBSERIAL:USB serial support registered for pl2303[668.716444] USB 5-1: pl230
If you want to use USB bulk for transmission and want devices to communicate with PC hosts like serial communication, you usually need to build a PC-side driver, which is troublesome.
To avoid the trouble of writing a USB device driver on a PC, you can make the device into a mass storage device and use a general
DriverStudio. I was fortunate enough to use it for several drivers, including VxD, KMD and WDM, a little bit of experience, so want to write down to give you a little reference. If there is a mistake, you are welcome to point out to me, thank you.
Next I will introduce the process of developing a USB driver with DriverStudio. This USB device has 3 bidirectional
I recently developed a USB custom device and encountered the following problems. I 'd like to write them out and share them with you.
During the development of USB devices, you often need to change the name or PID and vid of the USB devices, especially for custom USB devices, there will be a problem:
A
transmitted by WiFi, we need to initialize to batch URB, corresponding operation function is usb_fill_bulk_urb ();(4) Submit the URB to the USB core;(5) After the successful submission, the completion function of URB will be called by the USB core.Now we step through the process of detailed analysis, so-called creation and allocation, is essentially the allocation of memory. As a Linux
After learning about all usbd interface functions last time, we have gained a lot of basic knowledge. Review the folder structure of the USB sample, we can still remember that the USB/class/common folder contains the source code of the public part, it is the structure and function encapsulation specially abstracted by Microsoft to serve drivers of most USB device
Let's see Program In line 2, here is a judgment Statement, which is used to determine whether the inserted device is of the usbmsc_interface_class type. This constant is in usbmsc. the H file defines that if the device is not a USB storage device, the function is terminated, that is, the driver can only process USB storage devices. When the device meets the req
round check protocol. When a device needs to send data to the master controller, the master controller must notice and send a request to the device that wants to send the data. That is, the USB device does not need to interrupt the master computer in the traditional way, but provides the interrupt endpoint, and the host periodically checks the interrupt endpoint.
When a client sends or receives data through a USB
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.