CN102540102A - Method and system for detecting battery electric quantity of terminal machine - Google Patents
Method and system for detecting battery electric quantity of terminal machine Download PDFInfo
- Publication number
- CN102540102A CN102540102A CN2012100635566A CN201210063556A CN102540102A CN 102540102 A CN102540102 A CN 102540102A CN 2012100635566 A CN2012100635566 A CN 2012100635566A CN 201210063556 A CN201210063556 A CN 201210063556A CN 102540102 A CN102540102 A CN 102540102A
- Authority
- CN
- China
- Prior art keywords
- arm
- electric quantity
- battery electric
- terminating machine
- digital signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a method for detecting the battery electric quantity of a terminal machine and a system for detecting the battery electric quantity based on the terminal machine. The system comprises a microprocessor ARM. The method comprises the following steps that: 1, the ARM detects whether the terminal machine transmits a command signal for detecting the battery electric quantity, if so, enters a step 2, and otherwise, returns to the step 1; 2, the ARM samples the battery voltage of the terminal machine to obtain an analog signal of the battery voltage; 3, the ARM converts the analog signal into a digital signal, and performs data processing on the digital signal to obtain a detection result; and 4, the ARM transmits the detection result to the terminal machine. Due to the adoption of the method and the system, the detection of the battery electric quantity of the terminal machine is realized, instant charging to a battery is ensured, and continuous normal work of the system is ensured. The invention further discloses a system for detecting the battery electric quantity of the terminal machine.
Description
Technical field
The present invention relates to the satellite mobile communication system technical field, relate in particular to the battery electricity detection method and the system of terminating machine.
Background technology
The terminating machine of (L, S) band satellite GSM need be supplied power by battery, and this battery electric quantity need be in a certain size scope.With the cell voltage is example, and when battery was full of electricity, voltage was about 17V; When cell voltage was lower than 10V, if untimely charging, total system will quit work.For realizing in time being battery charge, the assurance system can continual operate as normal, and terminating machine need obtain current battery electric quantity.Therefore, the detection that how to realize the terminal apparatus battery electric weight becomes present those skilled in the art's problem demanding prompt solution.
Summary of the invention
In view of this, the object of the invention is to provide a kind of terminal apparatus battery detection method of quantity of electricity and system, to realize the detection of terminal apparatus battery electric weight.
For realizing above-mentioned purpose, the present invention provides following technical scheme:
A kind of battery electricity detection method of terminating machine, based on a kind of battery electric quantity detection system of terminating machine, said system comprises microprocessor ARM;
Said method comprises:
Whether S1, said ARM sense terminals machine have sent the command signal that detects battery electric quantity, if then get into step S2, otherwise return step S1;
S2, said ARM sample to the cell voltage of said terminating machine, obtain the simulating signal of cell voltage;
S3, said ARM are digital signal with said analog signal conversion, said digital signal is carried out data processing obtain testing result;
S4, said ARM send to said terminating machine with said testing result.
Preferably, after said step S3, also comprise:
Return step S1.
Preferably, said ARM comprises analog to digital conversion ADC module;
Said step S2 specifically comprises: said ADC module is sampled to the cell voltage of said terminating machine, obtains the simulating signal of said cell voltage;
ARM described in the said step S3 is that digital signal specifically comprises with said analog signal conversion: said ADC module is a digital signal with said analog signal conversion.
Preferably, said system also comprises PC, before said step S1, also comprises:
S0, said PC carry out initialization to interface and the said ADC module of said ARM.
Preferably, described in the said step S3 said digital signal being carried out data processing obtains testing result and specifically comprises:
Add zone bit and check bit for said digital signal, obtain said testing result.
A kind of battery electric quantity detection system of terminating machine comprises:
ARM is used to carry out the detection of battery electric quantity; Said ARM comprises the ADC module;
PC is used for interface and the said ADC module of said ARM are carried out initialization.
Can find out from above-mentioned technical scheme, the embodiment of the invention after detecting terminating machine and having sent the command signal that detects battery electric quantity, through ARM to the battery voltage signal of terminating machine gather, processing such as conversion, obtain the testing result of battery electric quantity; ARM sends to terminating machine with above-mentioned testing result, thereby makes terminating machine get access to the battery electric quantity of self, and terminating machine can judge whether battery is charged according to above-mentioned testing result then, to guarantee the operate as normal of satellite mobile communication system.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of the battery electricity detection method of the terminating machine that the embodiment of the invention provided;
Fig. 2 is another process flow diagram of the battery electricity detection method of the terminating machine that the embodiment of the invention provided;
Fig. 3 is the structural representation of the battery electric quantity detection system of the terminating machine that the embodiment of the invention provided.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of battery electricity detection method of terminating machine, and said method is based on a kind of battery electric quantity detection system of terminating machine, and this system comprises microprocessor (ARM).Referring to Fig. 1, said method comprises at least:
Whether S1, ARM sense terminals machine have sent the command signal that detects battery electric quantity, if then get into step S2, otherwise return step S1;
S2, ARM sample to the cell voltage of terminating machine, obtain the simulating signal of cell voltage;
S3, ARM are digital signal with above-mentioned analog signal conversion, and this digital signal is carried out data processing obtain testing result;
S4, ARM send to terminating machine with testing result.
Can know by said method, the embodiment of the invention after detecting terminating machine and having sent the command signal that detects battery electric quantity, through ARM to the battery voltage signal of terminating machine gather, processing such as conversion, obtain the testing result of battery electric quantity; ARM sends to terminating machine with above-mentioned testing result, thereby makes terminating machine get access to the battery electric quantity of self, and terminating machine can judge whether battery is charged according to above-mentioned testing result then, to guarantee the operate as normal of satellite mobile communication system.
In other embodiment of the present invention, referring to Fig. 2, said method also can comprise after step S4: return step S1.
ARM accomplishes this battery electric quantity and detects, and after testing result sent to terminating machine, can return step S1, continues the sense terminals machine and whether has sent the command signal that detects battery electric quantity, realizes the Automatic Cycle of battery electricity detection method.
In other embodiments of the invention, above-mentioned ARM comprises analog-to-digital conversion module (ADC), and corresponding, step S2 specifically comprises among above-mentioned all embodiment:
The ADC module is sampled to the cell voltage of terminating machine, obtains the simulating signal of battery electric quantity;
" ARM is a digital signal with above-mentioned analog signal conversion " specifically comprises among the step S3:
The ADC module is a digital signal with above-mentioned analog signal conversion.
In other embodiments of the invention, " said digital signal is carried out data processing obtains testing result " among the step S3 specifically comprising:
Add zone bit and check bit for said digital signal, obtain above-mentioned testing result.
Wherein, above-mentioned zone bit is used to indicate that this digital signal is the digital signal through ADC conversion output; Check bit specifically can be PB, is used for the validity of this digital signal of verification.
In other embodiments of the invention, above-mentioned battery electric quantity detection system also can comprise PC, referring to Fig. 2, also comprises before the step S1 of above-mentioned all embodiment:
PC carries out initialization to interface and the ADC module of ARM.
Detect before the battery electric quantity, PC can be provided with the serial ports of ARM, specifically comprises: select which serial ports to carry out the input and output of signal by, the baud rate and the working method of this serial ports is set;
In addition, PC can also carry out initialization to the ADC module of ARM, specifically comprises: be can this ADC module, the sampling rate of this ADC module is set, and the conversion of signals etc. that disposes this ADC module.
In addition, the embodiment of the invention also provides a kind of battery electric quantity detection system of terminating machine, and referring to Fig. 3, this system comprises at least: PC 2 and ARM3.
Above-mentioned ARM 3 is used to carry out the detection of battery electric quantity, and ARM3 comprises the ADC module;
Above-mentioned PC 2 is used for interface and the ADC module of ARM3 are carried out initialization;
Above-mentioned PC 2 is connected through RS232 Serial Port Line 4 with ARM3, and ARM3 is connected through RS232 Serial Port Line 4 with terminating machine 1, above-mentioned RS232 Serial Port Line 4 all adopts universal asynchronous transmission/receiving port (URAT) with connectivity port terminating machine 1, PC 2 and ARM3.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.
Claims (6)
1. the battery electricity detection method of a terminating machine is characterized in that, based on a kind of battery electric quantity detection system of terminating machine, said system comprises microprocessor ARM;
Said method comprises:
Whether S1, said ARM sense terminals machine have sent the command signal that detects battery electric quantity, if then get into step S2, otherwise return step S1;
S2, said ARM sample to the cell voltage of said terminating machine, obtain the simulating signal of cell voltage;
S3, said ARM are digital signal with said analog signal conversion, said digital signal is carried out data processing obtain testing result;
S4, said ARM send to said terminating machine with said testing result.
2. method according to claim 1 is characterized in that, after said step S3, also comprises:
Return step S1.
3. method according to claim 1 is characterized in that, said ARM comprises analog to digital conversion ADC module;
Said step S2 specifically comprises: said ADC module is sampled to the cell voltage of said terminating machine, obtains the simulating signal of said cell voltage;
ARM described in the said step S3 is that digital signal specifically comprises with said analog signal conversion: said ADC module is a digital signal with said analog signal conversion.
4. method according to claim 3 is characterized in that said system also comprises PC, before said step S1, also comprises:
S0, said PC carry out initialization to interface and the said ADC module of said ARM.
5. method according to claim 1 is characterized in that, described in the said step S3 said digital signal is carried out data processing and obtains testing result and specifically comprise:
Add zone bit and check bit for said digital signal, obtain said testing result.
6. the battery electric quantity detection system of a terminating machine is characterized in that, comprising:
ARM is used to carry out the detection of battery electric quantity; Said ARM comprises the ADC module;
PC is used for interface and the said ADC module of said ARM are carried out initialization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100635566A CN102540102A (en) | 2012-03-12 | 2012-03-12 | Method and system for detecting battery electric quantity of terminal machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100635566A CN102540102A (en) | 2012-03-12 | 2012-03-12 | Method and system for detecting battery electric quantity of terminal machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102540102A true CN102540102A (en) | 2012-07-04 |
Family
ID=46347450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100635566A Pending CN102540102A (en) | 2012-03-12 | 2012-03-12 | Method and system for detecting battery electric quantity of terminal machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102540102A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050111294A (en) * | 2004-05-21 | 2005-11-24 | 엘지전자 주식회사 | A method and a apparatus of indication battery capacity for mobile phone |
CN1869727A (en) * | 2005-05-24 | 2006-11-29 | 乐金电子(昆山)电脑有限公司 | Method for testing voltage of stand-by battery |
CN101126796A (en) * | 2007-10-12 | 2008-02-20 | 深圳华为通信技术有限公司 | Battery electric quantity detecting method and device |
CN101232667A (en) * | 2007-01-25 | 2008-07-30 | 乐金电子(昆山)电脑有限公司 | Battery sensing device of individual mobile terminal computer |
CN101382584A (en) * | 2007-09-05 | 2009-03-11 | 乐金电子(昆山)电脑有限公司 | Battery overmeasure computation method |
CN101382567A (en) * | 2007-09-05 | 2009-03-11 | 乐金电子(昆山)电脑有限公司 | Portable terminal machine for detecting battery voltage for vehicle and method for measuring battery voltage |
WO2011032355A1 (en) * | 2009-09-21 | 2011-03-24 | 联想(北京)有限公司 | Charging method and power supplying method for terminal and terminal |
-
2012
- 2012-03-12 CN CN2012100635566A patent/CN102540102A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050111294A (en) * | 2004-05-21 | 2005-11-24 | 엘지전자 주식회사 | A method and a apparatus of indication battery capacity for mobile phone |
CN1869727A (en) * | 2005-05-24 | 2006-11-29 | 乐金电子(昆山)电脑有限公司 | Method for testing voltage of stand-by battery |
CN101232667A (en) * | 2007-01-25 | 2008-07-30 | 乐金电子(昆山)电脑有限公司 | Battery sensing device of individual mobile terminal computer |
CN101382584A (en) * | 2007-09-05 | 2009-03-11 | 乐金电子(昆山)电脑有限公司 | Battery overmeasure computation method |
CN101382567A (en) * | 2007-09-05 | 2009-03-11 | 乐金电子(昆山)电脑有限公司 | Portable terminal machine for detecting battery voltage for vehicle and method for measuring battery voltage |
CN101126796A (en) * | 2007-10-12 | 2008-02-20 | 深圳华为通信技术有限公司 | Battery electric quantity detecting method and device |
WO2011032355A1 (en) * | 2009-09-21 | 2011-03-24 | 联想(北京)有限公司 | Charging method and power supplying method for terminal and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103344863A (en) | Mobile terminal testing method and mobile terminal testing system | |
CN105548734A (en) | Detection apparatus of off-board direct-current charger | |
CN201260086Y (en) | Mobile terminal and charging detection device thereof | |
CN104408213A (en) | Portable data acquisition card | |
CN202798035U (en) | Charging mode detection circuit and mobile terminal | |
CN102680908A (en) | Battery status detection record analyzer and control method | |
CN202794325U (en) | Device capable of increasing unit voltage collecting quantity | |
CN104092499A (en) | Portable wireless fiber optical transceiver | |
CN204258343U (en) | A kind of lithium battery group monitor and repairing device with multi-string battery | |
CN102540102A (en) | Method and system for detecting battery electric quantity of terminal machine | |
CN101097536A (en) | Operation mode judging system and method thereof | |
CN104730461B (en) | Series battery information collection and display device | |
CN202057640U (en) | Wireless gas concentration detection instrument | |
CN205920141U (en) | Intelligent ammeter inspection device and checkout system | |
CN109342878A (en) | A kind of Electrical Power Line Parameter detection auxiliary system based on Internet of Things | |
CN201839027U (en) | Portable charging data communication device | |
CN203870222U (en) | Wireless type real-time voltage detecting system of multi-section serially-connected lithium storage battery | |
CN203386070U (en) | Automobile OBD interface data transmission diagnostic system | |
CN206270460U (en) | To the test circuit of the power management chip of quick charge portable power source | |
CN104483629A (en) | Intelligent battery voltage inspection apparatus | |
CN202929178U (en) | Battery measuring plate of intelligent control device | |
CN105872870B (en) | The system and method that charge flag position is written | |
CN209767499U (en) | digital-to-analog conversion device and system | |
CN103207349A (en) | Detection device and method for power battery sampling wire harness | |
CN211711117U (en) | Portable detection device for residual oil output of aircraft fuel system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120704 |