This application claims State Intellectual Property Office is committed on January 18th, 2019, application No. is 201910047190.5,Apply for the Chinese patent application of entitled " a kind of electronic equipment and its charging method " and is committed to state on April 26th, 2019Department of Intellectual Property, family, application No. is the 201910346383.0, Chinese patent applications of application entitled " terminal and processing method "Priority, entire contents are hereby incorporated by reference in the application.
Summary of the invention
A kind of terminal and processing method are provided in exemplified embodiment of the present invention, the use of user's operation terminal can be promotedFamily experience.
According to the one side in illustrative embodiment, a kind of terminal is provided, comprising: input unit is configured as connecingReceive touch operation from the user;
Display unit is configured as display user interface;With
Processor, the processor and the input unit and the display unit couple,
The terminal further includes main battery, and the back side of the terminal is equipped with secondary cell;The processor is configured to:
Determine connection charger;
It is during the main battery is charged, if the charging current of the main battery is brought down below described fill in the chargerThe output electric current of electric appliance, then the charging path for controlling the secondary cell is opened, so that the charger is simultaneously the main electricityPond and the secondary cell charge.
In some illustrative embodiments, the processor is further configured to: according to the defeated of the chargerThe charging current of electric current and the main battery configures the charging current of the secondary cell out.
It is described according to the output electric current of the charger and filling for the main battery in some illustrative embodimentsElectric current configures the charging current of the secondary cell, specifically includes:
Configure the difference of the output electric current of the charger and the charging current of the main battery to the charging of the secondary cellElectric current.
It is described according to the output electric current of the charger and filling for the main battery in some illustrative embodimentsElectric current configures the charging current of the secondary cell, specifically includes:
Configure the electric current of preset gear to the charging current of the secondary cell;
Wherein, output electric current and the charging current of the main battery of the electric current of the preset gear no more than the chargerDifference.
In some illustrative embodiments, connected between the charger and terminal by wired mode.
In some illustrative embodiments, wirelessly connected between the charger and terminal.
According to the another aspect in illustrative embodiment, a kind of processing method is provided, comprising: there is one or moreA processor, memory, input unit and display unit terminal at:
Determine connection charger;Wherein, the terminal includes main battery, and the back side of the terminal is equipped with secondary cell;
It is during the main battery is charged, if the charging current of the main battery is brought down below described fill in the chargerThe output electric current of electric appliance, then the charging path for controlling the secondary cell is opened, so that the charger is simultaneously the main electricityPond and the secondary cell charge.
In some illustrative embodiments, the method also includes: according to the output electric current of the charger and instituteThe charging current for stating main battery configures the charging current of the secondary cell.
In some illustrative embodiments, the method also includes: the output electric current according to the chargerThe charging current that the secondary cell is configured with the charging current of the main battery, specifically includes:
Configure the difference of the output electric current of the charger and the charging current of the main battery to the charging of the secondary cellElectric current.
According in illustrative embodiment in another aspect, providing a kind of computer storage medium, the computer is depositedComputer program instructions are stored in storage media, when described instruction is run on computers, so that the computer executes such asThe upper processing method.
On the basis of common knowledge of the art, above-mentioned each optimum condition, can any combination to get each preferable reality of the present inventionApply example.
The positive effect of the present invention is that: in the present invention, in the case where determining that charger is connect with terminal, preferentiallyIt charges for main battery, during the main battery that charger is terminal is charged, if the charging current of the main battery dropsTo the output electric current for being lower than the charger, then the charging path that control is mounted on the secondary cell at the terminal back side is opened, so thatThe charger is that the main battery and the secondary cell charge simultaneously, so that the power that charger provides is filledDivide and utilizes.In addition, compared with prior art, it is only necessary to which a charger can be achieved with being filled simultaneously for main battery and secondary cellElectricity, the user experience is improved.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application exemplary embodiment clearer, below in conjunction with the applicationThe technical solution in the application exemplary embodiment is clearly and completely described in attached drawing in exemplary embodiment, showsSo, described exemplary embodiment is only some embodiments of the present application, instead of all the embodiments.
Based on exemplary embodiment shown in the application, those of ordinary skill in the art are not making creative workUnder the premise of every other embodiment obtained, shall fall in the protection scope of this application.Although in addition, content disclosed hereinIt is introduced according to exemplary one or several examples, it should be appreciated that can be with regard to the various aspects of these disclosures or singleSolely constitute a complete technical solution.
It should be appreciated that specification and claims and term " first " in above-mentioned attached drawing in the application, " second "," third " etc. is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that in this wayThe data used are interchangeable under appropriate circumstances, for example, can according to the embodiment of the present application illustrate or describe in provide those withOuter sequence is implemented.
In addition, term " includes " and " having " and their any deformation, it is intended that covering but it is non-exclusive include,It for example, containing a series of product of components or those of equipment is not necessarily limited to be clearly listed component, but may include not havingOther components being clearly listed or intrinsic for these products or equipment.
Term " unit " used herein refers to hardware that is any known or developing later, software, firmware, artificialThe combination of intelligence, fuzzy logic or hardware or/and software code, is able to carry out function relevant to the element.
The hardware configuration block diagram of terminal 100 in accoding to exemplary embodiment is illustrated in Fig. 1.As shown in Figure 1, eventuallyEnd 100 include: radio frequency (radio frequency, RF) circuit 110, memory 120, input unit 130, display unit 140,Sensor 150, voicefrequency circuit 160, Wireless Fidelity (Wireless Fidelity, Wi-Fi) module 170, processor 180, bluetoothThe components such as module 181 and power supply 190.
RF circuit 110 can be used for receive and send messages or communication process in signal send and receive, can receive base stationThe processing of processor 180 is given after downlink data;Upstream data can be sent to base station.In general, RF circuit includes but is not limited toThe devices such as antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer.
Memory 120 can be used for storing software program and data.Processor 180 is stored in memory 120 by operationSoftware program or data, thereby executing the various functions of terminal 100 and data processing.Memory 120 may include high speed withMachine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or itsHis volatile solid-state part.Memory 120 is stored with the operating system that terminal 100 is run.It is stored in the applicationDevice 120 can store an operating system and various application programs, can also store the code for executing the embodiment of the present application the method.
Input unit 130(such as touch screen) it can be used for receiving the number or character information of input, it generates and terminal 100User setting and the related signal input of function control.Specifically, input unit 130 may include setting terminal 100 justThe touch screen 131 in face collects the touch operation of user on it or nearby.Input unit 130 can receive use in the applicationThe touch operation at family, such as button is clicked, dragging scroll box etc..
Display unit 140 can be used for showing information input by user or the information and terminal 100 that are supplied to userThe graphic user interface (graphical user interface, GUI) of various menus.Display unit 140 may include that setting existsThe positive display screen 141 of terminal 100.Wherein, display screen 141 can be matched using forms such as liquid crystal display, light emitting diodesIt sets.Display unit 140 is displayed for various graphic user interfaces described herein.Touch screen 131 can be covered onOn display screen 141, touch screen 131 and display screen 141 can also be integrated and be realized the function that outputs and inputs of terminal 100,It can abbreviation touch display screen after integrated.Display unit 140 can show application program and corresponding operation step in the applicationSuddenly.
Terminal 100 can also include at least one sensor 150, such as acceleration transducer 155, optical sensor, movementSensor.Terminal 100 may also be configured with the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 100.AudioElectric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160Sound signal output.Terminal 100 can also configure volume button, for adjusting the volume of voice signal.On the other hand, microphone 162The voice signal of collection is converted into electric signal, is converted to audio data after being received by voicefrequency circuit 160, then audio data is defeatedOut to RF circuit 110 to be sent to such as another terminal, or audio data exported to memory 120 further to locateReason.The voice of the available user of microphone 162 in the application.
Wi-Fi belongs to short range wireless transmission technology, and terminal 100 can help user to receive and dispatch electricity by Wi-Fi module 170Sub- mail, browsing webpage and access Streaming Media etc., it provides wireless broadband internet access for user.
Processor 180 is the control centre of terminal 100, utilizes each portion of various interfaces and the entire terminal of connectionPoint, by running or executing the software program being stored in memory 120, and the data that calling is stored in memory 120,Execute the various functions and processing data of terminal 100.In some embodiments, processor 180 may include one or more processingUnit;Processor 180 can also integrate application processor and baseband processor, wherein the main processing operation system of application processorSystem, user interface and application program etc., baseband processor mainly handles wireless communication.It is understood that above-mentioned Base-Band ProcessingDevice can not also be integrated into processor 180.Processor 180 can run operating system, application program, Yong Hujie in the applicationFace show and touch-control response and the embodiment of the present application described in processing method.In addition, processor 180 and input unit 130 andDisplay unit 140 couples.
Bluetooth module 181, for carrying out information friendship with other bluetooth equipments with bluetooth module by Bluetooth protocolMutually.For example, terminal 100 can be (such as intelligent by bluetooth module 181 and the wearable electronic for being likewise supplied with bluetooth moduleWrist-watch) bluetooth connection is established, to carry out data interaction.
Terminal 100 further includes the power supply 190(such as battery powered to all parts).Power supply can pass through power management systemIt unites logically contiguous with processor 180, to realize the functions such as management charging, electric discharge and power consumption by power-supply management system.EventuallyEnd 100 may also be configured with power knob, for functions such as the startup and shutdown of terminal and screen lockings.
Fig. 2 is the schematic diagram for showing the user interface in terminal (such as terminal 100 of Fig. 1).In some specific realitiesShi Zhong, user can open corresponding application program by touching the application icon in user interface, or by touching userFolder icon on interface can open corresponding file.
Fig. 3 (a) and Fig. 3 (b) is the structural schematic diagram for being respectively used to show the terminal back side and terminal front side.Fig. 4 (a) and figureIt 4(b) is the structural schematic diagram for being respectively used to show back splint battery front side and back splint cell backside.Fig. 5 (a) and Fig. 5 (b) is differenceFor showing the structural schematic diagram for being equipped with the front and back of terminal of back splint battery.
In conjunction with Fig. 3-5, in some specific implementations, the back side of terminal is equipped with the first thimble contact interface 300, back splint batteryIt is equipped with the second thimble contact interface 400, after terminal installs back splint battery, the first thimble contact interface 300 and the second ejector pin contactPoint interface 400 is electrically connected.
It should be noted that terminal itself has a battery, in the case where not installing back splint battery, it is using the batteryThe host supplying power of terminal is referred to as " main battery " in the following description, correspondingly, in the following description will backFolder battery is referred to as " secondary cell ".
Following embodiment of the present invention is filled for what the terminal for having installed secondary cell provided after connecting external chargerElectric solution.
Fig. 6 is the flow chart for showing the processing method of one embodiment of the invention offer.
In a kind of optional embodiment, provide a kind of processing method, comprising: with one or more processors,At the terminal of memory, input unit and display unit:
Step 301 determines connection charger.
In a kind of implementation of step 301, charger and terminal are connected by wired mode, i.e., the charger is wiredCharger needs to be inserted into terminal, specifically whether can determine charger by the pin level that charger is connected with terminalInsertion.
In one example, if rising edge jump occurs for the level of the pin, interrupt event can be caused, determine chargerInsertion.In another example, if failing edge jump occurs for the level of the pin, interrupt event can be caused, determine chargerInsertion.
In one example, if detecting, the pin is high level, it is determined that charger insertion.In another example,If detecting, the pin is low level, it is determined that charger insertion.
In another implementation of step 301, charger is wirelessly connect with terminal, i.e., the charger is nothingLine charge electric appliance specifically can determine that charger is connect with terminal by data interactive therebetween.
Step 302 in the charger is during the main battery charged, if the charging current of the main battery dropsTo the output electric current for being lower than the charger, then the charging path for controlling the secondary cell is opened, so that the charger is sameWhen charge for the main battery and the secondary cell.
It is preferably that main battery charges in the case where determining that charger is connect with terminal in the present embodiment.It is chargingDevice is during main battery is charged, if the charging current of the main battery is brought down below the output electric current of charger, to openThe charging path of secondary cell, the charging path of charger utilizing secondary cell are that secondary cell charges, that is, realize charger simultaneouslyIt charges for main battery and secondary cell.
It should be noted that being during main battery is charged, to illustrate that the electricity of main battery is less than in charger.If main electricityThe electricity in pond has been expired, then charger is no longer that main battery charges.Similarly, if the electricity of secondary cell has been expired, chargerNo longer charge for secondary cell.
Fig. 7 is to show user circle for showing the terminal for being equipped with secondary cell display unit 140 after being inserted into chargerThe schematic diagram in face;Fig. 8 is the enlarged diagram for showing the part A1 in Fig. 7, including main battery icon and secondary cell icon.ItsIn, it is being that main battery charges that the lightning label 700 in main battery icon, which is used to characterize charger, in secondary cell iconLightning label 700 is being that secondary cell charges for characterizing charger.In the present embodiment, charger be simultaneously main battery andSecondary cell charges.
In optionally a kind of embodiment, according to the charging current of the output electric current and the main battery of the chargerConfigure the charging current of the secondary cell.It in specific implementation, can be by sending control instruction to the charging chip of secondary cellMode configure the charging current of secondary cell, wherein the current value of charging current is carried in control instruction.
It should be noted that the charging current of main battery refers to the electric current for flowing into main battery, the charging current of secondary cell isRefer to that the electric current for flowing into secondary cell, the output electric current of charger refer to the electric current of outflow charger.It in specific implementation, can be at endHold the ground terminal of the grounding pin (grounding pin in i.e. above-mentioned first thimble contact interface 300) and terminal that connect with secondary cellBetween connect a resistance, the charging current of main battery is determined by detecting the ohmically voltage.
In one example, the secondary electricity is configured by the difference of the charging current of the output electric current of charger and main batteryThe charging current in pond.In the present embodiment, the residual current flowed into except main battery will be removed and be all allocated to secondary cell.
In one example, by the preset ratio value example of the difference of the charging current of the output electric current of charger and main batterySuch as 80%, it is configured to the charging current of secondary cell.In the present embodiment, the residual current part flowed into except main battery will be removed and matchedIt sets to secondary cell.
In another example, the electric current of preset gear is configured to the charging current of secondary cell;Wherein, preset gearDifference of the electric current no more than the output electric current of charger and the charging current of main battery.For example, it is assumed that the output of chargerElectric current is 2A, and the electric current of preset gear may include 0.2A, 0.4A, 0.6A, 0.8A, 1A, 1.2A, 1.4A, 1.6A, 1.8A, 2A.When the charging current of main battery is 0A, illustrate that the electricity of main battery has been expired, can be at this time the maximum charge of secondary cell configurationElectric current is 2A.
In optional another embodiment, the electricity of main battery has been expired, and without charging for main battery, control is secondaryThe charging path of battery is opened, so that charger is only that secondary cell charges.
Fig. 9 is to show user circle for showing the terminal for being equipped with secondary cell display unit 140 after being inserted into chargerThe schematic diagram in face;Figure 10 is the enlarged diagram for showing the part A2 in Fig. 9, including main battery icon and secondary cell icon.Wherein, the lightning label 700 in secondary cell icon is being that secondary cell charges for characterizing charger.In the present embodiment,Charger is only that secondary cell charges.
It is during the main battery is charged, if described fill in the charger in optionally a kind of embodimentThe output electric current of electric appliance is not more than the charging current of the main battery, then controls the charging path shutdown of the secondary cell, so thatObtaining the charger is only that the main battery charges.
For the charging process of battery, need to undergo two stages: the first stage is with constant current charging;Work as voltageIt is transferred to second stage when reaching predetermined value and carries out constant-voltage charge, electric current is gradually reduced at this time;Drop to zero when charging current reachesWhen, battery is completely filled with.
The present embodiment is the first stage of main battery charging, i.e. the output electric current of the charging current of main battery and charger beginsIt is consistent eventually.Charger is only that main battery charges at this stage.It should be noted that charging in above-described embodimentDevice is that main battery and secondary cell charge simultaneously, is that the second stage to charge in main battery carries out, main electricity in second stageThe charging current in pond gradually decreases down the output electric current lower than charger.
Figure 11 is to show user circle for showing the terminal for being equipped with secondary cell display unit 140 after being inserted into chargerThe schematic diagram in face;Figure 12 is the enlarged diagram for showing the part A3 in Figure 11, including main battery icon and secondary cell icon.Wherein, the lightning label 700 in main battery icon is being that main battery charges for characterizing charger.In the present embodiment,Charger is only that main battery charges.
Figure 13 is the flow chart for showing the processing method of one embodiment of the invention offer.
In a kind of optional embodiment, provide a kind of processing method, comprising: with one or more processors,At the terminal of memory, input unit and display unit:
Step 601 determines connection charger.
Step 602 judges whether the electricity of main battery has expired, if so, 605 are thened follow the steps, if it is not, thening follow the steps603.The electricity of main battery is that 100 expression electricity have been expired, and otherwise, all thinks that electricity is less than.
Step 603, the charging path for controlling main battery are opened.Charger by the charging path of main battery to main battery intoRow charging.
Step 604 judges whether the charging current of main battery is brought down below the output electric current of charger, if so, executingStep 605, if it is not, thening follow the steps 602.
Step 605 judges whether the electricity of secondary cell has expired, if so, terminating process, if it is not, thening follow the steps 606.Similarly, the electricity of secondary cell is that 100 expression electricity have been expired, and otherwise, all thinks that electricity is less than.
Step 606, the charging current that secondary cell is configured according to the output electric current of charger and the charging current of main battery, andThe charging path for controlling secondary cell is opened.Charger is charged by the charging path of secondary cell to secondary cell.
In present embodiment, in the case where the electricity of main battery is less than, charger preferentially guarantees that main battery obtains maximumCharging current, remainder are secondary cell charging.It should be noted that in the case where the electricity of main battery has been expired, main batteryCharging current be zero.
For example, it is assumed that the output electric current of charger is 2A, if the charging current of main battery is brought down below 2A, main batteryIt is less than with the electricity of secondary cell, then charger charges to major-minor battery simultaneously;If the charging current of main battery maintainsIn 2A, the electricity of main battery and secondary cell is less than, then charger only charges to main battery;If the electricity of main battery isFull, the electricity of secondary cell is less than, then charger only charges to secondary cell.
In optionally a kind of embodiment, the operating system of terminal is android system.Kernel layers by interrupt orThe level that I/O mouthfuls of person can detecte out the events such as whether secondary cell is inserted into, whether the electricity of major-minor battery and charger are inserted into.
In some specific implementations, kernel layers using main battery and secondary cell as individual facility registration to systemSys/class/power-supply catalogue in the following, and it is named, such as main battery is named as battery, willSecondary cell is named as motion-battery.
When electricity level, the charging and discharging state status(of main battery include charged state charging, discharge conditionDischarging, uncharged state not charging) etc. information when changing when changing, kernel layers can will becomeThe value of change is written under battery catalogue.
When electricity motion_level, the charging and discharging state motion_status(of secondary cell include charged stateCharging, discharge condition discharging, uncharged state not charging), insert state motion_present etc.When information changes, kernel layers can be written to the value of variation under motion-battery catalogue.
Battery catalogue and motion-battery catalogue are read by healthd module monitors, and is reported toBatteryService service.If BatteryService service receives main battery and/or the state of secondary cell changes,Then battery_changed broadcast is issued to upper level applications.Upper level applications can be from the battery_ receivedThe electricity of main battery, the electricity of charging and discharging state and secondary cell, charging and discharging state, insertion shape are parsed in changed broadcastThe information such as state.
In the above-described embodiment, master can be parsed from the battery_changed broadcast received in step 602The electricity of battery, to judge whether the electricity of main battery has expired.It similarly, can be from receiving in step 605The electricity of secondary cell is parsed in battery_changed broadcast, to judge whether the electricity of secondary cell has expired.
The embodiment of the present invention also provides a kind of computer storage medium, is stored with computer in the computer storage mediumProgram instruction, when described instruction is run on computers, so that the computer executes such as processing provided by the above embodimentMethod.
Due in the embodiment of the present invention terminal and computer storage medium can be applied to above-mentioned processing method,It can be obtained technical effect see also above method embodiment, and details are not described herein for the embodiment of the present invention.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead toThe relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journeyWhen being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk orThe various media that can store program code such as person's CD.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that theseIt is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the backUnder the premise of from the principle and substance of the present invention, many changes and modifications may be made, but these are changedProtection scope of the present invention is each fallen with modification.