3.1Three additional packages: Android. Hardware. USB, Android. MTP, and android.net. RTP!
USB, MTP, RTP------- There are three words, all bloody, so people are excited and excited. Why don't you get started with Google?
Android. MTP
Allow connected camera and other devices to directly use PTP (image transfer protocol) MTP (Media transfer protocol ).
Keep the
(); } Break4. What type of USB can be set?public static final String usb_function_mass_storage = "Mass_storage"; /** * Name of the ADB USB function. * Used in extras for the {@link #ACTION_USB_STATE} broadcast * * {@hide} */public static final String usb_ FUNCTION_ADB = "ADB"; /** * Name of the RNDIS Ethernet USB
Android3.1 has three additional packages: Android. Hardware. USB, Android. MTP, and android.net. RTP.
(1) Android. MTP
The connected camera and other devices can be directly connected using PTP (Image Transmission Protocol) or MTP (media transmission protocol), and upper-layer apps can receive notifications, to manage the files, storage, and transmission of these devices.
It provides mtpconstants that
by Fanxiushu 2016 05-15 reprint or quote this article, please indicate the original author.People who have used VMware should know that VMware virtual machines have such a feature,When a USB device is plugged into the host, the USB device can be accessed in VMware's virtual machine system via setup.and accessing this USB device is just as true as inserting the
In the code of the entire USB-storage module, the most soul part is in a function called usb_stor_control_thread (), which is naturally the climax of our entire story. Some special functions are called from the usb_stor_acquire_resources () function, which we will see soon. It only appears once in the whole play, that is, in storage_probe, where the row number is 1005.
However, before that, there were four functions in front of us, namely get_device_i
In the previous article, we have given the link address of the USB protocol, from this article, we will involve a lot of USB 1.1 content, our guiding ideology is to start with the familiar USB 1.1 protocol, first use off-the-shelf HCD and USBD, directly face the client driver programming, see the results as soon as possible, So that readers have confidence in the
3.1 More than three big packs of Android.hardware.usb, ANDROID.MTP, ANDROID.NET.RTP!
Android.mtp
Allow connected camera and other devices to directly use the PTP (Image Transfer Protocol) MTP (Media Transfer Protocol).
Keep the device connected, the top app can receive notifications, cancel, manage the files and storage of these devices, file transmission and metadata, etc.
It provides us with the definition of
After reading get_transport (), continue to read the get_protocol () and get_pipes () functions. Still from drivers/usb/storage/usb. c: 672staticintget_protocol (structus_data * us) 673 {674 switch (us- gt; subclass) {675
After reading get_transport (), continue to read the get_protocol () and get_pipes () functions. Still from drivers/usb/storage/
1, after the system plugged into the USB device, from the console interface has the following prompt:From the console information, you can see the inserted USB device name.As you can see, the plugged-in USB device is sde4.However, if the CRT tool is remotely connected to the past, you can use the following command to view the
Technorati label: Boot Disk
How to Create a USB flash drive and install the system with a USB flash drive (reprinted)
Many of my friends are using laptops without optical drives, but the problem also arises. When we need to reinstall the system, there is no optical drive. What should we do? Maybe you can say that the hard disk can be installed under DOS, but how many people will use dos?
In fact, not only d
Linux-USB Gadget
OverviewThe Linux-USB Gadget driver framework (hereinafter referred to as gadget) provides software functions for devices defined by the USB protocol.Compared with the Linux USB host driver, the gadget driver appears later than 2.4.23.The Gadget Framework proposes a set of standard APIs, which are driv
For the entire USB-storage module, the usb_stor_init () function is its start. However, for the USB flash drive, the function that actually drives the USB flash drive starts with the storage_probe () function.
As long as the two parallel lines overlap, it is doomed to start a lifetime of entanglement, no matter whether the middle is a short separation.
Come out and try again later. Basically, each directory in the Linux kernel has a Makefile. Makefile and Kconfig are just like a map of a city. a map shows us a city, while Makefile and Kconfig let us know what is under this directory...
"Come out and try again sooner or later ."
Basically, there is a Makefile under each directory in the Linux kernel. Makefile and Kconfig are like a map of a city. a map leads us to know a city, while Makefile and Kconfig let us know the structure under this dire
Install a Linux system to a USB flash drive or a USB flash drive for a linux System
Step 1: First insert the usb flash drive to the usb interface of the Computer Host (it is recommended to insert the usb interface to the rear of the hosts box), and then open the UltraISO sof
USB protocol analysis, usb protocol
1. Description structure of USB devices
1. Logical Organizational Structure
The logical organization of a USB device consists of four layers: device, configuration, interface, and endpoint. A device usually has one or more configurations. The configuration usually has one or more int
"Come out and try again sooner or later ."
Basically, LinuxEach directory in the kernel has a makefile. MakefileAnd kconfigJust like a map of a city, a map leads us to know a city, while makefileAnd kconfigSo that we can understand the structure under this directory. Drivers/USB/storage/Makefile under the DirectoryThe content is as follows:
Lfg1:/usr/src/linux-2.6.22/Drivers/USB/storage #Cat makefile
#
# Ma
1-2 is omited, for more detail please referWww.usb.org.
.......
3 layout guidelines
3.1 General Routing and placementUse the following general routing and placement guidelines when laying out a new design. TheseGuidelines will help to minimize signal quality and EMI problems. The high speed USB validation effortsFocused on a four-layer motherboard where the first layer is a signal layer, the second layer is power,Third layer is ground and the fourth i
With USB3.0 control chip motherboard, although has become the mainstream of the market, but for most users still use USB2.0, USB2.0 file transfer speed also seems to be unable to meet their requirements. In fact, now USB2.0 speed there is room for improvement, we can use the speed-increasing patch to explore the potential of USB2.0.
USB 2.0 Why not reach the 60mb/s?
We all know that the theoretical bandwidth of
This article was reproduced from: http://blog.csdn.net/zqixiao_09/article/details/50984074In the end user's view, USB device provides a variety of additional functions, such as file transfer, sound playback, etc., but it is consistent with the interface of all USB devices for USB host. A USB device consists of 3 functi
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.