1. As shown in the following figure, we click the "Settings"-"All settings" interface in the Millet 3 phone.
2. Then in the following figure you will see a "about the phone" option, click Enter, and then see the Android version of the option.
3. Here I can open the developer option by simply clicking "Android Version" four times in a row.
4. In the developer options interface can be found in the
As mentioned above, return to the usb_stor_acquire_resources () function and return 0. So we finally went back to the storage_probe () function.
Row 3: The scsi_add_host () function is executed. The previously applied us-> host is passed to it as a parameter, and intf-> dev is also passed to it, this is used to register sysfs. As mentioned above, scsi_add_host () must be executed after scsi_host_alloc so that the SCSI core layer can know that such a
Get what we need from the two tables, and then the following code is expanded around the two pointers. (Unusual_dev and id) continue to read get_device_info ().
Row 3: Record unusual_dev in us. There is also such a member in us. In this way, it will be easy to use after recording. Because us runs through the whole story, it is very convenient to access its members and can be accessed at any time, however, the us_unusual_dev_list and storage_usb_ids t
-storage: devicescan complete \ n ");
936
937/* shocould we unbind if no devices weredetected? */
938}
939
940 scsi_host_put (us_to_host (us ));
941 complete_and_exit ( threads_gone, 0 );
942}
Row 3, where does delay_use come from? In the same file, a static variable is defined at the beginning:
110 static unsigned int delay_use = 5;
111 module_param (delay_use, uint, S_IRUGO | S_IWUSR );
112 MODULE_PARM_DESC (delay_use, "seconds todelay be
As mentioned above, return to the usb_stor_acquire_resources () function and return 0. So we finally went back to the storage_probe () function.
Row 3: The scsi_add_host () function is executed. The previously applied US-> host is passed to it as a parameter, and INTF-> Dev is also passed to it, this is used to register sysfs. As mentioned above, scsi_add_host () must be executed after scsi_host_alloc so that the SCSI core layer can know that such a h
Get what we need from the two tables, and then the following code is expanded around the two pointers. (Unusual_dev and id) continue to read get_device_info (). Row 3: record unusual_dev in us. There is also such a member in us. After this is recorded...
Get what we need from the two tables, and then the following code is expanded around the two pointers. (Unusual_dev and id) continue to read get_device_info ().
Row
USB urb (USB request block)
Kernel 2.6.29.4The USB device driver code communicates with all USB devices through urb. Urb uses the struct urb structure description (include/Linux/USB. h ).
Urb sends or receives data asynchronously from a specific endpoint of the same
the kick_khubd function, add the current hub to the Hub driver queue hub_event_list, and then wake up the hub daemon wake_up (khubd_wait) to start parsing what happened to the hub.
3. After hub_thread is awakened, It will be executed and hub_events will also be executed.
4. hub_events is the main function used to analyze hub events. The content of hub analysis is executed here. This function is a large endless loop.
5. hub_events processing process
5
Want to use mobile phone internet, and there is no wifi. There's no traffic on the phone. (The main thing is to experience some computers can not download the task) as follows the theme and equipment debugging or something.The steps are simple and take only two steps. The required software tools are as follows:Computer software 1. Millet USB Drive (Win7 system will be installed automatically)Mobile phone software 2. HyperTerminal (Better Terminal emul
driver can be registered for the host controller of S3c2410. This is mainly determined by the Protocol. Refer to this code in s3c2410_udc.c.
Int usb_gadget_register_driver (struct usb_gadget_driver * driver){......If (UDC-> driver) // if you have already registeredReturn-ebusy;......}
3. usb_gadget_driver Structure
In fact, our job is to build this usb_gadget_driver structure. So this structure is linked to the three goals we have achieved above.
.S
Source: USB That Thing 3-using port 2 as the transfer of custom HIDThe USB custom HID example uses port 1 as the communication, so now I use port 2 as the communication end, how to modify it? As shown below:First modify: USB_DESC.C in the const U8 CUSTOMHID_CONFIGDESCRIPTOR[CUSTOMHID_SIZ_CONFIG_DESC] This character array contents: The following red for the modifi
token package is the output package, indicating that the host will send data to the slave.(2) After the host sends a token to the slave, the USB processor sets the interrupt Status Register mark based on the token sent, the slave CPU queries the interrupt Status Register of the USB processor to respond to the host's token package.(3) Identify the interrupt type
transmission in various transmission modes, while setup_packet only sends Setup packets in Control Transmission. besides the Setup phase, there will also be a data transmission phase, which still relies on transfer_buffer for data transmission. if DMA is used, transfer_dma is used.
Line 3 finally reached the urb submission step. usb_submit_urb was called. as a USB device driver, we don't need to know what
reprint Please indicate source: Http://blog.csdn.net/Righthek Thank you! The previous article has mentioned that the most important two functions of the USB interface in the WiFi module are Usb_read_port () and Usb_write_port (). So how do they relate to WiFi? We can analyze from the following three aspects:1, the first need to clear the WiFi module is a USB device, the main control (CPU) side is a
As a U disk system Startup disk, Ubuntu has a graphical interface tool Startup Disk Creator, simple and easy to use, but the disadvantage is only to make Ubuntu Startup disk, other systems do not support. So what do I want to do about Fedora's system boot disk in Ubuntu? It doesn't matter, there is DD command!The DD command is a command used to copy files, which can be automatically converted to the corresponding format. When playing Raspberry Pi, we also use the DD command to burn the system, r
1. Requirements:The project needs to add a USB network card to the Respberry pi, which needs some network setup for this NIC when the Respberry pi is started.2. Implementation options:(1) Add the following code to the/etc/rc.local file:if [-x/etc/mynet.conf]; Then/etc/mynet.conf fi(2) Complete the mynet.conf script and put it in the/etc/directory, the contents of mynet.conf are as follows:#!/bin/bashwhile!IW Dev wlan1 Info >/tmp/netlog; Do sleep 0.2 d
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.