An in-vehicle equipment heartbeat signal simulation method, system and storage medium
By generating and outputting simulated heartbeat signals through communication between a life signal generator and a host computer, the problem of requiring separate program modifications for different anti-theft alarms in existing technologies is solved, enabling fast and flexible vehicle anti-theft alarm adaptation and security enhancement.
Patent Information
- Application Number
- CN202410309334.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2044-03-19
AI Technical Summary
The life signal characteristics of different vehicle anti-theft alarm devices in the existing technology are different, which requires separate program modification. The hardware does not support the signal transmission function and is costly. Moreover, the hardware is already in mass production and is difficult to adapt flexibly.
A life signal generator communicates with the host computer. A protocol conversion device generates and sends a protocol code. The life signal generator parses and outputs a simulated heartbeat signal to the anti-theft alarm, thus realizing a communication connection with the vehicle controller.
No modification to the vehicle module program is required; it can quickly and flexibly adapt to different anti-theft alarms, simulate heartbeat signals, and enhance vehicle anti-theft security.
Smart Images

Figure CN118212755B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automotive safety technology, and in particular to a method, system, and storage medium for simulating heartbeat signals in vehicle-mounted devices. Background Technology
[0002] In the automotive industry, some vehicles are equipped with anti-theft alarm devices. When the car is armed, if someone is detected inside the car, an active alarm will be triggered. Since this device is an anti-theft alarm device, it needs to continuously send heartbeat signals in the communication line when it is in sleep mode in order to avoid automatic alarm when offline.
[0003] In existing technologies, because different alarm devices have different characteristics of life signals, the program needs to be modified separately for the signals of different devices, which makes the alarm devices less flexible. Furthermore, some hardware does not support the function of sending life signals, and since this hardware is already mass-produced, modifying the hardware to send signals will increase the risks and costs. Summary of the Invention
[0004] This invention aims to solve the problem in existing technologies where different controllers require modification of the vehicle module's program, leading to the need for software re-integration. To address this, this invention proposes a method, system, and storage medium for simulating heartbeat signals in vehicle-mounted devices.
[0005] A method for simulating heartbeat signals in a vehicle-mounted device according to a first aspect of the present invention includes a vital signal generator and a host computer, the method comprising,
[0006] The life signal generator communicates with the host computer through a protocol conversion device;
[0007] The user edits the corresponding analog signal on the host computer according to the heartbeat signal required by the burglar alarm.
[0008] The host computer generates a protocol code based on the analog signal and sends the protocol code to the life signal generator;
[0009] The life signal generator receives and parses the protocol code, and saves the generated waveform data after parsing in the life signal generator;
[0010] The life signal generator and the anti-theft alarm are communicatively connected to the vehicle controller. The life signal generator reads the waveform data and outputs the waveform data to the anti-theft alarm according to a preset program algorithm.
[0011] According to a method for simulating heartbeat signals in a vehicle-mounted device based on the present invention, firstly, the life signal generator is connected to the host computer via a protocol conversion device. After ensuring successful communication between the life signal generator and the host computer, the host computer edits the corresponding simulated signal based on the heartbeat signal required by the anti-theft alarm. After the simulated signal is edited on the host computer, the host computer converts the simulated signal into a protocol code that can be received and recognized by the life signal generator using an internally preset conversion program. Then, by clicking the send button on the host computer, the protocol code is sent to the life signal generator connected to the host computer via a communication network. When the life signal generator receives the protocol code... According to the preset decoding program inside the life signal generator, the protocol code is parsed and processed by the decoding program, and the generated waveform data is stored in the memory of the life signal generator. After storage, the communication connection between the host computer and the life signal generator is disconnected, and the life signal generator and the anti-theft alarm are connected to the vehicle controller through the vehicle communication bus. After confirming that the communication signal is normal, the life signal generator reads the waveform data stored in its own memory. After the waveform data is read, the life signal generator processes the read waveform data through its preset program algorithm, and after processing, it outputs the data to the anti-theft alarm through the vehicle communication bus to complete the simulation of the vehicle's heartbeat signal.
[0012] According to some embodiments of the present invention, in the process of generating a protocol code based on the analog signal by the host computer, the protocol code is:
[0013] T1#Dt1G0*T2#Dt2G1*T3#Dt3G0*T4#Dt4G1*……Tn-1#Dtn-1G0*Tn#DtnG1*
[0014] Where T1#Dt1G0* indicates that the first segment is t1 us low level, T2#Dt2G1* indicates that the second segment is t2 us high level, T3#Dt3G0* indicates that the third segment is t3 us low level, T4#Dt4G1* indicates that the fourth segment is t4 us high level, Tn-1#Dtn-1G0* indicates that the (n-1)th segment is tn-1us low level, Tn#DtnG1* indicates that the nth segment is tn us high level, Tn is a high level when the segment is even number, and Tn is a low level when the segment is odd number, and n is a natural number greater than 1;
[0015] The protocol code can also be,
[0016] T1#Dt1G1*T2#Dt2G0*T3#Dt3G1*T4#Dt4G0*……Tn-1#Dtn-1G1*Tn#DtnG0*
[0017] Where T1#Dt1G1* indicates that the first segment is t1 us high level, T2#Dt2G0* indicates that the second segment is t2 us low level, T3#Dt3G1* indicates that the third segment is t3 us high level, T4#Dt4G0* indicates that the fourth segment is t4 us low level, Tn-1#Dtn-1G1* indicates that the (n-1)th segment is tn-1us high level, Tn#DtnG0* indicates that the nth segment is tn us low level, Tn is low level when it is an even number of segments, and high level when it is an odd number of segments, and n is a natural number greater than 1;
[0018] By setting the output levels of two adjacent signal segments to different high and low levels, and by setting the duration of the high and low levels to different durations, a realistic human heartbeat simulation signal can be achieved.
[0019] According to some embodiments of the present invention, the life signal generator reads the waveform data and outputs the waveform data to the burglar alarm according to a program algorithm, specifically,
[0020] After the life signal generator is connected to the burglar alarm, it performs power-on initialization of the controller I / O port and timer.
[0021] The life signal generator reads waveform data stored in its internal memory and controls the output of the waveform according to the program algorithm based on the waveform data;
[0022] Through the communication connection between the life signal generator and the vehicle controller, the controller I / O port and timer of the life signal generator are powered on and initialized. After initialization, the life signal generator reads the waveform data in its own memory through its own card reader, and after reading the waveform data, it controls the waveform data to be sent to the anti-theft alarm through its own preset program algorithm.
[0023] According to some embodiments of the present invention, the program algorithm is specifically as follows:
[0024] S1: Determine whether the timer value is less than T1. If the timer value is less than T1, output the level of that time period through the controller IO port. If the timer value is greater than T1, proceed to step S2.
[0025] S2: Determine whether the timer value is less than T1+T2. If the timer value is less than T1+T2, output the level of that time period through the controller IO port. If the timer value is greater than T1+T2, proceed to step S3.
[0026] …
[0027] …
[0028] Sn-1: Determine whether the timer value is less than T1+T2+…+Tn-1. If the timer value is less than T1+T2+…+Tn-1, output the level of this time period through the controller IO port. If the timer value is greater than T1+T2+…+Tn-1, proceed to step Sn.
[0029] Sn: If the timer value is less than T1+T2+…+Tn-1+Tn, then the level of that time period is output through the controller IO port; if the timer value is greater than T1+T2+…+Tn-1+Tn, then the timer value is cleared to zero, and the process returns to step S1.
[0030] Where Tn represents the nth waveform segment in the waveform image;
[0031] By comparing the timer value in the life signal generator with the waveform value of each segment in the waveform data, if the timer value is less than the waveform value of this segment, the waveform of this segment is output. If the timer value is greater than the waveform value of this segment, the timer value is compared with the sum of the waveform data of this segment and the next waveform data. If it is less, the waveform data of this segment and the next waveform data are still output. This process is repeated until the last waveform segment is determined. If the timer value is less than the sum of the waveform values of all segments, the entire waveform data is output. If the timer value is greater than the sum of the waveform values of all segments, the timer value is set to 0, and the process returns to determine the relationship between the timer value and the first segment of the waveform data. This process is repeated.
[0032] According to some embodiments of the present invention, the method further includes, after the life signal generator reads the waveform data and outputs the waveform data to the anti-theft alarm according to the program algorithm, the life signal generator re-samples the connection signal of the vehicle controller;
[0033] By setting the life signal generator to collect signals between the vehicle controller and the vehicle bus, if a signal is collected between the vehicle controller and the vehicle bus, it indicates that the communication between the vehicle controller and the vehicle bus is not disconnected. If no signal is collected between the vehicle controller and the vehicle bus, it indicates that the communication between the vehicle controller and the vehicle bus is disconnected. Through the above settings, the communication connection between the vehicle controller and the vehicle bus can be further ensured, thereby enhancing the vehicle's anti-theft security.
[0034] According to some embodiments of the present invention, the host computer includes a computer, a tablet computer, or a mobile phone;
[0035] The communication protocol conversion device includes a local interconnection network box and a controller local area network box;
[0036] The life signal generator is connected to a computer, tablet, or mobile phone via a local network box or controller area network box. The heartbeat signal is then edited on the computer, tablet, or mobile phone. After editing, the computer, tablet, or mobile phone converts the heartbeat signal into protocol code and transmits it to the life signal generator via the local network box or controller area network box, thus realizing data transmission.
[0037] A vehicle-mounted device heartbeat signal simulation system according to a second aspect embodiment of the present invention, the system comprising,
[0038] The data input module is used to edit the analog signal corresponding to the heartbeat signal required by the burglar alarm, and send the analog signal to the data processing module;
[0039] The data conversion module is used to receive the analog signal sent by the data input module and convert the analog signal into a protocol code that can be recognized by the data generation module through an internal program.
[0040] The data generation module is used to receive the protocol code sent by the data conversion module, parse the protocol code according to the decoding program, generate simulated heartbeat waveform data, and send the simulated heartbeat waveform data to the data output module;
[0041] The data output module is used to receive the simulated heartbeat waveform data sent by the data generation module and output the simulated heartbeat waveform data to the burglar alarm.
[0042] A data communication module is used for communication between the system and the burglar alarm.
[0043] According to a vehicle-mounted device heartbeat signal simulation system of the present invention, a simulated signal corresponding to the heartbeat signal required by the anti-theft alarm is edited on the data input module, and the edited simulated signal is sent to the data conversion module through the inter-module communication network. After receiving the simulated signal, the data conversion module converts the simulated signal into a protocol code that can be recognized by the data generation module using its own conversion program. After generating the protocol code, the protocol code is sent to the data generation module through the communication network. After receiving the protocol code, the data generation module parses the protocol code using its own preset decoding program. The data generation module generates simulated heartbeat waveform data according to the parsing result of the protocol code, and sends the simulated heartbeat waveform data to the data output module through the communication network. After receiving the simulated heartbeat waveform data sent by the data generation module, the data output module controls the output of the simulated heartbeat waveform data through a preset output program algorithm. Finally, the waveform data processed by the program algorithm is sent to the anti-theft alarm through the data passage module, thereby realizing the storage of simulated heartbeat waveform data in the anti-theft alarm.
[0044] According to a third aspect of the present invention, a storage medium stores a vehicle-mounted device heartbeat signal simulation program, which, when executed by a processor, implements a vehicle-mounted device heartbeat signal simulation method as described in the first aspect of the present invention.
[0045] The present invention provides a method for simulating heartbeat signals in vehicle-mounted equipment, the advantages of which are as follows:
[0046] (1) By adding a life signal generator, the life signal generator with heartbeat signal simulation signal and the alarm generator are connected to the vehicle controller to realize the simulation of the vehicle's heartbeat signal; the problem of needing to change the vehicle's relevant program due to the installation of different anti-theft alarms is solved. Under the premise of not needing to modify the program, different anti-theft alarms can be quickly, flexibly and conveniently adapted.
[0047] (2) It can flexibly realize pulse output and can edit any waveform as needed.
[0048] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0049] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a flowchart of a method for simulating heartbeat signals in a vehicle-mounted device according to an embodiment of the present invention;
[0051] Figure 2 This is a schematic diagram of the analog signal 1 for a heartbeat signal simulation method for an in-vehicle device according to an embodiment of the present invention;
[0052] Figure 3 This is a schematic diagram of analog signal 2 for a heartbeat signal simulation method for an in-vehicle device according to an embodiment of the present invention;
[0053] Figure 4 This is a flowchart of the algorithm for a heartbeat signal simulation method for an in-vehicle device according to an embodiment of the present invention;
[0054] Figure 5 This is a schematic diagram of the signal acquisition for a heartbeat signal simulation method for vehicle-mounted equipment according to an embodiment of the present invention. Detailed Implementation
[0055] The embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0056] It should be noted that when a component is said to be "fixed to" another component, it can be directly attached to the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0058] Example 1
[0059] See Figure 1 As shown, a method for simulating heartbeat signals in vehicle-mounted equipment includes the following steps:
[0060] Step S100: Connect the life signal generator to the host computer via a protocol conversion device;
[0061] Furthermore, the protocol conversion device is one of a local network box and a controller area network box, and the host computer is one of a computer, tablet computer, or mobile phone.
[0062] Specifically, in this embodiment, the protocol conversion device is a controller local area network box, and the host computer is a computer.
[0063] Communication between the life signal generator and the computer is achieved by connecting the life signal generator and the computer through a controller local area network box.
[0064] Step S200: The user edits the analog signal corresponding to the desired heartbeat signal on the computer;
[0065] See Figure 2 and Figure 3 As shown, analog signals 1 and 2 correspond to the heartbeat signal. The length of the horizontal line segment represents the duration of the signal segment. The longer the length, the longer the signal lasts. The height of the horizontal line segment indicates the level of the signal segment. A horizontal line segment at a higher position indicates a high-level signal, and a horizontal line segment at a lower position indicates a low-level signal. In this embodiment, analog signal 1 is selected.
[0066] Step S300: The computer converts the analog signal edited by the user into a protocol code and sends the generated protocol code to the life signal generator;
[0067] The protocol code corresponding to analog signal 1 is T1#Dt1G0*T2#Dt2G1*T3#Dt3G0*T4#Dt4G1*……Tn-1#Dtn-1G0*Tn#DtnG1*;
[0068] Where T1#Dt1G0* indicates that the first segment is t1 us low level, T2#Dt2G1* indicates that the second segment is t2 us high level, T3#Dt3G0* indicates that the third segment is t3 us low level, T4#Dt4G1* indicates that the fourth segment is t4 us high level, Tn-1#Dtn-1G0* indicates that the (n-1)th segment is tn-1us low level, Tn#DtnG1* indicates that the nth segment is tn us high level, Tn is a high level when the segment is even number, and Tn is a low level when the segment is odd number, and n is a natural number greater than 1;
[0069] The protocol code corresponding to analog signal 2 is T1#Dt1G1*T2#Dt2G0*T3#Dt3G1*T4#Dt4G0*……Tn-1#Dtn-1G1*Tn#DtnG0*;
[0070] Where T1#Dt1G1* indicates that the first segment is t1 us high level, T2#Dt2G0* indicates that the second segment is t2 us low level, T3#Dt3G1* indicates that the third segment is t3 us high level, T4#Dt4G0* indicates that the fourth segment is t4 us low level, Tn-1#Dtn-1G1* indicates that the (n-1)th segment is tn-1us high level, Tn#DtnG0* indicates that the nth segment is tn us low level, Tn is low level when the segment is even number, and Tn is high level when the segment is odd number, and n is a natural number greater than 1.
[0071] Therefore, in this embodiment, the protocol code obtained by the computer based on the analog signal 1 edited by the user is T1#Dt1G0*T2#Dt2G1*T3#Dt3G0*T4#Dt4G1*……Tn-1#Dtn-1G0*Tn#DtnG1*.
[0072] Step S400: After receiving the protocol code, the life signal generator parses and stores the protocol code;
[0073] After receiving the protocol code sent by the computer, the life signal generator parses the protocol code through a preset parsing program in the life signal generator. After parsing, the result data is stored in the storage module of the life signal generator.
[0074] Step S500: The life signal generator is connected to the target vehicle with the anti-theft alarm installed via the vehicle bus;
[0075] Enables communication between the life signal generator, the anti-theft alarm, and the vehicle controller.
[0076] Step S600: The life signal generator reads the result data from the memory module and outputs the result data to the burglar alarm through a preset program algorithm;
[0077] Furthermore, after the life signal generator is connected to the burglar alarm, it performs power-on initialization of the controller's I / O ports and timers.
[0078] The life signal generator reads waveform data stored in its internal memory and controls the output of the waveform according to the waveform data through a program algorithm;
[0079] For details, please refer to Figure 4 As shown, the program algorithm is as follows:
[0080] S1: Determine whether the timer value is less than T1. If the timer value is less than T1, output the level of that time period through the controller IO port. If the timer value is greater than T1, proceed to step S2.
[0081] S2: Determine whether the timer value is less than T1+T2. If the timer value is less than T1+T2, output the level of that time period through the controller IO port. If the timer value is greater than T1+T2, proceed to step S3.
[0082] …
[0083] …
[0084] Sn-1: Determine whether the timer value is less than T1+T2+…+Tn-1. If the timer value is less than T1+T2+…+Tn-1, output the level of this time period through the controller IO port. If the timer value is greater than T1+T2+…+Tn-1, proceed to step Sn.
[0085] Sn: If the timer value is less than T1+T2+…+Tn-1+Tn, then the level of that time period is output through the controller IO port; if the timer value is greater than T1+T2+…+Tn-1+Tn, then the timer value is cleared to zero, and the process returns to step S1.
[0086] Where Tn represents the nth waveform segment in the waveform image.
[0087] Step S700: The life signal generator collects the communication signal between the vehicle controller and the vehicle bus;
[0088] See Figure 5 As shown, by setting the life signal generator to collect the signal between the vehicle controller and the vehicle bus, if a signal is collected between the vehicle controller and the vehicle bus, it indicates that the communication between the vehicle controller and the vehicle bus is not disconnected; if no signal is collected between the vehicle controller and the vehicle bus, it indicates that the communication between the vehicle controller and the vehicle bus is disconnected. Through the above settings, the communication connection between the vehicle controller and the vehicle bus can be further ensured, thereby enhancing the anti-theft security of the vehicle.
[0089] According to the heartbeat signal simulation method for vehicle-mounted devices in this embodiment, firstly, a life signal generator is connected to a computer via a controller local area network box. After ensuring a successful communication connection between the life signal generator and the computer, the computer edits the corresponding simulated signal based on the heartbeat signal required by the burglar alarm. After the simulated signal is edited on the computer, the computer system converts the simulated signal into a protocol code that can be received and recognized by the life signal generator using an internally preset conversion program. Then, by clicking the send button on the computer, the protocol code is sent from the computer to the life signal generator connected to the computer via the communication network. When the life signal generator receives the protocol code, it decodes the protocol code according to the internally preset decoding program. The code program parses and processes the waveform data, storing the generated waveform data in the memory of the life signal generator. After storage, the communication connection between the computer and the life signal generator is disconnected, and the life signal generator and the anti-theft alarm are connected to the vehicle controller via the vehicle communication bus. After confirming that the communication signal is normal, the life signal generator reads the waveform data stored in its own memory. After reading the waveform data, the life signal generator processes the read waveform data through its own preset program algorithm. After processing, the data is output to the anti-theft alarm via the vehicle communication bus to complete the simulation of the device's heartbeat signal. Finally, the life signal generator re-samples the communication connection between the vehicle controller and the vehicle bus to further ensure the communication connection between the vehicle controller and the vehicle bus, thereby enhancing the vehicle's anti-theft security.
[0090] Example 2
[0091] A vehicle-mounted device heartbeat signal simulation system, the system comprising,
[0092] The data input module is used to edit the analog signal corresponding to the heartbeat signal required by the burglar alarm, and send the analog signal to the data processing module;
[0093] The data conversion module is used to receive the analog signal sent by the data input module and convert the analog signal into a protocol code that can be recognized by the data generation module through an internal program.
[0094] The data generation module is used to receive the protocol code sent by the data conversion module, parse the protocol code according to the decoding program, generate simulated heartbeat waveform data, and send the simulated heartbeat waveform data to the data output module;
[0095] The data output module is used to receive the simulated heartbeat waveform data sent by the data generation module and output the simulated heartbeat waveform data to the burglar alarm.
[0096] A data communication module is used for communication between the system and the burglar alarm.
[0097] According to an embodiment of the vehicle-mounted device heartbeat signal simulation system, a simulated signal corresponding to the heartbeat signal required by the anti-theft alarm is edited on the data input module, and the edited simulated signal is sent to the data conversion module through the inter-module communication network. After receiving the simulated signal, the data conversion module uses its own conversion program to convert the simulated signal into a protocol code that can be recognized by the data generation module. After generating the protocol code, the protocol code is sent to the data generation module through the communication network. After receiving the protocol code, the data generation module parses the protocol code through its own preset decoding program. The data generation module generates simulated heartbeat waveform data according to the parsing result of the protocol code, and sends the simulated heartbeat waveform data to the data output module through the communication network. After receiving the simulated heartbeat waveform data sent by the data generation module, the data output module controls the output of the simulated heartbeat waveform data through a preset output program algorithm. Finally, the waveform data processed by the program algorithm is sent to the anti-theft alarm through the data passage module, thereby realizing the storage of simulated heartbeat waveform data in the anti-theft alarm.
[0098] Example 3
[0099] A storage medium stores a vehicle-mounted device heartbeat signal simulation program, which, when executed by a processor, implements a vehicle-mounted device heartbeat signal simulation method as described in Example 1.
[0100] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention.
[0101] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.
[0102] Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The reference to "embodiment" herein means that a specific feature, structure, or characteristic described in connection with an embodiment can be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily indicate the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0103] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A method for simulating heartbeat signals in vehicle-mounted equipment, comprising a vital signal generator and a host computer, characterized in that, The method includes, The life signal generator communicates with the host computer through a protocol conversion device; The user edits the corresponding analog signal on the host computer according to the heartbeat signal required by the burglar alarm. The host computer generates a protocol code based on the analog signal and sends the protocol code to the life signal generator; The life signal generator receives and parses the protocol code, and saves the generated waveform data after parsing in the life signal generator; The life signal generator and the anti-theft alarm are communicatively connected to the vehicle controller. The life signal generator reads the waveform data and outputs the waveform data to the anti-theft alarm according to a preset program algorithm.
2. The method for simulating heartbeat signals in vehicle-mounted equipment according to claim 1, characterized in that, In the protocol code generated by the host computer based on the analog signal, the protocol code is: T1#Dt1G0* T2#Dt2G1* T3#Dt3G0* T4#Dt4G1*…… Tn-1#Dtn-1G0* Tn#DtnG1* Where T1#Dt1G0* indicates that the first segment is t1us low level, T2#Dt2G1* indicates that the second segment is t2us high level, T3#Dt3G0* indicates that the third segment is t3us low level, T4#Dt4G1* indicates that the fourth segment is t4us high level, Tn-1#Dtn-1G0* indicates that the (n-1)th segment is tn-1us low level, Tn#DtnG1* indicates that the nth segment is tnus high level, Tn is high level when the segment is even number, and low level when the segment is odd number, and n is a natural number greater than 1.
3. The method for simulating heartbeat signals in vehicle-mounted equipment according to claim 1, characterized in that, The protocol is as follows: T1#Dt1G1* T2#Dt2G0* T3#Dt3G1* T4#Dt4G0*…… Tn-1#Dtn-1G1* Tn#DtnG0* Where T1#Dt1G1* indicates that the first segment is t1us high level, T2#Dt2G0* indicates that the second segment is t2us low level, T3#Dt3G1* indicates that the third segment is t3us high level, T4#Dt4G0* indicates that the fourth segment is t4us low level, Tn-1#Dtn-1G1* indicates that the (n-1)th segment is tn-1us high level, Tn#DtnG0* indicates that the nth segment is tnus low level, Tn is low level when the segment is even number, and high level when the segment is odd number, and n is a natural number greater than 1.
4. The method for simulating heartbeat signals in vehicle-mounted equipment according to claim 1, characterized in that, The life signal generator reads the waveform data and outputs the waveform data to the burglar alarm according to the program algorithm, specifically, After the life signal generator is connected to the burglar alarm, it performs power-on initialization of the controller I / O port and timer. The life signal generator reads waveform data stored in its internal memory and controls the output of the waveform according to the program algorithm based on the waveform data.
5. The method for simulating heartbeat signals in vehicle-mounted equipment according to claim 4, characterized in that, The specific algorithm described is as follows: S1: Determine whether the timer value is less than T1. If the timer value is less than T1, output the level of that time period through the controller IO port. If the timer value is greater than T1, proceed to step S2. S2: Determine whether the timer value is less than T1 + T2. If the timer value is less than T1 + T2, output the level of that time period through the controller IO port. If the timer value is greater than T1 + T2, proceed to step S3. … … Sn-1: Determine whether the timer value is less than T1 + T2 + ... + Tn-1. If the timer value is less than T1 + T2 + ... + Tn-1, output the level of this time period through the controller IO port. If the timer value is greater than T1 + T2 + ... + Tn-1, proceed to step Sn. Sn: If the timer value is less than T1 + T2 + ... + Tn-1 + Tn, then the level of that time period is output through the controller I / O port; If the timer value is greater than T1 + T2 + ... + Tn-1 + Tn, then the timer value is cleared and the process returns to step S1. Where Tn represents the nth waveform segment in the waveform image.
6. The method for simulating heartbeat signals in vehicle-mounted equipment according to claim 1, characterized in that, The method further includes, after the life signal generator reads the waveform data and outputs the waveform data to the anti-theft alarm according to the program algorithm, the life signal generator then collects the connection signal of the vehicle controller.
7. The method for simulating heartbeat signals in vehicle-mounted equipment according to claim 1, characterized in that, The host computer may be a computer, tablet computer, or mobile phone.
8. The method for simulating heartbeat signals in vehicle-mounted equipment according to claim 1, characterized in that, The protocol conversion device includes a local interconnection network box and a controller local area network box.
9. A vehicle-mounted equipment heartbeat signal simulation system, characterized in that, The system is applied to the heartbeat signal simulation method for in-vehicle equipment as described in any one of claims 1-8, and the system comprises: The data input module is used to edit the analog signal corresponding to the heartbeat signal required by the burglar alarm, and send the analog signal to the data processing module; The data conversion module is used to receive the analog signal sent by the data input module and convert the analog signal into a protocol code that can be recognized by the data generation module through an internal program. The data generation module is used to receive the protocol code sent by the data conversion module, parse the protocol code according to the decoding program, generate simulated heartbeat waveform data, and send the simulated heartbeat waveform data to the data output module; The data output module is used to receive the simulated heartbeat waveform data sent by the data generation module and output the simulated heartbeat waveform data to the burglar alarm. A data communication module is used for communication between the system and the burglar alarm.
10. A storage medium, characterized in that, The storage medium stores a vehicle-mounted device heartbeat signal simulation program, which, when executed by a processor, implements a vehicle-mounted device heartbeat signal simulation method as described in any one of claims 1-8.
Citation Information
Patent Citations
Recognition device and recognition method of automobile door lock state
CN107187419A
On-board diagnostics device and system, and detection method and readable storage medium
US20220317671A1
