CN105301505B - Method, device and system for detecting battery in hardware equipment - Google Patents

Method, device and system for detecting battery in hardware equipment Download PDF

Info

Publication number
CN105301505B
CN105301505B CN201510674126.1A CN201510674126A CN105301505B CN 105301505 B CN105301505 B CN 105301505B CN 201510674126 A CN201510674126 A CN 201510674126A CN 105301505 B CN105301505 B CN 105301505B
Authority
CN
China
Prior art keywords
battery
hardware device
state
voltage
charging
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
CN201510674126.1A
Other languages
Chinese (zh)
Other versions
CN105301505A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201510674126.1A priority Critical patent/CN105301505B/en
Publication of CN105301505A publication Critical patent/CN105301505A/en
Application granted granted Critical
Publication of CN105301505B publication Critical patent/CN105301505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The invention discloses a method, a device and a system for detecting a battery in hardware equipment. Wherein, the method comprises the following steps: detecting whether the external input voltage of the hardware equipment is less than or equal to a preset boundary voltage value; when the external input voltage is less than or equal to the boundary voltage value, determining that a battery is installed in the hardware equipment; and when the external input voltage is greater than the boundary voltage value, determining whether the hardware equipment is provided with a battery or not by controlling the hardware equipment to enter a charging-allowed cyclic working mode. The invention solves the technical problems that in the prior art, when the rechargeable battery is in a protection state, hardware needs to be added to judge whether the battery is installed on the equipment, so that the cost is increased and the hardware installation difficulty is increased.

Description

Detect the method, apparatus and system of the battery in hardware device
Technical field
The present invention relates to detection field, in particular to a kind of method, apparatus for detecting the battery in hardware device and System.
Background technology
In order to ensure the life-span of battery, overdischarge is avoided, in general rechargeable battery has protection processing, when electricity is low to one Fixed degree, can cut off battery powered, and battery enters guard mode.Now, the same no-voltage of cell voltage in guard mode It is not different.Battery in guard mode can be waken up by charging, and this just needs accurately to judge currently whether have Battery.Existing Charge Management technology, or assume that necessarily there is battery, or increase battery insertion detection firmly on hardware It part, will cause to increase cost, and increase hardware installation difficulty.
For above-mentioned in the prior art when rechargeable battery is in guard mode, it is necessary to add hardware whether to judge equipment Battery is installed, thus caused the problem of increasing cost and increasing hardware installation difficulty, not yet proposes effective solve at present Scheme.
The content of the invention
The embodiments of the invention provide a kind of method, apparatus and system for detecting the battery in hardware device, at least to solve Certainly in the prior art when rechargeable battery is in guard mode, it is necessary to add hardware to judge whether equipment installs battery, thus It is caused to increase cost and increase the technical problem of hardware installation difficulty.
One side according to embodiments of the present invention, there is provided a kind of method for detecting the battery in hardware device, including: Whether the external input voltage of detection hardware device is less than or equal to default boundary voltage value;When external input voltage is less than or equal to During boundary voltage value, determine that battery is installed in hardware device;When external input voltage is more than boundary voltage value, pass through control Hardware device enters the circulating working mode that charging allows, and determines whether be provided with battery in hardware device.
Further, control hardware device to enter the circulating working mode that charging allows, determine whether pacify in hardware device Include equipped with the step of battery:Start hardware device and perform charging permission, attempt the battery of activation hardware device;Work as activated batteries During success, determine that battery is installed in hardware device;When activated batteries fail, stop the battery of activation hardware device, and press Whether the cell voltage for determining battery according to pre-defined rule meets default battery condition, to determine whether be provided with hardware device Battery.
Further, performing charging in startup hardware device allows, after trial activates the battery of hardware device, method bag Include:Whether the battery for detecting hardware device is in the state of constant charge;In the state of battery is in constant charge, it is determined that electric Activate successfully in pond;In the state of battery is not in constant charge, battery activated failure is determined.
Further, detect hardware device battery whether be in constant charge state the step of include:Detect hardware Whether the charging signals of equipment are in low level state, and are continuously in low level state and exceed scheduled duration;Work as charging Signal is in low level state, and is continuously in low level state and exceedes scheduled duration, determines that battery is in constant charge State;When charging signals are not on low level state, and it is continuously in low level state and is not above scheduled duration, Determine that battery is not in the state of constant charge.
Further, when activated batteries fail, the battery of activation hardware device is stopped, and electricity is determined according to pre-defined rule Whether the cell voltage in pond meets default battery condition, to include the step of determining and whether be provided with battery in hardware device: When activated batteries fail, charge closing allows;After the duration that charge closing allows reaches the first preset duration, sentence Whether the cell voltage of disconnected hardware device is more than protection voltage;When the cell voltage of hardware device is more than protection voltage, it is determined that Battery is installed in hardware device;When the cell voltage of hardware device is less than or equal to protection voltage, determine do not have in hardware device There is battery.
Further, when the cell voltage of hardware device is more than protection voltage, determine battery in hardware device be present, and Battery is in full power state.
Further, after it is determined that not having battery in hardware device, method also includes:Reopen hardware device execution Charging allows, by again attempting to activate the battery of hardware device, to determine whether be provided with battery in hardware device.
Another aspect according to embodiments of the present invention, additionally provide a kind of device for detecting the battery in hardware device, bag Include:Whether the first judging unit, the external input voltage for detecting hardware device are less than or equal to default boundary voltage value;Really Order member, for when external input voltage is less than or equal to boundary voltage value, determining to be provided with battery in hardware device;Second sentences Disconnected unit, for when external input voltage is more than boundary voltage value, passing through the circulation for controlling hardware device to allow into charging Mode of operation, determine whether battery is installed in hardware device.
Further, the second judging unit includes:Active module, charging permission is performed for starting hardware device, is attempted Activate the battery of hardware device;First determining module, for when activated batteries success, determining to be provided with electricity in hardware device Pond;First judge module, for when activated batteries fail, stopping the battery of activation hardware device, and it is true according to pre-defined rule Whether the cell voltage for determining battery meets default battery condition, to determine whether be provided with battery in hardware device.
Further, the second judging unit also includes:Detection module, for whether detecting the battery of hardware device in steady Surely the state to charge;Second determining module, in the state of being in constant charge when battery, determine battery activated success;The Three determining modules, in the state of being not in constant charge when battery, determine battery activated failure.
Further, detection module includes:Detection sub-module, for whether detecting the charging signals of hardware device in low The state of level, and be continuously in low level state and exceed scheduled duration;First determination sub-module, at charging signals In low level state, and it is continuously in low level state and exceedes scheduled duration, determines that battery is in the state of constant charge; Second determination sub-module, do not have for being not on low level state when charging signals, and being continuously in low level state More than scheduled duration, determine that battery is not in the state of constant charge.
Further, the first judge module includes:First implementation sub-module, for when activated batteries fail, closing to be filled Electricity allows;Judging submodule, after the duration for allowing in charge closing reaches the first preset duration, judge that hardware is set Whether standby cell voltage is more than protection voltage;3rd determination sub-module, it is more than protection for the cell voltage when hardware device During voltage, determine that battery is installed in hardware device;4th determination sub-module, for when hardware device cell voltage be less than etc. When voltage is protected, determine there is no battery in hardware device.
Further, the 3rd determination sub-module is additionally operable to determine that battery is in full power state.
Further, the first judge module also includes:Implementation sub-module is circulated, is filled for reopening hardware device and performing Electricity allows, by again attempting to activate the battery of hardware device, to determine whether be provided with battery in hardware device.
Another aspect according to embodiments of the present invention, additionally provide a kind of system for detecting the battery in hardware device, bag Include:The device of battery in detection hardware device including any of the above-described.
In embodiments of the present invention, whether default border is less than or equal to using the external input voltage of detection hardware device Magnitude of voltage;When external input voltage is less than or equal to boundary voltage value, determine that battery is installed in hardware device;Work as outside input When voltage is more than boundary voltage value, by controlling hardware device to enter the circulating working mode that charging allows, hardware device is determined In whether the mode of battery is installed, solve in the prior art when rechargeable battery is in guard mode, it is necessary to add hardware It is thus caused to increase cost and increase the technical problem of hardware installation difficulty to judge whether equipment installs battery.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow of the method for the battery in a kind of according to embodiments of the present invention one optional detection hardware device Figure;
Fig. 2 be according to embodiments of the present invention one one kind under circulating working mode open charging allow permit with charge closing Perhaps the schematic diagram of cycle period;
Fig. 3 is a kind of circulating working mode of according to embodiments of the present invention one permission of being charged in optional application scenarios Flow chart;
Fig. 4 is a kind of according to embodiments of the present invention one battery in optional application scenarios in detection hardware device The flow chart of method;And
Fig. 5 is the signal of the device of the battery in a kind of according to embodiments of the present invention two optional detection hardware device Figure.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment one
According to embodiments of the present invention, there is provided a kind of embodiment of the method for detecting the battery in hardware device is, it is necessary to illustrate , can be held the step of the flow of accompanying drawing illustrates in the computer system of such as one group computer executable instructions OK, although also, show logical order in flow charts, in some cases, can be with different from order herein Perform shown or described step.
Fig. 1 is the flow of the method for the battery in a kind of according to embodiments of the present invention one optional detection hardware device Figure, as shown in figure 1, this method comprises the following steps:
Whether step S102, the external input voltage for detecting hardware device are less than or equal to default boundary voltage value.
In above-mentioned steps S102, boundary voltage value can be set in advance, for example, when the full piezoelectric voltage of rechargeable battery For 21.15V when, boundary voltage can be arranged to 22V.When there is outside civil power to input, the external input voltage that detects Value can be the value of the voltage of outside civil power input, in not outside civil power input, the value of the external input voltage detected The value of cell voltage can be approximately equal to.
Step S104, when external input voltage is less than or equal to boundary voltage value, determine that battery is installed in hardware device.
In above-mentioned steps S104, when external input voltage is less than or equal to default boundary voltage value, this can be represented When there is no outside civil power to input, be now powered by battery for hardware device, the value of the external input voltage detected can To be cell voltage.
Step S106, when external input voltage is more than boundary voltage value, allowed by controlling hardware device to enter charging Circulating working mode, determine whether battery is installed in hardware device.
In above-mentioned steps S106, when external input voltage is more than default boundary voltage value, now pass through outside city Electricity is powered, it is necessary to determine whether be provided with battery in hardware device for hardware device.
It should be noted that one kind that Fig. 2 is according to embodiments of the present invention one is opened charging under circulating working mode and permitted Perhaps the schematic diagram of the cycle period allowed with charge closing.In fig. 2, crest can be expressed as opening charging permission, and trough can To be expressed as charge closing permission.Wherein, the duration of crest can be 7 seconds, and the duration of trough can be 1 minute.
It should also be noted that, in a kind of optional application scenarios, as shown in figure 3, the circulation work mould that charging allows Formula may include steps of:
Step a, opening charging allows, and attempts the battery of activation hardware device.
In above-mentioned steps a, the battery of hardware device can be activated by way of charging.
Step b, keeps it turned on, judge hardware device battery whether constant charge.When the battery of hardware device is steady Surely it is charged to immediately, perform step c, when the battery constant charge of hardware device is invalid, performs step e.
In above-mentioned steps b, the duration that keeping it turned on charging allows can be 7 seconds.It can be sentenced by charging signals STA Power off pond whether constant charge.When charging judges that signal STA kept continuing the low level time more than 3 seconds, determine that hardware is set Standby battery constant charge.Otherwise, it determines the non-constant charge of the battery of hardware device.
Step c, determine the battery activated success of hardware device.
Step d, determine that battery is installed in hardware device.
Step e, charge closing allow, and wait preset duration.
In above-mentioned steps e, unsuccessfully cell voltage will be caused directly to be increased to charging voltage due to battery activated, therefore, Need after charge closing allows, wait the long period, cell voltage reading-port is slowly discharged, until cell voltage is substantially steady It is fixed.Therefore, it is necessary to wait preset duration after charge closing permission.The value of preset duration can be set in advance, such as:1 Minute.
It should be noted that the cell voltage caused by battery activated failure is increased to charging voltage, it is complete in charging voltage Full stabilization is the time that possible need to be much larger than preset time, such as:10 minutes.
Step f, judges whether cell voltage is more than protection voltage.When cell voltage, which is more than protection voltage, to be set up, perform Step g, when cell voltage, which is more than, protects voltage invalid, perform step h.
In above-mentioned steps f, protection voltage can be set in advance, for example, 8V.
Step g, determine that battery is installed in hardware device, and battery is in full power state.
Step h, determine in hardware device without battery.And return and perform step a, opening charging allows, and attempts activation hardware The step of battery of equipment.
In above-mentioned steps h, when in judging hardware device without battery, the circulation work mould allowed in charging can not be determined In formula, if insert battery, or battery is activated.Therefore, it is determined that in hardware device without battery after, return circulation hold Row, which opens charging, to be allowed, the step of activated batteries.
It is default using whether the external input voltage of detection hardware device is less than or equal to by above-mentioned steps S102 to S106 Boundary voltage value;When external input voltage is less than or equal to boundary voltage value, determine that battery is installed in hardware device;When outer When portion's input voltage is more than boundary voltage value, by controlling hardware device to enter the circulating working mode that charging allows, it is determined that firmly Whether the mode of battery is installed in part equipment, is solved in the prior art when rechargeable battery is in guard mode, it is necessary to add Stiffened part judges whether equipment installs battery, thus caused increase cost and increases the technology of hardware installation difficulty and asks Topic.
Alternatively, step S106, control hardware device enter the circulating working mode that charging allows, determined in hardware device The step of whether being provided with battery can include:
Step S1061, start hardware device and perform charging permission, attempt the battery of activation hardware device.
In above-mentioned steps S1061, when opening charging permission, line activating is entered to the battery of hardware device by charging. The duration that keeping it turned on charging allows can be set in advance, for example, 7 seconds.
Step S1063, when activated batteries success, determine that battery is installed in hardware device.
It should be noted that by above-mentioned steps S1061 to step S1063, when activated batteries success, may also reach up Enter the technique effect of line activating to the battery in guard mode.
Step S1065, when activated batteries fail, stop the battery of activation hardware device, and determined according to pre-defined rule Whether the cell voltage of battery meets default battery condition, to determine whether be provided with battery in hardware device.
In above-mentioned steps S1065, due to the battery in full power state and the battery without battery status, attempting to activate Afterwards, the state of the two is identical, therefore, it is necessary to further judges whether installed in hardware device according to pre-defined rule There is battery.
Alternatively, in step S1061, starting hardware device and performing charging allows, attempt activation hardware device battery it Afterwards, this method can include:
Whether step S1072, the battery for detecting hardware device are in the state of constant charge.
Step S1074, in the state of battery is in constant charge, determine battery activated success.
Step S1076, in the state of battery is not in constant charge, determine battery activated failure.
In above-mentioned steps S1072 into step S1076, whether constant charge state can be in determine electricity by battery Whether pond activates success, can determine to be provided with battery in hardware device while activating successfully.
Alternatively, whether step S1072, detecting the battery of hardware device can include in the state of constant charge:
Step S10721, whether the charging signals for detecting hardware device are in low level state, and are continuously in low electricity Flat state exceedes scheduled duration.
Step S10723, when charging signals are in low level state, and be continuously in low level state exceed it is predetermined Duration, determine that battery is in the state of constant charge.
Step S10725, when charging signals are not on low level state, and it are continuously in low level state and do not have More than scheduled duration, determine that battery is not in the state of constant charge.
In above-mentioned steps S10721 into step S10725, scheduled duration can be set in advance, such as:3 seconds.Charging Signal can be judged by charging current, when the lasting low level of charging signals exceedes scheduled duration, you can confirm that battery is steady Fixed charging, otherwise, it determines battery is not in the state of constant charge.
Alternatively, step S1065, when activated batteries fail, the battery of activation hardware device is stopped, and according to pre- set pattern Then determine whether the cell voltage of battery meets default battery condition, to determine the step of battery whether is provided with hardware device Suddenly can include:
Step S10651, when activated batteries fail, charge closing allows.
Step S10653, after the duration that charge closing allows reaches the first preset duration, judge hardware device Cell voltage whether be more than protection voltage.
In above-mentioned steps S10653, the first preset duration can be set in advance, for example, 40 seconds.
In a kind of optional application scenarios, in the circulation that unlatching charging permission as shown in Figure 2 allows with charge closing, It it is 7 seconds in the duration that unlatching charging allows, when the duration that charge closing allows is 60 seconds.Above-mentioned first preset duration can be 59 Second, at last 1 second (i.e. the 60th second) that charge closing allows, judge whether the voltage of battery is more than protection voltage.Wherein, protect Shield voltage can also be preset, such as:8V.
Step S10655, when the cell voltage of hardware device is more than protection voltage, determine that electricity is installed in hardware device Pond.
Step S10657, when the cell voltage of hardware device is less than or equal to protection voltage, determine do not have in hardware device Battery.
Alternatively, when the cell voltage of hardware device is more than protection voltage, determine battery in hardware device be present, and electricity Pond is in full power state.
Specifically, when it is determined that cell voltage is more than protection voltage, it can also determine that the battery in hardware device is in full The state of point.By above-mentioned judgement, when cell voltage is more than protection voltage, can also determine in the full electric shape that can not be charged The electricity of battery under state.
Alternatively, in step S10657, determine after there is no battery in hardware device, this method can also include:
Step S108, reopen hardware device and perform charging permission, by again attempting to activate the battery of hardware device, To determine whether be provided with battery in hardware device.
In above-mentioned steps S108, when in judging hardware device without battery, the circulation industrial allowed in charging can not be determined In operation mode, if insert battery, or battery is activated.Therefore, it is determined that in hardware device without battery after, return follows Ring, which performs, opens charging permission, again attempts to activated batteries, determines whether be mounted with battery in hardware device.
Under a kind of optional application scenarios, as shown in figure 4, the method for the battery in detection hardware device can be included such as Lower step:
Step A, judges whether external input voltage Vin sets up more than boundary voltage value.When external input voltage Vin is more than When boundary point magnitude of voltage is set up, step C is performed;When external input voltage Vin is invalid more than boundary point magnitude of voltage, step is performed Rapid B.
Step B, determine that battery is installed in hardware device.
Step C, control hardware device enter the circulating working mode that charging allows, and judge whether to meet the bar for having battery Part.When meeting to have the condition of battery, step B is performed;When being unsatisfactory for the condition of battery, step D is performed.
In step C, control hardware device enters the mode of operation that charging allows, and judges whether to meet the condition for having battery Can be:Opening charging allows, activated batteries, judges that battery whether in constant charge, when battery constant charge, determines hardware Battery is installed, in the non-constant charge of battery, charge closing allows, and after waiting 1 minute, judges that cell voltage is more than in equipment Whether protection voltage is set up, and when cell voltage is more than protection voltage, determines to be provided with battery in hardware device, works as cell voltage It is invalid more than protection voltage, determine in hardware device without battery.
It should be noted that in a kind of optional embodiment, above-mentioned steps C, control hardware device enters charging and allowed Circulating working mode, the condition for judging whether to meet to have battery can be the step in Fig. 3 performed by step a to step h.
Step D, determine in hardware device without battery.
It should be noted that above by judging whether external input voltage is more than boundary voltage value, in outside input electricity When whether pressure is more than boundary voltage value, control hardware device enters the circulating working mode that charging allows, and judges whether that satisfaction has The mode of the condition of battery, solve in the prior art when rechargeable battery is in guard mode, it is necessary to add hardware to judge Whether equipment installs battery, thus caused to increase cost and increase the technical problem of hardware installation difficulty.
Embodiment two
According to embodiments of the present invention, a kind of device embodiment for detecting the battery in hardware device is additionally provided, it is necessary to say Bright, the device of the battery in the detection hardware device can be used for realizing in the detection hardware device of the embodiment of the present invention The method of battery, the method for the battery in the detection hardware device of the embodiment of the present invention can also be by the detection hardware device The device of battery perform, carried out in the inventive method embodiment repeating no more for explanation.
Fig. 5 is the signal of the device of the battery in a kind of according to embodiments of the present invention two optional detection hardware device Figure, as shown in figure 5, the device includes:
Whether the first judging unit 40, the external input voltage for detecting hardware device are less than or equal to default border electricity Pressure value.
Specifically, boundary voltage value can be set in advance, for example, when the full piezoelectric voltage of rechargeable battery is 21.15V When, boundary voltage can be arranged to 22V.When there is outside civil power to input, the value of the external input voltage detected can be The value of the voltage of outside civil power input, in not outside civil power input, the value of the external input voltage detected can be waited about In the value of cell voltage.
Determining unit 42, for when external input voltage is less than or equal to boundary voltage value, determining to install in hardware device There is battery.
Specifically, when external input voltage is less than or equal to default boundary voltage value, can represent now without outside Civil power inputs, and is now powered by battery for hardware device, and the value of the external input voltage detected can be battery electricity Pressure.
Second judging unit 44, for when external input voltage is more than boundary voltage value, by controlling hardware device to enter Enter the circulating working mode that charging allows, determine whether battery is installed in hardware device.
Specifically, when external input voltage is more than default boundary voltage value, now set by outside civil power for hardware Available electricity is, it is necessary to determine whether be provided with battery in hardware device.
By the first judging unit, it is default whether the external input voltage for detecting hardware device is less than or equal to the application Boundary voltage value;Determining unit, for when external input voltage is less than or equal to boundary voltage value, determining to pacify in hardware device Equipped with battery;Second judging unit, for when external input voltage is more than boundary voltage value, by controlling hardware device to enter Charge the circulating working mode allowed, determines whether be provided with battery in hardware device.Solve in the prior art in charging electricity It is thus caused to increase cost and increase, it is necessary to add hardware to judge whether equipment installs battery when pond is in guard mode The technical problem of stiffened part installation difficulty.
Alternatively, the second judging unit can include:
Active module, charging permission is performed for starting hardware device, attempts the battery of activation hardware device.
Specifically, when opening charging permission, line activating is entered to the battery of hardware device by charging.Keep it turned on charging The duration of permission can be set in advance, for example, 7 seconds.
First determining module, for when activated batteries success, determining to be provided with battery in hardware device.
Specifically, the battery of hardware device is charged by charging by active module, and the first determining module When activated batteries success, it is determined that there is the mode of battery, it may also reach up and line activating is entered to the battery in guard mode Technique effect.
First judge module, for when activated batteries fail, stopping the battery of activation hardware device, and according to pre- set pattern Then determine whether the cell voltage of battery meets default battery condition, to determine whether be provided with battery in hardware device.
Specifically, due to the battery in full power state and the battery without battery status, after attempting to activate, the two State is identical, therefore, it is necessary to further judges whether be provided with battery in hardware device according to pre-defined rule.
Alternatively, the second judging unit can also include:
Whether detection module, the battery for detecting hardware device are in the state of constant charge.
Second determining module, in the state of being in constant charge when battery, determine battery activated success.
3rd determining module, in the state of being not in constant charge when battery, determine battery activated failure.
Specifically, whether constant charge state can be in determine whether battery activates success, Ke Yi by battery Determine that battery is installed in hardware device while activation successfully.
Alternatively, detection module can include:
Detection sub-module, whether the charging signals for detecting hardware device are in low level state, and are continuously in Low level state exceedes scheduled duration.
First determination sub-module, for being in low level state when charging signals, and it is continuously in low level state More than scheduled duration, determine that battery is in the state of constant charge.
Second determination sub-module, for being not on low level state when charging signals, and it is continuously in low level State is not above scheduled duration, determines that battery is not in the state of constant charge.
Specifically, scheduled duration can be set in advance, such as:3 seconds.Charging signals can be sentenced by charging current It is fixed, when the lasting low level of charging signals exceedes scheduled duration, you can battery constant charge is confirmed, otherwise, it determines battery is not located In the state of constant charge.
Alternatively, the first judge module can include:
First implementation sub-module, for when activated batteries fail, charge closing to allow.
Judging submodule, after the duration for allowing in charge closing reaches the first preset duration, judge hardware Whether the cell voltage of equipment is more than protection voltage.
Specifically, the first preset duration can be set in advance, for example, 40 seconds.
In a kind of optional application scenarios, in the circulation that unlatching charging permission as shown in Figure 2 allows with charge closing, It it is 7 seconds in the duration that unlatching charging allows, when the duration that charge closing allows is 60 seconds.Above-mentioned first preset duration can be 59 Second, at last 1 second (i.e. the 60th second) that charge closing allows, judge whether the voltage of battery is more than protection voltage.Wherein, protect Shield voltage can also be preset, such as:8V.
3rd determination sub-module, for when the cell voltage of hardware device is more than protection voltage, determining in hardware device Battery is installed.
4th determination sub-module, for when the cell voltage of hardware device is less than or equal to protection voltage, determining that hardware is set There is no battery in standby.
Alternatively, the 3rd determination sub-module is additionally operable to determine that battery is in full power state.
Specifically, when it is determined that cell voltage is more than protection voltage, it can also determine that the battery in hardware device is in full The state of point.By above-mentioned judgement, when cell voltage is more than protection voltage, can also determine in the full electric shape that can not be charged The electricity of battery under state.
Alternatively, the first judge module can also include:
Implementation sub-module is circulated, charging permission is performed for reopening hardware device, by again attempting to activate hardware The battery of equipment, to determine whether be provided with battery in hardware device.
Specifically, when in judging hardware device without battery, it can not determine in the circulating working mode that charging allows, be It is no to insert battery, or battery is activated.Therefore, it is determined that in hardware device without battery after, return circulation perform unlatching Charging allows, and again attempts to activated batteries, determines whether be mounted with battery in hardware device.
Embodiment three
According to embodiments of the present invention, a kind of system embodiment for detecting the battery in hardware device, the system are additionally provided The device of the battery in hardware device is detected including any one of above-described embodiment two.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through Mode is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, Ke Yiwei A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the present invention whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (13)

  1. A kind of 1. method for detecting the battery in hardware device, it is characterised in that including:
    Whether the external input voltage of detection hardware device is less than or equal to default boundary voltage value;
    When the external input voltage is less than or equal to the boundary voltage value, determine that battery is installed in the hardware device;
    When the external input voltage is more than the boundary voltage value, by controlling the hardware device to enter what charging allowed Circulating working mode, determine whether the battery is installed in the hardware device;
    Wherein, control the hardware device to enter the circulating working mode that charging allows, determine whether pacify in the hardware device Include equipped with the step of battery:
    Start the hardware device and perform the charging permission, attempt to activate the battery of the hardware device;
    When activating the battery success, determine that the battery is installed in the hardware device;
    When activating the battery failure, stop activating the battery of the hardware device, and the electricity is determined according to pre-defined rule Whether the cell voltage in pond meets default battery condition, to determine the battery whether is provided with the hardware device.
  2. 2. according to the method for claim 1, it is characterised in that the charging permission is performed starting the hardware device, After the battery for attempting the activation hardware device, methods described includes:
    Whether the battery for detecting the hardware device is in the state of constant charge;
    In the state of the battery is in the constant charge, the battery activated success is determined;
    In the state of the battery is not in the constant charge, the battery activated failure is determined.
  3. 3. according to the method for claim 2, it is characterised in that whether the battery for detecting the hardware device fills in stable The step of state of electricity, includes:
    Whether the charging signals for detecting the hardware device are in low level state, and are continuously in the low level state More than scheduled duration;
    When the charging signals are in the low level state, and it is continuously in the low level state and exceedes pre- timing It is long, determine that the battery is in the state of the constant charge;
    When the charging signals are not on the low level state, and it is continuously in the low level state and is not above The scheduled duration, determine that the battery is not in the state of the constant charge.
  4. 4. according to the method for claim 1, it is characterised in that when activating the battery failure, it is described hard to stop activation The battery of part equipment, and determine whether the cell voltage of the battery meets default battery condition according to pre-defined rule, come true The step of whether being provided with the battery in the fixed hardware device includes:
    When activating the battery failure, closing the charging allows;
    After the duration for closing the charging permission reaches the first preset duration, the electricity of the hardware device is judged Whether cell voltage is more than protection voltage;
    When the cell voltage of the hardware device is more than the protection voltage, determine to install in the hardware device State battery;
    When the cell voltage of the hardware device is less than or equal to the protection voltage, determine do not have in the hardware device The battery.
  5. 5. according to the method for claim 4, it is characterised in that be more than in the cell voltage of the hardware device described When protecting voltage, determine the battery in the hardware device be present, and the battery is in full power state.
  6. 6. according to the method for claim 4, it is characterised in that it is determined that do not have in the hardware device battery it Afterwards, methods described also includes:
    Reopen the hardware device and perform the charging permission, by again attempting to activate the battery of the hardware device, To determine the battery whether is provided with the hardware device.
  7. A kind of 7. device for detecting the battery in hardware device, it is characterised in that including:
    Whether the first judging unit, the external input voltage for detecting hardware device are less than or equal to default boundary voltage value;
    Determining unit, for when the external input voltage is less than or equal to the boundary voltage value, determining the hardware device In battery is installed;
    Second judging unit, for when the external input voltage is more than the boundary voltage value, by controlling the hardware Equipment enters the circulating working mode that charging allows, and determines the battery whether is provided with the hardware device;
    Wherein, second judging unit includes:
    Active module, the charging permission is performed for starting the hardware device, attempts to activate the battery of the hardware device;
    First determining module, for when activating the battery success, determining to be provided with the battery in the hardware device;
    First judge module, for when activating the battery failure, stopping activating the battery of the hardware device, and according to pre- Set pattern then determines whether the cell voltage of the battery meets default battery condition, to determine whether pacify in the hardware device Equipped with the battery.
  8. 8. device according to claim 7, it is characterised in that second judging unit also includes:
    Whether detection module, the battery for detecting the hardware device are in the state of constant charge;
    Second determining module, in the state of being in the constant charge when the battery, determine the battery activated success;
    3rd determining module, in the state of being not in the constant charge when the battery, determine the battery activated mistake Lose.
  9. 9. device according to claim 8, it is characterised in that the detection module includes:
    Detection sub-module, whether the charging signals for detecting the hardware device are in low level state, and are continuously in The low level state exceedes scheduled duration;
    First determination sub-module, for being in the low level state when the charging signals, and it is continuously in the low electricity Flat state exceedes scheduled duration, determines that the battery is in the state of the constant charge;
    Second determination sub-module, for being not on the low level state when the charging signals, and it is continuously in described Low level state is not above the scheduled duration, determines that the battery is not in the state of the constant charge.
  10. 10. device according to claim 7, it is characterised in that first judge module includes:
    First implementation sub-module, for when activating the battery failure, closing the charging to allow;
    Judging submodule, after reaching the first preset duration in the duration for closing the charging permission, described in judgement Whether the cell voltage of hardware device is more than protection voltage;
    3rd determination sub-module, for when the cell voltage of the hardware device is more than the protection voltage, determining institute State and the battery is installed in hardware device;
    4th determination sub-module, for when the hardware device the cell voltage be less than or equal to it is described protection voltage when, really There is no the battery in the fixed hardware device.
  11. 11. device according to claim 10, it is characterised in that the 3rd determination sub-module is additionally operable to determine the electricity Pond is in full power state.
  12. 12. device according to claim 10, it is characterised in that first judge module also includes:
    Implementation sub-module is circulated, the charging permission is performed for reopening the hardware device, by again attempting to activate The battery of the hardware device, to determine the battery whether is provided with the hardware device.
  13. 13. a kind of system for detecting the battery in hardware device, it is characterised in that including any one of claim 7 to 12 institute The device of battery in the detection hardware device stated.
CN201510674126.1A 2015-10-15 2015-10-15 Method, device and system for detecting battery in hardware equipment Active CN105301505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510674126.1A CN105301505B (en) 2015-10-15 2015-10-15 Method, device and system for detecting battery in hardware equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510674126.1A CN105301505B (en) 2015-10-15 2015-10-15 Method, device and system for detecting battery in hardware equipment

Publications (2)

Publication Number Publication Date
CN105301505A CN105301505A (en) 2016-02-03
CN105301505B true CN105301505B (en) 2018-02-27

Family

ID=55198996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510674126.1A Active CN105301505B (en) 2015-10-15 2015-10-15 Method, device and system for detecting battery in hardware equipment

Country Status (1)

Country Link
CN (1) CN105301505B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106311640A (en) * 2016-08-26 2017-01-11 安徽云图信息技术有限公司 Communication equipment cleaning device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3311545B2 (en) * 1995-06-16 2002-08-05 松下電器産業株式会社 Battery voltage display
CN100362354C (en) * 2004-10-27 2008-01-16 华为技术有限公司 Cell on-position detecting method for terminal device
CN102680909B (en) * 2011-03-17 2015-02-25 上海中兴派能能源科技有限公司 External power supply in-place monitoring system for lithium ion battery direct-current reserve power supply
CN102332617B (en) * 2011-08-15 2015-07-15 三星半导体(中国)研究开发有限公司 Portable terminal and method for identifying battery of portable terminal
CN103095929B (en) * 2013-02-16 2015-06-17 惠州Tcl移动通信有限公司 Method and system capable of preventing terminal from restarting repeatedly and mobile terminal using the same
CN104009265B (en) * 2014-05-22 2016-08-17 Tcl通讯(宁波)有限公司 A kind of battery activated method and apparatus of mobile terminal

Also Published As

Publication number Publication date
CN105301505A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN103425506B (en) Closedown method and starting-up method and communication terminal
US7629769B2 (en) Power surge filtering in over-current and short circuit protection
US20080094033A1 (en) Staggered Backup Battery Charging System
CN105449295A (en) Power battery balance control method, device and circuit
US20200014222A1 (en) Portable drone battery charging system
CN105911891B (en) A kind of control method and battery management system of defencive function
CN103034547B (en) Based on electronic equipment operation method and the electronic equipment of battery
CN106802708A (en) The control method and device of wearable device
CN106329627A (en) Charging method and device
CN106642771A (en) Oil return control method and device for refrigeration house multi-connected unit and refrigeration house multi-connected unit
CN106527659A (en) Terminal control method, terminal control device and terminal
CN104092262A (en) Charging control device and charging control method
CN102136611A (en) Battery charging method and device
CN105301505B (en) Method, device and system for detecting battery in hardware equipment
CN115102266A (en) Control method of battery system, battery system and off-grid power supply system
CN106329630A (en) Charging method and device
CN108931932A (en) A kind of method for managing power supply and intelligent robot
CN111327087B (en) Electronic equipment and charging method thereof
CN113682481B (en) Battery management method and device and unmanned aerial vehicle
CN104113631B (en) A kind of data transmission method and electronic equipment
CN106329625A (en) Charging method and device
CN105896662A (en) Single-port mobile power control circuit and control method thereof
CN103000966B (en) Processing method and device for charging process of mobile terminal
CN106329628A (en) Charging method and device
CN112821485A (en) Control method of battery combination system, battery combination system and unmanned device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant