The self-inspection implementation method of mounted remote monitor terminal
Technical field
The present invention relates to mounted remote monitor terminal field, particularly a kind of self-inspection implementation method of mounted remote monitor terminal.
Background technology
Along with the intellectuality of 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 due to jolting of driving conditions; this terminating card often can be caused to come off or damage; the stability of such monitoring will reduce greatly, although existing car-mounted terminal has carried out special setting in terminal enclosure or installation site, is difficult in appearance distance vibration or when clashing into the normal operation ensureing this terminal.Therefore, how to ensure terminal system stability be very important.
Summary of the invention
The object of this invention is to provide a kind of self-inspection implementation method of mounted remote monitor terminal, the self-inspection of mounted remote monitor terminal can be realized, ensure the normal operation of this terminal, improve the stability of system.
The present invention realizes in the following ways: a kind of self-inspection implementation method of mounted remote monitor terminal, is characterized in that: comprise the GPS self-inspection of this terminal, loudspeaker self-inspection, power supply self-inspection, air bag signal self-inspection, FSK self-inspection, CAN self-inspection and internal storage self-inspection; Described GPS self-inspection reads 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 short circuit; Described loudspeaker self-inspection is by sending a signal to loudspeaker from the MCU of 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-inspection be when each terminal initialization to storer in specific several region read and write, if any makeing mistakes, storer can report error interrupt, described MCU by interrupt judge 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-inspection arranges a pull down resistor by the end points of the terminated line on external antenna, external antenna interface circuit arranges a pull-up resistor, the MCU of this terminal judges external antenna situation by the level state reading 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 Gsensor self-inspection, this Gsensor self-inspection judges whether Gsensor part is normal by the communication of MCU and the Gsensor chip of this terminal; GSensor is after initialization, namely can continue through I2C according to setpoint frequency and carry instant three-dimensional acceleration value to MCU, due to 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; When this three-dimensional acceleration value occurs complete zero, be then 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 utilizing amplifier to build, when voltage difference is lower than the short-circuit detecting thresholding arranged, the output of comparer can cut off constant-current charge circuit automatically, play the effect of protection constant-current charge circuit, the software of MCU can control to open low current charge simultaneously, after low current charge a period of time, judge that the reason of battery plus-negative plate small pressure difference is that battery owes electricity or battery plus-negative plate short circuit by reading comparer output valve; If short circuit then software controls to open trouble light and sends 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 read based on battery cathode voltage, judged by software lower than during the thresholding arranged, the battery cathode voltage read is judged as that battery comes off, software controls to open trouble light and sends battery release failure code to terminal.
In an embodiment of the present invention, also comprise this terminal push signal self-inspection, this terminal comprises E-Call, B-Call, I-CALL tri-buttons, what circuit adopted is Low level effective working method, button triggers and is detected pressure, if low duration is more than a schedule time, then judge this keys deactivation.
In an embodiment of the present invention, also comprise the externally fed self-inspection of this terminal, described terminal under normal conditions Power supply is powered by vehicle-used battery jar, its standard value is defined within 9-16v interval, this terminal reads externally fed voltage by the ADC of MCU, also continue after more than 1 second more than 16V in power supply, this MCU is judged as that supply voltage transfinites; After supply voltage also continues more than 1 second lower than 9V, this MCU is judged as that supply voltage does not reach limit.
In an embodiment of the present invention, also comprise the air bag signal self-inspection of this terminal, this air bag signal self-inspection contrasts by described MCU pwm signal state that hardware obtains and the air bag information that CAN obtains judges whether normally.
In an embodiment of the present invention, the FSK self-inspection of this terminal, CAN self-inspection and the self-inspection of lighter ACC signal is also comprised; Described FSK self-inspection judges that whether FSK part is normal by the communication of described MCU and FSK chip, and described CAN self-inspection judges CAN BUS state by described MCU; The self-inspection of described lighter ACC signal is that the information obtained by the processor contrast ACC signal that obtains of hardware and CAN is judged whether normally.
The present invention, by the self-inspection to GPS self-inspection, loudspeaker self-inspection and internal storage etc., can realize self-inspection and the recovery of mounted remote monitor terminal, ensure the normal operation of this remote monitoring terminal, improves the stability of system.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention loudspeaker self-checking circuit principle schematic.
Fig. 2 is embodiment of the present invention gps antenna self-checking circuit principle schematic.
Fig. 3 is embodiment of the present invention antenna self-checking circuit connection diagram.
Embodiment
Below in conjunction with drawings and Examples, the present invention will be further described.
The present embodiment provides a kind of self-inspection implementation method of mounted remote monitor terminal, it is characterized in that: comprise the GPS self-inspection of this terminal, loudspeaker self-inspection and internal storage self-inspection; Described GPS self-inspection reads 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 short circuit; Described loudspeaker self-inspection is by sending a signal to loudspeaker from the MCU of 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-inspection be when each terminal initialization to storer in specific several region read and write, if any makeing mistakes, storer can report error interrupt, described MCU by interrupt judge whether storer exists bad block.Preferably, in the present embodiment, MCU sends to the signal of loudspeaker to be square-wave signals, and its frequency is 1Khz.
Refer to Fig. 1, Fig. 1 is loudspeaker self-checking circuit principle schematic, in figure, above-mentioned square-wave signal is sent to follow-up audio frequency power amplifier 1 by the MCU of terminal, in the present embodiment, this audio frequency power amplifier adopts LM48580tlx chip, the working current of this audio frequency power amplifier chip LM48580tlx is detected 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.
Refer to Fig. 2, Fig. 2 is gps antenna self-checking circuit principle schematic, in figure, MCU detects the electric current of gps antenna work 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 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-inspection arranges a pull down resistor by the end points of the terminated line on external antenna, external antenna interface circuit 4 arranges a pull-up resistor R13, the MCU of this terminal judges external antenna situation by the level state reading this external antenna interface, and the switching of external antenna and built-in aerial is realized according to state, in figure, the MCU of terminal provides RF_CTR signal, controls the switching to external antenna interface circuit 4 and built-in aerial interface circuit 5 of radio-frequency (RF) switch PE4259DS.
Preferably, method of the present invention also comprises Gsensor self-inspection further, and this Gsensor self-inspection judges whether Gsensor part is normal by the communication of MCU and the Gsensor chip of this terminal; GSensor is after initialization, namely can continue through I2C according to setpoint frequency and carry instant three-dimensional acceleration value to MCU, due to 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; When this three-dimensional acceleration value occurs complete zero, be then judged as module failure.
In order to ensure 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 utilizing amplifier to build, when voltage difference is lower than the short-circuit detecting thresholding arranged, the output of comparer can cut off constant-current charge circuit automatically, play the effect of protection constant-current charge circuit, the software of MCU can control to open low current charge simultaneously, after low current charge a period of time, judge that the reason of battery plus-negative plate small pressure difference is that battery owes electricity or battery plus-negative plate short circuit by reading comparer output valve; If short circuit then software controls to open trouble light and sends battery short circuit diagnostic trouble code to terminal.In addition, described battery self-inspection also comprises the detection that comes off, this detection that comes off is read based on battery cathode voltage, and judged by software lower than during the thresholding arranged, the battery cathode voltage read is judged as that battery comes off, software controls to open trouble light and sends battery release failure code to terminal.
Preferably, method of the present invention also comprises the self-inspection of terminal push signal, externally fed self-inspection, the air bag signal self-inspection of terminal, FSK self-inspection, CAN self-inspection and the self-inspection of lighter ACC signal etc., below we do simple explanation to each self-inspection.
Terminal push signal self-inspection: this terminal comprises E-Call, B-Call, I-CALL tri-buttons, what circuit adopted is Low level effective working method, button triggers and is detected pressure, if low duration is more than a schedule time, then judges this keys deactivation.
Externally fed self-inspection: described terminal under normal conditions Power supply is powered by vehicle-used battery jar, its standard value is defined within 9-16v interval, this terminal reads externally fed voltage by the ADC of MCU, and also continue after more than 1 second more than 16V in power supply, this MCU is judged as that supply voltage transfinites; After supply voltage also continues more than 1 second lower than 9V, this MCU is judged as that supply voltage does not reach limit.
The air bag signal self-inspection of terminal: this air bag signal self-inspection contrasts by described MCU pwm signal state that hardware obtains and the air bag information that CAN obtains judges whether normally.
Described FSK self-inspection judges that whether FSK part is normal by the communication of described MCU and FSK chip, and described CAN self-inspection judges CAN BUS state by described MCU; The self-inspection of described lighter ACC signal is that the information obtained by the processor contrast ACC signal that obtains of hardware and CAN is judged whether normally.
The foregoing is only preferred embodiment of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.