CN109726156A - OTG equipment, charge control method, terminal and storage medium - Google Patents

OTG equipment, charge control method, terminal and storage medium Download PDF

Info

Publication number
CN109726156A
CN109726156A CN201811581258.XA CN201811581258A CN109726156A CN 109726156 A CN109726156 A CN 109726156A CN 201811581258 A CN201811581258 A CN 201811581258A CN 109726156 A CN109726156 A CN 109726156A
Authority
CN
China
Prior art keywords
otg equipment
port
interface
data
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.)
Pending
Application number
CN201811581258.XA
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.)
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 CN201811581258.XA priority Critical patent/CN109726156A/en
Publication of CN109726156A publication Critical patent/CN109726156A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

It includes charging unit, network card interface and OTG equipment interface that the embodiment of the present application, which discloses a kind of OTG equipment, charge control method, terminal and computer readable storage medium, the OTG equipment,;The power port of charging unit and the power port of network card interface are connect with the power port of OTG equipment interface, and the grounding ports of charging unit and the grounding ports of network card interface are connect with the grounding ports of OTG equipment interface;The collocation channel port of charging unit is connect with the collocation channel port of OTG equipment interface;The data of network card interface are transmitted positive port and are connect with the positive port of the data of OTG equipment interface transmission, and the data transmission negative terminal mouth of network card interface is connect with the data of OTG equipment interface transmission negative terminal mouth.The embodiment of the present application forms OTG equipment by charging unit, network card interface and OTG equipment interface;The demand that the data interaction and OTG equipment for realizing terminal and OTG equipment carry out end cell charging parallel, improves user experience.

Description

OTG equipment, charge control method, terminal and storage medium
Technical field
The invention relates to field of terminal technology more particularly to a kind of OTG equipment, charge control method, terminal with 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, thus The i.e. game mobile terminal of the mobile terminal developed specifically for game comes into being.Online network game game user is more closed The mobile terminal element of the heart includes continuation of the journey, network, fever etc., wherein continuation of the journey problem is that all big enterprises all are struggling to study.It moves Dynamic terminal power and network it is bad be an important factor for influencing the experience of game mobile terminal, to both know about wired network as the network user Network can be more stable compared with wireless network, so being also in this way, if any cable network connection experience is used for hand trip user Sense can be more preferable, is commercially available the patchcord of cable network connection mobile terminal in the market at present.
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: the what to do when user not only needs to charge but also need stable cable network.That is, 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
In view of this, the embodiment of the present application be designed to provide a kind of OTG equipment, charge control method, terminal and Computer readable storage medium, it is intended to it is same to realize that OTG equipment carries out data interaction with OTG equipment to terminal charge and terminal Shi Jinhang, so that user obtains preferably experience.
It is as follows that the embodiment of the present application solves technical solution used by above-mentioned technical problem:
According to the one aspect of the embodiment of the present application, a kind of OTG equipment provided, the OTG equipment include charging unit, Network card interface and OTG equipment interface;
The power supply of the power port of the power port of the charging unit and the network card interface and the OTG equipment interface Port connection, the grounding ports of the charging unit and the grounding ports of the network card interface and connecing for the OTG equipment interface The connection of ground port;The collocation channel port of the charging unit is connect with the collocation channel port of the OTG equipment interface;
The data of the network card interface are transmitted positive port and are connect with the positive port of the data of OTG equipment interface transmission, institute The data transmission negative terminal mouth for stating network card interface is connect with the data of OTG equipment interface transmission negative terminal mouth.
In one embodiment, the OTG equipment interface is Type_C interface.
In one embodiment, the charging unit includes the USB power transmission controller and socket being sequentially connected;
The USB power transmission controller includes power port, grounding ports and collocation channel port.
According to the other side of the embodiment of the present application, a kind of charge control method provided, this method is used for terminal, institute The method of stating includes:
Detect whether that OTG equipment accesses;
In the case where having detected the access of OTG equipment, charging association is carried out by the collocation channel port of the OTG equipment View identification;
In the case where charge protocol identifies successfully, the battery charger opened in power management chip carries out battery Charging.
It is in one embodiment, described to have detected whether that OTG equipment accesses, comprising:
The data for detecting the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth;
Detecting the case where data of the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth Under, determining has the OTG equipment to access.
In one embodiment, described to have detected whether that OTG equipment accesses, later further include:
In the case where having detected the access of OTG equipment, positive port is transmitted by the data of the OTG equipment and data pass Defeated negative terminal mouth carries out network card data transmission.
In one embodiment, described in the case where charge protocol identifies successfully, it opens in power management chip Battery charger charges the battery, later further include:
Close the booster circuit in the power management chip.
In one embodiment, described in the case where charge protocol identifies successfully, it opens in power management chip Battery charger charges the battery, later further include:
Detect the charging current of the battery;
When the charging current for detecting the battery is greater than predetermined current threshold, close in the power management chip Battery charger simultaneously generates warning message.
According to the other side of the embodiment of the present application, a kind of terminal provided, the terminal includes terminal interface, power supply Managing chip and battery;The terminal interface includes that power port, data transmit positive port, the first collocation channel port, the Two collocation channel ports, data transmission negative terminal mouth and grounding ports;The power management chip include battery charger and Booster circuit;
The terminal further includes memory, processor and is stored on the memory and can run on the processor Charging control program, the step of the charge control method is realized when the charging control program is executed by the processor Suddenly.
According to the other side of the embodiment of the present application, a kind of computer readable storage medium provided, the computer Charging control program is stored on readable storage medium storing program for executing, when the charging control program is executed by the processor described in realization The step of charge control method.
The OTG equipment, charge control method, terminal and computer readable storage medium of the embodiment of the present application, by filling Electric installation, network card interface and OTG equipment interface form OTG equipment;OTG equipment can simultaneously be charged to terminal and with end End carries out data interaction;The data interaction and OTG equipment for realizing terminal and OTG equipment charge and advance to end cell Capable demand, improves user experience.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing the mobile terminal of each embodiment of the application;
Fig. 2 is a kind of communications network system architecture diagram provided by the embodiments of the present application;
Fig. 3 is the OTG device structure schematic diagram of the application first embodiment;
Fig. 4 is the OTG device examples structural schematic diagram of the embodiment of the present application;
Fig. 5 is the charge control method flow diagram of the application second embodiment;
Fig. 6 is the mobile phone and OTG device structure schematic diagram of the embodiment of the present application;
Fig. 7 is the mobile phone and another structural schematic diagram of OTG equipment of the embodiment of the present application;
Fig. 8 is the terminal structure schematic diagram of the application 3rd embodiment.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
In order to be clearer and more clear technical problems to be solved in this application, technical solution and beneficial effect, tie below Drawings and examples are closed, the application is further elaborated.It should be appreciated that specific embodiment described herein is only To explain the application, it is not used to limit the application.
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 phone, plate Computer, laptop, palm PC, PDA (Personal Digital Assistant, personal digital assistant), PMP (Portable Media Player, portable media player), 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. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic 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 Fig. 1 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. 1 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. 1 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 the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as 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. 1, 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 can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least 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. 1 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. 2, Fig. 2 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.
First embodiment
As shown in figure 3, the application first embodiment provides a kind of OTG equipment, the OTG equipment include charging unit 31, Network card interface 32 and OTG equipment interface 33.
The power port of the charging unit 31 and the power port of the network card interface 32 and the OTG equipment interface 33 Power port connection, the grounding ports of the charging unit 31 and the grounding ports of the network card interface 32 are set with the OTG The grounding ports of standby interface 33 connect;The configuration of the collocation channel port of the charging unit 31 and the OTG equipment interface 33 Access port connection.
The data of the network card interface 32 transmit positive port and the data of the OTG equipment interface 33 transmit positive port company It connects, the data transmission negative terminal mouth of the network card interface 32 is connect with the data of the OTG equipment interface 33 transmission negative terminal mouth.
In the present embodiment, the charging unit 31 includes the USB power transmission controller and socket (attached drawing being sequentially connected It is not shown);
The USB power transmission controller includes power port, grounding ports and collocation channel port.
In the present embodiment, the OTG equipment interface 33 is Type_C interface.
It should be noted that Type_C interface is the more general data-interface that terminal uses, the present embodiment is not limited to make With Type_C interface, all interface forms for meeting USB mode.
In one embodiment, in the case where the OTG equipment access terminal, the OTG equipment is the terminal While providing the data interaction of wire networking function, the charging unit 31 carries out charging to the battery of the terminal and for institute It states network card interface 32 and the OTG equipment interface 33 is powered.
In another embodiment, in the case where the OTG equipment access terminal, the OTG equipment is the end End provides the data interaction of wire networking function.
In order to preferably illustrate the OTG equipment of the embodiment of the present application, it is illustrated below in conjunction with Fig. 4:
As shown in figure 4, OTG equipment includes network card interface, Type_C interface (male connector), USB PD control device and socket.
USB PD control device is connect with socket, and USB PD control device includes power port VBUS, grounding ports GND and matches Set access port CC;Network card interface includes power port VBUS, data transmit positive port D+, data transmit negative terminal mouth D- and connect Ground port GND;Type_C interface includes power port VBUS, the positive port D+ of data transmission, collocation channel port CC, data transmission Negative terminal mouth D- and grounding ports GND.
The power supply of the power port VBUS of USB PD control device and the power port VBUS of network card interface and OTG equipment interface Port VBUS connection, the grounding ports GND of USB PD control device and the grounding ports GND of network card interface and OTG equipment interface Grounding ports GND connection;The collocation channel port CC of USB PD control device and the collocation channel port CC of OTG equipment interface connect It connects.
The data of network card interface are transmitted positive port D+ and are connect with the positive port D+ of the data of OTG equipment interface transmission, and network interface card connects The data transmission negative terminal mouth D- of mouth is connect with the data of OTG equipment interface transmission negative terminal mouth D-.
In the case where OTG equipment accesses mobile phone, if charger (USB PD control device and socket) does not access power supply, OTG equipment can transmit positive port D+ by the data of Type_C interface and data transmit negative terminal mouth D- and provide wiring logging-on function for mobile phone The data interaction of function.OTG equipment is powered by mobile phone at this time.
In the case where OTG equipment accesses mobile phone, if charger (USB PD control device and socket) accesses power supply, OTG is set While the standby data interaction for providing wire networking function for mobile phone, charger charge and connect for network interface card to the battery of mobile phone Mouth and Type_C interface are powered.At this time USB PD control device by the collocation channel port CC of Type_C interface and mobile phone into The identification of row USB PD charge protocol, the charging voltage and electric current of 20V/5A are theoretically achievable by USB PD agreement.
The OTG equipment of the embodiment of the present application forms OTG by charging unit, network card interface and OTG equipment interface and sets It is standby;OTG equipment can simultaneously charge to terminal and carry out data interaction with terminal;Realize the data of terminal Yu OTG equipment The demand that interactive and OTG equipment carries out end cell charging parallel, improves user experience.
Second embodiment
As shown in figure 5, the application second embodiment provides a kind of charge control method, this method is used for terminal, the end End includes terminal interface, power management chip and battery;The terminal interface include power port, data transmit positive port, First collocation channel port, the second collocation channel port, data transmission negative terminal mouth and grounding ports;The power management chip Including battery charger and booster circuit.
The described method includes:
Step S41, detected whether that OTG equipment accesses.
It is in the present embodiment, described to have detected whether that OTG equipment accesses, comprising:
The data for detecting the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth;
Detecting the case where data of the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth Under, determining has the OTG equipment to access.
It should be noted that the OTG equipment of the present embodiment, belongs to same design with the OTG equipment of first embodiment, tool Body realizes that process is shown in embodiment of the method in detail, and the technical characteristic in embodiment is corresponding applicable in the present embodiment, here not It repeats again.
Step S42, in the case where having detected the access of OTG equipment, by the collocation channel port of the OTG equipment into The identification of row charge protocol.
In the present embodiment, it may recognize that the USB in the OTG equipment by the collocation channel port of the OTG equipment PD equipment will switch to the identification of PD charge protocol in the case where recognizing PD equipment, once identification, which is shaken hands, will successfully beat Charging circuit in switch power supply managing chip charges the battery, and the charging voltage of 20V/5A is theoretically achievable by PD agreement And electric current.
In one embodiment, described to have detected whether that OTG equipment accesses, later further include:
In the case where having detected the access of OTG equipment, positive port is transmitted by the data of the OTG equipment and data pass Defeated negative terminal mouth carries out network card data transmission.
In this embodiment, positive port is transmitted in the data by the OTG equipment and data transmit negative port identification After network interface card, positive port can be transmitted by data and data transmission negative terminal mouth carries out network card data transmission.
Step S43, in the case where charge protocol identifies successfully, the battery charger pair in power management chip is opened Battery charges.
In one embodiment, described in the case where charge protocol identifies successfully, it opens in power management chip Battery charger charges the battery, later further include:
Close the booster circuit in the power management chip.
In this embodiment, due to there is the presence of external power supply, OTG equipment can be not required to the inside booster circuit of terminal It powers, needs the inside booster circuit for closing terminal at this time, directly external power supply is poured into OTG circuitry.
In one embodiment, described in the case where charge protocol identifies successfully, it opens in power management chip Battery charger charges the battery, later further include:
Detect the charging current of the battery;
When the charging current for detecting the battery is greater than predetermined current threshold, close in the power management chip Battery charger simultaneously generates warning message.
In this embodiment, by the current threshold of setting, effect is exactly to the electricity that may occur in charging process It flows through big situation and forms protection, further increase the safety of charging.
In order to preferably illustrate the charging control process of the embodiment of the present application, takes the mobile phone as an example below and combine Fig. 6-Fig. 7 It is illustrated:
It please refers to shown in Fig. 6, OTG equipment includes charger and wired network adapter with USB PD control device, OTG equipment Type-C male connector insertion mobile phone works.
It please refers to shown in Fig. 7, OTG equipment includes network card interface, Type_C interface (male connector), USBPD controller and inserts Seat.
USB PD control device is connect with socket, and USB PD control device includes power port VBUS, grounding ports GND and matches Set access port CC;Network card interface includes power port VBUS, data transmit positive port D+, data transmit negative terminal mouth D- and connect Ground port GND;Type_C interface includes power port VBUS, the positive port D+ of data transmission, collocation channel port CC, data transmission Negative terminal mouth D- and grounding ports GND.
The power supply of the power port VBUS of USB PD control device and the power port VBUS of network card interface and OTG equipment interface Port VBUS connection, the grounding ports GND of USB PD control device and the grounding ports GND of network card interface and OTG equipment interface Grounding ports GND connection;The collocation channel port CC of USB PD control device and the collocation channel port CC of OTG equipment interface connect It connects.
The data of network card interface are transmitted positive port D+ and are connect with the positive port D+ of the data of OTG equipment interface transmission, and network interface card connects The data transmission negative terminal mouth D- of mouth is connect with the data of OTG equipment interface transmission negative terminal mouth D-.
Mobile phone includes Type_C interface (female), PMIC and battery.
Type_C interface includes power port VBUS, the positive port D+ of data transmission, collocation channel port CC1, collocation channel Port CC2, data transmit negative terminal mouth D- and grounding ports GND.In order to support positive anti-plug, female that two collocation channel ends are arranged Mouth (CC1 and CC2).
When male connector is inserted into female, (the collocation channel port CC of male connector and the collocation channel port CC1 of female match Set access port CC2 connection), the pulldown signal of positive port D+, data transmission negative terminal mouth D- are transmitted by detection data, can recognize To the access of OTG equipment;It may recognize that the USB PD equipment in OTG equipment by detecting collocation channel port CC.Individually below Process, which is illustrated, to be realized to charging realization process and wiring logging-on function:
1, charge realization process
When male connector is inserted into female, the USB PD equipment in OTG equipment may recognize that by detecting collocation channel port CC, In the case where recognizing PD equipment, the identification of PD charge protocol will be switched to, once identification, which is shaken hands, will successfully open PMIC In charging circuit charge the battery, the charging voltage and electric current of 20V/5A are theoretically achievable by PD agreement.
2, wiring logging-on function realizes process
When male connector is inserted into female, the pulldown signal of positive port D+, data transmission negative terminal mouth D- are transmitted by detection data, It can recognize the access of OTG equipment.Presence such as without external VBUS, the power supply of OTG equipment by the BOOST circuit in PMIC come Power supply, due to there is the presence of external VBUS, so that it may not need the BOOST circuit in PMIC to power, need to close BOOST electricity at this time VBUS is directly poured into OTG circuitry by road, can transmit positive port D+, data by data after identifying network interface card It transmits negative terminal mouth D- and carries out network card data transmission.
The charge control method of the embodiment of the present application is made up of charging unit, network card interface and OTG equipment interface OTG equipment;OTG equipment can simultaneously charge to terminal and carry out data interaction with terminal;Realize terminal and OTG equipment Data interaction and OTG equipment charge the demand that carries out parallel to end cell, improve user experience.
3rd embodiment
As shown in figure 8, the application 3rd embodiment provides a kind of terminal, the terminal includes terminal interface, power management Chip and battery;The terminal interface includes that power port, data are transmitted positive port, the first collocation channel port, second matched Set access port, data transmission negative terminal mouth and grounding ports;The power management chip includes battery charger and boosting Circuit;
The terminal further includes memory 51, processor 52 and is stored on the memory 51 and can be in the processor The charging control program run on 52, when the charging control program is executed by the processor 52, for realizing as described below Charge control method the step of:
Detect whether that OTG equipment accesses;
In the case where having detected the access of OTG equipment, charging association is carried out by the collocation channel port of the OTG equipment View identification;
In the case where charge protocol identifies successfully, the battery charger opened in power management chip carries out battery Charging.
When the charging control program is executed by the processor 52, it is also used to realize charge control method as described below The step of:
It is described to have detected whether that OTG equipment accesses, comprising:
The data for detecting the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth;
Detecting the case where data of the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth Under, determining has the OTG equipment to access.
When the charging control program is executed by the processor 52, it is also used to realize charge control method as described below The step of:
It is described to have detected whether that OTG equipment accesses, later further include:
In the case where having detected the access of OTG equipment, positive port is transmitted by the data of the OTG equipment and data pass Defeated negative terminal mouth carries out network card data transmission.
When the charging control program is executed by the processor 52, it is also used to realize charge control method as described below The step of:
It is described in the case where charge protocol identifies successfully, open power management chip in battery charger to battery It charges, later further include:
Close the booster circuit in the power management chip.
When the charging control program is executed by the processor 52, it is also used to realize charge control method as described below The step of:
It is described in the case where charge protocol identifies successfully, open power management chip in battery charger to battery It charges, later further include:
Detect the charging current of the battery;
When the charging current for detecting the battery is greater than predetermined current threshold, close in the power management chip Battery charger simultaneously generates warning message.
The charge control method of the embodiment of the present application is made up of charging unit, network card interface and OTG equipment interface OTG equipment;OTG equipment can simultaneously charge to terminal and carry out data interaction with terminal;Realize terminal and OTG equipment Data interaction and OTG equipment charge the demand that carries out parallel to end cell, improve user experience.
Fourth embodiment
The application fourth embodiment provides a kind of computer readable storage medium, deposits on the computer readable storage medium Charging control program is contained, for realizing charging control described in second embodiment when the charging control program is executed by processor The step of method processed.
It should be noted that the computer readable storage medium of the present embodiment, belongs to same with the method for second embodiment Design, specific implementation process is shown in embodiment of the method in detail, and the technical characteristic in embodiment of the method is right in the present embodiment It should be applicable in, which is not described herein again.
The computer readable storage medium of the embodiment of the present application passes through charging unit, network card interface and OTG equipment interface Form OTG equipment;OTG equipment can simultaneously charge to terminal and carry out data interaction with terminal;Realize terminal and OTG The demand that the data interaction of equipment and OTG equipment carry out end cell charging parallel, improves user experience.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain objects Reason component or all physical assemblies may be implemented as by processor, such as central processing unit, digital signal processor or micro process The software that device executes, is perhaps implemented as hardware or is implemented as integrated circuit, such as specific integrated circuit.Such software Can be distributed on a computer-readable medium, computer-readable medium may include computer storage medium (or non-transitory be situated between Matter) and communication media (or fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium includes In any method or skill for storing information (such as computer readable instructions, data structure, program module or other data) The volatile and non-volatile implemented in art, removable and nonremovable medium.Computer storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic Box, tape, disk storage or other magnetic memory apparatus or it can be used for storing desired information and can be visited by computer Any other medium asked.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable Other numbers in the modulated data signal of instruction, data structure, program module or such as carrier wave or other transmission mechanisms etc According to, and may include any information delivery media.
Above by reference to Detailed description of the invention preferred embodiment of the present application, not thereby limit to the interest field of the application.This Field technical staff does not depart from made any modifications, equivalent replacements, and improvements in scope of the present application and essence, should all be at this Within the interest field of application.

Claims (10)

1. a kind of OTG equipment, which is characterized in that the OTG equipment includes charging unit, network card interface and OTG equipment interface;
The power port of the power port of the power port of the charging unit and the network card interface and the OTG equipment interface The grounding ports of connection, the grounding ports of the charging unit and the network card interface and the ground terminal of the OTG equipment interface Mouth connection;The collocation channel port of the charging unit is connect with the collocation channel port of the OTG equipment interface;
The data of the network card interface are transmitted positive port and are connect with the positive port of the data of OTG equipment interface transmission, the net The data transmission negative terminal mouth of card interface is connect with the data of OTG equipment interface transmission negative terminal mouth.
2. OTG equipment according to claim 1, which is characterized in that the OTG equipment interface is Type_C interface.
3. OTG equipment according to claim 1, which is characterized in that the charging unit includes the USB power being sequentially connected Transmission control unit (TCU) and socket;
The USB power transmission controller includes power port, grounding ports and collocation channel port.
4. a kind of charge control method, this method is used for terminal, which comprises
Detect whether that OTG equipment accesses;
In the case where having detected the access of OTG equipment, charge protocol knowledge is carried out by the collocation channel port of the OTG equipment Not;
In the case where charge protocol identifies successfully, the battery charger opened in power management chip fills battery Electricity.
5. charge control method according to claim 4, which is characterized in that described to have detected whether that OTG equipment accesses, packet It includes:
The data for detecting the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth;
In the case where detecting that the data of the OTG equipment transmit the pulldown signal of positive port and data transmission negative terminal mouth, really There is the OTG equipment to access surely.
6. charge control method according to claim 4, which is characterized in that it is described to have detected whether that OTG equipment accesses, it Afterwards further include:
In the case where having detected the access of OTG equipment, positive port is transmitted by the data of the OTG equipment and data are transmitted and born Port carries out network card data transmission.
7. charge control method according to claim 4, which is characterized in that described to identify successful situation in charge protocol Under, the battery charger opened in power management chip charges the battery, later further include:
Close the booster circuit in the power management chip.
8. charge control method according to claim 4, which is characterized in that described to identify successful situation in charge protocol Under, the battery charger opened in power management chip charges the battery, later further include:
Detect the charging current of the battery;
When the charging current for detecting the battery is greater than predetermined current threshold, the battery in the power management chip is closed Charging circuit simultaneously generates warning message.
9. a kind of terminal, which is characterized in that the terminal includes terminal interface, power management chip and battery;The terminal Interface includes that transmit positive port, the first collocation channel port, the second collocation channel port, data transmission negative for power port, data Port and grounding ports;The power management chip includes battery charger and booster circuit;
The terminal further includes memory, processor and is stored on the memory and what can be run on the processor fills Electric control program is realized as described in any one of claim 4 to 8 when the charging control program is executed by the processor The step of charge control method.
10. a kind of computer readable storage medium, which is characterized in that be stored with charging control on the computer readable storage medium Processing procedure sequence realizes the charging as described in any one of claim 4 to 8 when the charging control program is executed by the processor The step of control method.
CN201811581258.XA 2018-12-24 2018-12-24 OTG equipment, charge control method, terminal and storage medium Pending CN109726156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811581258.XA CN109726156A (en) 2018-12-24 2018-12-24 OTG equipment, charge control method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811581258.XA CN109726156A (en) 2018-12-24 2018-12-24 OTG equipment, charge control method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109726156A true CN109726156A (en) 2019-05-07

Family

ID=66296370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811581258.XA Pending CN109726156A (en) 2018-12-24 2018-12-24 OTG equipment, charge control method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109726156A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262648A (en) * 2019-05-15 2019-09-20 深圳市优博讯科技股份有限公司 Master device functionality and the parallel method of charge function and hand-held data gathering terminal
CN111817379A (en) * 2020-07-14 2020-10-23 维沃移动通信有限公司 Charger, data line and charging equipment
CN112202941A (en) * 2020-09-30 2021-01-08 努比亚技术有限公司 Accessory control circuit and method based on mobile terminal and terminal equipment
CN112928787A (en) * 2019-12-06 2021-06-08 北京小米移动软件有限公司 Charging circuit, electronic equipment, charging control method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591538A (en) * 2014-10-21 2016-05-18 联想(北京)有限公司 Universal serial bus power transmission 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
CN108874708A (en) * 2018-06-28 2018-11-23 努比亚技术有限公司 OTG equipment, terminal charging method, mobile terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591538A (en) * 2014-10-21 2016-05-18 联想(北京)有限公司 Universal serial bus power transmission 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
CN108874708A (en) * 2018-06-28 2018-11-23 努比亚技术有限公司 OTG equipment, terminal charging method, mobile terminal and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262648A (en) * 2019-05-15 2019-09-20 深圳市优博讯科技股份有限公司 Master device functionality and the parallel method of charge function and hand-held data gathering terminal
CN112928787A (en) * 2019-12-06 2021-06-08 北京小米移动软件有限公司 Charging circuit, electronic equipment, charging control method and device
CN111817379A (en) * 2020-07-14 2020-10-23 维沃移动通信有限公司 Charger, data line and charging equipment
CN112202941A (en) * 2020-09-30 2021-01-08 努比亚技术有限公司 Accessory control circuit and method based on mobile terminal and terminal equipment

Similar Documents

Publication Publication Date Title
CN109726156A (en) OTG equipment, charge control method, terminal and storage medium
CN108874708A (en) OTG equipment, terminal charging method, mobile terminal and computer readable storage medium
CN109890022A (en) Data transfer control method, mobile terminal and computer readable 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
CN110314375A (en) A kind of method for recording of scene of game, terminal and computer readable storage medium
CN108833665A (en) Communication means, wearable device and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN110096375A (en) A kind of Application sharing data method, device and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109729475A (en) Charging bluetooth earphone method, circuit, terminal and computer readable storage medium
CN109618049A (en) Terminal screen method for handover control, terminal and computer readable storage medium
CN109428923A (en) Information push method, server, terminal and computer readable storage medium
CN108566456A (en) Image pickup method, mobile terminal and computer readable storage medium
CN109032648A (en) Update method, mobile terminal and the storage medium of application program
CN109660907A (en) Reducing fan noise processing method, terminal, intelligent sound box and readable storage medium
CN107396226B (en) A kind of earphone compatible circuit, mobile terminal and electronic system
CN110392163A (en) Put out screen control method, mobile terminal and computer readable storage medium
CN108429957A (en) TypeC earphones switching cable and wired earphone TypeC connection systems
CN110083423A (en) Interface jump method, terminal and computer readable storage medium
CN110012158A (en) A kind of charging reminding method, terminal and computer readable storage medium
CN108650404A (en) Port start-up circuit, device and mobile terminal
CN109831577A (en) Method for connecting network, terminal and computer readable storage medium
CN109462829A (en) A kind of call transfer method, equipment and computer readable storage medium

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: 20190507

RJ01 Rejection of invention patent application after publication