02-01-2012
USB Device Identification
In linux system when a pnp usb device is plugged in then how does the system gets a notification of it?
I mean to say in linux usb system there is usb host controller above which is host controller driver above which is usb core.
So does the host controller/usb core keeps on polling the usb bus for the device or it is interrupt based?
Any link for the explainations will be of much help.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I save a script to a pen drive? (3 Replies)
Discussion started by: beginner1
3 Replies
2. Linux
Hi Folks,
I want to know how to mount usb device (cd,dvd etc) in linux,
Regards,
Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies
3. Solaris
AM TRYING TO CONNECT A USB EXTERNAL DRIVE FOR BACKUP,THE USB SLOT IS AVAILABLE,BUT I DONT KNOW IF IT IS READY WHEN I CONNECT IT,AND WHAT COMMANDS DO I NEED.
tHANKS (10 Replies)
Discussion started by: tomjones
10 Replies
4. UNIX and Linux Applications
When I attach a USB storage device to my Solaris server, the mount point is coming up as /rmdisk/unnamed_rmdisk
Is there anyway I can have this device come up as a mounted device with a predetermined mount name eg /morespace rather than unnamed_rmdisk ? (0 Replies)
Discussion started by: jimthompson
0 Replies
5. UNIX for Advanced & Expert Users
When I attach a USB storage device to my Solaris server, the mount point is coming up as /rmdisk/unnamed_rmdisk
Is there anyway I can have this device come up as a mounted device with a predetermined mount name eg /morespace rather than unnamed_rmdisk ? (2 Replies)
Discussion started by: jimthompson
2 Replies
6. UNIX for Dummies Questions & Answers
hi, I was wondering if there's a way to safely disconnect a usb device from computer, I ask this because in windows when you disconnect a usb pen with the safe removal, the pen light then turns off, while I tried removing the pen with solaris and the light was still on ? (2 Replies)
Discussion started by: freeware
2 Replies
7. Red Hat
Hi friends,
I wanna know how to block USB devices in my RedHat flavor Operating system.
regards,
Prakash (3 Replies)
Discussion started by: prakashkumar41
3 Replies
8. Debian
Hello,
I need to run an application in wine that requires write permission to a USB device. Wine users must not have root privileges. On FreeBSD this could be accomplished by adding the user to the wheel group but I am using Debian 6.0. From looking at the passwd file it is not obvious what... (6 Replies)
Discussion started by: snorkack59
6 Replies
9. UNIX for Dummies Questions & Answers
Hi all
unixware 7.1.3 I'm afraid ! I connected a usb tape drive and it was automatically recognised in the device list (sdiconfig -l) and created devices in /dev/rmt (ctape1 etc.). I could successfully read and write to the device.
Then unplugged the usb cable and plugged it back in again... (0 Replies)
Discussion started by: deel
0 Replies
10. UNIX for Advanced & Expert Users
Hi,
i am developing an application on an ARM 7 architatcure with a small Linux.
i want to run tar on a usb device (~10 Mb) but it runs realy slow. the command only takes 1% of cpu usage.
is there a way to improve the tar command or is the USB-Connection the bottleneck here? (4 Replies)
Discussion started by: louisk
4 Replies
USB(4) BSD Kernel Interfaces Manual USB(4)
NAME
usb -- Universal Serial Bus
SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file:
device usb
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
usb_load="YES"
USERLAND PROGRAMMING
USB functions can be accessed from userland through the libusb library. See libusb(3) for more information.
DESCRIPTION
FreeBSD provides machine-independent bus support and drivers for USB devices in host and device side mode.
The usb driver has three layers:
USB Controller (Bus)
USB Device
USB Driver
The controller attaches to a physical bus like pci(4). The USB bus attaches to the controller, and the root hub attaches to the controller.
Any devices attached to the bus will attach to the root hub or another hub attached to the USB bus.
The uhub device will always be present as it is needed for the root hub.
INTRODUCTION TO USB
The USB is a system where external devices can be connected to a PC. The most common USB speeds are:
Low Speed (1.5MBit/sec)
Full Speed (12MBit/sec)
High Speed (480MBit/sec)
Each USB has a USB controller that is the master of the bus. The physical communication is simplex which means the host controller only com-
municates with one USB device at a time.
There can be up to 127 devices connected to an USB HUB tree. The addresses are assigned dynamically by the host when each device is attached
to the bus.
Within each device there can be up to 16 endpoints. Each endpoint is individually addressed and the addresses are static. Each of these
endpoints will communicate in one of four different modes: control, isochronous, bulk, or interrupt. A device always has at least one end-
point. This endpoint has address 0 and is a control endpoint and is used to give commands to and extract basic data, such as descriptors,
from the device. Each endpoint, except the control endpoint, is unidirectional.
The endpoints in a device are grouped into interfaces. An interface is a logical unit within a device; e.g. a compound device with both a
keyboard and a trackball would present one interface for each. An interface can sometimes be set into different modes, called alternate set-
tings, which affects how it operates. Different alternate settings can have different endpoints within it.
A device may operate in different configurations. Depending on the configuration, the device may present different sets of endpoints and
interfaces.
The bus enumeration of the USB bus proceeds in several steps:
1. Any interface specific driver can attach to the device.
2. If none is found, generic interface class drivers can attach.
SEE ALSO
The USB specifications can be found at:
http://www.usb.org/developers/docs/
libusb(3), usbdi(4), aue(4), axe(4), cue(4), ehci(4), kue(4), ohci(4), pci(4), rue(4), ucom(4), udav(4), uhci(4), uhid(4), ukbd(4), ulpt(4),
umass(4), ums(4), uplcom(4), urio(4), uvscom(4), usbconfig(8)
STANDARDS
The usb module complies with the USB 2.0 standard.
HISTORY
The usb module has been inspired by the NetBSD USB stack initially written by Lennart Augustsson. The usb module was written by Hans Petter
Selasky <hselasky@freebsd.org>.
BSD
May 20, 2009 BSD