Summary of the invention
The present invention proposes a kind of automotive check terminal, system and method, by broken line, the auto sleep that yet can realize automotive check terminal is not installed.
In order to achieve the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of automotive check terminal, comprise micro-control unit, electric pressure converter, CAN and auto sleep circuit; Described auto sleep circuit and automobile storage battery power supply, described micro-control unit, described electric pressure converter are electrically connected, and comprise bleeder circuit and voltage comparator; Described bleeder circuit, being electrically connected with the battery power of automobile and described voltage comparator, exporting described voltage comparator to after the voltage for being inputted by described battery power carries out dividing potential drop; Described voltage comparator and described battery power, described micro-control unit and electric pressure converter are electrically connected, for the voltage after bleeder circuit dividing potential drop and the inner predetermined voltage threshold arranged are compared, if the voltage after described dividing potential drop is lower than described predetermined voltage threshold, then judge automobile flameout, if the voltage after described dividing potential drop higher than or equal described predetermined voltage threshold, then judge that automobile does not stop working; Described voltage comparator, whether the sign also exported for receiving micro-control unit enters the control signal of dormancy, when judge automobile flameout and described control signal as entering dormancy time, then output enable signal to the Enable Pin of described electric pressure converter, control described electric pressure converter and enter off position, described automotive check terminal enters dormancy; Described micro-control unit, the time for continuing at automobile flameout reach Preset Time after export characterize enter dormancy control signal to described voltage comparator.
Wherein, described micro-control unit, comprises poller module; Described poller module, for prestoring many groups for carrying out the communications parameter of communication with various, and after automobile starting, enter polling routine, open CAN, carry out CAN initialization, poll often organizes described communications parameter, judges that whether current group of communications parameter be adaptive with current vehicle, is, then carry out communication by the electronic control unit of CAN and automobile, closedown CAN after communication completes; No, then close CAN, time delay, judging whether that all parameters are all scanned, is then terminate polling routine, no, then again open CAN, continues next group communications parameter of scanning.
Wherein, described bleeder circuit comprises the 4th resistance, the 6th resistance and the 6th electric capacity; One end of described 4th resistance is connected with automobile storage battery power supply, and the other end is connected with one end of the 6th resistance, and tie point is the output terminal of described bleeder circuit, the other end ground connection of described 6th resistance; 6th electric capacity is connected with described 6th resistor coupled in parallel.
Wherein, described voltage comparator, comprises described voltage comparator, comprises the first chip, the second chip, the second electric capacity, the 3rd electric capacity, the 4th electric capacity, the 5th electric capacity and the 5th resistance; Described first chip model is MC33161, its IN1 pin is connected with the output terminal of described bleeder circuit, IN2 pin receives the control signal of described micro-control unit, MS pin is connected described battery power with VCC pin, GND pin ground connection, VR pin is unsettled, as the output terminal of described auto sleep circuit after OUT1 pin is connected with OUT2 pin; Described second chip model is LM9076QBMA-3.3, its VIN pin connects described battery power, SHDN pin connects the output terminal of described auto sleep circuit, CDY pin is ground connection after the 5th electric capacity, GND pin and PD pin ground connection, indirect 5th resistance of RST pin and VOUT pin, NC1 and NC2 pin is unsettled, VOUT pin connects automotive ignition voltage, one end ground connection of the 3rd electric capacity, automotive ignition voltage described in another termination, the 4th electric capacity is connected with described 3rd Capacitance parallel connection, second electric capacity one termination battery power, other end ground connection.
The present invention also provides a kind of automobile detection system, comprises server, hand-held mobile terminal and foregoing automotive check terminal;
Described automotive check terminal also comprises bluetooth module; Server, for binding the product ID of the logical address of bluetooth and automotive check terminal one by one and store in advance; And according to the described product ID that hand-held mobile terminal sends, determine corresponding logical address unique with this product ID, and this logical address is sent to described hand-held mobile terminal; Hand-held mobile terminal, for sending described product ID to described server; And carry out from being dynamically connected after searching the logical address consistent with the logical address that described server sends with described bluetooth module;
And/or described hand-held mobile terminal is also for connecting by bluetooth with described automotive check terminal, and upload the version information of the embedded program of described automotive check terminal to described server, described version information comprises version number; Described server is also for after receiving described version information, contrast the version number with the embedded program of vehicle, judge that whether the version number of the embedded program in server is higher than the version number of the embedded program of described automotive check terminal, be, then carry out program upgrade, no, then release ROMPaq.
The present invention also provides a kind of automotive check method, and comprise automotive check terminal auto sleep method, the method comprising the steps of:
Steps A, carries out dividing potential drop by the voltage that automobile storage battery power supply inputs;
Step B, compares the voltage after dividing potential drop and predetermined voltage threshold;
Step C, if the voltage after described dividing potential drop is lower than described predetermined voltage threshold, then judges automobile flameout, if the voltage after described dividing potential drop higher than or equal described predetermined voltage threshold, then judge that automobile does not stop working;
Step D, after the time that automobile flameout continues reaches Preset Time, exports the control signal characterizing and enter dormancy;
Step e, when judge automobile flameout and described control signal as entering dormancy time, then output enable signal to the Enable Pin of electric pressure converter, control described electric pressure converter and enter off position, described automotive check terminal enters dormancy.
Wherein, CAN polling method is also comprised; The method comprising the steps of:
Prestore many groups for carrying out the communications parameter of communication with various;
After automobile starting, enter polling routine, open CAN, and carry out CAN initialization;
Poll often organizes described communications parameter, and judging that whether current group of communications parameter be adaptive with current vehicle, is then carry out communication by the electronic control unit of CAN and automobile, closedown CAN after communication completes; No, then close CAN, time delay, judging whether that all parameters are all scanned, is then terminate polling routine, no, then again open CAN, continues next group communications parameter of scanning.
Wherein, also comprise the method for attachment of bluetooth Auto-matching, the method comprising the steps of:
The product ID of the logical address of bluetooth and automotive check terminal is bound and stores by server in advance one by one;
Hand-held mobile terminal sends described product ID to described server;
Described server, according to described product ID, is determined corresponding logical address unique with this product ID, and this logical address is sent to described hand-held mobile terminal;
Described hand-held mobile terminal connects after searching the logical address consistent with the logical address that described server sends automatically.
Wherein, also comprise embedded program upgrade method, the method comprises:
Hand-held mobile terminal and described automotive check terminal are connected by bluetooth;
Described hand-held mobile terminal uploads the version information of the embedded program of described automotive check terminal to described server, described version information comprises version number;
After server receives described version information, contrast the version number of the embedded program of same vehicle;
Judge that whether the version number of the embedded program in server is higher than the version number of the embedded program of described automotive check terminal, be, then carry out program upgrade, no, then release ROMPaq.
Wherein, also comprise bluetooth interaction fault information approach, the method comprising the steps of:
Hand-held mobile terminal sends handshake to described automotive check terminal;
After described automotive check terminal receives described handshake, reply described handshake, connect;
Described hand-held mobile terminal, sends diagnostic trouble code to described automotive check terminal and reads signal;
Described automotive check terminal sends diagnostic trouble code data to described hand-held mobile terminal after receiving described diagnostic trouble code reading signal;
Described hand-held mobile terminal sends data stream to described automotive check terminal and reads signal, and described automotive check terminal, after receiving described data stream reading signal, sends data stream to described hand-held mobile terminal.
Visible, the present invention at least has following beneficial effect:
A kind of automotive check terminal of the present invention, system and method, after dividing potential drop is carried out to battery power, compare with predetermined voltage threshold, judge whether automobile stops working, and a control signal is sent by micro-control unit in flame-out rear Preset Time, when control signal sign enters dormancy and automobile flameout two conditions set up simultaneously, then the voltage transformation module of automotive check terminal is made to enter dormancy.Thus the control achieved automotive check terminal whether auto sleep.
Further, be also provided with CAN polling mechanism, after often group communications parameter adaptation completes, all by bus-off, and in prior art, this CAN is opened all the time, therefore, compares and prior art, effectively saves bus resource.
Further, be also provided with bluetooth module, the Auto-matching achieving bluetooth connects, and manually connects without the need to user, more convenient.
Further, be also provided with upgrade function, in time the embedded program of automotive check terminal can be upgraded to most highest version.
Further, be also provided with the mechanism to handheld terminal Real-time Feedback failure message, the acquisition of failure message is more direct, more convenient.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of automotive check terminal, shown in Figure 1, comprises micro-control unit, electric pressure converter, CAN and auto sleep circuit.
Through practical test, show that voltage when automobile is struck sparks is generally at about 13.5V, at about 12.5V time flame-out.The technical scheme that the embodiment of the present invention provides is judged by voltage, determines that vehicle starts or cuts out, thus controls dormancy and the startup of this sense terminals equipment.
Described auto sleep circuit and automobile storage battery power supply, described micro-control unit, described electric pressure converter are electrically connected, shown in Figure 2, and described auto sleep circuit comprises bleeder circuit and voltage comparator.
POWER connects the battery power of vehicle, voltage comparator is exported to after the voltage that POWER inputs by bleeder circuit carries out dividing potential drop, voltage after bleeder circuit dividing potential drop and the inner predetermined voltage threshold arranged compare by voltage comparator, if judge that magnitude of voltage is lower than the threshold value arranged, then judge that vehicle stops working, then output enable signal (shown in Fig. 2 ENABLE) is to the Enable Pin of electric pressure converter, DC-DC power source chip (i.e. electric pressure converter) is made to enter off position, and it is (shown in Figure 3 in control signal, CPU_CTL in Fig. 3) control under, intelligence full car system health check-up terminal device is made to enter dormant state.If judge that magnitude of voltage is higher than the threshold value arranged, then judge that vehicle is in starting state.The chip of DC-DC power source shown in Fig. 2 is a kind of embodiment of electric pressure converter, i.e. DC-to-dc conversion chip.
Particularly, described bleeder circuit, being electrically connected with the battery power of automobile and described voltage comparator, exporting described voltage comparator to after the voltage for being inputted by described battery power carries out dividing potential drop; Described voltage comparator and described battery power, described micro-control unit and electric pressure converter are electrically connected, for the voltage after bleeder circuit dividing potential drop and the inner predetermined voltage threshold arranged are compared, if the voltage after described dividing potential drop is lower than described predetermined voltage threshold, then judge automobile flameout, if the voltage after described dividing potential drop higher than or equal described predetermined voltage threshold, then judge that automobile does not stop working.
Described voltage comparator, whether the sign also exported for receiving micro-control unit enters the control signal of dormancy, when judge automobile flameout and described control signal as entering dormancy time, then output enable signal to the Enable Pin of described electric pressure converter, control described electric pressure converter and enter off position, described automotive check terminal enters dormancy; Described micro-control unit, the time for continuing at automobile flameout reach Preset Time after export characterize enter dormancy control signal to described voltage comparator.
Like this, thus achieve the startup and dormancy that control sense terminals, ensure to stop working in certain hour at vehicle, this equipment can enter dormancy, saves vehicle accumulator electricity.
Shown in Figure 3, in embodiments of the present invention, preferably, described bleeder circuit comprises the 4th resistance R4, the 6th resistance R6 and the 6th electric capacity C6.
One end of described 4th resistance R4 is connected with automobile storage battery power supply, and the other end is connected with one end of the 6th resistance R6, and tie point is the output terminal of described bleeder circuit, the other end ground connection of described 6th resistance R6; 6th electric capacity C6 and described 6th resistance R6 is connected in parallel.
Shown in Fig. 3, preferably, described voltage comparator, comprises the first chip (shown in Fig. 3 MC33161), the second chip (shown in Fig. 3 LM9076QBMA-3.3), the second electric capacity C2, the 3rd electric capacity C3, the 4th electric capacity C4 and the 5th electric capacity C5 and the 5th resistance R5.
Preferably, the resistance of the 4th resistance R4 is 95.3 kilo-ohms, and the resistance of the 5th resistance R5 is 100 kilo-ohms, and the resistance of the 6th resistance R6 is 10 kilo-ohms; Second electric capacity C2, the 3rd electric capacity C3 and the 5th electric capacity C5 are C0603 electric capacity, and the 4th electric capacity C4 is C3216 electric capacity.
Described first chip model is MC33161, its IN1 pin is connected with the output terminal of described bleeder circuit, IN2 pin receives the control signal CPU_CTL of described micro-control unit, MS pin is connected described battery power with VCC pin, GND pin ground connection, VR pin is unsettled, as the output terminal of described auto sleep circuit after OUT1 pin is connected with OUT2 pin.
Described second chip model is LM9076QBMA-3.3, its VIN pin connects described battery power, SHDN pin connects the output terminal of described auto sleep circuit, CDY pin is ground connection after the 5th electric capacity C5, GND pin and PD pin ground connection, the indirect 5th resistance R5 of RST pin and VOUT pin, NC1 and NC2 pin is unsettled, VOUT pin connects automotive ignition voltage, one end ground connection of the 3rd electric capacity C3, automotive ignition voltage described in another termination, the 4th electric capacity C4 and described 3rd electric capacity C3 is connected in parallel, second electric capacity C2 mono-termination battery power, other end ground connection.
Wherein, POWER connects the power supply of vehicle, and U2 is MC33161, after outer meeting resistance R4, R6 dividing potential drop, by the power supply of dividing potential drop to the IN1 pin of U2, compared according to input value and predetermined voltage threshold by U2, the program in micro-control unit is combined and judges what value external voltage is within the scope of.Preferably, described predetermined voltage threshold is 1.27V, and those skilled in the art can do concrete adjustment according to the technical conceive of the embodiment of the present invention, and the embodiment of the present invention does not limit.
If judge that magnitude of voltage is lower than the threshold value arranged, then judge that vehicle stops working, in conjunction with the program in micro-control unit, intelligence full car system health check-up terminal device is made to enter dormant state.If judge that magnitude of voltage is higher than the threshold value arranged, then judge that vehicle is in starting state.Thus control startup and the dormancy of intelligence full car system health check-up terminal, ensure to stop working in certain hour at vehicle, enter dormancy, save vehicle accumulator electricity.
Preferably, in embodiments of the present invention, described micro-control unit, comprises poller module.
CAN can configure and organize communications parameter more, carries out poll, all to carry out when often organizing parameter poll the closedown of CAN, time delay, from newly opening bus and initialization.Namely first program opens CAN, and initialization CAN, enter polling mechanism.When being polled to certain group parameter and possessing suitability, after carrying out necessary communication, close CAN, no longer poll is carried out to the configuration parameter of remainder.When the parameter of poll is not adaptive, then continue poll, until all parameters all polls one time.
Often organize communications parameter and comprise vehicle car system, handshake, interrogating signal etc.
Particularly, described poller module, for prestoring many groups for carrying out the communications parameter of communication with various, and after automobile starting, enter polling routine, open CAN, carry out CAN initialization, poll often organizes described communications parameter, judge that whether current group of communications parameter be adaptive with current vehicle, then carry out communication by the electronic control unit of CAN and automobile, closedown CAN after communication completes; No, then close CAN, time delay, judging whether that all parameters are all scanned, is then terminate polling routine, no, then again open CAN, continues next group communications parameter of scanning.
Automotive check terminal is by electronic control unit (the Electronic ControlUnit of bus mode and automobile, ECU) communicate, the bus resource of ECU is limited, so when the bus resource that hold facility is too many, will affect other devices communicatings.
And the mode that the sense terminals of the embodiment of the present invention adopts poll and automatically closes, save bus resource.Be exactly that embedded program adopts poll to check adaptive vehicle specifically, when after a vehicle program of detection whether adaptation, will CAN be closed.If vehicle is adaptive, then jump out poll, if vehicle is not adaptive, then enters next poll, open CAN, communicate with vehicle ECU.So can bus resource be saved.
This automotive check terminal is communicated with the ECU of automobile by bus mode, and this CAN polling mechanism, does not take bus always, all can close at every turn, can ensure the stability of CAN communication safer, more reliably, and save the bus resource of ECU.
The embodiment of the present invention also provides a kind of automobile detection system, shown in Figure 4, and comprise server, hand-held mobile terminal and foregoing automotive check terminal, described automotive check terminal also comprises bluetooth module.
Now the bluetooth of automotive check terminal device is commercially all passive connected mode, and this makes user very inconvenient in use.This terminal achieves the Auto-matching function of bluetooth, provides users with the convenient.
First building database in the server, No. SN of MAC Address and product is bound one by one, when user uses handheld terminal, as mobile phone, when registering, fill in SN number subsidiary in the packing of product, a corresponding MAC Address can be returned to mobile phone at server end, mobile phone automatic correspondence can go out this adaptive terminal MAC address, after surrounding searches corresponding MAC Address bluetooth equipment, carries out from being dynamically connected.
Particularly, server, for binding the product ID of the logical address of bluetooth and automotive check terminal one by one and store in advance; And according to the described product ID that hand-held mobile terminal sends, determine corresponding logical address unique with this product ID, and this logical address is sent to described hand-held mobile terminal; Hand-held mobile terminal, for sending described product ID to described server; And carry out with described bluetooth module after searching the logical address consistent with the logical address that described server sends from being dynamically connected.
Preferably, in embodiments of the present invention, existing commercially most automotive check terminal, after delivery, program just cannot be changed, even if program needs to upgrade upgrading, also can only carry out programming on new product sold.Product sold can not carry out real-time upgrading in the past, and user is sustained a loss.
Terminal device of the present invention, by GSM network and Bluetooth technology, real-time carries out program upgrade for specific car system vehicle.
Described hand-held mobile terminal is also for connecting by bluetooth with described automotive check terminal, and upload the version information of the embedded program of described automotive check terminal to described server, described version information comprises version number.
Described server is also for after receiving described version information, contrast the version number with the embedded program of vehicle, judge that whether the version number of the embedded program in server is higher than the version number of the embedded program of described automotive check terminal, be, then carry out program upgrade, no, then release ROMPaq.
Namely mobile phone and intelligence full car system health check-up terminal are connected by bluetooth, obtain the version number that this terminal embeds program, and obtain the car system vehicle of embedded program adaptation.When by GSM network and intelligence, mobile phone believes that logical server is connected, the version number that corresponding vehicle car system is now up-to-date can be obtained, if the version number of corresponding car system vehicle higher than this terminal program version number of intelligence, then enters upgrade step on server; If not higher than, then exiting upgrading judge.
Whole upgrading judges not need artificial participation, pure consistency operation, and program can be jumped into BOOTLOADER program and run when upgrading, whole escalation process have employed multi-level fault tolerance mechanism, guarantees after program upgrade, there will not be the phenomenon that cannot use.
Preferably, in embodiments of the present invention, the data stream of this terminal device energy health check-up vehicle and diagnostic trouble code, the data detected first are stored in the FLASH of terminal, after connecting on this terminal device and Bluetooth of mobile phone, the data stored in FLASH are sent to mobile phone by bluetooth equipment.
Described hand-held mobile terminal also reads signal for sending handshake, diagnostic trouble code reading signal and data stream to described automotive check terminal; Described automotive check terminal, also for receiving described handshake, diagnostic trouble code reads after signal and data stream read signal, replys handshake, diagnostic trouble code data and data stream respectively.
The embodiment of the present invention also provides a kind of automotive check method, and comprise automotive check terminal auto sleep method, shown in Figure 5, the method comprising the steps of:
Step S110, carries out dividing potential drop by the voltage that automobile storage battery power supply inputs.
Step S111, compares the voltage after dividing potential drop and predetermined voltage threshold.
Step S112, if the voltage after described dividing potential drop is lower than described predetermined voltage threshold, then judges automobile flameout, if the voltage after described dividing potential drop higher than or equal described predetermined voltage threshold, then judge that automobile does not stop working.
Step S113, after the time that automobile flameout continues reaches Preset Time, exports the control signal characterizing and enter dormancy.
Step S114, when judge automobile flameout and described control signal as entering dormancy time, then output enable signal to the Enable Pin of electric pressure converter, control described electric pressure converter and enter off position, described automotive check terminal enters dormancy.
Preferably, in the embodiment of the present invention, also comprise CAN polling method; Shown in Figure 6, the method comprising the steps of:
Prestore many groups for carrying out the communications parameter of communication with various; After automobile starting, enter polling routine, open CAN, and carry out CAN initialization; Poll often organizes described communications parameter, and judging that whether current group of communications parameter be adaptive with current vehicle, is then carry out communication by the electronic control unit of CAN and automobile, closedown CAN after communication completes; No, then close CAN, time delay, judging whether that all parameters are all scanned, is then terminate polling routine, no, then again open CAN, continues next group communications parameter of scanning.
Preferably, in embodiments of the present invention, also comprise the method for attachment of bluetooth Auto-matching, shown in Figure 7, the method comprising the steps of:
The product ID of the logical address of bluetooth and automotive check terminal is bound and stores by server in advance one by one; Hand-held mobile terminal sends described product ID to described server; Described server, according to described product ID, is determined corresponding logical address unique with this product ID, and this logical address is sent to described hand-held mobile terminal; Described hand-held mobile terminal connects after searching the logical address consistent with the logical address that described server sends automatically.
Preferably, in embodiments of the present invention, also comprise embedded program upgrade method, shown in Figure 8, the method comprises:
Hand-held mobile terminal and described automotive check terminal are connected by bluetooth; Described hand-held mobile terminal uploads the version information of the embedded program of described automotive check terminal to described server, described version information comprises version number; After server receives described version information, contrast the version number of the embedded program of same vehicle; Judge that whether the version number of the embedded program in server is higher than the version number of the embedded program of described automotive check terminal, be, then carry out program upgrade, no, then release ROMPaq.
Preferably, in embodiments of the present invention, also comprise bluetooth interaction fault information approach, shown in Figure 9, the method comprising the steps of:
Hand-held mobile terminal sends handshake to described automotive check terminal; After described automotive check terminal receives described handshake, reply described handshake, connect; Described hand-held mobile terminal, sends diagnostic trouble code to described automotive check terminal and reads signal; Described automotive check terminal sends diagnostic trouble code data to described hand-held mobile terminal after receiving described diagnostic trouble code reading signal; Described hand-held mobile terminal sends data stream to described automotive check terminal and reads signal, and described automotive check terminal, after receiving described data stream reading signal, sends data stream to described hand-held mobile terminal.
Now automotive check terminal commercially exists a lot of not enough, such as cannot realize auto sleep to save automobile power, bluetooth needs that manually coupling, OBD trace routine cannot be closed always, diagnostic trouble code narrow limits, adaptive vehicle are very few, upgrading cannot be carried out to program to upgrade etc., although it is not cause the fault that can scan vehicle, high in practicality.
And a kind of automotive check terminal of the present invention, system and method, utilize and judge that voltage is to determine startup and the closedown of vehicle, adopt bluetooth Auto-matching interconnection technique, and CAN taking turn mechanism is set, the ROMPaq of vehicle car system is obtained from mobile phone terminal bluetooth communication, bluetooth connection uploads physical examination result with mobile communication, achieve can auto sleep equipment, save vehicle electricity consumption, without the need to manually mating bluetooth.Save bus resource, facilitate the remote upgrade of program, know the functions such as testing result in time.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.