CN107565664A - A kind of charging method, terminal, charging equipment and computer-readable recording medium - Google Patents

A kind of charging method, terminal, charging equipment and computer-readable recording medium Download PDF

Info

Publication number
CN107565664A
CN107565664A CN201711023764.2A CN201711023764A CN107565664A CN 107565664 A CN107565664 A CN 107565664A CN 201711023764 A CN201711023764 A CN 201711023764A CN 107565664 A CN107565664 A CN 107565664A
Authority
CN
China
Prior art keywords
terminal
wall charger
positive
data line
charger
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
CN201711023764.2A
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 CN201711023764.2A priority Critical patent/CN107565664A/en
Publication of CN107565664A publication Critical patent/CN107565664A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of charging method, when terminal is connected with charging equipment by general-purpose serial bus USB data wire, determines the type of charging equipment;When the type of charging equipment is wall charger, the positive and negative signal shift switch of enabled terminals after first preset time that is delayed, wherein, the positive and negative signal shift switch of enabled terminals includes:The data positive signal of USB data line is connected with wall charger positive pole, the data negative signal of USB data line is connected with wall charger negative pole.A kind of terminal, charging equipment and computer-readable recording medium is also disclosed in the embodiment of the present invention, USB data line DP/DM signal wires can be made full use of when using wall charger, reduce USB charge path impedances, lift charge efficiency, charge loss is reduced, and improves the charging the degree of heat of USB data line.

Description

A kind of charging method, terminal, charging equipment and computer-readable recording medium
Technical field
The present invention relates to the charging technique of wireless communication field, more particularly to a kind of charging method, terminal, charging equipment and Computer-readable recording medium.
Background technology
As communication and the continuous development of electronic technology, mobile terminal device are more and more general in the use of the life of people Time, the various activities such as user can be communicated by terminal device, be entertained.With the universalness of mobile terminal device, to moving The requirement more and more higher of dynamic terminal charge speed, to meet that market charging interval demand needs lift the charging electricity of mobile terminal Stream, it is then also increasingly stricter to the resistance requirements of charging data line, so, while also accordingly increase charging data line Cost.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention provides a kind of charging method, terminal, charging equipment and computer Readable storage medium storing program for executing, the charge efficiency of terminal can be lifted, reduce charge loss.
The technical proposal of the invention is realized in this way:
On the one hand, the embodiment of the present invention provides a kind of charging method, and this method is applied to terminal, and this method includes:
When terminal is connected with charging equipment by USB data line, the type of charging equipment is determined;
When the type of charging equipment is wall charger, the positive negative signal of enabled terminals after first preset time that is delayed Switching switch, wherein, the positive and negative signal shift switch of enabled terminals includes:The data positive signal of USB data line is filled with wall Electrical equipment positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole.
Further, when terminal is connected with charging equipment by general-purpose serial bus USB data wire, charging equipment is determined Type, including:
When terminal is connected with charging equipment by USB data line carries out charge protocol communication, the charging communication information is obtained, Charging equipment type information is extracted from the charging communication information, the type of charging equipment is determined according to charging equipment type information.
Further, it is determined that after the type of charging equipment, in addition to:
When the type of charging equipment is not wall charger, will connect terminal USB data line data positive signal with The data positive signal connection of the charge management module of terminal, the data negative signals and terminal of the USB data line of terminal will be connected The data negative signal connection of charge management module.
Further, positive negative signal switching of first preset time less than the enabled wall charger of wall charger delay is opened The second preset time closed.
On the one hand, the embodiment of the present invention also provides a kind of charging method, and this method is applied to wall charger, method bag Include:
Whether detection wall charger is connected with terminal;
When wall charger is connected with terminal by USB data line, enabled wall fills after second preset time that is delayed The positive and negative signal shift switch of electrical equipment, wherein, the positive and negative signal shift switch of enabled wall charger includes:By USB data line Data positive signal be connected with wall charger positive pole, the data negative signal of USB data line is connected with wall charger negative pole.
Further, after whether detection wall charger is connected with terminal, in addition to:
When wall charger and not connected terminal, by the data positive signal and wall of the USB data line at wall charger end The data positive signal interface connection of the micro-control module of charger, the data minus of the USB data line at wall charger end is believed Number it is connected with the data minus signaling interface of the micro-control module of wall charger.
Further, the second preset time is more than the first of the positive and negative signal shift switch of terminal delay enabled terminals and preset Time.
On the one hand, the embodiment of the present invention also provides a kind of terminal, and the terminal includes:Processor, memory and communication bus;
Communication bus is used to realize the connection communication between processor and memory;
Processor is used to perform the charging procedure stored in memory, to realize following steps:
When terminal is connected with charging equipment by USB data line, the type of charging equipment is determined;
When the type of charging equipment is wall charger, the positive negative signal of enabled terminals after first preset time that is delayed Switching switch, wherein, the positive and negative signal shift switch of enabled terminals includes:The data positive signal of USB data line is filled with wall Electrical equipment positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole.
Further, processor is used to perform the charging procedure stored in memory, to realize following steps:
When terminal is connected with charging equipment by USB data line carries out charge protocol communication, the charging communication information is obtained, Charging equipment type information is extracted from the charging communication information, the type of charging equipment is determined according to charging equipment type information.
Further, it is determined that after the type of charging equipment, processor is used to perform the charging journey stored in memory Sequence, to realize following steps:
When the type of charging equipment is not wall charger, will connect terminal USB data line data positive signal with The data positive signal connection of the charge management module of terminal, the data negative signals and terminal of the USB data line of terminal will be connected The data negative signal connection of charge management module.
On the one hand, the embodiment of the present invention also provides a kind of charging equipment, and the charging equipment includes:Processor, memory and Communication bus;
Communication bus is used to realize the connection communication between processor and memory;
Processor is used to perform the charging procedure stored in memory, to realize following steps:
Whether detection wall charger is connected with terminal;
When wall charger is connected with terminal by USB data line, enabled wall fills after second preset time that is delayed The positive and negative signal shift switch of electrical equipment, wherein, the positive and negative signal shift switch of enabled wall charger includes:By USB data line Data positive signal be connected with wall charger positive pole, the data negative signal of USB data line is connected with wall charger negative pole.
Further, processor is used to perform the charging procedure stored in memory, to realize following steps:
When wall charger and not connected terminal, by the data positive signal and wall of the USB data line at wall charger end The data positive signal interface connection of the micro-control module of charger, the data minus of the USB data line at wall charger end is believed Number it is connected with the data minus signaling interface of the micro-control module of wall charger.
On the one hand, the embodiment of the present invention also provides a kind of computer-readable recording medium, the computer-readable storage medium Matter is stored with one or more program, and one or more of programs can be by one or more computing device, with reality Existing following steps:
When terminal is connected with charging equipment by general-purpose serial bus USB data wire, the type of charging equipment is determined;
When the type of charging equipment is wall charger, the positive negative signal of enabled terminals after first preset time that is delayed Switching switch, wherein, the positive and negative signal shift switch of enabled terminals includes:The data positive signal of USB data line is filled with wall Electrical equipment positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole.
Further, one or more of programs can be walked by one or more computing device so that realization is following Suddenly:
When terminal is connected with charging equipment by USB data line carries out charge protocol communication, the charging communication information is obtained, Charging equipment type information is extracted from the charging communication information, the type of charging equipment is determined according to charging equipment type information.
Further, it is determined that after the type of charging equipment, one or more of programs can be by one or more Individual computing device, to realize following steps:
When the type of charging equipment is not wall charger, will connect terminal USB data line data positive signal with The data positive signal connection of the charge management module of terminal, the data negative signals and terminal of the USB data line of terminal will be connected The data negative signal connection of charge management module.
On the one hand, the embodiment of the present invention also provides a kind of computer-readable recording medium, the computer-readable storage medium Matter is stored with one or more program, and one or more of programs can be by one or more computing device, with reality Existing following steps:
Whether detection wall charger is connected with terminal;
When wall charger is connected with terminal by USB data line, enabled wall fills after second preset time that is delayed The positive and negative signal shift switch of electrical equipment, wherein, the positive and negative signal shift switch of enabled wall charger includes:By USB data line Data positive signal be connected with wall charger positive pole, the data negative signal of USB data line is connected with wall charger negative pole.
Further, after whether detection wall charger is connected with terminal, one or more of programs can quilt One or more computing device, to realize following steps:
When wall charger and not connected terminal, by the data positive signal and wall of the USB data line at wall charger end The data positive signal interface connection of the micro-control module of charger, the data minus of the USB data line at wall charger end is believed Number it is connected with the data minus signaling interface of the micro-control module of wall charger.
The embodiments of the invention provide a kind of charging method, terminal, charging equipment and computer-readable recording medium, work as end When end is connected with charging equipment by general-purpose serial bus USB data wire, the type of charging equipment is determined;When the class of charging equipment When type is wall charger, the positive and negative signal shift switch of enabled terminals after first preset time that is delayed, wherein, enabled terminals Positive and negative signal shift switch include:The data positive signal of USB data line is connected with wall charger positive pole, by usb data The data negative signal of line is connected with wall charger negative pole.Charging method provided in an embodiment of the present invention, terminal, charging equipment and Computer-readable recording medium, USB data line DP/DM signal wires can be made full use of when using wall charger, reduce USB and fill Power path impedance, charge efficiency is lifted, reduce charge loss, and improve the charging the degree of heat of USB data line.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is charging method schematic flow sheet one provided in an embodiment of the present invention;
Fig. 4 is that terminal charge provided in an embodiment of the present invention connects exemplary plot;
Fig. 5 is terminal charge examples of circuits figure provided in an embodiment of the present invention;
Fig. 6 is charging method schematic flow sheet two provided in an embodiment of the present invention;
Fig. 7 is wall charger examples of circuits figure provided in an embodiment of the present invention;
Fig. 8 is charging method schematic flow sheet three provided in an embodiment of the present invention;
Fig. 9 is terminal structure schematic diagram provided in an embodiment of the present invention;
Figure 10 is charging equipment structural representation provided in an embodiment of the present invention.
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 follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part 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 form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any 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, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD 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, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change 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 receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted 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 (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also 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 transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification 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 ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to 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) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact 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 Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 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, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, 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 storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, 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 whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio 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) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands 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 here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can 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 between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can 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 it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
The embodiment of the present invention provides a kind of charging method, as shown in figure 3, this method can include:
Step 301, when terminal is connected with charging equipment by USB data line, determine the type of charging equipment.
Specifically, in the embodiment of the present invention, the type for determining charging equipment can be realized by terminal, i.e., terminal determines The type of charging equipment.Terminal in the present invention can be mobile terminal, can be preferably to need to connect by USB data line The mobile intelligent terminal to be charged.
Mobile terminal refers to the equipment that can be used on the move, and broad sense is said including mobile phone, notebook, tablet personal computer, Even include vehicle-mounted computer.But refer in most cases mobile phone or with a variety of application functions smart mobile phone and Tablet personal computer.As network and technology are towards the development in more and more broadband direction, Mobile Communication Industry will move towards real The mobile message epoch.On the other hand, as the rapid development of integrated circuit technique, the disposal ability of mobile terminal have had Powerful disposal ability, mobile terminal are changed into an integrated information processing platform from simple call instrument.This is also to shifting Dynamic terminal adds broader development space.Mobile terminal is existing several with Mobile Communication Development as simple communication equipment The history of 10 years.Mobile intelligent terminal is almost changed into the crucial entrance of Internet service between a flash and main innovation is put down Platform, new media, ecommerce and information service platform, Internet resources, mobile network resource and environmental interaction resource are most The strategy system of important pivot, its operating system and processor chips even as current whole information and communication technology (ICT) industry is high Point.Mobile intelligent terminal can be referred to as intelligent terminal, and mobile intelligent terminal possesses access the Internet capability, generally carries various Operating system, various functions can be customized according to user's request.Common intelligent terminal includes mobile intelligent terminal, vehicle-mounted in life Intelligent terminal, intelligent television, wearable device etc..
Specifically, as shown in figure 4, when terminal and charging equipment be connected by USB data line carry out charge protocol communication when, Terminal obtains the charging communication information, extracts charging equipment type information from the charging communication information, is believed according to charging equipment type Breath determines the type of charging equipment.
Wherein, the type of charging equipment can include wall charger, i.e. terminal passes through USB data line and wall charger Connection, it can be understood as, terminal is by wall charger directly in connection power source charges;The type of charging equipment can include USB charge, i.e., terminal is connected with another electronic equipment by USB data line and charged, for example, mobile phone be connected with computer into Row charging etc., i.e., terminal is not that charging is connected with charger.
Here, USB (USB, Universal Serial Bus) data wire is used for computer and external equipment It is connected and communicate with, it can also be used to the charging of mobile phone and the connection with outside.Popular says, for transmitting data and charging.USB is A kind of conventional PC interfaces, only 4 lines, two power supplys, two signals, four lines are 1- power supplys respectively, 2- data, 3- data, 4- power supplys, distribution color alignment mode is red white green black for from left to right, corresponds to 1,2,3,4 pins respectively.
The corresponding USB power source of red, indicates VCC, Power, 5V, 5VSB printed words;
The corresponding USB data line (negative) of white, indicates DATA-, USBD-, PD-, USBDT+;
The corresponding USB data line (just) of green, indicates DATA+, USBD+, PD+, USBDT+;
Black corresponds to ground wire, indicates GND, Ground.
Step 302, when the type of charging equipment is wall charger, the enabled terminals after first preset time that is delayed Positive and negative signal shift switch.
Wherein, the positive and negative signal shift switch of enabled terminals includes:The data positive signal of USB data line and wall are charged Device positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole.
Here, the first preset time is less than the positive and negative signal shift switch of the enabled wall charger of wall charger delay Second preset time.
Wherein, wall charger can be understood as power supply adaptor (Power adapter), power supply adaptor be it is small-sized just Take the power supply conversion equipment of formula electronic equipment and electronic apparatus, typically by shell, transformer, inductance, electric capacity, control IC, The components such as pcb board form, and its operation principle is converted to direct current output by exchange input;It can be divided into Direct Plug-In by connected mode And Table top type.
Specifically, when the type for the charging equipment that terminal determines to be connected with itself is wall charger, mobile terminal CPU exists It is delayed after 128ms and enabled mobile terminal DP_DM is switched into switch, data wire DP signals is connected with charger positive pole Vbus, number It is connected according to line DM signals with charger negative pole GND.After switching is completed, charger continues according to the adjustment of communication protocol content most Corresponding charging scheme, such as 9V2A, 9V3A etc..
Optionally, it is determined that after the type of charging equipment, in addition to:
When the type of charging equipment is not wall charger, will connect terminal USB data line data positive signal with The data positive signal connection of the charge management module of terminal, the data negative signals and terminal of the USB data line of terminal will be connected The data negative signal connection of charge management module.
Here, judging the type of charging equipment can not include for wall charger concrete scene:Charging equipment type is USB charges, wall charger part and mobile terminal disconnection etc..
Specifically, if charging equipment type charges for USB, DP, DM existing connected mode, i.e. wall charger are kept DP, DM of end USB data line are connected with DP, DM interface of charger micro-control module;The DP of mobile terminal side USB data line, DM is connected with mobile terminal CPU and charge management module DP, DM.After wall charger part and mobile terminal disconnect, DP, DM recovery Default Connected State, i.e. DP, DM of wall charger end USB data line and DP, DM of charger micro-control module connect Mouth is connected;DP, DM of mobile terminal side USB data line are connected with mobile terminal CPU and charge management module DP, DM.
Charging method provided in an embodiment of the present invention is applied to terminal, the terminal can be mobile terminal, for example, mobile phone, Tablet personal computer etc., as shown in figure 5, the charging circuit of the terminal can include:Charge management module, DP_DM switching switch module, CPU module etc..
Wherein, charge management module, mobile phone charging, the electric current dynamic management of system power supply and charge protocol are mainly realized Communication.If output current of charger is more than system consumption electric current, output current of charger is meeting system power supply electric current Under the premise of charge the battery;If output current of charger is less than system consumption electric current, output current of charger and battery one Rise to system power supply.After mobile terminal detects USB insertions, mobile terminal passes through USB transmission signal wire DP and DM and charging Device carries out charge protocol communication, charge type information is extracted after communicating successfully from the communication information, if charging equipment type is Wall charger, then the CPU module of mobile terminal enabled DP_DM is switched after the 128ms that is delayed and switched, specifically, by data Line DP signal wires are connected with charger positive pole Vbus, and data wire DM signal wires are connected with charger negative pole GND;If charge type Charged for USB, then keep DP, DM existing connected mode, i.e. DP, DM of USB data line and mobile terminal CPU/ Charge Managements Module DP, DM interface is connected.
Wherein, the time of CPU module delay can adjust according to specific actual conditions, but this delay time needs to be less than Charger end DP_DM switching switch enable times.
DP_DM switches switch module, realize disconnection between DP, DM of USB data line and charge power supply Vbus, GND with Connection, when enabled switching switch (EN is high level), data wire DP signal wires are connected with charger positive pole Vbus, data wire DM Signal wire is connected with charger negative pole GND.When being not enabled on the analog switch (EN is low level), DP, DM are acquiescence connection shape DP, DM of state, i.e. USB data line are connected with DP, DM interface of mobile terminal CPU/ charge management modules.
CPU module is mobile terminal system processing module.
Charging method provided in an embodiment of the present invention, USB data line DP/DM can be made full use of when using wall charger Signal wire, USB charge path impedances are reduced, lift charge efficiency, reduce charge loss, and improve the charging of USB data line The degree of heat.
The embodiment of the present invention also provides a kind of charging method, as shown in fig. 6, this method can include:
Whether step 401, detection wall charger are connected with terminal.
Specifically, in the embodiment of the present invention, it can be by wall charger that whether detection wall charger is connected with terminal Come what is realized, i.e. wall charger detects whether itself is connected with terminal.
Here, wall charger can be understood as power supply adaptor, power supply adaptor be small portable electronic device and The power supply conversion equipment of electronic apparatus, typically by component groups such as shell, transformer, inductance, electric capacity, control IC, pcb boards Into its operation principle is converted to direct current output by exchange input;It can be divided into Direct Plug-In and Table top type by connected mode.
Step 402, when wall charger is connected with terminal by USB data line, make after second preset time that is delayed The positive and negative signal shift switch of energy wall charger.
Wherein, enabling the positive and negative signal shift switch of wall charger includes:By the data positive signal and wall of USB data line Charger positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole.
Here, when first of the second preset time more than the positive and negative signal shift switch of terminal delay enabled terminals is preset Between.
Specifically, after mobile terminal is connected with USB, mobile terminal identifies the charging equipment that the USB other end is connected Type, i.e. mobile terminal carry out charge protocol communication by USB transmission signal wire DP and DM and charging equipment, after communicating successfully from Charging equipment type information is extracted in the communication information, if charging equipment type is wall charger, charger microcontroller exists It is delayed after 256ms and enabled wall charger DP_DM is switched into switch, data wire DP signals is connected with charger positive pole Vbus, Data wire DM signals are connected with charger negative pole GND.Wherein, delay time specifically can be adjusted actually, but this delay time needs It is greater than mobile terminal end DP_DM switching switch enable times, i.e. the second preset time needs the positive negative signal more than terminal to cut Change the enable time of switch.
Optionally, after whether detection wall charger is connected with terminal, in addition to:
When wall charger and not connected terminal, by the data positive signal and wall of the USB data line at wall charger end The data positive signal interface connection of the micro-control module of charger, the data minus of the USB data line at wall charger end is believed Number it is connected with the data minus signaling interface of the micro-control module of wall charger.
Charging method provided in an embodiment of the present invention is applied to charging equipment, and the charging equipment can be wall charger, As shown in fig. 7, the wall charger circuit includes power transfer module, over-voltage over-current protection module, micro-control module, DP_DM Switch switch module.
Wherein, power transfer module, mainly realize that 220V voltages turn to charging output voltage (such as 5V, 9V, 12V etc.) Change.
Over-voltage over-current protection module, it is main to monitor output voltage and output current, make charger output voltage in safety Working range in, such as when charger be 5V export, when output voltage be higher than 6.5V, overvoltage crowbar just turn off export leads to Road, if output voltage is less than 4.2V, under-voltage protecting circuit is also switched off output circuit.Simultaneously when output current of charger reaches hard During the overcurrent protection threshold value of part setting, output current is by potential output current threshold value, such as:If current charger specification is 5V1A, then charger maximum output current be clamped at 1A.
Micro-control module, the main charging communication protocol communication realized with mobile terminal, makes charger operation in matching Charge mode.After mobile terminal detects USB data line insertion, mobile terminal is by USB transmission signal wire DP and DM with filling Electrical equipment carries out charge protocol communication, extracts charging equipment type information after communicating successfully from the communication information, if charging is set Type is wall charger, then enabled DP_DM is switched and switched by charger microcontroller after the 256ms that is delayed, specifically, by number It is connected according to line DP signals with charger positive pole Vbus, data wire DM signals are connected with charger negative pole GND, after switching is completed, Charger continues to adjust most corresponding charging scheme (such as 9V2A, 9V3A etc.) according to communication protocol content;If charging equipment Type charges for USB, then keeps DP, DM existing connected mode, i.e. DP, DM of USB data line and charger micro-control module DP, DM interface be connected.
Wherein, the time of charger microcontroller delay can adjust according to specific actual conditions, but this delay time Need to be more than mobile terminal side DP_DM switching switch enable times.
DP_DM switches switch module, realize disconnection between DP, DM of USB data line and charge power supply Vbus, GND with Connection.When DP_DM switching switches are enabled (EN is high level), data wire DP signals are connected with charger positive pole Vbus, data Line DM signals are connected with charger negative pole GND.When being not enabled on the analog switch (EN is high level), DP, DM connect for acquiescence DP, DM of state, i.e. USB data line are connected with DP, DM interface of charger micro-control module.
Charging method provided in an embodiment of the present invention, USB data line DP/DM can be made full use of when using wall charger Signal wire, USB charge path impedances are reduced, lift charge efficiency, reduce charge loss, and improve the charging of USB data line The degree of heat.
The embodiment of the present invention provides a kind of charging method, as shown in figure 8, this method can include:
Step 501, terminal and charging equipment are connected by USB data line and carry out charge protocol communication, from charging communication letter Charging equipment type information is extracted in breath, the type of charging equipment is determined according to charging equipment type information.
Specifically, mobile terminal detects that USB is inserted, mobile terminal is set by USB transmission signal wire DP and DM and charging It is standby to carry out charge protocol communication, charging equipment type information is extracted from the communication information, and judge charging equipment type.
Step 502, when the type of charging equipment is wall charger, the control of wall charger be delayed second it is default when Between after enabled wall charger positive and negative signal shift switch, meanwhile, terminal control enables end after first preset time that be delayed The positive and negative signal shift switch at end.
Wherein, enabling the positive and negative signal shift switch of wall charger includes:By the data positive signal and wall of USB data line Charger positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole;The positive and negative letter of enabled terminals Number switching switch includes:The data positive signal of USB data line is connected with wall charger positive pole, by the data of USB data line Negative signal is connected with wall charger negative pole.
Wherein, when first of the second preset time more than the positive and negative signal shift switch of terminal delay enabled terminals is preset Between, when second of the first preset time less than the positive and negative signal shift switch of the enabled wall charger of wall charger delay is preset Between, i.e. the second preset time is less than the first preset time.The positive and negative signal shift switch of terminal is terminal D P_DM switching switches, The positive and negative signal shift switch of wall charger is wall charger DP_DM switching switches.
Switched specifically, wall charger microcontroller switches enabled wall charger DP_DM after the 256ms that is delayed, will Data wire DP signal wires are connected with charger positive pole Vbus, and data wire DM signal wires are connected with charger negative pole GND;Meanwhile move Enabled mobile terminal DP_DM is being switched switch by dynamic terminal CPU after the 128ms that is delayed, by data wire DP signal wires and charger Positive pole Vbus is connected, and data wire DM signal wires are connected with charger negative pole GND.
Step 503, when charging equipment type for USB charge when, will connect terminal USB data line data positive signal It is connected with the data positive signal of the charge management module of terminal, the data negative signal and terminal of the USB data line of terminal will be connected Charge management module data negative signal connection.
Specifically, when terminal judges that charge type charges for generic USB, then keep DP, DM existing connected mode or Give tacit consent to connected mode, i.e. the DP of wall charger end USB data line is connected with the DP interfaces of charger micro-control module, wall charger The DM of end USB data line is connected with the DM interfaces of charger micro-control module;The DP of mobile terminal side USB data line is whole with movement End CPU and the DP of charge management module are connected, and move the DM and mobile terminal CPU and Charge Management of end side USB data line The DM of module is connected.
After step 502, can also include:
Step 504, wall charger adjust most corresponding charging modes according to communication protocol content and filled for terminal Electricity.
Specifically, after the DP_DM of terminal and wall charger switch switchings are completed, wall charger continues according to communication Protocol contents adjust most corresponding charging scheme, such as 9V2A, 9V3A etc..
Step 505, after terminal is connected with charging equipment disconnection, wall charger is by the usb data at wall charger end The data positive signal of line is connected with the data positive signal interface of the micro-control module of wall charger, by wall charger end The data negative signal of USB data line is connected with the data minus signaling interface of the micro-control module of wall charger;Terminal will connect The data positive signal of the data positive signal of the USB data line of terminal and the charge management module of terminal connects, and will connect terminal The data negative signal of USB data line and the data negative signal of the charge management module of terminal connect.
Specifically, after wall charger and mobile terminal disconnect, DP, DM recovery Default Connected State, i.e. wall fill The DP of electrical equipment end USB data line is connected with the DP interfaces of charger micro-control module, the DM of wall charger end USB data line with The DM interfaces of charger micro-control module are connected;The DP of mobile terminal side USB data line and mobile terminal CPU and Charge Management The DP of module is connected, and the DM of mobile terminal side USB data line is connected with mobile terminal CPU and charge management module DM.
By charging method provided in an embodiment of the present invention, USB data line can be made full use of when using wall charger DP/DM signal wires, USB charge path impedances are reduced, lift charge efficiency, reduce charge loss, and improve USB data line Charge the degree of heat.
The embodiment of the present invention provides a kind of terminal 60, as shown in figure 9, the terminal 60 includes:Processor 601, memory 602 And communication bus 603;
Communication bus 603 is used to realize the connection communication between processor 601 and memory 602;
Processor 601 is used to perform the charging procedure stored in memory 602, to realize following steps:
When terminal is connected with charging equipment by USB data line, the type of charging equipment is determined;
When the type of charging equipment is wall charger, the positive negative signal of enabled terminals after first preset time that is delayed Switching switch, wherein, the positive and negative signal shift switch of enabled terminals includes:The data positive signal of USB data line is filled with wall Electrical equipment positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole.
Further, processor 601 is used to perform the charging procedure stored in memory 602, to realize following steps:
When terminal is connected with charging equipment by USB data line carries out charge protocol communication, the charging communication information is obtained, Charging equipment type information is extracted from the charging communication information, the type of charging equipment is determined according to charging equipment type information.
Further, it is determined that after the type of charging equipment, processor 601 is used to perform what is stored in memory 602 Charging procedure, to realize following steps:
When the type of charging equipment is not wall charger, will connect terminal USB data line data positive signal with The data positive signal connection of the charge management module of terminal, the data negative signals and terminal of the USB data line of terminal will be connected The data negative signal connection of charge management module.
Further, positive negative signal switching of first preset time less than the enabled wall charger of wall charger delay is opened The second preset time closed.
Here, memory 602 can be volatile memory or nonvolatile memory, may also comprise volatibility and Fei Yi Both the property lost memories.Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory), can compile Journey read-only storage (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited Reservoir, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as Static RAM (SRAM, Static Random Access Memory), synchronous static RAM (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited Reservoir 602 is intended to the memory of including but not limited to these and any other suitable type.
Memory 602 in the embodiment of the present invention is used to store various types of data to support the operation of terminal 60.This The example of a little data includes:For any computer program operated in terminal 60, such as operating system and application program;Contact Personal data;Telephone book data;Message;Picture;Video etc..Wherein, operating system includes various system programs, such as ccf layer, Core library layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.Application program can include Various application programs, such as media player (Media Player), browser (Browser) etc., for realizing various applications Business.Realize that the program of present invention method may be embodied in application program.
The method that the embodiments of the present invention disclose can apply in processor 601, or be realized by processor 601. Processor 601 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (DSP, Digital Signal Processor), or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 601 can be realized or held Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint What conventional processor etc..The step of method with reference to disclosed in the embodiment of the present invention, it can be embodied directly at hardware decoding Reason device performs completion, or performs completion with the hardware in decoding processor and software module combination.Software module can be located at In storage medium, the storage medium is located at memory 602, and processor 601 reads the information in memory 602, with reference to its hardware The step of completing preceding method.
Specifically, the understanding of terminal provided in an embodiment of the present invention may be referred to the explanation of above-mentioned charging method embodiment, The embodiment of the present invention will not be repeated here.
Terminal provided in an embodiment of the present invention, USB data line DP/DM signals can be made full use of when using wall charger Line, USB charge path impedances are reduced, lift charge efficiency, reduce charge loss, and improve the charging heating of USB data line Degree.
The embodiment of the present invention also provides a kind of charging equipment 70, and as shown in Figure 10, the charging, which sets 70, to be included:Processor 701, Memory 702 and communication bus 703;
Communication bus 703 is used to realize the connection communication between processor 701 and memory 702;
Processor 701 is used to perform the charging procedure stored in memory 702, to realize following steps:
Whether detection wall charger is connected with terminal;
When wall charger is connected with terminal by USB data line, enabled wall fills after second preset time that is delayed The positive and negative signal shift switch of electrical equipment, wherein, the positive and negative signal shift switch of enabled wall charger includes:By USB data line Data positive signal be connected with wall charger positive pole, the data negative signal of USB data line is connected with wall charger negative pole.
Further, processor 701 is used to perform the charging procedure stored in memory 702, to realize following steps:
When wall charger and not connected terminal, by the data positive signal and wall of the USB data line at wall charger end The data positive signal interface connection of the micro-control module of charger, the data minus of the USB data line at wall charger end is believed Number it is connected with the data minus signaling interface of the micro-control module of wall charger.
Further, the second preset time is more than the first of the positive and negative signal shift switch of terminal delay enabled terminals and preset Time.
Specifically, the understanding provided in an embodiment of the present invention for serving as equipment may be referred to saying for above-mentioned charging method embodiment Bright, the embodiment of the present invention will not be repeated here.
Charging equipment provided in an embodiment of the present invention, USB data line DP/DM can be made full use of when using wall charger Signal wire, USB charge path impedances are reduced, lift charge efficiency, reduce charge loss, and improve the charging of USB data line The degree of heat.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, such as including The memory of computer program, above computer program can be by the computing devices in server, to complete aforementioned method steps. Computer-readable recording medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, The memory such as CD or CD-ROM;Can also be the various equipment for including one of above-mentioned memory or any combination, such as mobile electricity Words, tablet device, personal digital assistant etc..
A kind of computer-readable recording medium, the computer-readable recording medium storage have one or more program, institute Stating one or more program can be by one or more computing device, to realize following steps:
When terminal is connected with charging equipment by general-purpose serial bus USB data wire, the type of charging equipment is determined;
When the type of charging equipment is wall charger, the positive negative signal of enabled terminals after first preset time that is delayed Switching switch, wherein, the positive and negative signal shift switch of enabled terminals includes:The data positive signal of USB data line is filled with wall Electrical equipment positive pole is connected, and the data negative signal of USB data line is connected with wall charger negative pole.
Further, one or more of programs can be walked by one or more computing device so that realization is following Suddenly:
When terminal is connected with charging equipment by USB data line carries out charge protocol communication, the charging communication information is obtained, Charging equipment type information is extracted from the charging communication information, the type of charging equipment is determined according to charging equipment type information.
Further, it is determined that after the type of charging equipment, one or more of programs can be by one or more Individual computing device, to realize following steps:
When the type of charging equipment is not wall charger, will connect terminal USB data line data positive signal with The data positive signal connection of the charge management module of terminal, the data negative signals and terminal of the USB data line of terminal will be connected The data negative signal connection of charge management module.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and computer-readable recording medium storage has one Or multiple programs, one or more program can be by one or more computing devices, to realize following steps:
Whether detection wall charger is connected with terminal;
When wall charger is connected with terminal by USB data line, enabled wall fills after second preset time that is delayed The positive and negative signal shift switch of electrical equipment, wherein, the positive and negative signal shift switch of enabled wall charger includes:By USB data line Data positive signal be connected with wall charger positive pole, the data negative signal of USB data line is connected with wall charger negative pole.
Further, after whether detection wall charger is connected with terminal, one or more of programs can quilt One or more computing device, to realize following steps:
When wall charger and not connected terminal, by the data positive signal and wall of the USB data line at wall charger end The data positive signal interface connection of the micro-control module of charger, the data minus of the USB data line at wall charger end is believed Number it is connected with the data minus signaling interface of the micro-control module of wall charger.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) method that performs each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of charging method, it is characterised in that methods described is applied to terminal, and methods described includes:
When the terminal is connected with charging equipment by general-purpose serial bus USB data wire, the class of the charging equipment is determined Type;
When the type of the charging equipment is wall charger, the positive negative signal of enabled terminals after first preset time that is delayed Switching switch, wherein, the positive and negative signal shift switch of the enabled terminals includes:By the data positive signal of the USB data line It is connected with wall charger positive pole, the data negative signal of the USB data line is connected with wall charger negative pole.
2. according to the method for claim 1, it is characterised in that described when terminal passes through USB with charging equipment When USB data line connects, the type of the charging equipment is determined, including:
When the terminal is connected with charging equipment by USB data line carries out charge protocol communication, the charging communication information is obtained, Charging equipment type information is extracted from the charging communication information, the charging is determined according to the charging equipment type information The type of equipment.
3. method according to claim 1 or 2, it is characterised in that after the type for determining the charging equipment, Also include:
When the type of the charging equipment is not the wall charger, the data for the USB data line for connecting terminal are just being believed Number it is connected with the data positive signal of the charge management module of terminal, data negative signal and the end of the USB data line of terminal will be connected The data negative signal connection of the charge management module at end.
4. according to the method for claim 1, it is characterised in that first preset time is less than the delay of wall charger and made Second preset time of the positive and negative signal shift switch of energy wall charger.
5. a kind of charging method, it is characterised in that methods described is applied to wall charger, and methods described includes:
Detect whether the wall charger is connected with terminal;
When the wall charger is connected with the terminal by USB data line, wall is enabled after second preset time that is delayed The positive and negative signal shift switch of charger, wherein, the positive and negative signal shift switch of the enabled wall charger includes:By institute The data positive signal for stating USB data line is connected with wall charger positive pole, and data negative signal and the wall of the USB data line are filled Charger negative pole connects.
6. according to the method for claim 5, it is characterised in that whether with terminal be connected it in the detection wall charger Afterwards, in addition to:
When the wall charger and the not connected terminal, by the data of the USB data line at the wall charger end just Signal is connected with the data positive signal interface of the micro-control module of the wall charger, by the USB at the wall charger end The data negative signal of data wire is connected with the data minus signaling interface of the micro-control module of the wall charger.
7. the method according to claim 5 or 6, it is characterised in that it is enabled that second preset time is more than terminal delay First preset time of the positive and negative signal shift switch of terminal.
8. a kind of terminal, it is characterised in that the terminal includes:Processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the charging procedure stored in memory, to realize following steps:
When the terminal is connected with charging equipment by USB data line, the type of the charging equipment is determined;
When the type of the charging equipment is wall charger, the positive negative signal of enabled terminals after first preset time that is delayed Switching switch, wherein, the positive and negative signal shift switch of the enabled terminals includes:By the data positive signal of the USB data line It is connected with wall charger positive pole, the data negative signal of the USB data line is connected with wall charger negative pole.
9. a kind of charging equipment, it is characterised in that the charging equipment includes:Processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the charging procedure stored in memory, to realize following steps:
Whether detection wall charger is connected with terminal;
When the wall charger is connected with the terminal by USB data line, wall is enabled after second preset time that is delayed The positive and negative signal shift switch of charger, wherein, the positive and negative signal shift switch of the enabled wall charger includes:Will The data positive signal of USB data line is connected with wall charger positive pole, by the data negative signal of USB data line and wall charger Negative pole connects.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize such as Claims 1-4 The step of method described in any one, or the step of realize the method as described in any one of claim 5 to 7.
CN201711023764.2A 2017-10-27 2017-10-27 A kind of charging method, terminal, charging equipment and computer-readable recording medium Pending CN107565664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711023764.2A CN107565664A (en) 2017-10-27 2017-10-27 A kind of charging method, terminal, charging equipment and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711023764.2A CN107565664A (en) 2017-10-27 2017-10-27 A kind of charging method, terminal, charging equipment and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107565664A true CN107565664A (en) 2018-01-09

Family

ID=61031806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711023764.2A Pending CN107565664A (en) 2017-10-27 2017-10-27 A kind of charging method, terminal, charging equipment and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107565664A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI714310B (en) * 2019-10-14 2020-12-21 緯創資通股份有限公司 Power control method and related charging system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833387A (en) * 2011-06-15 2012-12-19 中兴通讯股份有限公司 Mobile terminal and processing method thereof
EP2315335A3 (en) * 2009-10-22 2014-04-02 LG Electronics Inc. Mobile terminal and charge current setting method thereof
CN106230083A (en) * 2016-08-22 2016-12-14 维沃移动通信有限公司 Charger charging circuit, mobile terminal charging circuit, charger and mobile terminal
CN106537719A (en) * 2016-08-15 2017-03-22 北京小米移动软件有限公司 Electronic device, charger, charging system, and charging method
CN106786960A (en) * 2017-01-13 2017-05-31 广东欧珀移动通信有限公司 Charge control method, device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2315335A3 (en) * 2009-10-22 2014-04-02 LG Electronics Inc. Mobile terminal and charge current setting method thereof
CN102833387A (en) * 2011-06-15 2012-12-19 中兴通讯股份有限公司 Mobile terminal and processing method thereof
CN106537719A (en) * 2016-08-15 2017-03-22 北京小米移动软件有限公司 Electronic device, charger, charging system, and charging method
CN106230083A (en) * 2016-08-22 2016-12-14 维沃移动通信有限公司 Charger charging circuit, mobile terminal charging circuit, charger and mobile terminal
CN106786960A (en) * 2017-01-13 2017-05-31 广东欧珀移动通信有限公司 Charge control method, device and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI714310B (en) * 2019-10-14 2020-12-21 緯創資通股份有限公司 Power control method and related charging system

Similar Documents

Publication Publication Date Title
CN107546808A (en) One kind charging identification circuit, recognition methods and terminal device
CN107222033A (en) A kind of wireless charging method and wireless charging electroplax
CN107528369A (en) Terminal and its wireless charging control method, computer-readable recording medium
CN107276254A (en) A kind of wireless charging control method, charging panel and system
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN109739602A (en) A kind of mobile terminal wallpaper setting method and device, mobile terminal and storage medium
CN107329923A (en) A kind of method, storage medium and terminal for adjusting bus timing
CN108879842A (en) Charge control method, mobile terminal and computer readable storage medium
CN107809767A (en) A kind of information transferring method, mobile terminal, base station and computer-readable storage medium
CN108874708A (en) OTG equipment, terminal charging method, mobile terminal and computer readable storage medium
CN107967056A (en) Control method, terminal and the computer-readable recording medium of flexible screen
CN107390856A (en) A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption
CN107887947A (en) A kind of guard method of charging port and mobile terminal
CN107567013A (en) A kind of signal switching method, terminal and computer-readable recording medium
CN107678671A (en) One kind applies startup method, terminal and computer-readable recording medium
CN108062669A (en) A kind of method of payment, terminal and computer readable storage medium
CN107729104A (en) A kind of display methods, mobile terminal and computer-readable storage medium
CN109544140A (en) A kind of identification code scan method, terminal and readable storage medium storing program for executing
CN108009116A (en) MicroUSB interface circuits and its mobile terminal
CN107708039A (en) Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit
CN107565664A (en) A kind of charging method, terminal, charging equipment and computer-readable recording medium
CN107645151A (en) A kind of current foldback circuit, control method and device, terminal
CN109358796A (en) A kind of game visual field sharing method, terminal and readable storage medium storing program for executing
CN107396226A (en) A kind of earphone compatible circuit, mobile terminal and electronic system
CN107453489A (en) Wireless charging electroplax and its wireless charging method, computer-readable recording 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180109