CN108268411A - The method and mobile terminal of a kind of data transmission - Google Patents

The method and mobile terminal of a kind of data transmission Download PDF

Info

Publication number
CN108268411A
CN108268411A CN201611265814.3A CN201611265814A CN108268411A CN 108268411 A CN108268411 A CN 108268411A CN 201611265814 A CN201611265814 A CN 201611265814A CN 108268411 A CN108268411 A CN 108268411A
Authority
CN
China
Prior art keywords
mobile terminal
type
storage device
interfaces
pins
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
Application number
CN201611265814.3A
Other languages
Chinese (zh)
Inventor
刘彦彬
陈志刚
杨鹏博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611265814.3A priority Critical patent/CN108268411A/en
Publication of CN108268411A publication Critical patent/CN108268411A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

An embodiment of the present invention provides the method and mobile terminal of a kind of data transmission, the method is applied to mobile terminal, and the mobile terminal includes at least one Type C interface, the method includes:When detecting that charger accesses mobile terminal, charging is completed by the TX+/TX pins of the Type C interface of the mobile terminal and is shaken hands;When detecting that storage device accesses the mobile terminal, carried out data transmission by the D+/D pins and the storage device of the Type C interface, the data transmission is performed according to 2.0 protocol specifications of USB, solve the problems, such as that mobile terminal transmits data in charging without normal direction storage device in the prior art, enable and charge to mobile terminal and be carried out at the same time to storage device transmission data, the efficiency of mobile terminal charging and data transmission is improved, enhances the convenience of mobile terminal operation.

Description

The method and mobile terminal of a kind of data transmission
Technical field
The present embodiments relate to field of communication technology more particularly to the methods and mobile terminal of a kind of data transmission.
Background technology
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 are one kind popular in current industry The development side of I/O (Input/Output, the input/output) interface of terminal devices such as USB interface and follow-up 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 standards, can be connect with using the charger of same-interface standard, It is charged from charger to mobile terminal;It can also be connect with using the storage device of identical standard, by the data in mobile terminal It is transmitted to storage device.But in charging, mobile terminal is as slave device, and charger is main equipment;And in transmission data When mobile terminal then as main equipment, storage device is as slave device.Mobile terminal can not receive charger charging when, Simultaneously data are transmitted to storage device.
Invention content
The embodiment of the present invention provides a kind of method and mobile terminal of data transmission, to solve mobile terminal in the prior art The problem of data being transmitted in charging without normal direction storage device.
In a first aspect, an embodiment of the present invention provides a kind of method of data transmission, applied to mobile terminal, the movement Terminal includes at least one Type-C interfaces, the method includes:
When detecting that charger accesses mobile terminal, managed by the TX+/TX- of the Type-C interfaces of the mobile terminal Foot completes charging and shakes hands;
When detecting that storage device accesses the mobile terminal, D+/D- pins and institute by the Type-C interfaces It states storage device to carry out data transmission, the data transmission is performed according to 2.0 protocol specifications of USB.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes at least one Type-C interfaces, the mobile terminal further include:
Handshake module, for when detecting that charger accesses mobile terminal, being connect by the Type-C of the mobile terminal The TX+/TX- pins of mouth complete charging and shake hands;
Data transmission module, for detect storage device access the mobile terminal when, pass through the Type-C interfaces D+/D- pins carry out data transmission with the storage device, the data transmission according to 2.0 protocol specifications of USB perform.
In this way, in embodiments of the present invention, it, can be by described mobile whole when detecting that charger accesses mobile terminal The TX+/TX- pins of the Type-C interfaces at end complete charging and shake hands, and when detecting that storage device accesses the mobile terminal, Carried out data transmission by the D+/D- pins and the storage device of the Type-C interfaces, the data transmission is according to USB 2.0 protocol specifications perform, and solve the problems, such as that mobile terminal transmits data in charging without normal direction storage device in the prior art, Enable and charge to mobile terminal and be carried out at the same time to storage device transmission data, improve mobile terminal charging and data pass Defeated efficiency enhances the convenience of mobile terminal operation.
Description of the drawings
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 present invention Example, for those of ordinary skill in the art, without having to pay 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 structure diagram of Type-C female seats;
Fig. 2 B are the structure diagrams of Type-C male connectors;
Fig. 3 is the external equipment of the present invention and the connection diagram of mobile terminal;
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 structure diagram of the mobile terminal of fifth embodiment of the invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
First embodiment
With reference to Fig. 1, the flow chart of the method for the data transmission of first embodiment of the invention is shown, can specifically include such as Lower step:
Step 101, when detecting that charger accesses mobile terminal, pass through the TX of the Type-C interfaces of the mobile terminal +/TX- pins complete charging and shake hands;
In embodiments of the present invention, the mobile terminal can be the electronic equipment for having Type-C interfaces, for example, intelligence Mobile phone, tablet computer etc., the embodiment of the present invention are not construed as limiting the concrete type of mobile terminal.
Type-C is a kind of connecting interface of USB interface, regardless of tow sides can be inserted into, size be about 8.3mm × 2.5mm supports the functions such as charging, data transmission, the display output of USB standard as other interfaces.
In the concrete realization, the circumscribed USB Type-C interfaces 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 are that a USB Type-C Interface Expanding can be multiple, and these interfaces can be made used at the same time by one kind Device.Therefore, the external equipments such as charger or storage device can by accessing the Type-C Hub, realize with mobile terminal it Between connection.
In general, USB Type-C interfaces can include Type-C female seats and Type-C male connectors, as shown in Figure 2 A and 2B, respectively It is the structure diagram of Type-C female seats and Type-C male connectors.Type C female seats include 24 pins (PIN), wherein 4 Vbus pins, 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 Type C male connectors are then to include 22 pins, reduce a pair of of D+/D- pins compared with Type C female seats, Type C male connectors also include 4 vbus pins, 4 TX pins, 4 RX pins and 2 CC pins.
In embodiments of the present invention, the Type-C interfaces on mobile terminal can be a Type-C female seat, and straight with it It meets connected Type-C Hub and then includes a Type-C male connector and multiple Type-C female seats.Specifically, mobile terminal side Type-C female seats are connected with a Type-C male connector on Type-C Hub, and the Type-C male connectors are with being built in Type-C Hub Interior multiple Type-C female seats are connected, and multiple Type-C female seats can be connected with multiple external equipments respectively.
In embodiments of the present invention, it is mobile when in a certain Type-C female seats of the charger by being inserted into Type-C Hub Terminal can detect the access of external equipment by the level change on CC pins.Specifically, when mobile terminal is further When identifying the external equipment as charger, can charging be completed by the TX+/TX- pins of Type-C interfaces and shaken hands, with complete Into the interaction about charge information between mobile terminal and charger.
Step 102, when detecting that storage device accesses the mobile terminal, pass through the D+/D- of the Type-C interfaces Pin carries out data transmission with the storage device, and the data transmission is performed according to 2.0 protocol specifications of USB.
In embodiments of the present invention, it when in a certain Type-C female seats that another external equipment is inserted into Type-C Hub, moves Dynamic terminal can also detect the access of the external equipment by the level change on CC pins.
As shown in figure 3, it is the external equipment of the present invention and the connection diagram of mobile terminal.In figure 3, pass through insertion Two external equipments being connect with mobile terminal of Type-C Hub realizations are respectively charger and storage device, the storage device Can be USB flash drive (USB flash disk, abbreviation USB flash disk) or the other kinds of equipment using Type-C interface standards, The embodiment of the present invention is not construed as limiting the concrete type of storage device.
Further, when mobile terminal detects the access of storage device, mobile terminal can pass through the Type-C The D+/D- pins of interface carry out data transmission with the storage device.Specifically, mobile terminal by D+/D- pins to external Storage device transmission data when, can be performed according to 2.0 protocol specifications of USB.
USB 2.0 is a kind of USB specification, based on half-duplex two-wire bus, is capable of providing one-way data steaming transfer, maximum Transmission bandwidth is 480Mbps (i.e. 60MB/s).
In general, Type-C interfaces can support 3.0 protocol specifications of USB, it, can be backward compatible by setting D+/D- pins 2.0 protocol specifications of USB.USB 3.0 introduces full-duplex data transmission, and 2 are used for transmission data in 5 circuits, another 2 with Data are received, also 1 be ground wire.That is, USB 3.0 can be synchronized is written and read operation at full tilt, transmission speed Rate has compared with USB 2.0 significantly to be promoted.
Therefore, in embodiments of the present invention, mobile terminal is transmitting data by D+/D- pins to external storage device When, it can be performed according to 2.0 protocol specifications of USB.
In embodiments of the present invention, when detecting that charger accesses mobile terminal, the mobile terminal can be passed through The TX+/TX- pins of Type-C interfaces complete charging and shake hands, and when detecting that storage device accesses the mobile terminal, pass through The D+/D- pins of the Type-C interfaces carry out data transmission with the storage device, and the data transmission is assisted according to USB 2.0 Regulation enforcement is discussed, solves the problems, such as that mobile terminal transmits data in charging without normal direction storage device in the prior art so that It charges to mobile terminal and can be carried out at the same time to storage device transmission data, improve mobile terminal charging and data transmission Efficiency enhances the convenience of mobile terminal operation.
Second embodiment
With reference to Fig. 4, the flow chart of the method for the data transmission of second embodiment of the invention is shown, can specifically include such as Lower step:
Step 401, when the CC1 pins of the Type-C interfaces of mobile terminal detect pull-up level, identification has charger Access the mobile terminal;
In embodiments of the present invention, the mobile terminal can be the electronic equipment for having Type-C interfaces, for example, intelligence Mobile phone, tablet computer etc., 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 interfaces of mobile terminal can be connect with a Type-C Hub.It fills The external equipments such as electric appliance or storage device can realize the connection between mobile terminal by accessing the Type-C Hub.
In general, USB Type-C interfaces can include Type-C female seats and Type-C male connectors.In embodiments of the present invention, it moves Type-C interfaces in dynamic terminal can be a Type-C female seat, the Type-C female seats of mobile terminal side on Type-C Hub A Type-C male connector be connected, which is connected with the multiple Type-C female seats being built in Type-C Hub It connects, multiple Type-C female seats can be connected with multiple external equipments respectively.
In charger, CC pins are the states pulled up always by a current source, can only be used as main equipment, and are moved Terminal is then that both can also be used as slave device as main equipment to use.As the CC1 of the Type-C interfaces of mobile terminal side When pin detects pull-up level, charger can be identified as and accessed the mobile terminal.
Step 402, charging is completed by the TX+/TX- pins of the Type-C interfaces of the mobile terminal to shake hands;
In embodiments of the present invention, charging can be carried out by the TX+/TX- pins of Type-C interfaces to shake hands, and complete movement About the interaction of charge information between terminal and charger.
For example, when mobile terminal request electric current to, TX+ can be moved to 1.8V, TX- moves 0V to, to represent to use The electric current of 500mA charges, and after charger detects the level of TX+ and TX-, adjusts the output current of charger to 500mA, One configuration process is completed with this.Certainly, in practical applications, those skilled in the art can be according to actual needs to above-mentioned Numerical value is configured, and the embodiment of the present invention is not construed as limiting this.
Step 403, when the CC2 pins of the Type-C interfaces of mobile terminal detect the level for pulling down to ground, identification has Storage device accesses the mobile terminal;
In embodiments of the present invention, it when in a certain Type-C female seats that another external equipment is inserted into Type-C Hub, moves Dynamic terminal can also detect the access of the external equipment by the level change on CC pins.
Specifically, since the external equipments such as storage device can only be used as slave device, accessing other in storage device sets When standby, the CC pins of storage device side Type-C interfaces can then pass through an electricity by a resistance eutral grounding, mobile terminal side Stream source pulls up, so as to generate level change.Therefore, ground is pulled down to when the CC2 pins of mobile terminal Type-C interfaces detect During level, it is believed that there is storage device to access the mobile terminal.
In embodiments of the present invention, by different CC pins (CC1 pins and CC2 pins) respectively to the equipment of access into Row detection so that mobile terminal can both receive the charging of main equipment charger as slave device, can also be used as main equipment and The external slave device such as storage device is into row data communication.
Step 404, the charger is powered to the storage device;
In general, storage device is connect with other equipment, and when carrying out data transmission, need to supply it by other equipment Electricity could realize corresponding function.
In embodiments of the present invention, when charger and storage device access mobile terminal simultaneously, due to Type-C interfaces Vbus pins on have the voltage output of 5V, therefore, the vbus pins that can Type-C interfaces be directly passed through by the charger It powers to the storage device.
If it should be noted that before storage device accesses mobile terminal, charger is not detected and accesses movement end End, then need to be powered from the mobile terminal to the storage device;Alternatively, movement is accessed simultaneously in charger and storage device After terminal, since mobile terminal charging is full or other reasons are disconnected the connection of charger and mobile terminal, then need to switch to It is powered from the mobile terminal to the storage device.
Step 405, carried out data transmission by the D+/D- pins and the storage device of the Type-C interfaces, it is described Data transmission is performed according to 2.0 protocol specifications of USB.
In embodiments of the present invention, when charger and storage device access mobile terminal simultaneously, the mobile terminal can To be carried out data transmission by the D+/D- pins of Type-C interfaces with the storage device, realize when charging for mobile terminal, Data transmission between mobile terminal and storage device.
In the concrete realization, the data transmission between mobile terminal and external storage device can be according to USB2.0 agreements Regulation enforcement.
In embodiments of the present invention, when charger and storage device access mobile terminal simultaneously, pass through Type-C interfaces The charging completed between charger and mobile terminal of TX+/TX- pins shake hands, pass through D+/D- pins and realize storage device with moving Data transmission between dynamic so that charge to mobile terminal and can be carried out at the same time to storage device transmission data, improve shifting The efficiency of dynamic terminal charge and data transmission enhances the convenience of mobile terminal operation.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
3rd embodiment
With reference to Fig. 5, the block diagram of the mobile terminal of third embodiment of the invention is shown, the mobile terminal 500 specifically may be used To include following module:
Handshake module 501, for when detecting that charger accesses mobile terminal, passing through the Type-C of the mobile terminal The TX+/TX- pins of interface complete charging and shake hands;
Data transmission module 502, for detect storage device access the mobile terminal when, connect by the Type-C The D+/D- pins of mouth are transmitted with the storage device, and the data transmission is performed according to 2.0 protocol specifications of USB.
It in embodiments of the present invention, can be by the way that following module be called to detect whether that charger accesses mobile terminal:
Pull up detection module 503, for the CC1 pins of the Type-C interfaces of mobile terminal detect pull-up level when, Identification has charger to access the mobile terminal.
It in embodiments of the present invention, can be by the way that following module be called to detect whether that storage device accesses mobile terminal:
Detection module 504 is pulled down, for detecting the electricity for pulling down to ground in the CC2 pins of the Type-C interfaces of mobile terminal Usually, identification has storage device to access the mobile terminal.
In embodiments of the present invention, the mobile terminal can also include following module:
Power supply module 505, for when detecting that charger disconnects the connection with mobile terminal, being supplied to the storage device Electricity.
Mobile terminal 500 can realize 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, when detecting that charger accesses mobile terminal, institute can be passed through The TX+/TX- pins completion charging for stating the Type-C interfaces of mobile terminal is shaken hands, and is detecting the storage device access shifting During dynamic terminal, carried out data transmission by the D+/D- pins and the storage device of the Type-C interfaces, the data transmission It is performed according to USB2.0 protocol specifications, solves mobile terminal in the prior art and transmit data without normal direction storage device in charging The problem of so that it charges to mobile terminal and can be carried out at the same time to storage device transmission data, improve mobile terminal charging With the efficiency of data transmission, the convenience of mobile terminal operation is enhanced.
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 includes:Extremely 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 used to implement the connection between these components Communication.Bus system 605 further includes power bus, controlling 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 figure 6.
Wherein, user interface 603 can 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, Or it 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), be used as external slow at a high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms can be used, such as static RAM (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 comprising 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., are used to implement 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 calling program or the instruction of the storage of memory 602, specifically, can be application The program stored in program 6022 or instruction, processor 601 are used for when detecting that charger accesses mobile terminal, by described The TX+/TX- pins of the Type-C interfaces of mobile terminal complete charging and shake hands;When detect storage device access it is described it is mobile eventually During end, carried out data transmission by the D+/D- pins and the storage device of the Type-C interfaces, the data transmission according to 2.0 protocol specifications of USB perform.
The method that the embodiments of the present invention disclose can be applied to realize in processor 601 or by processor 601. Processor 601 may be a kind of IC chip, have the processing capacity of 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), application-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 can realize or perform disclosed each method, step and the box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion or use decoding processor In hardware and software module combination perform 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 with reference to its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can use hardware, software, firmware, middleware, Microcode or combination is realized.For hardware realization, processing unit can be realized in one or more application-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 performing function of the present invention In first or combination.
For software implementations, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and is performed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, the processor 601 is additionally operable to:When the CC1 pins of the Type-C interfaces of mobile terminal detect pull-up During level, identification has charger to access the mobile terminal.
Optionally, the processor 601 is additionally operable to:When the CC2 pins of the Type-C interfaces of mobile terminal detect drop-down To ground level when, identification has storage device to access the mobile terminal.
Mobile terminal 600 can realize each process that mobile terminal is realized in previous embodiment, be repeated to avoid, here It repeats no more.The embodiment of the present invention can pass through the Type- of the mobile terminal when detecting that charger accesses mobile terminal The TX+/TX- pins of C interface complete charging and shake hands, and when detecting that storage device accesses the mobile terminal, by described The D+/D- pins of Type-C interfaces carry out data transmission with the storage device, and the data transmission is advised according to 2.0 agreements of USB Model performs, and solves the problems, such as that mobile terminal transmits data in charging without normal direction storage device in the prior art so as to moving It moves terminal charge and can be carried out at the same time to storage device transmission data, improve the effect of mobile terminal charging and data transmission Rate enhances the convenience of mobile terminal operation.
5th embodiment
Fig. 7 is the structure diagram of the mobile terminal of fifth embodiment of the invention.Specifically, the mobile terminal 700 in Fig. 7 Can be mobile phone, tablet computer, personal digital assistant (PersonalDigitalAssistant, 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 number input by user or character information 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 user on it or neighbouring touch operation (for example user uses the operations of any suitable object or attachment on touch panel 731 such as finger, stylus), and according to advance 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 the signal that touch operation is brought 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 the order that processor 760 is sent and be performed.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 It is one or more in (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
Wherein, display unit 740 can be used for display by information input by user or be supplied to information and the movement of user The various menu interfaces of terminal 700.Display unit 740 may include display panel 741, optionally, LCD or organic hairs may be used Display panel 741 is configured in the forms such as optical diode (OrganicLight-EmittingDiode, OLED).
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 It measures and on it or after neighbouring touch operation, sends processor 760 to determine the type of touch event, be 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 controls.The Application Program Interface viewing area Or the empty interface not comprising any content.The common control viewing area is used to show 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 are stored by running or performing the software program being stored in first memory 721 and/or module and call Data in second memory 722 perform the various functions of mobile terminal 700 and processing data, so as 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 calling store the first memory 721 in software program and/or module and/ Or the data in the second memory 722, processor 760 are used for when detecting that charger accesses mobile terminal, by described The TX+/TX- pins of the Type-C interfaces of mobile terminal complete charging and shake hands;When detect storage device access it is described it is mobile eventually During end, carried out data transmission by the D+/D- pins and the storage device of the Type-C interfaces, the data transmission according to 2.0 protocol specifications of USB perform.
Optionally, the processor 760 is additionally operable to:When the CC1 pins of the Type-C interfaces of mobile terminal detect pull-up During level, identification has charger to access the mobile terminal.
Optionally, the processor 760 is additionally operable to:When the CC2 pins of the Type-C interfaces of mobile terminal detect drop-down To ground level when, identification has storage device to access the mobile terminal.
As it can be seen that the embodiment of the present invention can pass through the mobile terminal when detecting that charger accesses mobile terminal The TX+/TX- pins of Type-C interfaces complete charging and shake hands, and when detecting that storage device accesses the mobile terminal, pass through The D+/D- pins of the Type-C interfaces carry out data transmission with the storage device, and the data transmission is assisted according to USB 2.0 Regulation enforcement is discussed, solves the problems, such as that mobile terminal transmits data in charging without normal direction storage device in the prior art so that It charges to mobile terminal and can be carried out at the same time to storage device transmission data, improve mobile terminal charging and data transmission Efficiency enhances the convenience of mobile terminal operation.
Those of ordinary skill in the art may realize that the embodiment with reference to disclosed in the embodiment of the present invention describes each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Profession Technical staff can realize described function to each specific application using distinct methods, but this realization should not 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 the corresponding process in preceding 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 division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or Person is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent product sale or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention. And aforementioned storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store program code Medium.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, 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 mobile terminal, the mobile terminal includes at least one Type-C interfaces, It is characterized in that, the method includes:
When detecting that charger accesses mobile terminal, the TX+/TX- pins by the Type-C interfaces of the mobile terminal are complete It shakes hands into charging;
When detecting that storage device accesses the mobile terminal, deposited by the D+/D- pins of the Type-C interfaces with described Storage equipment carries out data transmission, and the data transmission is performed according to 2.0 protocol specifications of USB.
2. according to the method described in claim 1, it is characterized in that, charger access movement has been detected whether in the following way Terminal:
When the CC1 pins of the Type-C interfaces of mobile terminal detect pull-up level, identification has charger to access the movement Terminal.
3. method according to claim 1 or 2, which is characterized in that detected whether that storage device connects in the following way Enter mobile terminal:
When the CC2 pins of the Type-C interfaces of mobile terminal detect the level for pulling down to ground, identification has storage device access The mobile terminal.
4. according to the method described in claim 3, it is characterized in that, in the D+/D- pins by the Type-C interfaces Before the step of carrying out data transmission with the storage device, further include:
The charger is powered to the storage device.
5. according to the method described in claim 4, it is characterized in that, the charger includes at least one Type-C interfaces, institute The step of charger is powered to the storage device is stated to include:
The charger is powered by the vbus pins of Type-C interfaces to the storage device.
6. according to the method described in claim 5, it is characterized in that, when detecting charger disconnection and the connection of mobile terminal When, the method further includes:
Mobile terminal is powered to the storage device.
7. a kind of mobile terminal, the mobile terminal includes at least one Type-C interfaces, which is characterized in that the mobile terminal It further includes:
Handshake module, for when detecting that charger accesses mobile terminal, passing through the Type-C interfaces of the mobile terminal TX+/TX- pins complete charging and shake hands;
Data transmission module, during for detecting that storage device accesses the mobile terminal, by the D+ of the Type-C interfaces/ D- pins carry out data transmission with the storage device, and the data transmission is performed according to 2.0 protocol specifications of USB.
8. mobile terminal according to claim 7, which is characterized in that by the way that following module is called to detect whether charger Access mobile terminal:
Detection module is pulled up, for when the CC1 pins of the Type-C interfaces of mobile terminal detect pull-up level, identification, which has, to fill Electric appliance accesses the mobile terminal.
9. mobile terminal according to claim 7 or 8, which is characterized in that by the way that following module is called to detect whether to deposit Store up equipment access mobile terminal:
Detection module is pulled down, for when the CC2 pins of the Type-C interfaces of mobile terminal detect the level for pulling down to ground, knowing There is not storage device to access the mobile terminal.
10. mobile terminal according to claim 9, which is characterized in that the mobile terminal further includes:
Power supply module, for when detecting that charger disconnects the connection with mobile terminal, powering to the storage device.
CN201611265814.3A 2016-12-30 2016-12-30 The method and mobile terminal of a kind of data transmission Pending CN108268411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611265814.3A CN108268411A (en) 2016-12-30 2016-12-30 The method and mobile terminal of a kind of data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611265814.3A CN108268411A (en) 2016-12-30 2016-12-30 The method and mobile terminal of a kind of data transmission

Publications (1)

Publication Number Publication Date
CN108268411A true CN108268411A (en) 2018-07-10

Family

ID=62771221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611265814.3A Pending CN108268411A (en) 2016-12-30 2016-12-30 The method and mobile terminal of a kind of data transmission

Country Status (1)

Country Link
CN (1) CN108268411A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669909A (en) * 2018-12-14 2019-04-23 上海闻泰信息技术有限公司 External equipment implementation method, device, terminal and storage medium
CN109753184A (en) * 2019-01-07 2019-05-14 北京硬壳科技有限公司 Touch control display device and its control method and device
CN112581561A (en) * 2020-12-25 2021-03-30 深圳市元征科技股份有限公司 Method and device for creating pin view, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130217274A1 (en) * 2011-12-06 2013-08-22 Transwitch Corporation Connector for achieving complete interoperability between different types of data and multimedia interfaces
CN204946001U (en) * 2015-08-05 2016-01-06 庄忆芳 USB Type-C modular converter
CN105868139A (en) * 2015-12-31 2016-08-17 乐视移动智能信息技术(北京)有限公司 USB data line containing extension interface and control method therefor
CN205544514U (en) * 2016-03-11 2016-08-31 深圳市普洛威电子有限公司 Take DATA TRANSFER FUNCTIONS's integrated charger
CN106021150A (en) * 2016-04-29 2016-10-12 青岛海信电器股份有限公司 Type-C interface equipment, communication system and communication method
CN205724288U (en) * 2016-04-27 2016-11-23 东莞市凯昶德电子科技股份有限公司 Multifunctional USB Type-C transducer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130217274A1 (en) * 2011-12-06 2013-08-22 Transwitch Corporation Connector for achieving complete interoperability between different types of data and multimedia interfaces
CN204946001U (en) * 2015-08-05 2016-01-06 庄忆芳 USB Type-C modular converter
CN105868139A (en) * 2015-12-31 2016-08-17 乐视移动智能信息技术(北京)有限公司 USB data line containing extension interface and control method therefor
CN205544514U (en) * 2016-03-11 2016-08-31 深圳市普洛威电子有限公司 Take DATA TRANSFER FUNCTIONS's integrated charger
CN205724288U (en) * 2016-04-27 2016-11-23 东莞市凯昶德电子科技股份有限公司 Multifunctional USB Type-C transducer
CN106021150A (en) * 2016-04-29 2016-10-12 青岛海信电器股份有限公司 Type-C interface equipment, communication system and communication method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
会宫610: "技术向:USB Type-C工作原理深度解析", 《IT/计算机 计算机硬件及网络》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669909A (en) * 2018-12-14 2019-04-23 上海闻泰信息技术有限公司 External equipment implementation method, device, terminal and storage medium
CN109753184A (en) * 2019-01-07 2019-05-14 北京硬壳科技有限公司 Touch control display device and its control method and device
CN112581561A (en) * 2020-12-25 2021-03-30 深圳市元征科技股份有限公司 Method and device for creating pin view, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106844265B (en) A kind of control method and mobile terminal of general-purpose serial bus USB interface
CN108268389A (en) The insertion detection method and mobile terminal of a kind of equipment
US9692253B2 (en) Mobile terminal and method for controlling charging and charger therefor
CN106329259A (en) Connecting device and method for recognizing device
CN108268411A (en) The method and mobile terminal of a kind of data transmission
CN106786960A (en) Charge control method, device and terminal
CN108270253A (en) A kind of charging method and mobile terminal
CN108268395A (en) A kind of method and mobile terminal of data communication
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
CN106684967B (en) A kind of charging method and mobile terminal of mobile terminal
CN108268397A (en) The processing method and mobile terminal of a kind of access device
CN108270255B (en) A kind of charging method and mobile terminal
CN108984448A (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
CN108268401A (en) The method and mobile terminal of a kind of data transmission
CN107273323B (en) USB Type-C switching multimedia interface's device
CN108268091B (en) A kind of interface protector, mobile terminal and method
CN108271092A (en) The processing method and mobile terminal of a kind of access device
CN108268396A (en) The processing method and mobile terminal of a kind of access device
CN108270256B (en) A kind of charging method and mobile terminal
CN108268393A (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
CN108270042B (en) A kind of charging method and mobile terminal

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

Application publication date: 20180710

RJ01 Rejection of invention patent application after publication