Method for transmitting data through USB interface on mobile phone

A USB interface and data transmission technology, which is applied in the field of data transmission of mobile terminals, can solve the problems of affecting transmission efficiency, data processing and data transmission cannot be performed in parallel, and achieve the goals of improving real-time performance, improving utilization rate, and increasing throughput Effect

Inactive Publication Date: 2008-07-23
ZTE CORP
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. Data processing and data transmission cannot be performed in parallel
[0006] 2. When the bandwidth of the USB bus is insufficient or the host does not start a data packet transmission, calling the send or receive function will last for a long time
[0007] 3. When the transmission frequency is high, the continuous dynamic allocation of memory is prone to memory fragmentation, which affects the transmission efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for transmitting data through USB interface on mobile phone
  • Method for transmitting data through USB interface on mobile phone
  • Method for transmitting data through USB interface on mobile phone

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The invention provides a method for transmitting data through a USB interface on a mobile phone, as shown in Figure 1, comprising the following steps:

[0032] 101. Establish a static global sending queue and a static global receiving queue;

[0033] 102. If data is sent from the USB interface, put the data packets to be sent into the sending queue and send them in order;

[0034] 103. If data is received from the USB interface, the received data packets are sequentially put into the receiving queue; whether the receiving queue contains data packets is detected, and if so, the data packets are taken out from the queue and Handle accordingly.

[0035] Below in conjunction with accompanying drawing and embodiment the present invention will be described in further detail:

[0036] The following is an embodiment of the present invention. The method for transmitting data is as follows: in order to deal with data bursts, a data queue mechanism is adopted. When the sending s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for transmitting data on a cell phone through a USB interface, the method comprises first, establishing a static-state global sending queue and a static-state global sending queue, second, if data are sent from the USB interface, and placing a data packet which wants to be sent in the sending queue and sending in turn, third, if data are received from the USB interface, and then placing the data packets which are received in the receiving queue in turn, checking whether the receiving queue contains data packets, if contains, and then taking out data packets from the queue and relatively processing. Time occupying for sending or receiving function is shorter through adopting the invention, and the invention greatly improves the utilization ration of CPU, which fastens the speed of data processing, improves real-time performance of data transmission and increases data throughput, and the invention utilizes a static-state global queue to be a data buffer area, which not only solves the circumstance that when speed between USB equipment and a USB host machine is not matched, packet losing happens, but also memory fragments can not be generated.

Description

technical field [0001] The invention relates to a data transmission technology of a mobile terminal, in particular to a method for transmitting data through a USB interface on a mobile phone. Background technique [0002] With the popularity of a large number of computers supporting USB (Universal Serial Bus, Universal Serial Bus), USB has gradually become a standard interface for PCs. On the host (host) side, almost 100% of the latest PCs support USB; and on the device (device) side, devices using USB interfaces are also increasing day by day, such as digital cameras, scanners, joysticks, tapes and floppy drives, image devices , printer, keyboard, mouse, etc. [0003] As a small portable digital device, the mobile phone has the advantages of easy portability and powerful functions, but its storage capacity is not large enough, and it often needs to be connected with a USB host such as a computer through a data transmission interface to realize uploading and downloading, da...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04Q7/34H04Q7/32H04L29/02
Inventor 祁麟滕国霖刘杰杰韦益德
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products