The self check implementation method of mounted remote monitor terminal
Technical field
The present invention relates to the self check implementation method in mounted remote monitor terminal field, particularly a kind of mounted remote monitor terminal.
Background technology
Intellectuality along with the mounted remote monitor terminal; this mounted remote monitor terminal can be called for short TBOX; it has become one of traffic safety important guarantee; but owing to jolting of driving process; often can cause this terminating card to come off or damage; the stability of monitoring will reduce greatly like this, although existing car-mounted terminal has carried out special setting in terminal enclosure or installation site, is difficult to guarantee the normal operation of this terminal when appearance distance vibration or bump.Therefore, how to guarantee terminal system stability be very important.
Summary of the invention
The purpose of this invention is to provide a kind of self check implementation method of mounted remote monitor terminal, can realize the self check of mounted remote monitor terminal, guarantee the normal operation of this terminal, improve Systems balanth.
The present invention realizes in the following ways: a kind of self check implementation method of mounted remote monitor terminal is characterized in that: comprise GPS self check, loudspeaker self check, power supply self check, air bag signal self check, FSK self check, CAN self check and the internal storage self check of this terminal; Described GPS self check is read voltage or the electric current of gps antenna work by the ADC of this terminal MCU, and according to this voltage or electric current judge the antenna of this GPS be in normal, come off, certain state in the short circuit; Described loudspeaker self check is to send a signal to loudspeaker by the MCU from this terminal, and the ADC of this MCU reads the working current of loudspeaker, and judges the state of loudspeaker according to this electric current; Described internal storage self check be when each terminal initial to storer in specific several zones read and write, if any makeing mistakes, storer can report interruptions that make mistakes, described MCU judges by interruption whether storer exists bad block.
In an embodiment of the present invention, described signal is a square-wave signal, and its frequency is 1Khz.
In an embodiment of the present invention, described telephone antenna self check is that the end points by the terminated line on external antenna arranges a drop-down resistance, in external antenna interface circuit one pull-up resistor is set, the MCU of this terminal judges the external antenna situation by the level state that reads this external antenna interface, and realizes the switching of external antenna and built-in aerial according to state.
In an embodiment of the present invention, also comprise the Gsensor self check, this Gsensor self check is that the MCU by this terminal judges with communicating by letter of Gsensor chip whether the Gsensor part is normal; GSensor is after initialization is complete, namely can continue to carry instant three-dimensional acceleration value by I2C to MCU according to setpoint frequency, because the existence of acceleration of gravity, this three-dimensional acceleration value can not be zero entirely, when obtaining without value, then MCU judges that this module or transmission line lost efficacy; Complete zero when this three-dimensional acceleration value appearance, then be judged as module failure.
In an embodiment of the present invention, also comprise battery self-inspection, this battery self-inspection comprises short-circuit detecting; Described short-circuit detecting is the comparator circuit monitoring battery positive and negative end voltage difference of utilizing amplifier to build, when voltage difference is lower than the short-circuit detecting thresholding of setting, the constant-current charge circuit is cut off in the output meeting of comparer automatically, play the effect of protection constant-current charge circuit, the software of MCU can be controlled and open low current charge simultaneously, judges by reading the comparer output valve after a period of time that at low current charge the reason of battery plus-negative plate small pressure difference is that battery is owed electricity or battery plus-negative plate short circuit; If short circuit then software control is opened trouble light and is sent the battery short circuit diagnostic trouble code to terminal.
In an embodiment of the present invention, described battery self-inspection also comprises the detection that comes off, this detection that comes off is based on battery cathode voltage and reads, judge that by software the battery cathode voltage read is judged as battery when being lower than the thresholding of setting and comes off, software control is opened trouble light and is sent battery release failure code to terminal.
In an embodiment of the present invention, also comprise this terminal push signal self check, this terminal comprises E-Call, B-Call, three buttons of I-CALL, what adopt on the circuit is the Low level effective working method, button triggers to be detected and depresses, if low duration surpasses a schedule time, then judge this keys deactivation.
In an embodiment of the present invention, also comprise the externally fed self check of this terminal, described terminal under normal conditions Power supply is to power by vehicle-used battery jar, its standard value is to be defined within the 9-16v interval, this terminal reads externally fed voltage by the ADC of MCU, after more than power supply surpasses 16V and continued for 1 second, this MCU is judged as supply voltage to transfinite; After supply voltage was lower than 9V and continues more than 1 second, this MCU was judged as supply voltage and does not reach limit.
In an embodiment of the present invention, also comprise the air bag signal self check of this terminal, this air bag signal self check is that the air bag information that the pwm signal state that obtains by described MCU contrast hardware and CAN bus are obtained judges whether normally.
In an embodiment of the present invention, also comprise FSK self check, CAN self check and the self check of lighter ACC signal of this terminal; Described FSK self check is to judge with communicating by letter of FSK chip whether the FSK part is normal by described MCU, and described CAN self check is to judge CAN BUS state by described MCU; The self check of described lighter ACC signal is that the information that the ACC signal that obtains by processor contrast hardware and CAN bus are obtained judges whether normally.
The present invention can realize self check and the recovery of mounted remote monitor terminal by the self check to GPS self check, loudspeaker self check and internal storage etc., guarantees the normal operation of this remote monitoring terminal, improves Systems balanth.
Description of drawings
Fig. 1 is embodiment of the invention loudspeaker self-checking circuit principle schematic.
Fig. 2 is embodiment of the invention gps antenna self-checking circuit principle schematic.
Fig. 3 is embodiment of the invention antenna self-checking circuit connection diagram.
Embodiment
The present invention will be further described below in conjunction with drawings and Examples.
Present embodiment provides a kind of self check implementation method of mounted remote monitor terminal, it is characterized in that: comprise GPS self check, loudspeaker self check and the internal storage self check of this terminal; Described GPS self check is read voltage or the electric current of gps antenna work by the ADC of this terminal MCU, and according to this voltage or electric current judge the antenna of this GPS be in normal, come off, certain state in the short circuit; Described loudspeaker self check is to send a signal to loudspeaker by the MCU from this terminal, and the ADC of this MCU reads the working current of loudspeaker, and judges the state of loudspeaker according to this electric current; Described internal storage self check be when each terminal initial to storer in specific several zones read and write, if any makeing mistakes, storer can report interruptions that make mistakes, described MCU judges by interruption whether storer exists bad block.Better, in the present embodiment, the signal that MCU sends to loudspeaker is a square-wave signal, its frequency is 1Khz.
See also Fig. 1, Fig. 1 is loudspeaker self-checking circuit principle schematic, the MCU of terminal sends to follow-up audio frequency power amplifier 1 with above-mentioned square-wave signal among the figure, this audio frequency power amplifier adopts the LM48580tlx chip in the present embodiment, detect the working current of this audio frequency power amplifier chip LM48580tlx by current detecting unit 2, feed back to MCU, the ADC of this MCU reads this working current, and judges the state of loudspeaker according to this working current.In the present embodiment, this current detecting unit adopts high-precision current detecting amplifier MAX9938teuk.
See also Fig. 2, Fig. 2 is gps antenna self-checking circuit principle schematic, MCU detects the electric current of gps antenna work among the figure by current detecting unit 3, and according to this electric current judge the antenna of this GPS be in normal, come off, certain state in the short circuit, this current detecting unit 3 also can adopt high-precision current detecting amplifier MAX9938teuk.
Please refer to Fig. 3, Fig. 3 is antenna self-checking circuit connection diagram, this telephone antenna self check is that the end points by the terminated line on external antenna arranges a drop-down resistance, in external antenna interface circuit 4 a pull-up resistor R13 is set, the MCU of this terminal judges the external antenna situation by the level state that reads this external antenna interface, and realize the switching of external antenna and built-in aerial according to state, the MCU of terminal provides the RF_CTR signal among the figure, the switching to external antenna interface circuit 4 and built-in aerial interface circuit 5 of control radio-frequency (RF) switch PE4259DS.
Better, method of the present invention also further comprises the Gsensor self check, and this Gsensor self check is that the MCU by this terminal judges with communicating by letter of Gsensor chip whether the Gsensor part is normal; GSensor is after initialization is complete, namely can continue to carry instant three-dimensional acceleration value by I2C to MCU according to setpoint frequency, because the existence of acceleration of gravity, this three-dimensional acceleration value can not be zero entirely, when obtaining without value, then MCU judges that this module or transmission line lost efficacy; Complete zero when this three-dimensional acceleration value appearance, then be judged as module failure.
In order to guarantee the stable of system power supply battery, the present invention also provides battery self-inspection, and this battery self-inspection comprises short-circuit detecting; Described short-circuit detecting is the comparator circuit monitoring battery positive and negative end voltage difference of utilizing amplifier to build, when voltage difference is lower than the short-circuit detecting thresholding of setting, the constant-current charge circuit is cut off in the output meeting of comparer automatically, play the effect of protection constant-current charge circuit, the software of MCU can be controlled and open low current charge simultaneously, judges by reading the comparer output valve after a period of time that at low current charge the reason of battery plus-negative plate small pressure difference is that battery is owed electricity or battery plus-negative plate short circuit; If short circuit then software control is opened trouble light and is sent the battery short circuit diagnostic trouble code to terminal.In addition, described battery self-inspection also comprises the detection that comes off, this comes off to detect and is based on battery cathode voltage and reads, and judges that by software the battery cathode voltage of reading is judged as battery when being lower than the thresholding of setting and comes off, and software control is opened trouble light and sent battery release failure code to terminal.
Better, method of the present invention also comprises the self check of air bag signal, FSK self check, CAN self check and the self check of lighter ACC signal etc. of the self check of terminal push signal, externally fed self check, terminal, below we do simple explanation to each self check.
The self check of terminal push signal: this terminal comprises E-Call, B-Call, three buttons of I-CALL, what adopt on the circuit is the Low level effective working method, button triggers to be detected and depresses, if low duration surpasses a schedule time, then judges this keys deactivation.
The externally fed self check: described terminal under normal conditions Power supply is to power by vehicle-used battery jar, its standard value is to be defined within the 9-16v interval, this terminal reads externally fed voltage by the ADC of MCU, and above 16V and after more than continuing for 1 second, this MCU is judged as supply voltage to transfinite in power supply; After supply voltage was lower than 9V and continues more than 1 second, this MCU was judged as supply voltage and does not reach limit.
The air bag signal self check of terminal: this air bag signal self check is that the air bag information that the pwm signal state that obtains by described MCU contrast hardware and CAN bus are obtained judges whether normally.
Described FSK self check is to judge with communicating by letter of FSK chip whether the FSK part is normal by described MCU, and described CAN self check is to judge CAN BUS state by described MCU; The self check of described lighter ACC signal is that the information that the ACC signal that obtains by processor contrast hardware and CAN bus are obtained judges whether normally.
The above only is preferred embodiment of the present invention, and all equalizations of doing according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.