CN114384839A - Vehicle-mounted key state detection system and detection method thereof - Google Patents

Vehicle-mounted key state detection system and detection method thereof Download PDF

Info

Publication number
CN114384839A
CN114384839A CN202111625168.8A CN202111625168A CN114384839A CN 114384839 A CN114384839 A CN 114384839A CN 202111625168 A CN202111625168 A CN 202111625168A CN 114384839 A CN114384839 A CN 114384839A
Authority
CN
China
Prior art keywords
key
module
detection module
resistor
fault detection
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
Application number
CN202111625168.8A
Other languages
Chinese (zh)
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.)
Flaircomm Microelectronics Inc
Original Assignee
Flaircomm Microelectronics Inc
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 Flaircomm Microelectronics Inc filed Critical Flaircomm Microelectronics Inc
Priority to CN202111625168.8A priority Critical patent/CN114384839A/en
Publication of CN114384839A publication Critical patent/CN114384839A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/56Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of semiconductor devices
    • H03K17/687Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of semiconductor devices the devices being field-effect transistors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/23Pc programming
    • G05B2219/23051Remote control, enter program remote, detachable programmer

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a vehicle-mounted key state detection system and a detection method thereof, wherein the detection system comprises an MCU module, a voltage detection module, a fault detection module and a remote communication module, wherein two terminals of the fault detection module are connected with two ends of a vehicle-mounted key; the voltage detection module is connected with the fault detection module and used for measuring the voltage value of the fault detection module when the MCU module enables different levels and sending the voltage value into the MCU module, the MCU module judges the key state according to the voltage value and controls the remote communication module to send information to the Internet of vehicles platform server when the key falls off or is in short circuit. According to the technical scheme, multiple states of the keys can be detected by using one ADC port, the key faults can be conveniently found and processed in time, the operation is simple, the cost is low, and the judgment speed is high.

Description

Vehicle-mounted key state detection system and detection method thereof
Technical Field
The invention belongs to the technical field of Internet of vehicles, and particularly relates to a vehicle-mounted key state detection system and a detection method thereof.
Background
Currently, many mainstream automobiles use keys to trigger a function, such as a one-touch call, which is pressed to automatically place a specified call. However, when the vehicle-mounted key is dropped or short-circuited, the main control chip cannot judge whether the key is dropped or not pressed, and a fault that a call cannot be made or an abnormal call is likely to occur, which brings great inconvenience to a vehicle owner. If a plurality of groups of key circuits are added, more IO control resources of the main control chip are required to be added for detection and implementation, and the complexity and the cost of the circuit are greatly increased.
Disclosure of Invention
The invention aims to provide a vehicle-mounted key state detection system and a detection method thereof, which can detect various states of a key by using one detection terminal, conveniently find and process key faults in time, and have the advantages of simple operation, low cost and high judgment speed.
In order to achieve the above purpose, the solution of the invention is:
a vehicle-mounted key state detection system is used for judging the working state of a vehicle-mounted key; the device comprises an MCU module, a voltage detection module, a fault detection module and a remote communication module, wherein two terminals of the fault detection module are connected with two ends of a vehicle-mounted key; the voltage detection module is connected with the fault detection module and used for measuring the voltage value of the fault detection module when the MCU module enables different levels and sending the voltage value into the MCU module, the MCU module judges the key state according to the voltage value and controls the remote communication module to send information to the Internet of vehicles platform server when the key falls off or is in short circuit.
The fault detection module comprises an MOS (metal oxide semiconductor) tube, a diode and first to sixth resistors, wherein the source electrode of the MOS tube is connected with a power supply, and the grid electrode of the MOS tube is used as an enabling end of the fault detection module; the drain electrode of the MOS tube is also connected with one end of a first resistor, the other end of the first resistor is respectively connected with the cathode of the diode, one end of a second resistor and one end of a fourth resistor, and the other end of the first resistor is also used as one terminal of the fault detection module; the anode of the diode is connected with one end of the sixth resistor, and the other end of the sixth resistor is used as the other enabling end of the fault detection module; the other end of the second resistor is grounded through a third resistor, and the other end of the second resistor is also connected with the voltage detection module; the other end of the fourth resistor is connected with one end of the fifth resistor and grounded, and the other end of the fifth resistor is used as the other terminal of the fault detection module.
The remote communication module establishes communication with the Internet of vehicles platform server through a mobile communication network.
The method of the vehicle-mounted key state detection system comprises the following steps:
step 1, the MCU module controls two enable ends of the fault detection module to be low level, the relation between a voltage value KEY _ ADC measured by the voltage detection module at the moment and a power supply VDD connected with a source electrode of an MOS (metal oxide semiconductor) transistor and resistance values R1-R6 of first to sixth resistors is judged, and if:
determining that the KEY interface is short-circuited if the KEY _ ADC is equal to 0, and turning to the step 2;
Figure BDA0003439463270000021
judging that the key interface is short-circuited to a power supply, and turning to the step 2;
Figure BDA0003439463270000022
judging that the key is normally connected and pressing the key;
Figure BDA0003439463270000023
judge that the button is normally connected and not pressed or drop, two enable terminals of MCU module control this moment are the high level, if:
Figure BDA0003439463270000024
judging that the key is normally connected but not pressed;
Figure BDA0003439463270000025
judging that the key falls off, and turning to the step 2;
wherein, VIOA control IO high level for the MCU;
and 2, the MCU module controls the remote communication module to send information to the Internet of vehicles platform server.
In the step 2, after the vehicle networking platform server receives the information, the vehicle networking platform server also informs the vehicle owner through the intelligent terminal APP.
After the scheme is adopted, the invention can detect 5 states of the vehicle-mounted key in real time by using one ADC port: key press, no press, drop, short power or short ground. When the key breaks down, the key can be found and processed in time, inconvenience caused by key faults is avoided, and the method has the advantages of being simple to operate, low in cost, capable of rapidly judging the state of the key and the like.
Drawings
FIG. 1 is a schematic diagram of the detection circuit of the present invention;
FIG. 2 is a flow chart of the detection of the present invention;
fig. 3 is an overall architecture diagram of the system of the present invention.
Detailed Description
The technical solution and the advantages of the present invention will be described in detail with reference to the accompanying drawings.
As shown in fig. 3, the present invention provides a vehicle-mounted key state detection system for determining a working state of a vehicle-mounted key, the detection system includes an MCU module, a voltage detection module, a fault detection module and a remote communication module, wherein the fault detection module is used for connecting to a vehicle-mounted key circuit, the fault detection module has two enable terminals, which are respectively connected to the MCU module, and the MCU module controls the high level or the low level; the voltage detection module is connected with the fault detection module and used for measuring the voltage of the specific position of the fault detection module when the MCU module enables different levels and sending the voltage value into the MCU module, the MCU module judges the key state according to the voltage value and controls the remote communication module to send information to the Internet of vehicles platform server when the key falls off or is in short circuit.
As shown in fig. 1, the circuit diagram of the connection between the fault detection module and the vehicle-mounted key in the invention is shown, wherein the fault detection module includes 1 MOS transistor Q1, 1 diode D1 and 6 resistors R1-R6, the source of Q1 is connected to the power supply VDD, a diode is connected between the drain and the source of Q1 in the forward direction, and the gate of Q1 is used as an enable terminal KEYDET _ en1 of the fault detection module; the drain of the Q1 is also connected with one end of the R1, the other end of the R1 is respectively connected with the cathode of the D1, one end of the R2 and one end of the R4, and the other end of the R1 is also used as one terminal of the fault detection module and is connected with one end of the vehicle-mounted key SW 1; the anode of the D1 is connected with one end of the R6, and the other end of the R6 is used as the other enabling end KEYDET _ en2 of the fault detection module; the other end of the R2 is grounded through the R3, and the other end of the R2 is also used as a voltage measurement end KEY _ ADC of the fault detection module and is connected with the voltage detection module; the other end of R4 is grounded, one end of R5 is connected to the other end of R4 and grounded, and the other end of R5 is connected to the other end of vehicle key SW1 as the other terminal of the failure detection module.
In conjunction with fig. 2, the present invention further provides a method for detecting a status of a vehicle-mounted KEY, wherein the MCU module determines different statuses of the KEY by detecting different voltage values of the KEY _ ADC. Assuming that VDD is 3.3V, the IO voltage range of the MCU module is 0-3.3V, and
the resistance value of the resistor satisfies the relation: r1 ═ R5 ≦ R2 ═ R3 ≦ R4 ≈ R6 ≈ 2 × R2
(e.g., R1 ═ R5 ═ 1K, R2 ═ R3 ═ 499K, R4 ═ R6 ═ 1M)
Firstly, the MCU module controls two enable terminals to be KEYDET _ en 1-0 and KEYDET _ en 2-0 (Q1 is turned on and D1 is turned off);
1) when the KEY interface is shorted to the power supply 12V (VDD <12V), the read KEY _ ADC voltage value is:
Figure BDA0003439463270000041
it is noted that since the power supply of the processor MCU is 3.3V, the maximum voltage that the analog-to-digital converter ADC can detect is also 3.3V, and then when the calculated voltage value KEY _ ADC is equal to 6V, the actual voltage value KEY _ ADC of the AD signal is equal to 3.3V.
2) When the KEY interface is short-circuited to GND, reading the voltage value of KEY _ ADC to be 0;
3) when the KEY is normally connected and the KEY is pressed, reading the voltage value of the KEY _ ADC as follows:
Figure BDA0003439463270000042
4) when the KEY is normally connected and not pressed or dropped, reading the voltage value of the KEY _ ADC as follows:
Figure BDA0003439463270000043
at this time, the MCU further determines that KEYDET _ en1 is equal to 1, KEYDET _ en2 is equal to 1(Q1 is off, D1 is on),
if the key is normally connected but not pressed, then
Figure BDA0003439463270000044
VIOIs the control IO level of the MCU, i.e. the voltage value when KEYDET _ en2 is at the high level is VIOIf the key is dropped off at 3.3V, then
Figure BDA0003439463270000051
When MCU detects that external key appears droing or the short circuit, remote communication module sends the information to car networking platform server through mobile communication network, and the car owner is notified to rethread intelligent terminal APP, and the car owner just can in time handle the trouble.
The above embodiments are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modifications made on the basis of the technical scheme according to the technical idea of the present invention fall within the protection scope of the present invention.

Claims (5)

1. A vehicle-mounted key state detection system is used for judging the working state of a vehicle-mounted key; the method is characterized in that: the device comprises an MCU module, a voltage detection module, a fault detection module and a remote communication module, wherein two terminals of the fault detection module are connected with two ends of a vehicle-mounted key; the voltage detection module is connected with the fault detection module and used for measuring the voltage value of the fault detection module when the MCU module enables different levels and sending the voltage value into the MCU module, the MCU module judges the key state according to the voltage value and controls the remote communication module to send information to the Internet of vehicles platform server when the key falls off or is in short circuit.
2. The vehicle-mounted key state detection system according to claim 1, characterized in that: the fault detection module comprises an MOS (metal oxide semiconductor) tube, a diode and first to sixth resistors, wherein the source electrode of the MOS tube is connected with a power supply, and the grid electrode of the MOS tube is used as an enabling end of the fault detection module; the drain electrode of the MOS tube is also connected with one end of a first resistor, the other end of the first resistor is respectively connected with the cathode of the diode, one end of a second resistor and one end of a fourth resistor, and the other end of the first resistor is also used as one terminal of the fault detection module; the anode of the diode is connected with one end of the sixth resistor, and the other end of the sixth resistor is used as the other enabling end of the fault detection module; the other end of the second resistor is grounded through a third resistor, and the other end of the second resistor is also connected with the voltage detection module; the other end of the fourth resistor is connected with one end of the fifth resistor and grounded, and the other end of the fifth resistor is used as the other terminal of the fault detection module.
3. The vehicle-mounted key state detection system according to claim 1, characterized in that: and the remote communication module establishes communication with the Internet of vehicles platform server through a mobile communication network.
4. The method of a vehicular key status detecting system according to claim 2, characterized by comprising the steps of:
step 1, the MCU module controls two enable ends of the fault detection module to be low level, the relation between a voltage value KEY _ ADC measured by the voltage detection module at the moment and a power supply VDD connected with a source electrode of an MOS (metal oxide semiconductor) transistor and resistance values R1-R6 of first to sixth resistors is judged, and if:
determining that the KEY interface is short-circuited if the KEY _ ADC is equal to 0, and turning to the step 2;
Figure FDA0003439463260000011
judging that the key interface is short-circuited to a power supply, and turning to the step 2;
Figure FDA0003439463260000021
judging that the key is normally connected and pressing the key;
Figure FDA0003439463260000022
judge that the button is normally connected and not pressed or drop, two enable terminals of MCU module control this moment are the high level, if:
Figure FDA0003439463260000023
judging that the key is normally connected but not pressed;
Figure FDA0003439463260000024
judging that the key falls off, and turning to the step 2;
wherein, VIOA control IO high level for the MCU;
and 2, the MCU module controls the remote communication module to send information to the Internet of vehicles platform server.
5. The method of claim 4, wherein: in the step 2, after the vehicle networking platform server receives the information, the vehicle networking platform server also informs the vehicle owner through the intelligent terminal APP.
CN202111625168.8A 2021-12-28 2021-12-28 Vehicle-mounted key state detection system and detection method thereof Pending CN114384839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111625168.8A CN114384839A (en) 2021-12-28 2021-12-28 Vehicle-mounted key state detection system and detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111625168.8A CN114384839A (en) 2021-12-28 2021-12-28 Vehicle-mounted key state detection system and detection method thereof

Publications (1)

Publication Number Publication Date
CN114384839A true CN114384839A (en) 2022-04-22

Family

ID=81198480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111625168.8A Pending CN114384839A (en) 2021-12-28 2021-12-28 Vehicle-mounted key state detection system and detection method thereof

Country Status (1)

Country Link
CN (1) CN114384839A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250495A (en) * 2023-11-16 2023-12-19 广州三晶电气股份有限公司 Key adhesion detection device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250495A (en) * 2023-11-16 2023-12-19 广州三晶电气股份有限公司 Key adhesion detection device
CN117250495B (en) * 2023-11-16 2024-04-26 广州三晶电气股份有限公司 Key adhesion detection device

Similar Documents

Publication Publication Date Title
US20180208066A1 (en) Method, battery management system and vehicle for charging awakening
CN111426984B (en) OBD module disconnection detection method, OBD vehicle-mounted monitoring terminal and OBD monitoring system
CN108357444A (en) Vehicle electronic device reserve battery state of emergency control switching circuit
CN114384839A (en) Vehicle-mounted key state detection system and detection method thereof
CN112193072B (en) Method for checking error frames of CAN (controller area network) bus of electric vehicle
CN112327211B (en) Vehicle-mounted microphone power supply connection state monitoring circuit and method
CN110995823B (en) Vehicle-mounted terminal offline processing method, device, storage medium and device
US20160031329A1 (en) Circuit Arrangement and Energy Storage System
CN217034545U (en) Vehicle-mounted key state detection system
US11418041B2 (en) Battery system
CN110745118B (en) Electronic parking switch and vehicle
CN216485439U (en) Antenna detection circuit
WO2022082531A1 (en) Relay working state inspection system, apparatus and method, and reverse connection detection method
US11704991B2 (en) Power failure detection device and method
CN213600859U (en) Antenna on-off detection circuit, mobile unit and vehicle
CN213482396U (en) Relay detection circuit and detection device based on positive and negative poles
CN113702820A (en) Vehicle control system and fault detection method and device of vehicle relay set
CN2779419Y (en) Pre-detection circuit for automobile load short circuit
CN110350473B (en) Control circuit, method and device
CN220924038U (en) Angular radar communication control circuit and vehicle control system
CN211236669U (en) Vehicle-mounted display screen fault networking monitoring system
CN219740351U (en) IO level matching interaction circuit
CN219016550U (en) High-voltage loop interlocking detection circuit in battery management system
CN213600837U (en) Relay detection circuit and detection device based on negative pole
CN220172837U (en) Active antenna protection circuit and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination