CN108874708A - OTG equipment, terminal charging method, mobile terminal and computer readable storage medium - Google Patents

OTG equipment, terminal charging method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108874708A
CN108874708A CN201810695064.6A CN201810695064A CN108874708A CN 108874708 A CN108874708 A CN 108874708A CN 201810695064 A CN201810695064 A CN 201810695064A CN 108874708 A CN108874708 A CN 108874708A
Authority
CN
China
Prior art keywords
mobile terminal
charging
otg
otg equipment
terminal
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.)
Granted
Application number
CN201810695064.6A
Other languages
Chinese (zh)
Other versions
CN108874708B (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810695064.6A priority Critical patent/CN108874708B/en
Publication of CN108874708A publication Critical patent/CN108874708A/en
Application granted granted Critical
Publication of CN108874708B publication Critical patent/CN108874708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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

Abstract

The invention discloses a kind of OTG equipment, terminal charging method, mobile terminal and computer readable storage medium, the OTG equipment, including:OTG device and charging unit, the USB charging voltage port of the OTG device is electrically connected with the USB charging voltage port of the charging unit, the grounding ports of the OTG device are electrically connected with the grounding ports of the charging unit, and the positive port of the detection of the charging unit and detection negative terminal mouth are shorted.Power management chip in the mobile terminal, for when having OTG equipment access mobile terminal and the OTG equipment is provided with the access of USB charging voltage, the USB charging voltage is linked into inside mobile terminal, it opens reduction voltage circuit and closes booster circuit, to use the USB charging voltage to charge the battery.The present invention realizes OTG equipment and carries out simultaneously to mobile terminal charging and mobile terminal with the progress data interaction of OTG equipment, promotes user experience.

Description

OTG equipment, terminal charging method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to mobile terminal control field more particularly to a kind of OTG (On The Go, a kind of USB mode) Equipment, terminal charging method, mobile terminal and computer readable storage medium.
Background technique
Intelligent mobile terminal initially enters different field deep ploughing epoch, major mobile terminal after experienced the growth of barbarous formula Manufacturer is all even more to accelerate this state making the fashionable of one's own characteristic attribute, especially hand trip in recent years, specially The i.e. game mobile terminal of the mobile terminal developed for game comes into being, and online network game game user is more concerned about Mobile terminal element includes continuation of the journey, network, fever etc., and continuation of the journey problem is that all big enterprises all are struggling to study, mobile terminal electricity And it is an important factor for influencing the experience of game mobile terminal, to both know about cable network compared with wireless as the network user that network is bad Network can be more stable, so being also in this way, if any using cable network connection experience sense more preferable, mesh for hand trip user The preceding patchcord for being commercially available cable network connection mobile terminal in the market, as shown in Figure 1, the patchcord is a kind of OTG Equipment.
For charging to mobile terminal, desirably the shorter the charging time the better by user, at present for Qualcomm's platform The application of the fast charge technical solution of offer is also quite mature, such as QC2.0, QC3.0, however one can be encountered in game process A problem:What to do when user not only needs to charge but also need stable cable network, that is to say, that both if there is one kind Can charge the equipment that can realize simultaneously wiring logging-on function again, just can solve this problem.But at present on the market it is existing charging and The two-in-one equipment of wiring logging-on function can only all realize one such function in synchronization, i.e., otherwise charging or it is wired on Net.
Therefore, the equipment that market not yet occurs while supporting charging and mobile terminal wiring logging-on function at present.
Summary of the invention
It is a primary object of the present invention to propose a kind of OTG equipment, terminal charging method, mobile terminal and computer-readable Storage medium, it is intended to realize that OTG equipment carries out data interaction simultaneously to mobile terminal charging and mobile terminal and OTG equipment It carries out, so that user obtains preferably experience.
To achieve the above object, a kind of OTG equipment provided by the invention, including:OTG device and charging unit, wherein institute The USB charging voltage port for stating OTG device is electrically connected with the USB charging voltage port of the charging unit, the OTG device Grounding ports are electrically connected with the grounding ports of the charging unit, and the positive port of the detection of the charging unit and detection negative terminal mouth are short It connects.
Optionally, the OTG equipment has the Type_C interface being connected with mobile terminal.
Optionally, in the case where the OTG equipment accesses mobile terminal, the OTG equipment is provided with for mobile terminal The data interaction of line function of surfing the Net.
Optionally, in the case where the OTG equipment accesses mobile terminal, the OTG equipment provides number for mobile terminal While according to interactive function, the charging unit is for charging to the battery of the mobile terminal, and the charging unit It is also used to as OTG device power supply.
The present invention also proposes a kind of mobile terminal, including:Power management chip and battery, wherein
Power management chip has detected that OTG equipment accesses mobile terminal and the OTG equipment is provided with USB for working as When charging voltage accesses, the USB charging voltage is linked into inside mobile terminal, open reduction voltage circuit and closes boosting electricity Road, to use the USB charging voltage to charge the battery.
Optionally, the power management chip, is specifically used for:
In the case where the mobile terminal is connected by Type_C interface with the OTG equipment, the Type_C is detected Whether one of two rotations drop-down current potential port of interface connect with the corresponding port of the OTG equipment and forms pull-up partial pressure electricity Otherwise road determines no OTG equipment access mobile terminal if so, being determined with OTG equipment access mobile terminal.
Optionally, the power management chip, is also used to:
When the positive port of detection and detection negative terminal mouth for detecting the Type_C interface do not have input signal, in setting It is charged using the USB charging voltage to the battery under charging voltage and current control parameter.
Optionally, the power management chip, is also used to:
When charging current when detecting to battery charging is greater than preset current threshold, stops charging and report It is alert.
In addition, to achieve the above object, the present invention also proposes a kind of terminal charging method, it is applied to mobile terminal, it is described Method includes:
It, will when having detected OTG equipment access mobile terminal and the OTG equipment is provided with the access of USB charging voltage The USB charging voltage is linked into inside mobile terminal, is opened reduction voltage circuit and is closed booster circuit, to use the USB to fill Piezoelectric voltage charges to the battery.
Optionally, the mode of OTG equipment access mobile terminal is detected whether, including:
In the case where the mobile terminal is connected by Type_C interface with the OTG equipment, the Type_C is detected Whether one of two rotations drop-down current potential port of interface connect with the corresponding port of the OTG equipment and forms pull-up partial pressure electricity Otherwise road determines no OTG equipment access mobile terminal if so, being determined with OTG equipment access mobile terminal.
Optionally, described to be charged using the USB charging voltage to the battery, including:
When the positive port of detection and detection negative terminal mouth for detecting the Type_C interface do not have input signal, in setting It is charged using the USB charging voltage to the battery under charging voltage and current control parameter.
Optionally, the method further includes:
When charging current when detecting to battery charging is greater than preset current threshold, stops charging and report It is alert.
The present invention also provides a kind of computer readable storage medium, OTG is stored on the computer readable storage medium The step of charging procedure, the OTG charging procedure realizes above-mentioned terminal charging method when being executed by processor.
OTG equipment, terminal charging method, mobile terminal and computer readable storage medium proposed by the present invention, can be easily Realize the data interaction of mobile terminal and OTG equipment and the need that OTG equipment carries out the battery charging of mobile terminal parallel It asks, it is convenient and practical.Mobile terminal of the present invention is used cooperatively with the OTG equipment, the power management core of the mobile terminal Piece can accurately control the open and close of internal booster circuit and reduction voltage circuit, so as to access the described of the mobile terminal OTG equipment smoothly charges to battery of mobile terminal while carrying out data interaction with mobile terminal, and can charge When electric current is more than preset current threshold, stop charging to battery, to protect battery in time.
Detailed description of the invention
Fig. 1 is a wired network interface card product schematic diagram for turning Typc-C of the prior art;
The hardware structural diagram of Fig. 2 optional mobile terminal of each embodiment to realize the present invention;
Fig. 3 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 2;
Fig. 4 is the composition connection schematic diagram of the OTG equipment of first embodiment of the invention;
Fig. 5 is the composition connection schematic diagram of the mobile terminal of second and third embodiment of the invention;
Fig. 6 is the general Typc-C interface diagram of the mobile terminal of second and third embodiment of the invention;
Fig. 7 is the terminal charging method flow chart of fourth embodiment of the invention;
Fig. 8 is the terminal charging method flow chart of fifth embodiment of the invention;
Fig. 9 is the OTG equipment and mobile terminal connection schematic diagram of application example of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile terminal, Tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), just Prompt formula media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as equal mobile terminals, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 2, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Figure 2 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 2 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 2 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify answering for mobile terminal posture With (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;The fingerprint sensor that can also configure as mobile terminal, pressure sensor, iris sensor, molecule sensor, gyroscope, The other sensors such as barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 2, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data according to mobile terminal (such as audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 2 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 3, Fig. 3 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
As shown in figure 4, first embodiment of the invention proposes a kind of OTG equipment, including:OTG device 401 and charging unit 402, wherein
The USB charging voltage port VBUS of OTG device 401 is electrically connected with the USB charging voltage port VBUS of charging unit 402 It connects, the grounding ports GND of OTG device 401 is electrically connected with the grounding ports GND of charging unit 402, the detection of charging unit 402 Positive port D+ and detection negative terminal mouth D- are shorted.
Power management chip PMIC when the OTG equipment of the embodiment of the present invention is accessed mobile terminal, in mobile terminal Be still OTG device 401 in OTG equipment rather than charging unit 402 identifying, and the principle of existing charging unit be by USB charging voltage port VBUS, grounding ports GND, the positive port D+ of detection and detection negative terminal mouth D- and power management chip PMIC After being connected, by power management chip PMIC according to the input-signal judging charging dress for detecting positive port D+ and detection negative terminal mouth D- Setting is standard charger also criteria of right and wrong charger, carries out controlling its charging voltage and current accordingly and entering charging mould Formula.Therefore in embodiments of the present invention, by the positive port D+ of detection of charging unit 402 and detection negative terminal mouth the D- purpose being shorted be for It avoids identifying that OTG device 401 does not enter charge mode and prepares to OTG device 401 in power management chip PMIC In the case where being powered with data interaction, and the inspection for allowing power management chip PMIC to detect that only charging unit can just export Positive port D+ and detection negative terminal mouth D- signal are surveyed, on the other hand, thinking according to an embodiment of the present invention only need to be by modifying power supply The software interpretation logic of mono- side of managing chip PMIC is designed and is detecting that OTG equipment accesses mobile terminal and the OTG is set When for being provided with the access of USB charging voltage, charging according to the charging current and voltage set as mobile terminal, can be realized and moving The charge function of dynamic terminal side.
Optionally, the OTG equipment has the Type_C interface being connected with mobile terminal.Type_C interface is mobile at present The more general data-interface that terminal uses, the embodiment of the present invention is also not necessarily limited to using Type_C interface, all to meet USB work The interface form of mode.
Optionally, in the case where the OTG equipment accesses mobile terminal, the OTG equipment is provided with for mobile terminal The data interaction of line function of surfing the Net.
The embodiment of the present invention can only realize single wire networking function or charging function in synchronization relative to existing For the OTG equipment of energy, while user's demand parallel for the wiring logging-on function of used mobile terminal and charging is met, It is greatly improved the use of the user experience.In addition, since the type of current OTG equipment is diversified, present invention reality It applies the OTG device 401 in the OTG equipment of example and is also not limited to and provide the data interaction function of wiring logging-on function for user, such as:Also The OTG equipment of external memory space can be to provide, as long as OTG equipment can be connected by the operating mode and mobile terminal of USB Corresponding data interaction function is connect and provides, then combining the charging unit having in OTG equipment in the embodiment of the present invention, just It can realize that the data interaction of charging and various functions is parallel simultaneously.
Optionally, in the case where the OTG equipment accesses mobile terminal, the OTG equipment provides number for mobile terminal While according to interactive function, charging unit 402 is for charging to the battery of the mobile terminal, and the charging unit is also For powering for OTG device 401.
In embodiments of the present invention, when the mobile terminal in the OTG equipment and the embodiment of the present invention is used cooperatively, not only The data interaction for the various functions that can be provided to mobile terminal is charged parallel with to mobile terminal, and since the OTG is set Standby inside has charging unit 402, is powered without the OTG equipment of the mobile terminal to access, but passes through the OTG Therefore the charging unit 402 of equipment itself, can also be saved simultaneously with powering for the OTG device 401 inside the OTG equipment The power consumption of battery in mobile terminal.
As shown in figure 5, second embodiment of the invention proposes a kind of mobile terminal, including:Power management chip 501 and battery 502, wherein
Power management chip 501 has detected that OTG equipment accesses mobile terminal and the OTG equipment is provided with for working as When USB charging voltage accesses, the USB charging voltage is linked into inside mobile terminal, and open reduction voltage circuit and close liter Volt circuit, to use the USB charging voltage to charge battery 502.
Optionally, power management chip 501 are specifically used for:
In the case where the mobile terminal is connected by Type_C interface with the OTG equipment, the Type_C is detected Whether one of two rotations drop-down current potential port CC1 and CC2 of interface connect with the corresponding port CC of the OTG equipment And pull-up bleeder circuit is formed, if so, being determined with OTG equipment access mobile terminal, otherwise determine that no OTG equipment access moves Dynamic terminal.
It is described herein once using Type_C interface, existing mobile terminal identification charging equipment and OTG The principle of equipment is as follows:
As shown in fig. 6, there are one CC signal pins of design in the inside when external data line plug design, and the signal pins are being filled VBUS is connected to by a 56K Ω pull-up resistor inside dateline, the female of Type-C interface is placed on mobile terminal, in order to support Positive anti-plug, there are two CC pins, i.e. CC1, CC2 for female interior design.When external male connector is inserted into female, male connector CC pin can be with Some pin in CC1 and CC2 in female is shorted, and CC1, CC2 in female are connected with power management chip PMIC, CC1 With changeable pull-up resistor and pull down resistor are designed with inside the PMIC of CC2, if it is external without insertion when if internal CC1 with CC2 will be in poll detection external charging equipment and OTG equipment, it is assumed that male connector CC and female CC1 is shorted, due to external male connector There is 56K Ω pull-up resistor in inside, and when PMIC inner wheel rheology changes to CC1 drop-down, composition circuit will be pulled up with external male connector Pull-up bleeder circuit is formed, the formation of the access can inform that PMIC makes to form access inside VBUS and mobile terminal, to pass through BUCK circuit, that is, reduction voltage circuit inside PMIC carries out charging operations, and charging is completed;When being inserted into OTG equipment, such as flash disk turns Wiring etc., the male connector of the male connector and charging data line of OTG equipment have one to fix resistance the difference is that the male connector of OTG equipment designs The pull down resistor of value, and the not 56K Ω pull-up resistor in the male connector of charging data line, inside the PMIC CC1 or CC2 in turn on When drawing, one in CC1 or CC2 will just will form access with the pull down resistor of OTG equipment to form drop-down bleeder circuit, Once detecting the high drop-down bleeder circuit and being believed that there is the insertion of OTG equipment in outside, the power supply of OTG equipment is mentioned by mobile terminal For since cell voltage is not enough to provide the work of OTG equipment, this just needs the BOOST circuit i.e. booster circuit inside PMIC OTG equipment operating voltage is provided, the work of BUCK reduction voltage circuit and BOOST booster circuit inside certain PMIC can be by software Control.
When the mobile terminal of the embodiment of the present invention and the OTG equipment of first embodiment are used cooperatively, due to the OTG equipment In the USB charging voltage that is provided comprising charging unit 402, the mobile terminal of the present embodiment can not only detect OTG equipment It accesses and can also detect that USB charging voltage accesses, at this point, the mobile terminal of the present embodiment is not just then turned on booster circuit Supplying power for outside, but open reduction voltage circuit and receive the extraneous charging for itself.
Optionally, power management chip 501 are also used to:
When the positive port of detection and detection negative terminal mouth for detecting the Type_C interface do not have input signal, in setting It is charged using the USB charging voltage to battery 502 under charging voltage and current control parameter.
For example, when the positive port of detection and detection negative terminal mouth that detect the Type_C interface do not have input signal, base It charges in the charging voltage and current control parameter set in power management chip 501 in advance to battery 502, the setting Charging voltage and current control parameter include:The upper limit of charging voltage, charging current and charging current.
As shown in figure 5, third embodiment of the invention proposes a kind of mobile terminal, including:Power management chip 501 and battery 502, wherein
Power management chip 501 has detected that OTG equipment accesses mobile terminal and the OTG equipment is provided with for working as When USB charging voltage accesses, the USB charging voltage is linked into inside mobile terminal, and open reduction voltage circuit and close liter Volt circuit, to use the USB charging voltage to charge battery 502.
Optionally, power management chip 501 are specifically used for:
In the case where the mobile terminal is connected by Type_C interface with the OTG equipment, the Type_C is detected Whether one of two rotations drop-down current potential port CC1 and CC2 of interface connect with the corresponding port CC of the OTG equipment And pull-up bleeder circuit is formed, if so, being determined with OTG equipment access mobile terminal, otherwise determine that no OTG equipment access moves Dynamic terminal.
When the mobile terminal of the embodiment of the present invention and the OTG equipment of first embodiment are used cooperatively, due to the OTG equipment In the USB charging voltage that is provided comprising charging unit 402, the mobile terminal of the present embodiment can not only detect OTG equipment It accesses and can also detect that USB charging voltage accesses, at this point, the mobile terminal of the present embodiment is not just then turned on booster circuit Supplying power for outside, but open reduction voltage circuit and receive the extraneous charging for itself.
Optionally, power management chip 501 are also used to:
When the positive port of detection and detection negative terminal mouth for detecting the Type_C interface do not have input signal, in setting It is charged using the USB charging voltage to battery 502 under charging voltage and current control parameter.
For example, when the positive port of detection and detection negative terminal mouth that detect the Type_C interface do not have input signal, base It charges in the charging voltage and current control parameter set in power management chip 501 in advance to battery 502, the setting Charging voltage and current control parameter include:The upper limit of charging voltage, charging current and charging current.
Optionally, power management chip 501 are also used to:
When detecting that charging current when charging to battery 502 is greater than preset current threshold, stop charging and alarming. The embodiment of the present invention is set with the upper limit of charging current in front, and effect is exactly to the flow mistake that may occur in charging process Big situation forms protection, further increases the safety of charging.
As shown in fig. 7, fourth embodiment of the invention proposes a kind of terminal charging method, it is applied to mobile terminal, the side Method includes:
Step S1 has detected whether that OTG equipment accesses mobile terminal, if so, thening follow the steps S2, otherwise process terminates;
Optionally, the mode of OTG equipment access mobile terminal is detected whether, including:
In the case where the mobile terminal is connected by Type_C interface with the OTG equipment, the Type_C is detected Whether one of two rotations drop-down current potential port of interface connect with the corresponding port of the OTG equipment and forms pull-up partial pressure electricity Otherwise road determines no OTG equipment access mobile terminal if so, being determined with OTG equipment access mobile terminal.
Step S2, detect and meanwhile the OTG equipment be provided with USB charging voltage access when, by the USB charging voltage It is linked into inside mobile terminal, and opens reduction voltage circuit and close booster circuit, to use the USB charging voltage to the electricity It charges in pond.
Optionally, described to be charged using the USB charging voltage to the battery, including:
When the positive port of detection and detection negative terminal mouth for detecting the Type_C interface do not have input signal, in setting It is charged using the USB charging voltage to the battery under charging voltage and current control parameter.
The mobile terminal of the embodiment of the present invention is used cooperatively with the OTG equipment, the power supply pipe of the mobile terminal Reason chip can accurately control the open and close of internal booster circuit and reduction voltage circuit, so as to access the institute of the mobile terminal OTG equipment is stated smoothly to charge to battery of mobile terminal while carrying out data interaction with mobile terminal.
As shown in figure 8, fifth embodiment of the invention proposes a kind of terminal charging method, it is applied to mobile terminal, the side Method includes:
Step S1 has detected whether that OTG equipment accesses mobile terminal, if so, thening follow the steps S2, otherwise process terminates;
Optionally, the mode of OTG equipment access mobile terminal is detected whether, including:
In the case where the mobile terminal is connected by Type_C interface with the OTG equipment, the Type_C is detected Whether one of two rotations drop-down current potential port of interface connect with the corresponding port of the OTG equipment and forms pull-up partial pressure electricity Otherwise road determines no OTG equipment access mobile terminal if so, being determined with OTG equipment access mobile terminal.
Step S2, detect and meanwhile the OTG equipment be provided with USB charging voltage access when, by the USB charging voltage It is linked into inside mobile terminal, opens reduction voltage circuit and closes booster circuit, to use the USB charging voltage to the battery It charges.
Optionally, described to be charged using the USB charging voltage to the battery, including:
When the positive port of detection and detection negative terminal mouth for detecting the Type_C interface do not have input signal, in setting It is charged using the USB charging voltage to the battery under charging voltage and current control parameter.
Step S3, if charging current when detecting to battery charging is greater than preset current threshold, stopping is filled Electricity is simultaneously alarmed.
The embodiment of the present invention is set with the upper limit of charging current in front, and effect is exactly that may occur in charging process The excessive situation of flow form protection, further increase the safety of charging.
Sixth embodiment of the invention provides a kind of computer readable storage medium, deposits on the computer readable storage medium Contain OTG charging procedure, the OTG charging procedure realizes above-mentioned 3rd embodiment or fourth embodiment when being executed by processor The step of terminal charging method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile terminal, computer, family Electric equipment or the network equipment etc.) execute method described in third or four embodiments of the present invention.
Application example of the invention, in the OTG equipment recorded in previous embodiment charging unit and OTG device this Two kinds of devices are also achieved that the demand most started when working at the same time, this application example with charge carried out simultaneously with wiring logging-on function for Example introduces a kind of wiring logging-on function interconnecting device based on Type_C interface, which is a kind of OTG equipment.
The connection of the wiring logging-on function interconnecting device and mobile terminal based on Type_C interface is as shown in figure 9, this has Charger and network interface card in line online interconnecting device, the charger are equivalent to the charging unit in first embodiment of the invention, should Network interface card is equivalent to the charging unit OTG equipment in first embodiment of the invention.Middle Type_C interface male connector is described below referred to as Male connector, Type_C interface female abbreviation female.
The VBUS of charger is connect one by one with the VBUS and GND of GND pin and network card interface, D+, D- of charger are short It connects, in the male connector insertion mobile terminal of network interface card switching OTG equipment, high pass power management chip PMIC can inside mobile terminal Identify the OTG equipment, such as without external power supply circuit, the power supply of OTG equipment is by the BOOST circuit in the BOB circuit inside PMIC It powers, due to there is the presence of external VBUS, internal BOOST circuit can be not required to here to power, need to close at this time internal VBUS is directly poured into OTG circuitry by BOOST circuit, and VBUS is connect by male connector with female, if at this moment by soft The BUCK circuit in BOB circuit is opened in part operation can obtain the voltage VPH_PWR to charge to battery, in the standard agreement of high pass It is identified when the identification of middle charge type by D+, D-, non-standard charging is identified as if without D+, D-, and electric current may be provided at 2A Within, VBUS need to charge the battery in this scenario while the supply voltage as external OTG equipment, can realize fill since then The goal of the invention that electricity carries out parallel with online.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of OTG equipment, which is characterized in that the OTG equipment includes:OTG device and charging unit, wherein the OTG dress The USB charging voltage port set is electrically connected with the USB charging voltage port of the charging unit, the ground terminal of the OTG device Mouth is electrically connected with the grounding ports of the charging unit, and the positive port of the detection of the charging unit and detection negative terminal mouth are shorted.
2. OTG equipment as described in claim 1, which is characterized in that the OTG equipment has to be connected with mobile terminal Type_C interface.
3. OTG equipment as described in claim 1, which is characterized in that in the case where the OTG equipment accesses mobile terminal, The OTG equipment provides the data interaction of wire networking function for mobile terminal.
4. OTG equipment as described in claim 1, which is characterized in that in the case where the OTG equipment accesses mobile terminal, While the OTG equipment provides data interaction function for mobile terminal, the charging unit is used for the mobile terminal Battery charges, and the charging unit is also used to as OTG device power supply.
5. a kind of terminal charging method, which is characterized in that it is applied to mobile terminal, the method includes:
It, will be described when having detected OTG equipment access mobile terminal and the OTG equipment is provided with the access of USB charging voltage USB charging voltage is linked into inside mobile terminal, is opened reduction voltage circuit and is closed booster circuit, to use the USB charging electricity Pressure charges to the battery.
6. terminal charging method as claimed in claim 5, which is characterized in that detected whether that OTG equipment accesses mobile terminal Mode, including:
In the case where the mobile terminal is connected by Type_C interface with the OTG equipment, the Type_C interface is detected Two rotations drop-down one of current potential port whether connect with the corresponding port of the OTG equipment and is formed and pull up bleeder circuit, If so, being determined with OTG equipment access mobile terminal, no OTG equipment access mobile terminal is otherwise determined.
7. terminal charging method as claimed in claim 5, which is characterized in that described to use the USB charging voltage to described Battery charges, including:
When the positive port of detection and detection negative terminal mouth for detecting the Type_C interface do not have input signal, in the charging of setting It is charged using the USB charging voltage to the battery under voltage and current control parameter.
8. terminal charging method as claimed in claim 5, which is characterized in that the method further includes:
When charging current when detecting to battery charging is greater than preset current threshold, stop charging and alarming.
9. a kind of mobile terminal, which is characterized in that including:Power management chip and battery, wherein the power management chip is used In executing OTG charging procedure as battery charging, realized such as when the OTG charging procedure is executed by the power management chip The step of terminal charging method described in any one of claim 5 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with OTG on the computer readable storage medium and fill Electric program realizes the terminal charge as described in any one of claim 5 to 8 when the OTG charging procedure is executed by processor The step of method.
CN201810695064.6A 2018-06-28 2018-06-28 OTG device, terminal charging method, mobile terminal and computer readable storage medium Active CN108874708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810695064.6A CN108874708B (en) 2018-06-28 2018-06-28 OTG device, terminal charging method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810695064.6A CN108874708B (en) 2018-06-28 2018-06-28 OTG device, terminal charging method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108874708A true CN108874708A (en) 2018-11-23
CN108874708B CN108874708B (en) 2021-08-10

Family

ID=64296973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810695064.6A Active CN108874708B (en) 2018-06-28 2018-06-28 OTG device, terminal charging method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108874708B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375758A (en) * 2018-12-14 2019-02-22 佛山市伙伴联扬电子有限公司 A kind of charging unit of host computer configuration
CN109726156A (en) * 2018-12-24 2019-05-07 努比亚技术有限公司 OTG equipment, charge control method, terminal and storage medium
CN110262648A (en) * 2019-05-15 2019-09-20 深圳市优博讯科技股份有限公司 Master device functionality and the parallel method of charge function and hand-held data gathering terminal
CN113078696A (en) * 2020-01-03 2021-07-06 北京小米移动软件有限公司 Electronic device, charging method and device thereof, and readable storage medium
CN113473056A (en) * 2021-05-14 2021-10-01 鹤壁天海电子信息系统有限公司 Female head and public head of video interface, electronic equipment, patch cord and external device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
JP2012123699A (en) * 2010-12-10 2012-06-28 Brother Ind Ltd Information processing system
CN102820682A (en) * 2011-06-09 2012-12-12 中兴通讯股份有限公司 Device and method for communicating through universal serial bus (USB) interface and charging external device
CN104978300A (en) * 2015-07-16 2015-10-14 广东欧珀移动通信有限公司 Mobile terminal as well as detecting method and device for connection of mobile terminal and external equipment
US20150346790A1 (en) * 2014-05-28 2015-12-03 Nokia Corporation Baseband pd communication over usb standard a connector
US20170194803A1 (en) * 2016-01-05 2017-07-06 Fairchild Semiconductor Corporation Usb type-c connector for improved charge efficiency
CN107180004A (en) * 2017-05-11 2017-09-19 深圳市金立通信设备有限公司 It is a kind of at the same realize OTG communication and charging method and terminal
US20170286360A1 (en) * 2016-03-29 2017-10-05 Intel Corporation Usb interface using repeaters with guest protocol support
CN206878506U (en) * 2017-05-27 2018-01-12 维沃移动通信有限公司 A kind of data wire and adapter
CN107885688A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of signal switching method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901201A (en) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
JP2012123699A (en) * 2010-12-10 2012-06-28 Brother Ind Ltd Information processing system
CN102820682A (en) * 2011-06-09 2012-12-12 中兴通讯股份有限公司 Device and method for communicating through universal serial bus (USB) interface and charging external device
US20150346790A1 (en) * 2014-05-28 2015-12-03 Nokia Corporation Baseband pd communication over usb standard a connector
CN104978300A (en) * 2015-07-16 2015-10-14 广东欧珀移动通信有限公司 Mobile terminal as well as detecting method and device for connection of mobile terminal and external equipment
US20170194803A1 (en) * 2016-01-05 2017-07-06 Fairchild Semiconductor Corporation Usb type-c connector for improved charge efficiency
US20170286360A1 (en) * 2016-03-29 2017-10-05 Intel Corporation Usb interface using repeaters with guest protocol support
CN107885688A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of signal switching method and device
CN107180004A (en) * 2017-05-11 2017-09-19 深圳市金立通信设备有限公司 It is a kind of at the same realize OTG communication and charging method and terminal
CN206878506U (en) * 2017-05-27 2018-01-12 维沃移动通信有限公司 A kind of data wire and adapter

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375758A (en) * 2018-12-14 2019-02-22 佛山市伙伴联扬电子有限公司 A kind of charging unit of host computer configuration
CN109375758B (en) * 2018-12-14 2024-03-22 佛山市伙伴联扬电子有限公司 Charging device for computer host configuration
CN109726156A (en) * 2018-12-24 2019-05-07 努比亚技术有限公司 OTG equipment, charge control method, terminal and storage medium
CN110262648A (en) * 2019-05-15 2019-09-20 深圳市优博讯科技股份有限公司 Master device functionality and the parallel method of charge function and hand-held data gathering terminal
CN113078696A (en) * 2020-01-03 2021-07-06 北京小米移动软件有限公司 Electronic device, charging method and device thereof, and readable storage medium
CN113473056A (en) * 2021-05-14 2021-10-01 鹤壁天海电子信息系统有限公司 Female head and public head of video interface, electronic equipment, patch cord and external device

Also Published As

Publication number Publication date
CN108874708B (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN108874708A (en) OTG equipment, terminal charging method, mobile terminal and computer readable storage medium
CN109525720A (en) Battery of mobile terminal control method, mobile terminal and readable storage medium storing program for executing
CN107546808A (en) One kind charging identification circuit, recognition methods and terminal device
CN108594120A (en) Detection method, device and the computer readable storage medium of battery status
CN109739602A (en) A kind of mobile terminal wallpaper setting method and device, mobile terminal and storage medium
CN109726156A (en) OTG equipment, charge control method, terminal and storage medium
CN109947248A (en) Vibration control method, mobile terminal and computer readable storage medium
CN108879842A (en) Charge control method, mobile terminal and computer readable storage medium
CN109901980A (en) Serial ports log grabs circuit, method, terminal and computer readable storage medium
CN108966085A (en) adaptive audio circuit and mobile terminal
CN110096375A (en) A kind of Application sharing data method, device and computer readable storage medium
CN109729475A (en) Charging bluetooth earphone method, circuit, terminal and computer readable storage medium
CN108599300A (en) A kind of intelligence fills device, method and the electronic equipment of power-off
CN108259658A (en) Flexible screen terminal and its electricity based reminding method, computer readable storage medium
CN108009116A (en) MicroUSB interface circuits and its mobile terminal
CN107396226B (en) A kind of earphone compatible circuit, mobile terminal and electronic system
CN110012158A (en) A kind of charging reminding method, terminal and computer readable storage medium
CN108429957A (en) TypeC earphones switching cable and wired earphone TypeC connection systems
CN107645151A (en) A kind of current foldback circuit, control method and device, terminal
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN108650404A (en) Port start-up circuit, device and mobile terminal
CN109714460A (en) Press key expansion device, terminal, key expansion method and storage medium
CN109032648A (en) Update method, mobile terminal and the storage medium of application program
CN109358796A (en) A kind of game visual field sharing method, terminal and readable storage medium storing program for executing
CN108430005A (en) A kind of voicefrequency circuit, audio judgment 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
GR01 Patent grant
GR01 Patent grant