Movatterモバイル変換


[0]ホーム

URL:


CN106299515B - Charging method and device - Google Patents

Charging method and device
Download PDF

Info

Publication number
CN106299515B
CN106299515BCN201610827192.2ACN201610827192ACN106299515BCN 106299515 BCN106299515 BCN 106299515BCN 201610827192 ACN201610827192 ACN 201610827192ACN 106299515 BCN106299515 BCN 106299515B
Authority
CN
China
Prior art keywords
terminal
power supply
remaining capacity
role exchange
capacity information
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.)
Active
Application number
CN201610827192.2A
Other languages
Chinese (zh)
Other versions
CN106299515A (en
Inventor
王彦腾
杨大伟
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201610827192.2ApriorityCriticalpatent/CN106299515B/en
Publication of CN106299515ApublicationCriticalpatent/CN106299515A/en
Application grantedgrantedCritical
Publication of CN106299515BpublicationCriticalpatent/CN106299515B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The disclosure is directed to a kind of charging method and devices.Method includes: to acquire the remaining capacity information of first terminal;Obtain the remaining capacity information for the second terminal being connected with the first terminal;When determining that the first terminal and the second terminal meet preset power supply role exchange condition according to the remaining capacity information of the master slave mode information of the first terminal, the remaining capacity information of the first terminal and the second terminal, change the power supply direction between the first terminal and the second terminal.Thus, it is possible to the problem of avoiding the terminal that remaining capacity is low in the related technology from powering to the high terminal of remaining capacity, cause itself that can not continue data interaction because of electricity shortage.In addition, the charging method haves no need to change the master slave mode of two terminals, the change in power supply direction can be realized, because without impacting to data interaction.

Description

Charging method and device
Technical field
This disclosure relates to field of terminal more particularly to a kind of charging method and device.
Background technique
With the appearance of Type C interface, more and more terminal devices start using the interface.Terminal device with itsWhen the interaction of his terminal device, which can be at three kinds of different modes, it may be assumed that main equipment mode (DFP mode), from equipmentMode (UFP mode) and master-slave equipment mode (DRP mode).When two terminal devices establish connection by Type C interface,The two be in master slave mode probability be it is equal, i.e., it can be used as main equipment, can also be used as from equipment.When two terminalsWhen equipment establishes connection by Type C interface, always main equipment is powered to from equipment, at this point, if the electricity of main equipment notFoot, then will affect data interaction.In addition, in the related art, changing the power supply direction between two terminal devices and needing to pass throughChange the master slave mode of two terminal devices to realize.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of charging method and device.
According to the first aspect of the embodiments of the present disclosure, a kind of charging method is provided, which comprises
Acquire the remaining capacity information of the first terminal;
Obtain the remaining capacity information for the second terminal being connected with the first terminal;
When according to the master slave mode information of the first terminal, the remaining capacity information of the first terminal and described secondWhen the remaining capacity information of terminal determines that the first terminal and the second terminal meet preset power supply role exchange condition,Change the power supply direction between the first terminal and the second terminal.
Optionally, the first terminal is connected with the second terminal by Type C interface;And
The remaining capacity information for obtaining the second terminal being connected with the first terminal, comprising:
The remaining capacity information for the second terminal being connected with the first terminal is obtained by the Type C interface.
Optionally, when the master slave mode information indicates that the first terminal is in main equipment mode, and described firstWhen the remaining capacity of terminal is less than the remaining capacity of the second terminal, determine that the first terminal and the second terminal meetThe power supply role exchange condition;
When the master slave mode information indicates that the first terminal is in from equipment mode, and the first terminal is surplusWhen remaining electricity is greater than the remaining capacity of the second terminal, determine that the first terminal and the second terminal meet the power supplyRole exchange condition.
Optionally, described to believe when according to the master slave mode information of the first terminal, the remaining capacity of the first terminalIt is preset for electric angle that the remaining capacity information of breath and the second terminal determines that the first terminal and the second terminal meetWhen color exchanges condition, change the power supply direction between the first terminal and the second terminal, comprising:
When according to the master slave mode information of the first terminal, the remaining capacity information of the first terminal and described secondWhen the remaining capacity information of terminal determines that the first terminal and the second terminal meet preset power supply role exchange condition,Power supply role exchange request is sent to the second terminal;
Receive the power supply role exchange response message that the second terminal is sent, wherein the power supply role exchange responseMessage is used to indicate the second terminal and receives the power supply role exchange request or refuse the power supply role exchange request;
When the power supply role exchange response message indicates that the second terminal receives power supply role exchange request,Change the power supply direction between the first terminal and the second terminal.
Optionally, the method also includes:
When according to the master slave mode information of the first terminal, the remaining capacity information of the first terminal and described secondThe remaining capacity information of terminal determines that the first terminal and the second terminal are unsatisfactory for preset power supply role exchange conditionWhen, or when the power supply role exchange response message indicates that the second terminal refuses power supply role exchange request, protectThe power supply direction held between the first terminal and the second terminal is constant.
According to the second aspect of an embodiment of the present disclosure, a kind of charging unit is provided, described device includes:
Acquisition module is configured as acquiring the remaining capacity information of the first terminal;
Module is obtained, is configured as obtaining the remaining capacity information for the second terminal being connected with the first terminal;
Power supply direction changes module, is configured as working as the master slave mode information according to the first terminal, described first eventuallyThe remaining capacity information at end and the remaining capacity information of the second terminal determine that the first terminal and the second terminal are fullWhen the preset power supply role exchange condition of foot, change the power supply direction between the first terminal and the second terminal.
Optionally, the first terminal is connected with the second terminal by Type C interface;And
The module that obtains is configured as obtaining the to be connected with the first terminal by the Type C interfaceThe remaining capacity information of two terminals.
Optionally, the power supply direction changes module and is configured as indicating the first terminal when the master slave mode informationIn main equipment mode, and when the remaining capacity of the first terminal is less than the remaining capacity of the second terminal, institute is determinedIt states first terminal and the second terminal meets the power supply role exchange condition;When the master slave mode information indicates described theOne terminal is in from equipment mode, and when the remaining capacity of the first terminal is greater than the remaining capacity of the second terminal,Determine that the first terminal and the second terminal meet the power supply role exchange condition.
Optionally, the power supply direction change module includes:
Sending submodule, be configured as when according to the master slave mode information of the first terminal, the first terminal it is surplusIt is default that the remaining capacity information of remaining information about power and the second terminal determines that the first terminal and the second terminal meetPower supply role exchange condition when, Xiang Suoshu second terminal send power supply role exchange request;
Receiving submodule is configured as receiving the power supply role exchange response message that the second terminal is sent, wherein institutePower supply role exchange response message is stated to be used to indicate described in the second terminal receiving power supply role exchange request or refusalRole exchange of powering is requested;
Power supply direction changes submodule, is configured as indicating the second terminal when the power supply role exchange response messageWhen receiving power supply role exchange request, change the power supply direction between the first terminal and the second terminal.
Optionally, described device further include:
Power supply direction keeps module, is configured as working as the master slave mode information according to the first terminal, described first eventuallyThe remaining capacity information at end and the remaining capacity information of the second terminal determine the first terminal and the second terminal notWhen meeting preset power supply role exchange condition, or when the power supply role exchange response message indicates the second terminal refusalWhen the power supply role exchange is requested, keep the power supply direction between the first terminal and the second terminal constant.
According to the third aspect of an embodiment of the present disclosure, a kind of charging unit is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Acquire the remaining capacity information of first terminal;
Obtain the remaining capacity information for the second terminal being connected with the first terminal;
When according to the master slave mode information of the first terminal, the remaining capacity information of the first terminal and described secondWhen the remaining capacity information of terminal determines that the first terminal and the second terminal meet preset power supply role exchange condition,Change the power supply direction between the first terminal and the second terminal.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when describedWhen instruction in storage medium is executed by the processor of first terminal, so that first terminal is able to carry out a kind of charging method, instituteThe method of stating includes:
Acquire the remaining capacity information of the first terminal;
Obtain the remaining capacity information for the second terminal being connected with the first terminal;
When according to the master slave mode information of the first terminal, the remaining capacity information of the first terminal and described secondWhen the remaining capacity information of terminal determines that the first terminal and the second terminal meet preset power supply role exchange condition,Change the power supply direction between the first terminal and the second terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: by according to first terminalThe remaining capacity information of master slave mode information, the remaining capacity information of first terminal and second terminal determines first terminal and secondTerminal changes the power supply direction between first terminal and second terminal when meeting preset power supply role exchange condition, can be to avoidThe low terminal of remaining capacity causes itself that can not continue asking for data interaction because of electricity shortage to the high terminal power supply of remaining capacityTopic.In addition, the charging method haves no need to change the master slave mode of two terminals, can realize the change in power supply direction, because withoutData interaction can be impacted.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, notThe disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosureExample, and together with specification for explaining the principles of this disclosure.
Figure 1A is a kind of structural schematic diagram of implementation environment shown according to an exemplary embodiment.
Figure 1B is a kind of structural schematic diagram of the implementation environment shown according to another exemplary embodiment.
Fig. 2A is a kind of flow chart of charging method shown according to an exemplary embodiment.
Fig. 2 B is a kind of supplier of electricity changed between first terminal and second terminal shown according to an exemplary embodimentTo the flow chart of process.
Fig. 2 C is a kind of flow chart of the charging method shown according to another exemplary embodiment.
Fig. 3 A is a kind of block diagram of charging unit shown according to an exemplary embodiment.
A kind of block diagram for charging unit that Fig. 3 B is shown according to another exemplary embodiment.
Fig. 4 is a kind of block diagram of charging unit shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related toWhen attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodimentDescribed in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appendedThe example of some aspects be described in detail in claims, the disclosure consistent device and device.
Figure 1A is a kind of structural schematic diagram of implementation environment shown according to an exemplary embodiment.The implementation environment can be withIncluding first terminal 110 and second terminal 120, also, first terminal 110 and second terminal 120 may belong to it is same type ofTerminal, the two can be communicated by Type C interface.Wherein, first terminal 110 and first terminal 120 can be intelligent handMachine, tablet computer, laptop etc..Illustrate in Figure 1A with first terminal 110 and second terminal 120 are smart phones.
After first terminal 110 and second terminal 120 establish communication connection, first terminal 110 and second terminal 120Locating master slave mode also determines that.Under normal conditions, when first terminal 110 is in main equipment mode, at second terminal 120When from equipment mode, first terminal 110 is powered to second terminal 120;When first terminal 110 is in from equipment mode, secondWhen terminal 120 is in main equipment mode, first terminal 110 is powered by second terminal 120.
Figure 1B is a kind of structural schematic diagram of the implementation environment shown according to another exemplary embodiment.The implementation environment canTo include first terminal 110 and second terminal 120, also, first terminal 110 and second terminal 120 may belong to not seed typeTerminal, the two can be communicated by Type C interface.It with first terminal 110 is smart phone, second terminal in Figure 1B120 be laptop to illustrate.
Fig. 2A is a kind of flow chart of charging method shown according to an exemplary embodiment, wherein this method can answerFor first terminal, for example, terminal 110 shown in Figure 1A or Figure 1B.As shown in Figure 2 A, this method may comprise steps of:
In step 201, the remaining capacity information of first terminal is acquired.
In the disclosure, which is used to indicate the current capacities for the battery being arranged on first terminal.TheOne terminal can acquire the remaining capacity information of itself by built-in sensor, and the mode of acquisition can be according to scheduledPeriod is acquired, and is also possible to be acquired when establishing connection with second terminal.
In step 202, the remaining capacity information for the second terminal being connected with first terminal is obtained.
In one embodiment of the present disclosure, which can be connected by Type C interface with second terminalIt connects, in this way, first terminal can obtain the collected remaining capacity information of second terminal by the Type C interface.The residueInformation about power is used to indicate the current capacities for the battery being arranged in second terminal.Second terminal can pass through built-in sensorCarry out the acquisition of remaining capacity information.The mode that first terminal obtains the remaining capacity information of second terminal can be second terminalPeriodicity sending, first terminal receive automatically.The mode that first terminal obtains the remaining capacity information of second terminal is also possible toFirst terminal sends remaining capacity information request to second terminal and refers to when establishing connection by Type C interface with second terminalIt enables;Second terminal sends self residual after receiving the remaining capacity information request instruction that first terminal is sent, to first terminalInformation about power is to respond the request;First terminal receives the remaining capacity information that second terminal is sent.
In step 203, when master slave mode information, the remaining capacity information and second of first terminal according to first terminalWhen the remaining capacity information of terminal determines that first terminal and second terminal meet preset power supply role exchange condition, change firstPower supply direction between terminal and second terminal.
In the disclosure, master slave mode information is used to indicate the master slave mode that terminal is presently in, wherein the master slave modeIt may include main equipment mode and from equipment mode.
It in one embodiment of the present disclosure, can be by comparing the remaining capacity of first terminal and the residue of second terminalThe size of electricity, and the master slave mode information of first terminal is combined, to judge it is default whether first terminal and second terminal meetPower supply role exchange condition.When master slave mode information indicates that first terminal be in main equipment mode, and first terminal remainsWhen remaining electricity is less than the remaining capacity of second terminal, it is mutual can to determine that first terminal and second terminal meet preset power supply roleChange condition;When master slave mode information indicates that first terminal is in from equipment mode, and the remaining capacity of first terminal is greater than theWhen the remaining capacity of two terminals, it can determine that first terminal and second terminal meet preset power supply role exchange condition.
When determining that first terminal and second terminal meet preset power supply role exchange condition, change first terminal and thePower supply direction between two terminals powers in the terminal from equipment mode to the terminal in main equipment mode.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in main equipment mode, first terminal is powered to second terminal.When the remaining capacity of first terminal is less than the surplus of second terminalWhen remaining electricity, it can determine that first terminal and second terminal meet preset power supply role exchange condition.At this point, changing first eventuallyThe power supply direction at end and second terminal, i.e. first terminal are powered by second terminal.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in from equipment mode, first terminal is powered by second terminal.When the remaining capacity of first terminal is greater than the surplus of second terminalWhen remaining electricity, it can determine that first terminal and second terminal meet preset power supply role exchange condition.At this point, changing first eventuallyThe power supply direction at end and second terminal, i.e. first terminal power to second terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: by according to first terminalThe remaining capacity information of master slave mode information, the remaining capacity information of first terminal and second terminal determines first terminal and secondTerminal changes the power supply direction between first terminal and second terminal when meeting preset power supply role exchange condition, can be to avoidThe low terminal of remaining capacity causes itself that can not continue asking for data interaction because of electricity shortage to the high terminal power supply of remaining capacityTopic.In addition, the charging method haves no need to change the master slave mode of two terminals, can realize the change in power supply direction, because withoutData interaction can be impacted.
In one embodiment, when master slave mode information, the remaining capacity information of first terminal according to first terminalIt, can when determining that first terminal and second terminal meet preset power supply role exchange condition with the remaining capacity information of second terminalTo change the power supply direction between first terminal and second terminal in the following manner.As shown in Figure 2 B, above-mentioned steps 203 canTo include:
In step 2031, when according to the master slave mode information of first terminal, the remaining capacity information of first terminal andWhen the remaining capacity information of two terminals determines that first terminal and second terminal meet preset power supply role exchange condition, to secondTerminal sends power supply role exchange request.
In step 2032, the power supply role exchange response message that second terminal is sent is received, wherein power supply role is mutualChange response message be used to indicate second terminal receive power supply role exchange request or refusal power supply role exchange request.
In step 2033, when power supply role exchange response message instruction second terminal receives power supply role exchange requestWhen, change the power supply direction between first terminal and second terminal.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in main equipment mode, first terminal is powered to second terminal.When the remaining capacity information of two terminals of combination determines firstWhen terminal and second terminal meet preset power supply role exchange condition, first terminal sends power supply role exchange to second terminalRequest.Second terminal sends power supply role to first terminal when receiving the power supply role exchange request from first terminalResponse message is exchanged, to indicate whether it receives role exchange request of powering.When power supply role exchange response message instruction secondWhen terminal receives power supply role exchange request, change the power supply direction between first terminal and second terminal, i.e. first terminal quiltSecond terminal power supply.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in from equipment mode, first terminal is powered by second terminal.When the remaining capacity information of two terminals of combination determines firstWhen terminal and second terminal meet preset power supply role exchange condition, first terminal sends power supply role exchange to second terminalRequest.Second terminal sends power supply role to first terminal when receiving the power supply role exchange request from first terminalResponse message is exchanged, to indicate whether it receives role exchange request of powering.When power supply role exchange response message instruction secondWhen terminal receives power supply role exchange request, change the power supply direction between first terminal and second terminal, i.e., first terminal toSecond terminal power supply.
Fig. 2 C is a kind of flow chart of the charging method shown according to another exemplary embodiment, wherein this method can be withApplied to first terminal, for example, first terminal 110 shown in Figure 1A or Figure 1B.As shown in Figure 2 C, above-mentioned charging method may be used alsoTo include:
In step 204, when master slave mode information, the remaining capacity information and second of first terminal according to first terminalWhen the remaining capacity information of terminal determines that first terminal and second terminal are unsatisfactory for preset power supply role exchange condition, or works as and supplyWhen the instruction second terminal refusal power supply role exchange request of electric role exchange response message, keep first terminal and second terminal itBetween power supply direction it is constant.
In one embodiment, when master slave mode information, the remaining capacity information of first terminal according to first terminalWhen determining that first terminal and second terminal are unsatisfactory for preset power supply role exchange condition with the remaining capacity information of second terminal,Keep the power supply direction between first terminal and second terminal constant.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in main equipment mode, first terminal is powered to second terminal.When according to the master slave mode information of first terminal, first terminalRemaining capacity information and the remaining capacity information of second terminal determine that first terminal and second terminal are unsatisfactory for preset power supplyWhen role exchange condition, keep the power supply direction between first terminal and second terminal constant, i.e., first terminal continues to secondTerminal power supply.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in from equipment mode, first terminal is powered by second terminal.When according to the master slave mode information of first terminal, first terminalRemaining capacity information and the remaining capacity information of second terminal determine that first terminal and second terminal are unsatisfactory for preset power supplyWhen role exchange condition, keep the power supply direction between first terminal and second terminal constant, i.e., first terminal continues by secondTerminal power supply.
In another embodiment, believe when according to the master slave mode information of first terminal, the remaining capacity of first terminalWhen the remaining capacity information of breath and second terminal determines that first terminal and second terminal meet preset power supply role exchange condition,First terminal sends power supply role exchange request to second terminal.When second terminal refuses power supply role exchange request, keepPower supply direction between first terminal and second terminal is constant.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in main equipment mode, first terminal is powered to second terminal.When the remaining capacity information of two terminals of combination determines firstWhen terminal and second terminal meet preset power supply role exchange condition, first terminal sends power supply role exchange to second terminalRequest.When second terminal refuses power supply role exchange request, the power supply direction between holding first terminal and second terminal is notBecome, i.e., first terminal continues to power to second terminal.
Illustratively, after first terminal and second terminal establish connection, when master slave mode information instruction first terminal is currentWhen in from equipment mode, first terminal is powered by second terminal.When the remaining capacity information of two terminals of combination determines firstWhen terminal and second terminal meet preset power supply role exchange condition, first terminal sends power supply role exchange to second terminalRequest.When second terminal refuses power supply role exchange request, the power supply direction between holding first terminal and second terminal is notBecome, i.e. first terminal continuation is powered by second terminal.
Fig. 3 A is a kind of block diagram of charging unit 300 shown according to an exemplary embodiment, wherein the device 300 canTo be applied to first terminal, for example, first terminal 110 shown in Figure 1A or Figure 1B.Referring to Fig. 3 A, which be can wrapInclude: acquisition module 301 is configured as acquiring the remaining capacity information of the first terminal;Module 302 is obtained, is configured as obtainingTake the remaining capacity information for the second terminal being connected with the first terminal;Power supply direction changes module 303, is configured as working asAccording to the master slave mode information of the first terminal, the residue of the remaining capacity information of the first terminal and the second terminalWhen information about power determines that the first terminal and the second terminal meet preset power supply role exchange condition, change described thePower supply direction between one terminal and the second terminal.
Optionally, the first terminal is connected with the second terminal by Type C interface;And
It is described obtain module 302 and be configured as obtaining by the Type C interface be connected with the first terminalThe remaining capacity information of second terminal.
Optionally, the power supply direction changes module 303 and is configured as indicating described first when the master slave mode informationTerminal is in main equipment mode, and when the remaining capacity of the first terminal is less than the remaining capacity of the second terminal, reallyThe fixed first terminal and the second terminal meet the power supply role exchange condition;When the master slave mode information indicates instituteIt states first terminal to be in from equipment mode, and the remaining capacity of the first terminal is greater than the remaining capacity of the second terminalWhen, determine that the first terminal and the second terminal meet the power supply role exchange condition.
Optionally, the power supply direction change module 303 includes:
Sending submodule, be configured as when according to the master slave mode information of the first terminal, the first terminal it is surplusIt is default that the remaining capacity information of remaining information about power and the second terminal determines that the first terminal and the second terminal meetPower supply role exchange condition when, Xiang Suoshu second terminal send power supply role exchange request;
Receiving submodule is configured as receiving the power supply role exchange response message that the second terminal is sent, wherein institutePower supply role exchange response message is stated to be used to indicate described in the second terminal receiving power supply role exchange request or refusalRole exchange of powering is requested;
Power supply direction changes submodule, is configured as indicating the second terminal when the power supply role exchange response messageWhen receiving power supply role exchange request, change the power supply direction between the first terminal and the second terminal.
Fig. 3 B is a kind of block diagram of the charging unit 300 shown according to another exemplary embodiment, wherein the device 300It can be applied to first terminal, for example, first terminal 110 shown in Figure 1A or Figure 1B.As shown in Figure 3B, above-mentioned charging unit300 can also include:
Power supply direction keeps module 304, is configured as working as the master slave mode information according to the first terminal, described firstThe remaining capacity information of terminal and the remaining capacity information of the second terminal determine the first terminal and the second terminalWhen being unsatisfactory for preset power supply role exchange condition, or when the power supply role exchange response message indicates that the second terminal is refusedWhen exhausted power supply role exchange request, keep the power supply direction between the first terminal and the second terminal constant.
The technical scheme provided by this disclosed embodiment can include the following benefits: by according to first terminalThe remaining capacity information of master slave mode information, the remaining capacity information of first terminal and second terminal determines first terminal and secondTerminal changes the power supply direction between first terminal and second terminal when meeting preset power supply role exchange condition, can be to avoidThe low terminal of remaining capacity causes itself that can not continue asking for data interaction because of electricity shortage to the high terminal power supply of remaining capacityTopic.In addition, the charging method haves no need to change the master slave mode of two terminals, the change in power supply direction can be realized, thus notData interaction can be impacted.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in the related deviceEmbodiment in be described in detail, no detailed explanation will be given here.
A kind of Fig. 4 block diagram of charging unit 400 shown according to an exemplary embodiment.For example, device 400 can be shiftingMobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building are setIt is standby, personal digital assistant etc..
Referring to Fig. 4, device 400 may include following one or more components: processing component 402, memory 404, electric powerComponent 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414, andCommunication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as with display, telephone call, data communication, phaseMachine operation and record operate associated operation.Processing component 402 may include that one or more processors 420 refer to executeIt enables, to complete all or part of the steps of above-mentioned charging method.In addition, processing component 402 may include one or more mouldsBlock, convenient for the interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, withFacilitate the interaction between multimedia component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shownExample includes instruction for any application program or device that operate on device 400, contact data, and telephone book data disappearsBreath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their groupIt closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compileJourney read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flashDevice, disk or CD.
Electric power assembly 406 provides electric power for the various assemblies of device 400.Electric power assembly 406 may include power management systemSystem, one or more power supplys and other with for device 400 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between described device 400 and user.OneIn a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screenCurtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensingsDevice is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding actionBoundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakersBody component 408 includes a front camera and/or rear camera.When device 400 is in operation mode, such as screening-mode orWhen video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera andRear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a MikeWind (MIC), when device 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matchedIt is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication setPart 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module canTo be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lockDetermine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commentedEstimate.For example, sensor module 414 can detecte the state that opens/closes of device 400, and the relative positioning of component, for example, it is describedComponent is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or devicePosition change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contactPresence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, atAs being used in application.In some embodiments, which can also include acceleration transducer, gyro sensorsDevice, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementationIn example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.ExampleSuch as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuit (ASIC), numberNumber processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned charging method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally providedIt such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 400 to complete above-mentioned charging method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,Floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and practicing the disclosureCase.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptabilityVariation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosureArt means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claimIt points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

CN201610827192.2A2016-09-142016-09-14Charging method and deviceActiveCN106299515B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610827192.2ACN106299515B (en)2016-09-142016-09-14Charging method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610827192.2ACN106299515B (en)2016-09-142016-09-14Charging method and device

Publications (2)

Publication NumberPublication Date
CN106299515A CN106299515A (en)2017-01-04
CN106299515Btrue CN106299515B (en)2019-04-16

Family

ID=57711694

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610827192.2AActiveCN106299515B (en)2016-09-142016-09-14Charging method and device

Country Status (1)

CountryLink
CN (1)CN106299515B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US11979941B2 (en)2018-05-162024-05-07Huawei Technologies Co., Ltd.Data transmission method and terminal
US12166367B2 (en)2020-10-262024-12-10Beijing Xiaomi Mobile Software Co., Ltd.Method for controlling charging between electronic devices and electronic device
CN113078709B (en)*2021-04-012024-10-25博阳能源科技有限公司 A fast charging circuit role control method, protocol processing system and circuit
CN116231815B (en)*2023-05-102023-09-08荣耀终端有限公司Method for controlling charging and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102025001A (en)*2009-09-212011-04-20联想(北京)有限公司Terminal and charging and power supplying method thereof
CN104900927A (en)*2014-03-072015-09-09世和能源科技股份有限公司 Method for detecting and displaying mobile power charging information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9276430B2 (en)*2013-05-242016-03-01Qualcomm, IncorporatedMaster-slave multi-phase charging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102025001A (en)*2009-09-212011-04-20联想(北京)有限公司Terminal and charging and power supplying method thereof
CN104900927A (en)*2014-03-072015-09-09世和能源科技股份有限公司 Method for detecting and displaying mobile power charging information

Also Published As

Publication numberPublication date
CN106299515A (en)2017-01-04

Similar Documents

PublicationPublication DateTitle
CN105068958B (en)Method for handover control and device
US20170064182A1 (en)Method and device for acquiring image file
CN104159218B (en)Internetwork connection establishing method and device
CN106547663B (en) Key management method and device
CN105098888A (en)Charging method and device
CN105373464A (en)Charging warning method and device of wearable equipment
CN105208215A (en)Locating control method, device and terminal
CN105071473B (en)USB charging methods and device
CN105098273A (en)Charging method and device
CN104320542A (en)Method and device for sending reminding message
CN106299515B (en)Charging method and device
CN106604230B (en) Method and device for area configuration
CN105120505A (en)Method, apparatus and system for making intelligent equipment accessed to router
CN109644457A (en)Resource allocation method and device
CN109050470A (en)Vehicle auto-locking method, apparatus, server and storage medium
CN105162193A (en)Charging method and charging apparatus for terminal, and terminal
CN109451877A (en)Unmanned aerial vehicle (UAV) control method and device, unmanned plane and remote control equipment
CN104837154A (en) Control method and device for wireless access point
CN104090655A (en)Terminal and terminal control method and device.
CN104486490A (en)Method and device for notifying battery capacity
CN105578401A (en)Locating information collection method, locating information collection device and mobile terminal
CN105068651A (en)Method, device, terminal and server for controlling alarm clock
CN106532367B (en) Method and device for smart socket electricity warning
CN105183309B (en)Method for handover control and device
CN105517144A (en)Equipment positioning method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp