the implementation process of the USB driver model and the sample program in Windows CE, based on the sample code, straighten out the development idea of the driver for the USB device. Similarly, the readers in this article are expected to be the readers and those who are r
Http://www.linuxjournal.com/article/7466June 1st, 2004 by Greg kroah-Harman
In
Software
NowYou can control USB hardware without touching the kernel and even makeYour driver run on BSD-based OSes with no code changes. Greg showsWorking Example for using the cross-platform USB library, libusb.
Last time we discussed how to create a simple
Linux Device Driver Programming-Linux general technology-Linux programming and kernel information-complex device driver-the following is a detailed description. The complex device drivers mentioned here involve PCI, USB, network d
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/aaa6695798/archive/2009/11/06/4776202.aspx
All struct declarations can be found in the kernel source file USB. H. If you are interested, read the source code.
USB devices are actually complicated, but the Linux Kernel provides a subsystem called USB core to handle mos
devices in the Linux kernelFor the connection on the specific bus external devices have a struct device corresponding, such as platform equipment has platform_device corresponding to it, which platform_device structure is as follows: struct Platform_device {
const char * name; Device name to match the name of the driver and, if successful, into the driven probe f
Linux USBDevice Driver Framework Analysis
In fact, all the device drivers in Linux follow the same Convention-representing the structure of the driver program (which is more appropriate with the driver, it should be called a better driver, the struct should contain all the r
LDD folder appears in/sys/bus, which contains two directories: devices and drivers */If (RET) return ret; If (bus_create_file ( ldd_bus_type, bus_attr_version )) /* Add the bus attribute. The version attribute file */printk (kern_notice "unable to create version attribute will appear in the/sys/bus/LDD directory! \ N "); ret = device_register ( ldd_bus);/* register the bus as a device. Because the bus can also be a
The USB host will enumerate the devices after it detects that the USB device is plugged in. Why enumerate? Enumeration is to read the various descriptor information from the device, so that the host can load the appropriate driver according to this information, so as to know
, the Windows version is too low
For some friends who are still using Windows 95 or Windows 97 systems, even if the computer is equipped with a USB interface, because the operating system before Windows 98 does not support USB peripherals, install the driver anyway, Setting the CMOS parameters does not allow the removable hard drive to work properly. One workar
I do not know the USB audio device class before developing the driver for the USB audio device. I thought it was a hid driver and it should be easy to develop, later, I found myself in an unknown field. Thanks to the previous deve
USB device: Mainly completes the processing of the USB protocol and data exchange.
PC program: consists of USB communication program and user service program. The user service program communicates with the system USB di through the USB
1. Turn on USB debugging in your phoneGo to "Settings", "Application", "development" check "USB Debugger". This allows the device to be recognized by the PC when it is connected via USB.2. Install the driverTo connect your Android phone to your PC you need to install a driver
hardware problem is very simple, in another machine or another system try on it. Some small problems may be formatted with specialized software. And to remind everyone to choose fat when you format windows, do not select FAT32. prompts unrecognized USB device repair Unrecognized USB device: Unknown
: the high software layer that contains the driver of the USB device and the host controller hardware layer, also known as the "adaptation layer ". The main task of the host is to control two-way data transmission to the USB device. A physical bus is a set of
->name);/** Here's might mod_dec_use_count, but only if you increment* The Count in Sample_probe () below*/Return}
Once the driver is registered with the subsystem, it is always automatically entered into the probe function after inserting a new USB device. The driver will create a new instance of the intern
, choose to deactivate the device, and then you unplug the device, this will be more secure.
In fact, to judge the software hardware problem is very simple, in another machine or another system to try it. Some small problems may be formatted with specialized software. And to remind everyone to choose fat when formatting windows, do not select FAT32.
Prompt for unrecognized
Recently installed in the old machine on the CentOS system, with the Chinese cabbage or ultraiso after making the system disk, the start booting from USB device and boot failed, has been very depressed , thought to be the cause of the system. It's not working on the Internet to say that the Syslinux file is modified or replaced. The final discovery is the format of the U-boot, which does not match the forma
USB devices are becoming more common, and almost all devices have a tendency to USB, such as printers, cameras, MP3, MP4, readers, but many times, we use USB devices that are not so smooth. Often the "Unrecognized USB device" prompt, then why this prompt, how to solve it?
Writing a simple USB DriverFrom Issue #120April 2004APR, 2004 by Greg Kroah-hartman in
Software
Give your Linux box A multicolored light can see from across the class, and learn how to write a simple driver for the Next piece of hardware you want to hooks up.Since This column began, it had discussed how a Linux driver writer can create various types
To do USB-related things in wince, we must first understand some concepts, which is very important.
(1) host and FunctionFirst, you must know that the USB is a master-slave structure. For PCs and mobile phones, the PC end is the master end, called the host, and the mobile phone is the slave end, usually called the client. However, this term has changed in wince. The master end is also called host, while the
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.