Vehicle switching signal reading system and method based on distributed automobile data recorder

By designing a distributed switching signal reading system in a driving recorder, using the 'or' logic judgment processing of hard-wire signals and CAN signals, the problems of switching signal integration and fault processing in the prior art are solved, and the detection is improved Reliability and stability, adapt to different vehicle configurations.

CN119068575APending Publication Date: 2024-12-03QIMING INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411279628.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When obtaining and processing vehicle switching signals, it is difficult for existing driving recorders to efficiently and accurately integrate different types of switching signals. The switching status cannot be correctly read when the hard-wire signal or CAN signal fails, resulting in incorrect switching status display and upload.

Method used

A distributed driving recorder vehicle switching signal reading system is designed, including a switch signal processing module, a hard-wire signal acquisition module and a CAN signal acquisition module. By performing the 'or' logic judgment processing of the hard-wire signal and the CAN signal. , ensuring that even if one signal source experiences a brief abnormality or failure, the other signal source can provide basic detection functions to improve detection reliability and fault tolerance.

Benefits of technology

It realizes more accurate and reliable switching signal detection, reduces the load of a single node, improves system stability, and adapts to different vehicle configurations and signal transmission characteristics, with strong versatility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068575A_ABST
    Figure CN119068575A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle switching signal reading system and method based on a distributed automobile data recorder. The system comprises a switching signal processing module, a hard wire signal obtaining module and a CAN signal obtaining module. The switching signal processing module is respectively connected with the hard wire signal acquisition module and the CAN signal acquisition module, the hard wire signal acquisition module is connected with a plurality of hard wire signal pins to acquire each hard wire signal of a vehicle, and the CAN signal acquisition module is connected with a CAN bus of the vehicle where the automobile data recorder is installed to acquire each switching signal state in the CAN bus signal of the vehicle; and the hard wire signal acquisition module and the CAN signal acquisition module upload read switching signals to the switching signal processing module for summarizing and processing during working. According to the scheme, the respective advantages of the CAN signals and the hardwire signals can be fully utilized, more comprehensive and accurate switching signal state information is provided, different vehicle configurations and signal transmission characteristics are flexibly adapted, and the universality and expandability are high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle electronic technology, and in particular to a vehicle switch signal reading system and method based on a distributed driving recorder. Background Art

[0002] In the prior art, the acquisition and processing of vehicle switch signals by dashcams have certain limitations, and it is difficult to efficiently and accurately integrate different types of switch signals. The vehicle switch status is read only from hard-wired signals or CAN signals. If the hard-wired signal line or CAN signal line being read fails, the switch status cannot be read correctly, resulting in the wrong vehicle switch status read by the dashcam, which in turn causes the switch status displayed by the dashcam and uploaded to the platform to be wrong. Summary of the invention

[0003] Based on the above technical problems, the present invention proposes a distributed driving recorder vehicle switch signal reading system and method, and the specific technical solution is as follows.

[0004] In the first aspect, a vehicle switch signal reading system based on a distributed driving recorder includes a switch signal processing module, a hard-wire signal acquisition module and a CAN signal acquisition module; the switch signal processing module is connected to the hard-wire signal acquisition module and the CAN signal acquisition module respectively, the hard-wire signal acquisition module is connected to multiple hard-wire signal pins to acquire various hard-wire signals of the vehicle, the CAN signal acquisition module is connected to the CAN bus of the vehicle where the driving recorder is installed, and acquires the status of each switch signal in the CAN bus signal of the vehicle; when working, the hard-wire signal acquisition module and the CAN signal acquisition module upload the read switch signal to the switch signal processing module for summary processing.

[0005] Specifically, the hard-wire signal acquisition module includes a hard-wire light signal acquisition sub-module, a hard-wire turn signal acquisition sub-module, a hard-wire reverse gear signal acquisition sub-module, a hard-wire door signal acquisition sub-module and a hard-wire seat belt signal acquisition sub-module, which respectively acquire hard-wire light signals, hard-wire turn signals, hard-wire reverse gear signals, hard-wire door signals and hard-wire seat belt signals.

[0006] Specifically, the CAN signal acquisition module includes a CAN light signal acquisition submodule, a CAN turn signal acquisition submodule, a CAN gear position signal acquisition submodule, a CAN door signal acquisition submodule and a CAN seat belt signal acquisition submodule.

[0007] Specifically, the switch signal processing module specifically includes: Light switch signal processing submodule: judge and process the acquired hard-wire light signal and CAN light signal, and use OR logic to judge the light switch status; Steering switch signal processing submodule: judges and processes the acquired hard-wire steering signal and CAN steering signal, and uses OR logic to judge the steering switch status; Reverse gear switch signal processing submodule: judges and processes the acquired hard-wire reverse gear signal and CAN gear position signal, and uses OR logic to judge whether the gear position state is reverse gear or non-reverse gear; Door switch signal processing submodule: judges and processes the acquired hard-wire door signal and CAN door signal, and uses OR logic to judge the door switch status; Seat belt switch signal processing submodule: judges and processes the acquired hard-wire seat belt signal and CAN seat belt signal, and uses OR logic to judge the seat belt status.

[0008] On the other hand, a distributed driving recorder vehicle switch signal reading method is implemented based on the distributed driving recorder vehicle switch signal reading system, and the method includes the following steps: Step S1: Periodically detect each hard-wire light pin and the vehicle CAN network to obtain each hard-wire signal and CAN signal; Step S2: De-jitter the acquired signal, and determine the states corresponding to the high level and low level of the signal according to the high effective or low effective signal circuit and determination logic preset by the system; Step S3: Upload the determined switch signal value to the switch signal processing module.

[0009] Specifically, the hardwired signals acquired in step S1 include hardwired light signals, hardwired turn signals, hardwired reverse gear signals, hardwired door signals and hardwired seat belt signals; the acquired CAN signals include CAN light signals, CAN turn signals, CAN gear signals, CAN door signals and CAN seat belt signals.

[0010] Specifically, the step S2 specifically includes: Delay and de-jitter each hardware signal. If the corresponding hardware signal is continuously high or low level within the preset time, the hard-wired signal is determined to be on or off, and the signal flip judgment is set; The on or off state corresponding to the low level or high level is determined according to the preset high effective or low effective circuit.

[0011] Specifically, the step S2 further includes: Periodically detect the vehicle CAN network signal line to obtain each CAN signal; De-jitter each CAN signal, and determine whether the corresponding CAN gear signal is valid according to the description of the CAN signal valid value in the CAN signal description document; If the CAN signal value is not in the CAN signal description document, the CAN gear is determined to be non-reverse gear and the CAN gear signal value is 0; if the CAN message to which the CAN signal belongs cannot be received for a long time, the CAN signal value is determined to be 0; if the CAN message to which it belongs cannot be received for a long time, it is fed back that the message has not been received within the sending cycle.

[0012] Specifically, step S2 also includes: when detecting a CAN turn signal or a hard-wired turn signal, setting a time threshold in advance, and the time threshold should be greater than one turn signal flashing cycle; when the switch flips within a threshold time, it is determined that the turn is on, and the switch state is set to 1; when the switch continues to be at a low level within a threshold time, otherwise it indicates that the switch is disconnected, and the switch state is set to 0.

[0013] Beneficial effects of the present invention: The present invention proposes a vehicle switch signal reading system and method based on a distributed driving recorder. When the hard-wire signal acquisition module and the CAN signal acquisition module are working, the hard-wire signal acquisition module and the CAN signal acquisition module will upload the read switch signal to the switch signal processing module for summary processing, and the summary processing method is to take the "or" logic of the CAN signal and the hard-wire signal. The reliability and fault tolerance of the detection are improved. Even if one of the signal sources has a temporary abnormality or failure, the basic detection function can still be guaranteed by the other signal source. The decentralization of detection tasks is achieved, the load of a single node is reduced, and the overall stability of the system is improved. It can make full use of the respective advantages of CAN signals and hard-wire signals to provide more comprehensive and accurate switch signal status information. It can flexibly adapt to different vehicle configurations and signal transmission characteristics, and has strong versatility and scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a diagram of the architecture of the vehicle switch signal reading system of the vehicle driving recorder based on distributed technology of the present invention; Figure 2 is a schematic diagram of hardware light signal determination in an embodiment of the present invention; Figure 3 is a schematic diagram of hardware turn signal determination in an embodiment of the present invention; Figure 4 is a schematic diagram of hardware reverse gear signal determination in an embodiment of the present invention; Figure 5 is a schematic diagram of hardware door signal determination in an embodiment of the present invention; Figure 6 is a schematic diagram of hardware seat belt signal determination in an embodiment of the present invention; Figure 7 1 is a schematic diagram of CAN light signal determination in an embodiment of the present invention; Figure 8 CAN turn signal determination schematic diagram in an embodiment of the present invention; Fig. 9 1 is a schematic diagram of determining a CAN reverse gear signal in an embodiment of the present invention; Fig.10 1 is a schematic diagram of CAN door signal determination in an embodiment of the present invention; Fig.11 Schematic diagram of CAN seat belt signal determination in an embodiment of the present invention. DETAILED DESCRIPTION

[0015] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described with reference to the accompanying drawings.

[0016] The present invention proposes a distributed driving recorder vehicle switch signal reading system and method. In the first aspect, a distributed driving recorder vehicle switch signal reading system is provided. Figure 1 As shown, it includes a switch signal processing module, a hard-wire signal acquisition module and a CAN signal acquisition module; the switch signal processing module is connected to the hard-wire signal acquisition module and the CAN signal acquisition module respectively, the hard-wire signal acquisition module is connected to multiple hard-wire signal pins to acquire various hard-wire signals of the vehicle, and the CAN signal acquisition module is connected to the CAN bus of the vehicle on which the driving recorder is installed to acquire the status of each switch signal in the CAN bus signal of the vehicle; when working, the hard-wire signal acquisition module and the CAN signal acquisition module upload the read switch signal to the switch signal processing module for summary processing.

[0017] In this embodiment, the hard-wire signal acquisition module includes a hard-wire light signal acquisition sub-module, a hard-wire turn signal acquisition sub-module, a hard-wire reverse gear signal acquisition sub-module, a hard-wire door signal acquisition sub-module and a hard-wire seat belt signal acquisition sub-module, which respectively acquire the hard-wire light signal, hard-wire turn signal, hard-wire reverse gear signal, hard-wire door signal and hard-wire seat belt signal.

[0018] In this embodiment, the CAN signal acquisition module includes a CAN light signal acquisition submodule, a CAN turn signal acquisition submodule, a CAN gear position signal acquisition submodule, a CAN door signal acquisition submodule and a CAN seat belt signal acquisition submodule.

[0019] In this embodiment, the switch signal processing module specifically includes: Light switch signal processing submodule: judge and process the acquired hard-wire light signal and CAN light signal, and use OR logic to judge the light switch status; Steering switch signal processing submodule: judges and processes the acquired hard-wire steering signal and CAN steering signal, and uses OR logic to judge the steering switch status; Reverse gear switch signal processing submodule: judges and processes the acquired hard-wire reverse gear signal and CAN gear position signal, and uses OR logic to judge whether the gear position state is reverse gear or non-reverse gear; Door switch signal processing submodule: judges and processes the acquired hard-wire door signal and CAN door signal, and uses OR logic to judge the door switch status; Seat belt switch signal processing submodule: judges and processes the acquired hard-wire seat belt signal and CAN seat belt signal, and uses OR logic to judge the seat belt status.

[0020] On the other hand, a distributed driving recorder vehicle switch signal reading method is implemented based on the distributed driving recorder vehicle switch signal reading system, and the method includes the following steps: Step S1: Periodically detect each hard-wire light pin and the vehicle CAN network to obtain each hard-wire signal and CAN signal; Step S2: De-jitter the acquired signal, and determine the states corresponding to the high level and low level of the signal according to the high effective or low effective signal circuit and determination logic preset by the system; Step S3: Upload the determined switch signal value to the switch signal processing module.

[0021] In this embodiment, the hard-wired signals acquired in step S1 include hard-wired light signals, hard-wired turn signals, hard-wired reverse gear signals, hard-wired door signals and hard-wired seat belt signals; the acquired CAN signals include CAN light signals, CAN turn signals, CAN gear signals, CAN door signals and CAN seat belt signals.

[0022] In this embodiment, step S2 specifically includes: Delay and de-jitter each hardware signal. If the corresponding hardware signal is continuously high or low level within the preset time, the hard-wired signal is determined to be on or off, and the signal flip judgment is set; The on or off state corresponding to the low level or high level is determined according to the preset high effective or low effective circuit.

[0023] In this embodiment, step S2 further includes: Periodically detect the vehicle CAN network signal line to obtain each CAN signal; De-jitter each CAN signal, and determine whether the corresponding CAN gear signal is valid according to the description of the CAN signal valid value in the CAN signal description document; If the CAN signal value is not in the CAN signal description document, the CAN gear is determined to be non-reverse gear and the CAN gear signal value is 0; if the CAN message to which the CAN signal belongs cannot be received for a long time, the CAN signal value is determined to be 0; if the CAN message to which it belongs cannot be received for a long time, it is fed back that the message has not been received within the sending cycle.

[0024] In this embodiment, step S2 also includes: when detecting a CAN turn signal or a hard-wired turn signal, a time threshold is set in advance, and the time threshold should be greater than one turn signal flashing cycle; when the switch is flipped within a threshold time, the turn is determined to be on, and the switch state is set to 1; when the switch is continuously at a low level within a threshold time, otherwise it indicates that the switch is disconnected, and the switch state is set to 0.

[0025] An embodiment of the present invention provides a system for reading vehicle switch signals based on a distributed driving recorder, the system comprising a switch signal processing module, a hard-wire light signal acquisition submodule, a hard-wire steering signal acquisition submodule, a hard-wire reverse gear signal acquisition module, a hard-wire door signal acquisition submodule, a hard-wire seat belt signal acquisition submodule and a CAN light signal acquisition submodule; the switch signal processing module is connected to the hard-wire signal acquisition module and the CAN signal acquisition module respectively, the hard-wire signal return submodule is connected to multiple hard-wire signal pins for acquiring hard-wire signals; the CAN signal acquisition module is connected to the CAN bus of the vehicle on which the driving recorder is installed to acquire the switch signal status in the vehicle's CAN bus signal.

[0026] like Figure 2 As shown, this embodiment provides a method for determining vehicle switch signals based on a distributed driving recorder, which is applied to a hard-line light signal acquisition submodule, and the method includes: Step S101, periodically looping to obtain hard-line light signals by detecting hard-line light signal lines; light signals include but are not limited to: high beam, low beam, fog lights, width lights, running lights, etc.

[0027] Step S102, de-bouncing the hard-wired light signal by conventional methods. The conventional method refers to the commonly used delayed de-bouncing method, that is, if the hard-wired light signal is continuously at a high or low level within 100ms, it is determined that the hard-wired light signal is on or off. When detecting the hard-wired light signal, the switch state corresponding to the high level and low level of the hard-wired light signal shall be determined according to the high-effective or low-effective signal circuit and judgment logic set in advance by the system. If the current circuit is a high-level effective circuit, then when a high level is detected, it indicates that the switch is closed, and the switch state is set to 1, otherwise it indicates that the switch is disconnected, and the switch state is set to 0; if the current circuit is a low-level effective circuit, then when a low level is detected, it indicates that the switch is closed, and the switch state is set to 1, otherwise it indicates that the switch is disconnected, and the switch state is set to 0.

[0028] Step S103, uploading the determined hard-wire switch signal value to the light switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0029] like Figure 3 As shown, this embodiment provides a method for determining a vehicle switch signal of a driving recorder based on a distributed system, which is applied to a hard-line steering signal acquisition submodule, and the method includes: Step S201, periodically and cyclically detecting the hard-wire turn signal line to obtain the hard-wire turn signal.

[0030] Step S202, de-jitter the hard-wired turn signal by conventional methods. Conventional methods refer to the commonly used delayed de-jitter method, that is, if the hard-wired turn signal continues to be high or low level within 100ms, it is determined that the hard-wired light signal is on or off; and because the turn signal may be directly connected to the turn signal status signal line, it is necessary to increase the signal flip judgment; when detecting the hard-wired turn signal, set a time threshold in advance, the threshold should be greater than 1 turn signal flashing cycle, when the switch flips within a threshold time, it is determined that the turn is on, and the switch state is set to 1; when the switch continues to be low level within a threshold time, otherwise it means that the switch is disconnected, and the switch state is set to 0. The hard-wired turn signal is divided into left and right turn signals. Low level or high level indicates the on or off state, which is determined according to the high effective or low effective circuit set in advance.

[0031] Step S203, uploading the determined hard-wire steering signal value to the steering switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0032] like Figure 4 As shown, this embodiment provides a method for determining a reverse gear signal of a vehicle based on a distributed driving recorder, which is applied to a hard-line reverse gear signal acquisition submodule, and the method includes: Step S301, periodically and cyclically acquiring a hard-wired reverse gear signal by detecting the hard-wired reverse gear signal line.

[0033] Step S302, de-bouncing the hard-wired reverse gear signal by conventional methods. The conventional method refers to the commonly used delayed de-bouncing method, that is, if the hard-wired reverse gear signal is continuously at a high or low level within 100ms, it is determined that the hard-wired reverse gear signal is on or off. When detecting the hard-wired reverse gear signal, the switch state corresponding to the high level and low level of the hard-wired reverse gear signal shall be determined according to the high-effective or low-effective signal circuit and judgment logic set in advance by the system. If the current circuit is a high-level effective circuit, then when a high level is detected, it indicates reverse gear, and the switch state is set to 1, otherwise it indicates non-reverse gear, and the switch state is set to 0; if the current circuit is a low-level effective circuit, then when a low level is detected, it indicates reverse gear, and the switch state is set to 1, otherwise it indicates non-reverse gear, and the switch state is set to 0.

[0034] Step S303, uploading the determined hard-wire reverse gear signal value to the reverse gear switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0035] like Figure 5 As shown, this embodiment provides a vehicle seat belt signal determination method based on a distributed driving recorder, which is applied to a hard-line seat belt signal acquisition submodule, and the method includes: Step S401, periodically and cyclically acquiring a hard-wired seat belt signal by detecting the hard-wired seat belt signal line.

[0036] Step S402, de-bouncing the hard-wired seat belt signal by conventional methods. The conventional method refers to the commonly used delayed de-bouncing method, that is, if the hard-wired seat belt signal is continuously high or low within 100ms, it is determined that the hard-wired seat belt signal is on or off. When detecting the hard-wired seat belt signal, the seat belt status corresponding to the high level and low level of the hard-wired seat belt signal shall be determined according to the high-effective or low-effective signal circuit and judgment logic set in advance by the system. If the current circuit is a high-level effective circuit, then when a high level is detected, it indicates that the seat belt is fastened, and the seat belt status is set to 1, otherwise it indicates that the seat belt is not fastened, and the seat belt status is set to 0; if the current circuit is a low-level effective circuit, then when a low level is detected, it indicates that the seat belt is fastened, and the switch status is set to 1, otherwise it indicates that the seat belt is not fastened, and the seat belt status is set to 0.

[0037] Step S403, uploading the determined hard-wired seat belt signal value to the seat belt switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0038] like Figure 6 As shown, this embodiment provides a vehicle door signal determination method based on a distributed driving recorder, which is applied to a hard-line door signal acquisition submodule, and the method includes: Step S501, periodically looping to obtain a hard-wired door signal by detecting the hard-wired door signal line.

[0039] Step S502, de-bouncing the hard-wired door signal by conventional methods. The conventional method refers to the commonly used delayed de-bouncing method, that is, if the hard-wired door signal is continuously high or low level within 100ms, it is determined that the hard-wired door signal is open or closed. When detecting the hard-wired door signal, the door state corresponding to the high level and low level of the hard-wired door signal shall be determined according to the high-effective or low-effective signal circuit and judgment logic set in advance by the system. If the current circuit is a high-level effective circuit, then when a high level is detected, it indicates that the door is open, and the door state is set to 1, otherwise it indicates that the door is closed, and the door state is set to 0; if the current circuit is a low-level effective circuit, then when a low level is detected, it indicates that the door is open, and the switch state is set to 1, otherwise it indicates that the door is closed, and the door state is set to 0.

[0040] Step S503, uploading the determined hard-wire door signal value to the door switch signal processing submodule, and the long transmission method is a conventional value transmission method.

[0041] like Figure 7 As shown, this embodiment provides a method for determining vehicle switch signals of a driving recorder based on a distributed system, which is applied to a CAN light signal acquisition submodule, and the method includes: Step S601, periodically looping to obtain CAN light signals by detecting the CAN light signal line; light signals include but are not limited to: high beam, low beam, fog light, width indicator light, driving light, etc.

[0042] Step S602, determine whether the CAN light signal is valid. The basis for determining whether the CAN light signal is valid is the description of the effective value of the light signal in the CAN signal description document; the effective value range of the conventional switch signal is 0~1, 0 means the light is off, and 1 means the light is on. In abnormal cases, such as when the CAN light signal value is not in the effective value range of the light signal in the CAN signal description document, the CAN light is determined to be off, and the CAN light signal value is 0; in abnormal cases, such as when the CAN message to which the CAN light signal belongs cannot be received for a long time, the CAN light signal is determined to be off, and the CAN light signal value is 0. The long-term failure to receive the CAN message means that the message has not been received for more than several sending cycles of the CAN light message specified in the CAN signal description document.

[0043] Step S603, uploading the determined CAN light signal value to the light switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0044] like Figure 8 As shown, this embodiment provides a method for determining a vehicle switch signal of a driving recorder based on a distributed system, which is applied to a CAN steering signal acquisition submodule, and the method includes: Step S701, periodically and cyclically detecting the CAN turn signal line to obtain the CAN turn signal.

[0045] Step S702, de-jitter the CAN turn signal by conventional methods. Conventional methods refer to the commonly used delayed de-jitter method, that is, if the CAN turn signal is continuously high or low within 100ms, it is determined that the CAN light signal is on or off; and because the turn signal may be directly connected to the turn signal status signal line, it is necessary to increase the signal flip judgment; when detecting the CAN turn signal, set a time threshold in advance, the threshold should be greater than 1 turn signal flashing cycle, when the switch flips within a threshold time, it is determined that the turn is on, and the switch state is set to 1; when the switch is continuously low within a threshold time, otherwise it means that the switch is disconnected, and the switch state is set to 0. The CAN turn signal is divided into left and right turn signals. Low level or high level indicates the on or off state, which is determined according to the high effective or low effective circuit set in advance.

[0046] Step S703, uploading the determined CAN steering signal value to the steering switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0047] like Fig. 9 As shown, this embodiment provides a method for determining a vehicle reverse gear signal based on a distributed driving recorder, which is applied to a CAN reverse gear signal acquisition submodule, and the method includes: Step S801, periodically and cyclically acquiring the CAN reverse gear signal by detecting the CAN gear position signal line.

[0048] Step S802, determine whether the CAN gear signal is valid. The basis for determining whether the CAN gear signal is valid is the description of the gear signal valid value in the CAN signal description document; the conventional switch signal valid value range is 0~1, 0 represents non-reverse gear, and 1 represents reverse gear. In abnormal cases, such as when the CAN gear signal value is not within the range of the gear signal valid value in the CAN signal description document, the CAN gear is determined to be non-reverse gear, and the CAN gear signal value is 0; in abnormal cases, such as when the CAN message to which the CAN gear signal belongs cannot be received for a long time, the CAN gear signal is determined to be non-reverse gear, and the CAN gear signal value is 0. The CAN message to which it belongs cannot be received for a long time, which means that the message has not been received for more than several sending cycles of the CAN gear message specified in the CAN signal description document.

[0049] Step S803, uploading the determined CAN reverse gear signal value to the reverse gear switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0050] like Fig.10 As shown, this embodiment provides a vehicle door signal determination method based on a distributed driving recorder, which is applied to a CAN door signal acquisition submodule, and the method includes: Step S901, periodically and cyclically acquiring the CAN door signal by detecting the CAN door signal line.

[0051] Step S902, determine whether the CAN door signal is valid. The basis for determining whether the CAN door signal is valid is the description of the door signal valid value in the CAN signal description document; the valid value range of the conventional switch signal is 0~1, 0 represents non-reverse gear, and 1 represents reverse gear. In abnormal cases, such as when the CAN door signal value is not in the valid value range of the door signal in the CAN signal description document, it is determined that the CAN door is in non-reverse gear, and the CAN door signal value is 0; in abnormal cases, such as when the CAN message to which the CAN door signal belongs cannot be received for a long time, it is determined that the CAN door signal is in non-reverse gear, and the CAN door signal value is 0. The CAN message to which it belongs cannot be received for a long time, which means that the message has not been received for more than several sending cycles of the CAN door message specified in the CAN signal description document.

[0052] Step S903, uploading the determined CAN door signal value to the door switch signal processing submodule, and the long transmission method is a conventional value transmission method.

[0053] like Fig.11 As shown, this embodiment provides a vehicle seat belt signal determination method based on a distributed driving recorder, which is applied to a CAN seat belt signal acquisition submodule, and the method includes: Step S1001, periodically and cyclically acquiring the CAN seat belt signal by detecting the CAN seat belt signal line.

[0054] Step S1002, determine whether the CAN seat belt signal is valid. The basis for determining whether the CAN seat belt signal is valid is the description of the effective value of the seat belt signal in the CAN signal description document; the effective value range of the conventional switch signal is 0~1, 0 represents non-reverse gear, and 1 represents reverse gear. In abnormal cases, such as when the CAN seat belt signal value is not within the effective value range of the seat belt signal in the CAN signal description document, it is determined that the CAN seat belt is non-reverse gear, and the CAN seat belt signal value is 0; in abnormal cases, such as when the CAN message to which the CAN seat belt signal belongs cannot be received for a long time, it is determined that the CAN seat belt signal is non-reverse gear, and the CAN seat belt signal value is 0. The long-term failure to receive the CAN message means that the message has not been received for more than several CAN signal description document specified CAN seat belt message sending cycles.

[0055] Step S1003, uploading the determined CAN seat belt signal value to the seat belt switch signal processing submodule, and the uploading method is a conventional value transmission method.

[0056] The embodiment of the present invention provides a distributed driving recorder vehicle switch signal determination method, which is applied to a switch signal processing module and includes: The switch signal module includes a light switch signal processing submodule, a steering switch signal processing submodule, a reverse gear switch signal processing submodule, a door signal processing submodule, and a seat belt processing submodule.

[0057] Light switch processing submodule logic: The light switch signal processing module will obtain the hard-wire signal from the hard-wire signal acquisition module and the CAN signal from the CAN signal acquisition submodule for judgment processing. The judgment processing refers to the "OR" logic of the hard-wire signal and CAN signal value of the switch signal. The OR logic means that if the hard-wire signal value of the switch is on or the CAN signal value is on, the switch is judged to be on; or if the hard-wire signal value of the switch is on and the CAN signal value is also on, the switch is judged to be on; when the hard-wire signal value of the switch is off and the CAN signal value is also off, the switch is judged to be off.

[0058] Steering switch processing submodule logic: The steering signal processing submodule will obtain the hard-wired left / right steering signal from the hard-wired signal acquisition module and the CAN left / right steering signal obtained from the CAN signal acquisition submodule for judgment processing. The judgment processing refers to the "OR" logic of the hard-wired signal and the CAN signal value of the switch signal. The OR logic means that if the hard-wired signal value of the left / right steering is on or the CAN signal value is on, the left / right steering is judged to be on; or if the hard-wired signal value of the left / right steering is on and the CAN signal value is also on, the switch is judged to be on; when the hard-wired signal value of the left / right steering is off and the CAN signal value is also off, the left / right steering is judged to be off.

[0059] Logic of the gear switch processing submodule: The gear switch signal processing submodule will perform judgment processing on the hard-wire signal obtained from the hard-wire signal acquisition module and the CAN signal obtained from the CAN signal acquisition submodule. The judgment processing refers to the "OR" logic of the hard-wire signal of the switch signal and the CAN signal value. The OR logic means that if the hard-wire signal value of the gear is reverse gear or the CAN signal value is reverse gear, then the gear is judged to be reverse gear; or if the hard-wire signal value of the gear is reverse gear and the CAN signal value is also reverse gear, then the gear signal is judged to be reverse gear; when the hard-wire signal value of the gear is non-reverse gear and the CAN signal value is also non-reverse gear, then the gear is judged to be non-reverse gear.

[0060] Door switch processing submodule logic: The door signal processing submodule will perform judgment processing on the hard-wire signal obtained from the hard-wire signal acquisition module and the CAN signal obtained from the CAN signal acquisition submodule. The judgment processing refers to the "OR" logic of the hard-wire signal and CAN signal value of the switch signal. The OR logic means that if the hard-wire signal value of the door is open or the CAN signal value is open, the door state is judged to be open; or if the hard-wire signal value of the door is open and the CAN signal value is also open, the door is judged to be open; when the hard-wire signal value of the door is closed and the CAN signal value is also closed, the door state is judged to be closed.

[0061] Seat belt switch processing submodule logic: The seat belt signal processing submodule will obtain the hard-wire signal from the hard-wire signal acquisition module and the CAN signal from the CAN signal acquisition submodule for judgment and processing. The judgment and processing refers to the "OR" logic of the hard-wire signal and the CAN signal value of the seat belt signal. The OR logic means that if the hard-wire signal value of the seat belt is not fastened or the CAN signal value is not fastened, the seat belt state is judged to be not fastened; or if the hard-wire signal value of the seat belt is not fastened and the CAN signal value is also not fastened, the seat belt state is judged to be not fastened; when the hard-wire signal value of the seat belt is fastened and the CAN signal value is also fastened, the seat belt state is judged to be fastened.

[0062] The present invention has shown and described the basic principles and main features of the present invention and the advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A distributed driving recorder vehicle switch signal reading system, characterized in that: It includes a switch signal processing module, a hard-wire signal acquisition module and a CAN signal acquisition module; the switch signal processing module is connected to the hard-wire signal acquisition module and the CAN signal acquisition module respectively, the hard-wire signal acquisition module is connected to multiple hard-wire signal pins to acquire various hard-wire signals of the vehicle, and the CAN signal acquisition module is connected to the CAN bus of the vehicle on which the driving recorder is installed to acquire the status of each switch signal in the CAN bus signal of the vehicle; when working, the hard-wire signal acquisition module and the CAN signal acquisition module upload the read switch signal to the switch signal processing module for summary processing.

2. The distributed driving recorder vehicle switch signal reading system according to claim 1 is characterized in that: The hard-wire signal acquisition module includes a hard-wire light signal acquisition submodule, a hard-wire turn signal acquisition submodule, a hard-wire reverse gear signal acquisition submodule, a hard-wire door signal acquisition submodule and a hard-wire seat belt signal acquisition submodule, which respectively acquire hard-wire light signals, hard-wire turn signals, hard-wire reverse gear signals, hard-wire door signals and hard-wire seat belt signals.

3. The distributed driving recorder vehicle switch signal reading system according to claim 2 is characterized in that: The CAN signal acquisition module includes a CAN light signal acquisition submodule, a CAN steering signal acquisition submodule, a CAN gear position signal acquisition submodule, a CAN door signal acquisition submodule and a CAN seat belt signal acquisition submodule.

4. The distributed driving recorder vehicle switch signal reading system according to claim 3 is characterized in that: The switch signal processing module specifically includes: Light switch signal processing submodule: judge and process the acquired hard-wire light signal and CAN light signal, and use OR logic to judge the light switch status; Steering switch signal processing submodule: judges and processes the acquired hard-wire steering signal and CAN steering signal, and uses OR logic to judge the steering switch status; Reverse gear switch signal processing submodule: judges and processes the acquired hard-wire reverse gear signal and CAN gear position signal, and uses OR logic to judge whether the gear position state is reverse gear or non-reverse gear; Door switch signal processing submodule: judges and processes the acquired hard-wire door signal and CAN door signal, and uses OR logic to judge the door switch status; Seat belt switch signal processing submodule: judges and processes the acquired hard-wire seat belt signal and CAN seat belt signal, and uses OR logic to judge the seat belt status.

5. A distributed driving recorder vehicle switch signal reading method, implemented based on a distributed driving recorder vehicle switch signal reading system according to any one of claims 1 to 4, characterized in that: The method comprises the following steps: Step S1: Periodically detect each hard-wire light pin and the vehicle CAN network to obtain each hard-wire signal and CAN signal; Step S2: De-jitter the acquired signal, and determine the states corresponding to the high level and low level of the signal according to the high effective or low effective signal circuit and determination logic preset by the system; Step S3: Upload the determined switch signal value to the switch signal processing module.

6. The distributed driving recorder vehicle switch signal reading method according to claim 5 is characterized in that: The hardwired signals acquired in step S1 include hardwired light signals, hardwired turn signals, hardwired reverse gear signals, hardwired door signals and hardwired seat belt signals; the acquired CAN signals include CAN light signals, CAN turn signals, CAN gear signals, CAN door signals and CAN seat belt signals.

7. The distributed driving recorder vehicle switch signal reading method according to claim 6 is characterized in that: The step S2 specifically includes: Delay and de-jitter each hardware signal. If the corresponding hardware signal is continuously high or low level within the preset time, the hard-wired signal is determined to be on or off, and the signal flip judgment is set; The on or off state corresponding to the low level or high level is determined according to the preset high effective or low effective circuit.

8. The distributed driving recorder vehicle switch signal reading method according to claim 7 is characterized in that: The step S2 further comprises: Periodically detect the vehicle CAN network signal line to obtain each CAN signal; De-jitter each CAN signal, and determine whether the corresponding CAN gear signal is valid according to the description of the CAN signal valid value in the CAN signal description document; If the CAN signal value is not in the CAN signal description document, the CAN gear is determined to be non-reverse gear and the CAN gear signal value is 0; if the CAN message to which the CAN signal belongs cannot be received for a long time, the CAN signal value is determined to be 0; if the CAN message to which it belongs cannot be received for a long time, it is fed back that the message has not been received within the sending cycle.

9. The distributed driving recorder vehicle switch signal reading method according to claim 8 is characterized in that: The step S2 also includes: when detecting the CAN turn signal or the hard-wire turn signal, setting a time threshold in advance, and the time threshold should be greater than one turn signal flashing cycle; when the switch flips within a threshold time, it is determined that the turn is on, and the switch state is set to 1; when the switch continues to be at a low level within a threshold time, otherwise it indicates that the switch is disconnected, and the switch state is set to 0.