CN108989535A - A kind of method and mobile terminal of data transmission - Google Patents
A kind of method and mobile terminal of data transmission Download PDFInfo
- Publication number
- CN108989535A CN108989535A CN201710399340.XA CN201710399340A CN108989535A CN 108989535 A CN108989535 A CN 108989535A CN 201710399340 A CN201710399340 A CN 201710399340A CN 108989535 A CN108989535 A CN 108989535A
- Authority
- CN
- China
- Prior art keywords
- pin
- mobile terminal
- type
- interface
- storage equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides the method and mobile terminal of a kind of transmission of data, the method is applied to the mobile terminal including at least one Type-C interface, which comprises has detected whether the first storage equipment and the second storage equipment access mobile terminal;If so, the TX+/TX- pin and RX+/RX- pin using the mobile terminal Type-C interface store equipment transmission data to described first;Equipment transmission data is stored to described second using the VBUS pin and SBU pin of the Type-C interface, solve the problems, such as that mobile terminal can not be simultaneously to multiple storage equipment transmission datas in the prior art, the efficiency for improving mobile terminal data transmission enhances the convenience of mobile terminal operation.
Description
Technical field
The method and mobile terminal transmitted the present embodiments relate to field of communication technology more particularly to a kind of data.
Background technique
USB (Universal Serial Bus, universal serial bus) is an external bus standard, for specification electricity
Being connected and communicate with for the terminal devices such as brain, mobile phone and external equipment, is a kind of interfacing applied in the communications field, includes
The interface type of a variety of different models such as USB Type-C or specification.USB Type-C is one kind popular in current industry
The development side of I/O (Input/Output, input/output) interface of the terminal devices such as USB interface and subsequent computer, mobile phone
To USB Type-C can support tow sides to plug, and the signal for transmitting data is stronger.
Using the mobile terminal of USB Type-C interface standard, can connect with using the storage equipment of same-interface standard
It connects, so that the data realizing mobile terminal and storing between equipment are transmitted.But when carrying out data transmission, with mobile terminal
As main equipment, stores equipment and be used as equipment, by a pin of Type-C interface, can only realize by mobile terminal
It, can not be simultaneously to multiple storage equipment transmission datas to a storage equipment transmission data.
Summary of the invention
The embodiment of the present invention provides the method and mobile terminal of a kind of data transmission, to solve mobile terminal in the prior art
Can not simultaneously to multiple storage equipment transmission datas the problem of.
In a first aspect, being applied to include at least one Type- the embodiment of the invention provides a kind of method of data transmission
The mobile terminal of C interface, which comprises
The first storage equipment and the second storage equipment access mobile terminal are detected whether;
If so, using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface to described first
Store equipment transmission data;
Equipment transmission data is stored to described second using the VBUS pin and SBU pin of the Type-C interface.
Second aspect, the embodiment of the invention also provides a kind of mobile terminal, the mobile terminal includes at least one
Type-C interface, the mobile terminal further include:
Detection module, for detecting whether having the first storage equipment and the second storage equipment access mobile terminal;
First transmission module, for if so, using the mobile terminal Type-C interface TX+/TX- pin and RX+/
RX- pin stores equipment transmission data to described first;
Second transmission module, VBUS pin and SBU pin for the use Type-C interface are stored to described second
Equipment transmission data.
In this way, in embodiments of the present invention, by having detected whether that the first storage equipment and the second storage equipment access are moved
Dynamic terminal, if so, can be using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface to described
First storage equipment transmission data;Equipment is stored to described second using the VBUS pin and SBU pin of the Type-C interface
Data are transmitted, solve the problems, such as that mobile terminal can not improve simultaneously to multiple storage equipment transmission datas in the prior art
The efficiency of mobile terminal data transmission enhances the convenience of mobile terminal operation.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart of the method for the data transmission of first embodiment of the invention;
Fig. 2A is the structural schematic diagram of Type-C base;
Fig. 2 B is the structural schematic diagram of Type-C male connector;
Fig. 3 is the connection schematic diagram of external equipment and mobile terminal of the invention;
Fig. 4 is the flow chart of the method for the data transmission of second embodiment of the invention;
Fig. 5 is the block diagram of the mobile terminal of third embodiment of the invention;
Fig. 6 is the block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 7 is the structural schematic diagram of the mobile terminal of fifth embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
Referring to Fig.1, the flow chart of the method for the data transmission of first embodiment of the invention is shown, the method can answer
For the mobile terminal including at least one Type-C interface, the method can specifically include following steps:
Step 101, the first storage equipment and the second storage equipment access mobile terminal have been detected whether;
In embodiments of the present invention, the mobile terminal including at least one Type-C interface can be smart phone,
The electronic equipments such as tablet computer, the embodiment of the present invention are not construed as limiting the concrete type of mobile terminal.
Type-C interface is a kind of connecting interface of USB interface, and Type-C interface can be inserted into USB regardless of tow sides and insert
Seat.The size of Type-C interface be about 8.3mm × 2.5mm supported as other interfaces the charging of USB standard, data transmission,
The functions such as display output.
In the concrete realization, the circumscribed USB Type-C interface of mobile terminal can be connect with a Type-C Hub.Hub
It is a kind of hub, can be applied in the network using stelliform connection topology configuration, multiple computers or the network equipment can be connected.
Type-C Hub is that USB Type-C Interface Expanding can be multiple by one kind, and can be made these interfaces while be used
Device.Therefore, charger or storage equipment etc. external equipments can by accessing the Type-C Hub, realize with mobile terminal it
Between connection.
In general, USB Type-C interface may include Type-C base and Type-C male connector, as shown in Figure 2 A and 2B, difference
It is the structural schematic diagram of Type-C base and Type-C male connector.Type C base includes 24 pins (PIN), wherein 4
Vbus pin, 4 TX pins (2 TX- pins and 2 TX+ pins), 4 RX pins (2 RX- pins and 2 RX+ pins)
With 2 CC pins;And it includes 22 pins that Type C male connector, which is then, reduces a pair of of D+/D- pin compared with Type C base,
Type C male connector also includes 4 vbus pins, 4 TX pins, 4 RX pins and 2 CC pins.
In embodiments of the present invention, the Type-C interface on mobile terminal can be a Type-C base, and straight with it
Meeting connected Type-C Hub then includes a Type-C male connector and multiple Type-C bases.Specifically, mobile terminal side
Type-C base is connected with a Type-C male connector on Type-C Hub, the Type-C male connector and is built in Type-C Hub
Interior multiple Type-C bases are connected, and multiple Type-C bases can be connected with multiple external equipments respectively.
When in a certain Type-C base that the external equipments such as charger or storage equipment pass through insertion Type-C Hub, move
Dynamic terminal can detect the access of external equipment by the level change on CC pin.
In embodiments of the present invention, the first storage equipment and the second storage equipment access can further have been detected whether
Mobile terminal.In general, mobile terminal can store equipment then as main equipment when storage equipment is connect with mobile terminal
As from equipment, it whether there is the level for pulling down to ground on detection CC pin so as to pass through, it is determined whether have storage equipment
Access.
In the concrete realization, when presence drop-down on the CC1 pin and CC2 pin for detect mobile terminal Type-C interface
To ground level when, it is believed that while thering is the first storage equipment and the second storage equipment to access the mobile terminal.
As shown in figure 3, being the connection schematic diagram of external equipment and mobile terminal of the invention.In Fig. 3, pass through insertion
Type-C Hub realizes that two external equipments connecting with mobile terminal are respectively the first storage equipment and the second storage equipment, institute
It states the first storage equipment and the second storage equipment can be USB flash drive (USB flash disk, abbreviation USB flash disk) or other types
The equipment using Type-C interface standard, the embodiment of the present invention to storage equipment concrete type be not construed as limiting.
Step 102, if so, using the mobile terminal Type-C interface TX+/TX- pin and RX+/RX- pin to
The first storage equipment transmission data;
In embodiments of the present invention, when having detected multiple storage equipment access mobile terminals, for example, there is the first storage
When equipment and the second storage equipment access mobile terminal simultaneously, the TX+/TX- of the mobile terminal Type-C interface can be used
Pin and RX+/RX- pin are to the first storage equipment transmission data.
In the concrete realization, the TX+/TX- pin of the mobile terminal and RX+/RX- pin can be deposited with described first
The TX+/TX- pin and RX+/RX- pin for storing up equipment Type-C interface are correspondingly connected with, and form the first transmission channel, thus using
It is formed by the first transmission channel, to the first storage equipment transmission data.
Since TX+/TX- pin and RX+/RX- pin belong to meet the pin of the specification of USB 3.0, using TX+/
When TX- pin and RX+/RX- pin carry out data transmission to the first storage equipment, it can be carried out using the specification of USB 3.0.
USB 3.0 is a kind of USB specification, uses antithesis simplex four-wire system differential signal line, introduces full-duplex data
Transmission can support two-way simultaneous streaming to transmit, and 2 are used to send data in 5 routes, and another 2 are used to receive data, also
1 is ground wire.It is written and read at full tilt that is, USB 3.0 can be synchronized, maximum transmission bandwidth is up to
5.0Gbps(500MB/s)。
Step 103, number is transmitted to the second storage equipment using the VBUS pin of the Type-C interface and SBU pin
According to.
It is similar with to the first storage equipment transmission data, can by the VBUS pin of the mobile terminal and SBU pin with
The TX+/TX- pin of the second storage equipment Type-C interface or the connection of RX+/RX- pin, form the second transmission channel, from
And use and be formed by the second transmission channel, to the second storage equipment transmission data.
The embodiment of the present invention, by having detected whether that the first storage equipment and the second storage equipment access mobile terminal, if
It is that can then be set using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface to first storage
Standby transmission data;Using the VBUS pin and SBU pin of the Type-C interface to the second storage equipment transmission data, solve
Determined in the prior art mobile terminal can not simultaneously to multiple storage equipment transmission datas the problem of, improve mobile terminal data
The efficiency of transmission enhances the convenience of mobile terminal operation.
Second embodiment
Referring to Fig. 4, the flow chart of the method for the data transmission of second embodiment of the invention is shown, the method can answer
For the mobile terminal including at least one Type-C interface, the method can specifically include following steps:
Step 401, detecting, which whether there is on the CC1 pin and CC2 pin of mobile terminal Type-C interface, pulls down to ground
Level;
In embodiments of the present invention, the mobile terminal including at least one Type-C interface can be smart phone,
The electronic equipments such as tablet computer, the embodiment of the present invention are not construed as limiting the concrete type of mobile terminal.
In the concrete realization, the circumscribed USB Type-C interface of mobile terminal can be connect with a Type-C Hub.It fills
The external equipments such as electric appliance or storage equipment can realize the connection between mobile terminal by accessing the Type-C Hub.
In general, USB Type-C interface may include Type-C base and Type-C male connector.In embodiments of the present invention, it moves
Type-C interface in dynamic terminal can be a Type-C base, in the Type-C base and Type-C Hub of mobile terminal side
A Type-C male connector be connected, which is connected with the multiple Type-C bases being built in Type-C Hub
It connects, multiple Type-C bases can be connected with multiple external equipments respectively.
In general, CC pin is the state pulled up always by a current source in charger, it can only be used as main equipment,
And mobile terminal is then that both can be used as main equipment to can also be used as from equipment use.And when mobile terminal and storage equipment connect
When connecing, mobile terminal can be used as main equipment, storage equipment is used as from equipment, thus in the Type-C interface of mobile terminal side
The level for pulling down to ground is generated on CC pin.
Specifically, since the external equipments such as storage equipment can only access other in storage equipment and set as using from equipment
When standby, the CC pin of storage equipment side Type-C interface can then pass through an electricity by a resistance eutral grounding, mobile terminal side
Stream source pull-up, to generate level change.Therefore, when the CC pin of mobile terminal Type-C interface detect pull down to ground electricity
Usually, it is believed that there is storage equipment to access the mobile terminal.
Therefore, the level for pulling down to bottom can be whether there is on the CC pin by detecting mobile terminal, it is determined whether have
Storage equipment is connect with mobile terminal.
Further, it is pulled down to if detecting and existing on the CC1 pin and CC2 pin of mobile terminal Type-C interface
When the level on ground, it may be considered that thering is the first storage equipment and the second storage equipment to access the mobile terminal.
Step 402, if so, to the first storage equipment and the second storage equipment power supply;
When connecting, and carrying out data transmission with other equipment in general, storing equipment, need to supply it by other equipment
Electricity is just able to achieve corresponding function.
In embodiments of the present invention, equipment can be stored to connected to it first by Type-C interface from mobile terminal
With the second storage equipment power supply, the first storage equipment and the second storage equipment can be USB flash drive (USB flash
Disk, abbreviation USB flash disk) or the other kinds of equipment using Type-C interface standard, tool of the embodiment of the present invention to storage equipment
Body type is not construed as limiting.
It should be noted that if having detected that charger accesses movement end when storing equipment access mobile terminal
End, then can also be from the charger to the first storage equipment and the second storage equipment power supply, and the embodiment of the present invention does not limit this
It is fixed.
Step 403, by the TX+/TX- pin of the mobile terminal and RX+/RX- pin and the first storage equipment
The TX+/TX- pin and RX+/RX- pin of Type-C interface are correspondingly connected with, and form the first transmission channel;
It in embodiments of the present invention, can be further using shifting after detecting the first storage equipment access mobile terminal
The TX/RX pin of dynamic terminal Type-C interface forms the data transmission channel between the first storage equipment.
Specifically, the TX+/TX- pin of mobile terminal and RX+/RX- pin can be connect with the first storage equipment Type-C
The TX+/TX- pin and RX+/RX- pin of mouth are correspondingly connected with, and form the first transmission channel.
Step 404, equipment transmission data is stored to described first using first transmission channel;
In embodiments of the present invention, it is managed in the TX+/TX- by being correspondingly connected between mobile terminal and the first storage equipment
Foot and RX+/RX- pin after forming the first transmission channel, can store equipment to described first using first transmission channel
Transmit data.
It should be noted that since TX+/TX- pin and RX+/RX- pin belong to the pin for meeting the specification of USB 3.0,
Therefore, when carrying out data transmission using TX+/TX- pin and RX+/RX- pin to the first storage equipment, USB 3.0 can be used
Specification carries out.
Step 405, by the VBUS pin of the mobile terminal and SBU pin and the second storage equipment Type-C interface
TX+/TX- pin or RX+/RX- pin connection, formed the second transmission channel;
It is similar with the first transmission channel, when there are second storage equipment connect with mobile terminal when, can by will described in
The TX+/TX- pin or RX+/RX- of the VBUS pin and SBU pin of mobile terminal and the second storage equipment Type-C interface
Pin connection, to form the second transmission channel.
Step 406, equipment transmission data is stored to described second using second transmission channel.
It in embodiments of the present invention, can be using second transmission channel to described after forming the second transmission channel
Second storage equipment transmission data.
It in embodiments of the present invention, can be with when the first storage equipment and the second storage equipment access mobile terminal simultaneously
By mobile terminal TX+/TX- pin and RX+/RX- pin and the first memory device form at the first transmission channel, with mobile terminal
VBUS pin and SBU pin and the second memory device form are at the second transmission channel, to be deposited using the first transmission channel to first
Store up equipment transmission data, using the second transmission channel to second storage equipment transmission data, enable mobile terminal simultaneously to
Multiple storage equipment carry out data transmission, and improve the efficiency of mobile terminal data transmission, enhance mobile terminal operation just
Victory.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
3rd embodiment
Referring to Fig. 5, the block diagram of the mobile terminal of third embodiment of the invention is shown, the mobile terminal 500 includes extremely
A few Type-C interface, the mobile terminal 500 can also include following module:
Detection module 510, for detecting whether having the first storage equipment and the second storage equipment access mobile terminal;
First transmission module 520, for if so, using the mobile terminal Type-C interface TX+/TX- pin and
RX+/RX- pin stores equipment transmission data to described first;
Second transmission module 530, for being deposited using the VBUS pin and SBU pin of the Type-C interface to described second
Store up equipment transmission data.
In embodiments of the present invention, the detection module 510 can specifically include following submodule:
Detection sub-module 511 whether there is on the CC1 pin and CC2 pin for detecting mobile terminal Type-C interface
Pull down to the level on ground.
In embodiments of the present invention, the mobile terminal 500 can also include following module:
Power supply module 540, for powering to the first storage equipment and the second storage equipment.
In embodiments of the present invention, the first storage equipment can have Type-C interface, first transmission module
520 can specifically include following submodule:
First connection submodule 521, for by the TX+/TX- pin of the mobile terminal and RX+/RX- pin with it is described
The TX+/TX- pin and RX+/RX- pin of first storage equipment Type-C interface are correspondingly connected with, and form the first transmission channel;
First transmission submodule 522, for storing equipment transmission data to described first using first transmission channel.
In embodiments of the present invention, the second storage equipment can have Type-C interface, second transmission module
530 can specifically include following submodule:
Second connection submodule 531, for storing the VBUS pin of the mobile terminal and SBU pin and described second
The TX+/TX- pin or RX+/RX- pin of equipment Type-C interface connect, and form the second transmission channel;
Second transmission submodule 532, for storing equipment transmission data to described second using second transmission channel.
Mobile terminal 500 can be realized each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 4, to keep away
Exempt to repeat, which is not described herein again.In embodiments of the present invention, by having detected whether the first storage equipment and the second storage equipment
Mobile terminal is accessed, if so, the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface can be used
To the first storage equipment transmission data;It is deposited using the VBUS pin and SBU pin of the Type-C interface to described second
Store up equipment transmission data, solve the problems, such as in the prior art mobile terminal can not simultaneously to multiple storage equipment transmission datas,
The efficiency for improving mobile terminal data transmission enhances the convenience of mobile terminal operation.
Fourth embodiment
Fig. 6 is a kind of block diagram of mobile terminal of fourth embodiment of the invention.Mobile terminal 600 shown in fig. 6 include: to
A few processor 601, memory 602, at least one network interface 604 and user interface 603.It is each in mobile terminal 600
A component is coupled by bus system 605.It is understood that bus system 605 is for realizing the connection between these components
Communication.Bus system 605 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But
For the sake of clear explanation, various buses are all designated as bus system 605 in Fig. 6.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge
It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed
It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 602 of the system and method for description of the embodiment of the present invention is intended to include but unlimited
In the memory of these and any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application
The program or instruction stored in program 6022, processor 601 is for detecting whether have the first storage equipment and the second storage equipment
Access mobile terminal;If so, using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface to institute
State the first storage equipment transmission data;It is set using the VBUS pin and SBU pin of the Type-C interface to second storage
Standby transmission data.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601.
Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing
Device 601 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit
(ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array
(FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic
Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention
Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor
In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can
In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage
Medium is located at memory 602, and processor 601 reads the information in memory 602, and the step of the above method is completed in conjunction with its hardware
Suddenly.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor
(DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device
(ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray,
FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for executing function of the present invention
In member or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come
Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can
With portion realizes in the processor or outside the processor.
Optionally, the processor 601 is also used to: on the CC1 pin and CC2 pin of detection mobile terminal Type-C interface
With the presence or absence of the level for pulling down to ground.
Optionally, the processor 601 is also used to: to the first storage equipment and the second storage equipment power supply.
Optionally, the processor 601 is also used to: by the TX+/TX- pin of the mobile terminal and RX+/RX- pin with
The TX+/TX- pin and RX+/RX- pin of the first storage equipment Type-C interface are correspondingly connected with, and it is logical to form the first transmission
Road;Equipment transmission data is stored to described first using first transmission channel.
Optionally, the processor 601 is also used to: by the VBUS pin of the mobile terminal and SBU pin and described the
The TX+/TX- pin of two storage equipment Type-C interfaces or the connection of RX+/RX- pin, form the second transmission channel;Using described
Second transmission channel stores equipment transmission data to described second.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.The embodiment of the present invention, which passes through, has detected whether that the first storage equipment and the second storage equipment access mobile terminal, if
It is that can then be set using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface to first storage
Standby transmission data;Using the VBUS pin and SBU pin of the Type-C interface to the second storage equipment transmission data, solve
Determined in the prior art mobile terminal can not simultaneously to multiple storage equipment transmission datas the problem of, improve mobile terminal data
The efficiency of transmission enhances the convenience of mobile terminal operation.
5th embodiment
Fig. 7 is the structural schematic diagram of the mobile terminal of fifth embodiment of the invention.Specifically, the mobile terminal 700 in Fig. 7
It can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal 700 in Fig. 7 includes radio frequency (RadioFrequency, RF) circuit 710, memory 720, input list
Member 730, display unit 740, processor 760, voicefrequency circuit 770, WiFi (WirelessFidelity) module 780 and power supply
790。
Wherein, input unit 730 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 700 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 731.Touch panel 731, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 731 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 731 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 760 is given again, and can be received order that processor 760 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 731.In addition to touch panel 731, input unit
730 can also include other input equipments 732, other input equipments 732 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 740 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 700.Display unit 740 may include display panel 741, optionally, can use LCD or organic hair
The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 760 is sent to determine the type of touch event, is followed by subsequent processing device
760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 760 is the control centre of mobile terminal 700, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 721, and calling storage
Data in second memory 722 execute the various functions and processing data of mobile terminal 700, thus to mobile terminal 700
Carry out integral monitoring.Optionally, processor 760 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/
Or the data in the second memory 722, processor 760 is for detecting whether have the first storage equipment and the second storage equipment to connect
Enter mobile terminal;If so, using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface to described
First storage equipment transmission data;Equipment is stored to described second using the VBUS pin and SBU pin of the Type-C interface
Transmit data.
Optionally, the processor 760 is also used to: on the CC1 pin and CC2 pin of detection mobile terminal Type-C interface
With the presence or absence of the level for pulling down to ground.
Optionally, the processor 760 is also used to: to the first storage equipment and the second storage equipment power supply.
Optionally, the processor 760 is also used to: by the TX+/TX- pin of the mobile terminal and RX+/RX- pin with
The TX+/TX- pin and RX+/RX- pin of the first storage equipment Type-C interface are correspondingly connected with, and it is logical to form the first transmission
Road;Equipment transmission data is stored to described first using first transmission channel.
Optionally, the processor 760 is also used to: by the VBUS pin of the mobile terminal and SBU pin and described the
The TX+/TX- pin of two storage equipment Type-C interfaces or the connection of RX+/RX- pin, form the second transmission channel;Using described
Second transmission channel stores equipment transmission data to described second.
As it can be seen that the embodiment of the present invention is mobile eventually by having detected whether the first storage equipment and the second storage equipment access
End, if so, can be using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface to described first
Store equipment transmission data;It is transmitted using the VBUS pin and SBU pin of the Type-C interface to the second storage equipment
Data solve the problems, such as that mobile terminal can not improve movement simultaneously to multiple storage equipment transmission datas in the prior art
The efficiency of terminal data transmission enhances the convenience of mobile terminal operation.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of method of data transmission, applied to the mobile terminal including at least one Type-C interface, which is characterized in that institute
The method of stating includes:
The first storage equipment and the second storage equipment access mobile terminal are detected whether;
If so, the TX+/TX- pin and RX+/RX- pin using the mobile terminal Type-C interface are stored to described first
Equipment transmission data;
Equipment transmission data is stored to described second using the VBUS pin and SBU pin of the Type-C interface.
2. the method according to claim 1, wherein described detected whether the first storage equipment and the second storage
Equipment access mobile terminal the step of include:
It detects on the CC1 pin and CC2 pin of mobile terminal Type-C interface with the presence or absence of the level for pulling down to ground.
3. method according to claim 1 or 2, which is characterized in that use the mobile terminal Type-C interface described
TX+/TX- pin and RX+/RX- pin to it is described first storage equipment transmission data the step of before, further includes:
Mobile terminal is powered to the first storage equipment and the second storage equipment.
4. according to the method described in claim 3, it is characterized in that, it is described first storage equipment have Type-C interface, it is described
Number is transmitted to the first storage equipment using the TX+/TX- pin and RX+/RX- pin of the mobile terminal Type-C interface
According to the step of include:
By the TX of the TX+/TX- pin of the mobile terminal and RX+/RX- pin and the first storage equipment Type-C interface
+/TX- pin and RX+/RX- pin are correspondingly connected with, and form the first transmission channel;
Equipment transmission data is stored to described first using first transmission channel.
5. according to the method described in claim 3, it is characterized in that, it is described second storage equipment have Type-C interface, it is described
Using the Type-C interface VBUS pin and SBU pin to it is described second storage equipment transmission data the step of include:
The TX+/TX- of the VBUS pin of the mobile terminal and SBU pin and the second storage equipment Type-C interface is managed
Foot or the connection of RX+/RX- pin, form the second transmission channel;
Equipment transmission data is stored to described second using second transmission channel.
6. a kind of mobile terminal, the mobile terminal includes at least one Type-C interface, which is characterized in that the mobile terminal
Further include:
Detection module, for detecting whether having the first storage equipment and the second storage equipment access mobile terminal;
First transmission module, for if so, using the mobile terminal Type-C interface TX+/TX- pin and RX+/RX-
Pin stores equipment transmission data to described first;
Second transmission module, VBUS pin and SBU pin for the use Type-C interface store equipment to described second
Transmit data.
7. mobile terminal according to claim 6, which is characterized in that the detection module includes:
Detection sub-module, with the presence or absence of pulling down to ground on the CC1 pin and CC2 pin for detecting mobile terminal Type-C interface
Level.
8. mobile terminal according to claim 6 or 7, which is characterized in that further include:
Power supply module, for powering to the first storage equipment and the second storage equipment.
9. mobile terminal according to claim 8, which is characterized in that the first storage equipment has Type-C interface,
First transmission module includes:
First connection submodule, for storing the TX+/TX- pin of the mobile terminal and RX+/RX- pin and described first
The TX+/TX- pin and RX+/RX- pin of equipment Type-C interface are correspondingly connected with, and form the first transmission channel;
First transmission submodule, for storing equipment transmission data to described first using first transmission channel.
10. according to the method described in claim 8, it is characterized in that, it is described second storage equipment have Type-C interface, it is described
Second transmission module includes:
Second connection submodule, for the VBUS pin of the mobile terminal and SBU pin and described second to be stored equipment
The TX+/TX- pin or RX+/RX- pin of Type-C interface connect, and form the second transmission channel;
Second transmission submodule, for storing equipment transmission data to described second using second transmission channel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710399340.XA CN108989535A (en) | 2017-05-31 | 2017-05-31 | A kind of method and mobile terminal of data transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710399340.XA CN108989535A (en) | 2017-05-31 | 2017-05-31 | A kind of method and mobile terminal of data transmission |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108989535A true CN108989535A (en) | 2018-12-11 |
Family
ID=64501013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710399340.XA Pending CN108989535A (en) | 2017-05-31 | 2017-05-31 | A kind of method and mobile terminal of data transmission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108989535A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101876959A (en) * | 2009-11-10 | 2010-11-03 | 神州付(北京)软件技术有限公司 | Data transmission device and method thereof |
US20120102255A1 (en) * | 2010-10-25 | 2012-04-26 | Moore Terrill M | Usb hub supporting unequal numbers of high-speed and super-speed ports |
US20130185462A1 (en) * | 2012-01-16 | 2013-07-18 | Renesas Electronics Corporation | Usb 3.0 device and control method thereof |
CN104023294A (en) * | 2014-05-30 | 2014-09-03 | 广东欧珀移动通信有限公司 | Interface multiplexing apparatus in terminal, and adaptor panel |
CN204758725U (en) * | 2015-06-29 | 2015-11-11 | 乐视致新电子科技(天津)有限公司 | Detection apparatus for electronic equipment USB interface |
US20150331826A1 (en) * | 2014-05-19 | 2015-11-19 | Microchip Technology Incorporated | Switchless usb c-connector hub |
CN105893305A (en) * | 2016-03-29 | 2016-08-24 | 乐视控股(北京)有限公司 | Intelligent mobile terminal USB TYPE-C interface system |
CN106210949A (en) * | 2016-06-29 | 2016-12-07 | 乐视控股(北京)有限公司 | The mode switching method of a kind of earphone and mode-changeover device |
CN106253011A (en) * | 2016-08-30 | 2016-12-21 | 硅谷数模半导体(北京)有限公司 | The conversion equipment of data-interface |
CN106601364A (en) * | 2015-10-19 | 2017-04-26 | 富士康(昆山)电脑接插件有限公司 | USB-Type C cable |
-
2017
- 2017-05-31 CN CN201710399340.XA patent/CN108989535A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101876959A (en) * | 2009-11-10 | 2010-11-03 | 神州付(北京)软件技术有限公司 | Data transmission device and method thereof |
US20120102255A1 (en) * | 2010-10-25 | 2012-04-26 | Moore Terrill M | Usb hub supporting unequal numbers of high-speed and super-speed ports |
US20130185462A1 (en) * | 2012-01-16 | 2013-07-18 | Renesas Electronics Corporation | Usb 3.0 device and control method thereof |
US20150331826A1 (en) * | 2014-05-19 | 2015-11-19 | Microchip Technology Incorporated | Switchless usb c-connector hub |
CN104023294A (en) * | 2014-05-30 | 2014-09-03 | 广东欧珀移动通信有限公司 | Interface multiplexing apparatus in terminal, and adaptor panel |
CN204758725U (en) * | 2015-06-29 | 2015-11-11 | 乐视致新电子科技(天津)有限公司 | Detection apparatus for electronic equipment USB interface |
CN106601364A (en) * | 2015-10-19 | 2017-04-26 | 富士康(昆山)电脑接插件有限公司 | USB-Type C cable |
CN105893305A (en) * | 2016-03-29 | 2016-08-24 | 乐视控股(北京)有限公司 | Intelligent mobile terminal USB TYPE-C interface system |
CN106210949A (en) * | 2016-06-29 | 2016-12-07 | 乐视控股(北京)有限公司 | The mode switching method of a kind of earphone and mode-changeover device |
CN106253011A (en) * | 2016-08-30 | 2016-12-21 | 硅谷数模半导体(北京)有限公司 | The conversion equipment of data-interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106844067B (en) | A kind of processing method and mobile terminal of content | |
CN106844265B (en) | A kind of control method and mobile terminal of general-purpose serial bus USB interface | |
CN107819922B (en) | A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset | |
CN108268389A (en) | The insertion detection method and mobile terminal of a kind of equipment | |
CN108268388B (en) | A kind of Type-C interface protective circuit and method, mobile terminal | |
CN106208206B (en) | A kind of wireless charging method and mobile terminal | |
CN108268411A (en) | The method and mobile terminal of a kind of data transmission | |
CN108268395A (en) | A kind of method and mobile terminal of data communication | |
CN106033355B (en) | A kind of language setting method and mobile terminal | |
CN108270253A (en) | A kind of charging method and mobile terminal | |
CN107708093B (en) | A kind of method and mobile terminal for establishing relaying data network using wireless headset | |
CN107257406B (en) | A kind of method and terminal to charge and audio data is handled | |
CN108270255B (en) | A kind of charging method and mobile terminal | |
CN108271093A (en) | The processing method and mobile terminal of a kind of access device | |
CN108268402A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN108268405A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN107347137B (en) | A kind of processing method and mobile terminal of image data | |
CN108984448A (en) | A kind of method and mobile terminal of data transmission | |
CN106684967B (en) | A kind of charging method and mobile terminal of mobile terminal | |
CN106162723B (en) | A kind of wireless communications method and terminal | |
CN108268397A (en) | The processing method and mobile terminal of a kind of access device | |
CN108989535A (en) | A kind of method and mobile terminal of data transmission | |
CN108268089A (en) | A kind of interface protector, mobile terminal and method | |
CN108268090A (en) | A kind of interface protector, mobile terminal and method | |
CN108268091B (en) | A kind of interface protector, mobile terminal and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181211 |