Signal processing method, device, electronic equipment and vehicle

By grouping and identifying CAN signals in the Internet of Vehicles, the transmission and storage of signals are optimized, the problem of resource waste caused by fixed signal settings is solved, and bandwidth and traffic savings are achieved.

CN118250170BActive Publication Date: 2024-08-23GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410663542.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-23
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

In the existing Internet of Vehicles technology, the fixed setting method of CAN signals causes all signals to be sent at high frequency, resulting in a waste of data transmission bandwidth and traffic, as well as a waste of cloud data storage resources.

Method used

By obtaining the signal number and data length of the abnormal event to be triggered, the data storage space identified by the controller LAN is grouped, and a preset space is allocated in the grouped data storage space for adding event identification. When the data sending channel is detected to be idle and When there is a target abnormal event, obtain the event ID and controller LAN ID of the target abnormal event to optimize signal sending and storage.

Benefits of technology

It realizes not collecting unnecessary signals when they are not needed, and avoids high-frequency collection of necessary signals, saving the bandwidth and traffic of data transmission, and at the same time saving data storage resources in the cloud.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118250170B
    Figure CN118250170B
Patent Text Reader

Abstract

The present invention provides a signal processing method, device, electronic device and vehicle, including: obtaining the number of signals of abnormal events to be triggered and the data length of each signal; grouping the data storage space of the controller local area network identifier according to a preset size to obtain multiple grouped data storage spaces; based on the number of signals of the abnormal events to be triggered and the data length of each signal, allocating grouped data storage space for the signal of the abnormal event to be triggered and adding an event identifier to it; in the case where it is detected that the data transmission channel is idle and there is a target abnormal event that has been triggered, obtaining the event identifier and controller local area network identifier of the target abnormal event; obtaining the data signal of the target abnormal event through the event identifier and controller local area network identifier of the target abnormal event, and controlling the data signal of the target abnormal event to occupy the data transmission channel in an idle state. The embodiment of the present invention greatly saves the bandwidth and flow of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle networking, and in particular to a signal processing method, device, electronic equipment and vehicle. Background Art

[0002] At present, the Internet of Vehicles technology is developing rapidly, and a large number of signals need to be collected, stored, processed and distributed in real time in the Internet of Vehicles. In current technology, the position of the signal on the CAN (Controller Area Network) ID is fixed, such as Figure 1 As shown, CAN ID 1, CAN ID 2 and CAN ID 3 are set, and signals numbered 1, 2, ... at fixed positions are respectively set in CAN ID 1, CAN ID 2 and CAN ID 3.

[0003] Through the above settings, the TBOX (Telematics BOX, in-vehicle intelligent terminal) of the Internet of Vehicles only needs to determine the CAN ID and the position of the signal on the CAN ID to obtain the corresponding signal. However, this fixed setting method requires that each signal on the CAN ID be sent at a high frequency to ensure that the Internet of Vehicles obtains the required signal. The collection of unnecessary signals leads to a waste of data transmission bandwidth and traffic, and a waste of cloud data storage resources. Summary of the invention

[0004] In view of this, the present invention aims to propose a signal processing method, device, electronic device and vehicle to solve the problem that the current fixed setting method of CAN signal requires that each signal on the controller local area network identifier be sent at a high frequency to ensure that the Internet of Vehicles obtains the required signals therefrom, wherein the collection of unnecessary signals leads to a waste of data transmission bandwidth and traffic, and a waste of data storage resources in the cloud.

[0005] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0006] A first aspect of an embodiment of the present application provides a signal processing method, the method comprising:

[0007] Obtain the number of signals of abnormal events to be triggered and the data length of each signal;

[0008] Grouping the data storage space identified by the controller area network according to a preset size to obtain a plurality of grouped data storage spaces;

[0009] Based on the number of signals of the abnormal event to be triggered and the data length of each signal, a packet data storage space is allocated for the signal of the abnormal event to be triggered, wherein a preset space is allocated in the packet data storage space for adding an event identifier of the abnormal event to be triggered;

[0010] When it is detected that the data transmission channel is idle and a target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event;

[0011] The data signal of the target abnormal event is acquired through the event identifier of the target abnormal event and the controller area network identifier, and the data signal of the target abnormal event is controlled to occupy a data sending channel in an idle state.

[0012] Optionally, when it is detected that the data transmission channel is idle and a target abnormal event is triggered, before obtaining the event identifier and controller area network identifier of the target abnormal event, the method further includes:

[0013] Determine multiple abnormal events to be triggered through historical data and expert knowledge of the Internet of Vehicles;

[0014] Pre-setting the judgment logic of conditional triggering and the flag bit for marking event triggering for each abnormal event to be triggered;

[0015] In the case where the abnormal event is determined to be triggered by the judgment logic of the condition trigger, controlling the flag bit of the event trigger to be set, wherein the flag bit is used to indicate that the abnormal event has been triggered;

[0016] When it is determined through the judgment logic of the condition trigger that the abnormal event is not triggered, the flag bit controlling the occurrence of the marking event is in a default initial state.

[0017] Optionally, in the case where the abnormal event is determined to be triggered by the judgment logic of the condition trigger, after controlling the flag bit of the mark event trigger to be set, the method further includes:

[0018] Pre-set a priority score for each abnormal event to be triggered;

[0019] Obtaining an event identifier of each abnormal event to be triggered, binding the priority score and the corresponding event identifier of each abnormal event to be triggered, and generating a priority score assignment table;

[0020] When the flag bit of the detected abnormal event is in the default initial state, the target value of the abnormal event is assigned to 0;

[0021] In the case of detecting a first abnormal event with a flag set, obtaining an event identifier of the first abnormal event;

[0022] Searching the priority score assignment table by the event identifier of the first abnormal event to obtain a first priority score bound to the event identifier of the first abnormal event;

[0023] The target value of the first abnormal event is assigned to the first priority score.

[0024] Optionally, when it is detected that the data transmission channel is idle and a target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event includes:

[0025] When it is detected that the data transmission channel is idle, obtaining the number of the first abnormal events and the first priority score assigned to the first abnormal event;

[0026] When it is determined that the number of the first abnormal events is equal to 1, determining that the first abnormal event is a target abnormal event, and acquiring an event identifier and a controller area network identifier of the target abnormal event;

[0027] When it is determined that the number of the first abnormal events is greater than 1, sorting the first priority scores in descending order;

[0028] Determine the priority order of the first abnormal event according to the sorting result;

[0029] The first abnormal event with the highest priority is selected from the priority order as the target abnormal event, and an event identifier and a controller area network identifier of the target abnormal event are obtained.

[0030] Optionally, when it is detected that the data transmission channel is idle and a target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event includes:

[0031] When it is detected that a target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event;

[0032] Sending the event identifier and the controller area network identifier of the target abnormal event to a downstream preemption arbitration module;

[0033] When it is detected that the data transmission channel is idle, the preemption arbitration module is controlled to work.

[0034] Optionally, after acquiring the data signal of the target abnormal event through the event identifier of the target abnormal event and the controller local area network identifier, and controlling the data signal of the target abnormal event to occupy the data transmission channel in an idle state, the method further comprises:

[0035] Controlling the preemption arbitration module to stop working;

[0036] When it is detected that the data signal transmission of the target abnormal event is completed and the data transmission channel is restored to idle, determining whether there are other abnormal events that have been triggered;

[0037] If it exists, the preemption arbitration module is controlled to continue working.

[0038] Optionally, after allocating grouped data storage space for the signal of the abnormal event to be triggered based on the number of signals of the abnormal event to be triggered and the data length of each signal, the method further includes:

[0039] Obtaining collection time information of the second abnormal event signal sent by the Internet of Vehicles;

[0040] Acquire a plurality of target group data storage spaces allocated for the second abnormal event signal;

[0041] If the collection time information includes multiple collection times, the second abnormal event signals in the multiple target packet data storage spaces are controlled to be sent the same number of times according to the number of collection times.

[0042] A second aspect of an embodiment of the present application provides a signal processing device, the device comprising:

[0043] A first acquisition module is used to acquire the number of signals of abnormal events to be triggered and the data length of each signal;

[0044] A second acquisition module is used to group the data storage space identified by the controller local area network according to a preset size to obtain a plurality of grouped data storage spaces;

[0045] A first allocation module, configured to allocate a packet data storage space for the signal of the abnormal event to be triggered based on the number of signals of the abnormal event to be triggered and the data length of each signal, wherein a preset space is allocated in the packet data storage space for adding an event identifier of the abnormal event to be triggered;

[0046] A third acquisition module is used to acquire an event identifier and a controller area network identifier of the target abnormal event when it is detected that the data transmission channel is idle and a target abnormal event has been triggered;

[0047] The first control module is used to obtain the data signal of the target abnormal event through the event identifier of the target abnormal event and the controller local area network identifier, and control the data signal of the target abnormal event to occupy the data sending channel in an idle state.

[0048] A third aspect of an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0049] Memory, used to store computer programs;

[0050] The processor is used to perform any of the above-mentioned signal processing methods when executing the program stored in the memory.

[0051] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the signal processing method described in the first aspect of the present application are implemented.

[0052] A fifth aspect of an embodiment of the present application provides a vehicle, comprising: the above-mentioned signal processing device.

[0053] Compared with the prior art, the signal processing method, device, electronic device and vehicle of the present invention have the following advantages:

[0054] The present invention provides a signal processing method, device, electronic equipment and vehicle, including: obtaining the number of signals of abnormal events to be triggered and the data length of each signal; grouping the data storage space of a controller area network identifier according to a preset size to obtain multiple grouped data storage spaces; based on the number of signals of the abnormal events to be triggered and the data length of each signal, allocating grouped data storage spaces for the signals of the abnormal events to be triggered, wherein a preset space is allocated in the grouped data storage space for adding event identifiers of the abnormal events to be triggered; that is, by grouping the storage space in the controller area network identifier and storing the abnormal events in the groups, the purpose of data transmission of multiple events can be achieved with a small amount of CAN transmission resources, and when it is detected that the data transmission channel is idle and a target abnormal event has been triggered, the event identifier of the target abnormal event and the controller area network identifier are obtained; through the event identifier of the target abnormal event and the controller area network The data signal of the target abnormal event is obtained by identifying and controlling the data signal of the target abnormal event to occupy the data sending channel in an idle state. At this time, it is not necessary for all the signals of the abnormal events to be sent in a high-frequency manner. It is only necessary to obtain the signal of the corresponding abnormal event through the event identifier and the controller LAN identifier, so that the Internet of Vehicles can collect the required signal, which not only avoids the collection of unnecessary signals, but also avoids the high-frequency collection of necessary signals, greatly saves the bandwidth and flow of data transmission, and also saves data storage resources in the cloud. The embodiment of the present invention realizes a small amount of CAN sending resources by grouping in the controller LAN identifier and setting the event identifier in the group, realizes the data transmission of multiple events, and can collect the required data at the required time, which not only avoids the collection of unnecessary signals, but also avoids the high-frequency collection of necessary signals, greatly saves the bandwidth and flow of data transmission, and also saves data storage resources in the cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0056] Figure 1 It is a schematic diagram of the location arrangement of the signals required by the Internet of Vehicles on the controller area network;

[0057] Figure 2 is a flowchart of a signal processing method according to an exemplary embodiment;

[0058] Figure 3 is based on Figure 2 An exemplary embodiment shown is a schematic diagram of signal arrangement of an abnormal event in a controller area network in a signal processing method;

[0059] Figure 4 yes Figure 2 An exemplary embodiment shown is a schematic diagram of abnormal event flag determination in a signal processing method;

[0060] Figure 5 yes Figure 2 An exemplary embodiment shown is a schematic diagram of judging a preemption arbitration module in a signal processing method;

[0061] Figure 6 is a flowchart of another signal processing method according to an exemplary embodiment;

[0062] Figure 7 yes Figure 6 A schematic diagram of a signal grouping period rotation in another signal processing method according to an exemplary embodiment is shown;

[0063] Figure 8 is a block diagram of a signal processing device according to an exemplary embodiment;

[0064] Fig. 9 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0065] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention. Although the accompanying drawings show exemplary embodiments of the present application, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0066] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0067] The signal processing method, device, electronic device and vehicle provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0068] Reference Figure 2 , Figure 2 is a flowchart of a signal processing method according to an exemplary embodiment:

[0069] Step 101, obtaining the number of signals of abnormal events to be triggered and the data length of each signal.

[0070] In the embodiment of the present invention, the Internet of Vehicles collects and sends a large number of signals with low sampling frequency requirements to the cloud for the limited CAN network resources, bandwidth resources and cloud data storage resources, wherein the data transmission channel not only sends normal data but also transmits and reports the data of abnormal events. In the prior art, the signals in the CAN are fixedly set, and each signal needs to be sent at a high frequency so that the Internet of Vehicles can collect the corresponding signal when an abnormal event occurs. However, this method wastes the bandwidth and flow of data transmission. Therefore, in the embodiment of the present invention, the signals are grouped based on abnormal events, and the signal is collected after the abnormal event occurs, thereby saving resources. In order to realize the grouping of signals based on abnormal events, it is necessary to first obtain the number of signals of the abnormal event to be triggered and the data length of each signal, so as to facilitate the subsequent determination of the total data storage space occupied by the signal of each abnormal event based on this information.

[0071] Step 102: group the data storage spaces identified by the controller area network according to preset sizes to obtain a plurality of grouped data storage spaces.

[0072] In order to use a small amount of CAN transmission resources to realize data transmission of multiple events in the embodiment of the present invention, the data storage space identified by the controller area network will be grouped according to the preset size to obtain multiple grouped data storage spaces, so that when subsequent abnormal events are stored according to the grouped data storage space, for abnormal events that occupy a small space, a data storage space identified by a controller area network can store multiple abnormal events. The preset size here can be set according to a frame of CANFD (data length 64 bytes per group), or it can be set in other ways, and the embodiment of the present invention does not make specific restrictions here.

[0073] Step 103, based on the number of signals of the abnormal event to be triggered and the data length of each signal, a packet data storage space is allocated for the signal of the abnormal event to be triggered, wherein a preset space is allocated in the packet data storage space for adding an event identifier of the abnormal event to be triggered.

[0074] In the embodiment of the present invention, the total data storage space occupied by the signal of the abnormal event to be triggered is determined by the number of signals of the abnormal event to be triggered and the data length of each signal, and then a grouping space greater than or equal to the above-mentioned total data storage space is selected from the grouping data storage space, and the grouping data storage space is allocated to the signal of the abnormal event to be triggered. Among them, because the data storage space of a controller local area network identifier can store multiple abnormal events, in order to normally identify the abnormal event later, a preset space is also allocated in the grouping data storage space for adding the event identifier of the abnormal event to be triggered. For example, Figure 3As shown, different abnormal events are stored in the controller area network identifier-1, and the signal arrangement of each abnormal event is different. Therefore, it is necessary to confirm the event data in the current sending channel by adding the event identifier ID at the beginning position byte 1 in the controller area network identifier-1. For example, when the event representation ID is 1, the data of abnormal event 1 is sent, and the signal arrangement starting from byte 2 is all data signals belonging to abnormal event 1. Among them, the event identifier ID can be placed at any position of the controller area network identifier, as long as in the process of data parsing, by judging the event identifier ID, the signal parsing can be performed according to the parsing rules of the event response.

[0075] It should be noted that, in addition to allocating occupied data storage space for the abnormal event to be triggered, the embodiment of the present invention also sets a flag bit. Because the abnormal event does not occur all the time, the signal of the abnormal event does not exist all the time. Only after the abnormal event is triggered will the corresponding signal be filled in the pre-allocated space to facilitate subsequent collection and transmission. This requires the triggering of the abnormal event to be determined. The embodiment of the present invention is to set a conditional trigger judgment logic and a flag bit for marking event triggering for each abnormal event to be triggered, wherein the conditional trigger judgment logic is used to determine whether the abnormal event is triggered, and the flag bit for marking event triggering is used to be set at the moment when the abnormal event triggering is detected, marking the triggering of this abnormal event. It should be noted that before the abnormal event to be triggered is not triggered, the corresponding flag bit for marking event triggering will be set to the default initial state, specifically including:

[0076] Determine multiple abnormal events to be triggered through historical data and expert knowledge of the Internet of Vehicles;

[0077] Pre-set the judgment logic of conditional triggering and the flag bit for marking event triggering for each abnormal event to be triggered;

[0078] When the abnormal event is determined to be triggered by the judgment logic of the conditional trigger, the flag bit of the event trigger is controlled to be set, wherein the flag bit is used to indicate that the abnormal event has been triggered;

[0079] When it is determined through the judgment logic of the conditional trigger that the abnormal event is not triggered, the flag bit that controls the occurrence of the marking event is in a default initial state.

[0080] The above sets the judgment logic of conditional triggering and the flag bit of marking event triggering for each abnormal event to be triggered, so the flag bit identification corresponding to each abnormal event to be triggered is one-to-one corresponding. For example, Figure 4As shown, the flag bit set for abnormal event 1 is Flag1, the flag bit set for abnormal event 2 is Flag2, and the flag bit set for abnormal event n is Flagn. When it is determined that abnormal event 1 meets the trigger condition, Flag1 is set. If it is determined that the data of abnormal event 1 has been sent, Flag1 will be controlled to restore to the initial state. Correspondingly, abnormal event 2 and abnormal event n also determine the state change of the flag bit in the same way as abnormal event 1.

[0081] Furthermore, because there are multiple abnormal events, and the occurrence of abnormal events is uncontrolled, multiple abnormal events may occur at the same time, but the data transmission channel can only transmit the data of one event at a time, and ensure the integrity of the transmitted data at one time, then it is necessary to determine the priority of event transmission, so that the data of events with high priority are transmitted first. Based on the above reasons, the embodiment of the present invention predefines the priority of each abnormal event, that is, assigns a numerical value to each abnormal event, where the larger the numerical value, the higher the priority, or the smaller the numerical value, the higher the priority. The present invention does not make specific limitations here. Then, when determining the position of the flag of the abnormal event, the predefined target value is assigned as the priority value of the abnormal event; when the flag of the abnormal event is not set, the target value is assigned to 0, where the target value can be identified by Value, specifically including:

[0082] Pre-set a priority score for each abnormal event to be triggered;

[0083] Obtaining the event identifier of each abnormal event to be triggered, binding the priority score and the corresponding event identifier of each abnormal event to be triggered, and generating a priority score assignment table;

[0084] When the flag bit of the detected abnormal event is in the default initial state, the target value of the abnormal event is assigned to 0;

[0085] In the case of detecting a first abnormal event with a flag set, obtaining an event identifier of the first abnormal event;

[0086] Searching the priority score assignment table through the event identifier of the first abnormal event to obtain a first priority score bound to the event identifier of the first abnormal event;

[0087] The target value of the first abnormal event is assigned to a first priority score.

[0088] Step 104 : when it is detected that the data transmission channel is idle and a target abnormal event has been triggered, an event identifier and a controller area network identifier of the target abnormal event are obtained.

[0089] In the embodiment of the present invention, when the data transmission channel is idle, the preemption arbitration module works, wherein the preemption arbitration module is triggered when it is determined that the abnormal event has been triggered (the flag is set), and at this time, the event identifier of the target abnormal event and the controller local area network identifier are sent to the preemption arbitration module, so as to facilitate the subsequent search for the signal data of the target abnormal event to be transmitted according to the event identifier and the controller local area network identifier, but the flag is set only to trigger the preemption arbitration module and store the information in the preemption arbitration module. Only when the data transmission channel is idle, the preemption arbitration module storing the event identifier of the target abnormal event and the controller local area network identifier starts to work and preempts the data transmission channel, specifically including:

[0090] When it is detected that the target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event;

[0091] Sending the event identifier and the controller area network identifier of the target abnormal event to the downstream preemption arbitration module;

[0092] When it is detected that the data transmission channel is idle, the preemption arbitration module is controlled to work.

[0093] It should be noted that, since the data transmission channel can only allow the data of one event to be transmitted at a time, and the integrity of the transmitted data is guaranteed at a time, it is necessary to determine the priority of the event transmission so that the data of the event with a high priority is transmitted first. Therefore, after the preemption arbitration module preempts the data transmission channel, it is also necessary to first determine the number of abnormal events existing in the preemption arbitration module. If there is only one, it is not necessary to determine the priority, and directly obtain the event identifier and controller local area network identifier of this abnormal event so that this abnormal event preempts the data transmission channel. If there is more than one, it is necessary to determine the priority, select the abnormal event with the highest priority as the target abnormal event to be transmitted, and obtain the event identifier and controller local area network identifier of the target abnormal event. The specific implementation steps include:

[0094] When it is detected that the data transmission channel is idle, the number of first abnormal events and the first priority score assigned to the first abnormal event are obtained;

[0095] When it is determined that the number of the first abnormal events is equal to 1, determining the first abnormal event as a target abnormal event, and acquiring an event identifier and a controller area network identifier of the target abnormal event;

[0096] When it is determined that the number of the first abnormal events is greater than 1, the first priority scores are sorted in descending order;

[0097] Determine the priority order of the first abnormal event according to the sorting result;

[0098] A first abnormal event with the highest priority is selected from the priority sequence as a target abnormal event, and an event identifier and a controller area network identifier of the target abnormal event are obtained.

[0099] When the data transmission channel is idle, the preemptive arbitration module works. If the number of the first abnormal event is greater than 1, the maximum value needs to be judged (the rule set at this time is that the larger the value, the higher the priority). For example, Figure 5 As shown, the data transmission channel is idle and abnormal events 1, 2, and n all trigger the preemption arbitration module. At this time, the preemption arbitration module determines the target value 1, 2, and n, and gives the current idle channel resources to the event with the highest priority in the current abnormal event triggering.

[0100] Step 105 , obtaining a data signal of the target abnormal event through the event identifier of the target abnormal event and the controller area network identifier, and controlling the data signal of the target abnormal event to occupy the data transmission channel in an idle state.

[0101] After obtaining the event identifier and the controller local area network identifier of the target abnormal event in the embodiment of the present invention, the data signal of the corresponding target abnormal event can be found according to this information, and then the information is transmitted through the data transmission channel. When the data transmission channel starts to send data, the preemption arbitration module is controlled to stop working, so as to ensure the integrity of the transmitted data and also ensure that the abnormal event currently occupying the data transmission channel completes the data transmission. After the data transmission channel is idle again, the preemption arbitration module will continue to work. The specific steps include:

[0102] Control the preemption arbitration module to stop working;

[0103] When it is detected that the data signal transmission of the target abnormal event is completed and the data transmission channel is restored to idle, determining whether there are other abnormal events that have been triggered;

[0104] If it exists, the control preemption arbitration module continues to work.

[0105] The present invention provides a signal processing method, device, electronic equipment and vehicle, including: obtaining the number of signals of abnormal events to be triggered and the data length of each signal; grouping the data storage space of a controller area network identifier according to a preset size to obtain multiple grouped data storage spaces; based on the number of signals of the abnormal events to be triggered and the data length of each signal, allocating grouped data storage spaces for the signals of the abnormal events to be triggered, wherein a preset space is allocated in the grouped data storage space for adding event identifiers of the abnormal events to be triggered; that is, by grouping the storage space in the controller area network identifier and storing the abnormal events in the groups, the purpose of data transmission of multiple events can be achieved with a small amount of CAN transmission resources, and when it is detected that the data transmission channel is idle and a target abnormal event has been triggered, the event identifier of the target abnormal event and the controller area network identifier are obtained; through the event identifier of the target abnormal event and the controller area network The data signal of the target abnormal event is obtained by identifying and controlling the data signal of the target abnormal event to occupy the data sending channel in an idle state. At this time, it is not necessary for all the signals of the abnormal events to be sent in a high-frequency manner. It is only necessary to obtain the signal of the corresponding abnormal event through the event identifier and the controller LAN identifier, so that the Internet of Vehicles can collect the required signal, which not only avoids the collection of unnecessary signals, but also avoids the high-frequency collection of necessary signals, greatly saves the bandwidth and flow of data transmission, and also saves data storage resources in the cloud. The embodiment of the present invention realizes a small amount of CAN sending resources by grouping in the controller LAN identifier and setting the event identifier in the group, realizes the data transmission of multiple events, and can collect the required data at the required time, which not only avoids the collection of unnecessary signals, but also avoids the high-frequency collection of necessary signals, greatly saves the bandwidth and flow of data transmission, and also saves data storage resources in the cloud.

[0106] Reference Figure 6 , Figure 6 is a flowchart of another signal processing method according to an exemplary embodiment:

[0107] Step 201, obtaining the number of signals of abnormal events to be triggered and the data length of each signal.

[0108] Step 202: group the data storage spaces identified by the controller area network according to preset sizes to obtain a plurality of grouped data storage spaces.

[0109] Step 203, based on the number of signals of the abnormal event to be triggered and the data length of each signal, a packet data storage space is allocated for the signal of the abnormal event to be triggered, wherein a preset space is allocated in the packet data storage space for adding an event identifier of the abnormal event to be triggered.

[0110] The above steps 201 to 203 refer to the discussion of the above steps 101 to 103 respectively, and the present invention will not elaborate on them here.

[0111] Step 204: Acquire collection time information of the second abnormal event signal sent by the Internet of Vehicles.

[0112] In the embodiment of the present invention, the vehicle network may collect the second abnormal event signal at multiple times. Therefore, it is necessary to obtain the collection time information for the second abnormal event signal, so as to determine the number of times the second abnormal event signal is sent according to the collection time information. Usually, one collection time corresponds to one collection of the second abnormal event signal.

[0113] Step 205: Acquire a plurality of target grouped data storage spaces allocated for the second abnormal event signal.

[0114] In an embodiment of the present invention, the data storage space of the controller local area network identifier is grouped according to a preset size, and then the abnormal event signal is stored in these groups. Therefore, some abnormal events may occupy multiple groups, and the collection of abnormal event signals must ensure integrity, so it is necessary to obtain all target group data storage spaces allocated for the second abnormal event signal, and here it can be searched according to the event identifier of the second abnormal event.

[0115] Step 206: If the collection time information includes multiple collection times, control the second abnormal event signals in the multiple target packet data storage spaces to be sent the same number of times according to the number of collection times.

[0116] In the embodiment of the present invention, a plurality of target group data storage spaces allocated for the second abnormal event signal are obtained, and the data are collected in the order of the second abnormal event signal, and then after all the data are collected, the corresponding number of times is collected according to the number of collection times, for example, Figure 7 As shown, the second abnormal event signal occupies 2 groups, namely group 1 and group 2. Each group is provided with a group number and an event number, which is used to identify the parsing rules of the group of signals during data parsing. The acquisition time is 2, and the corresponding second abnormal event signal needs to be collected twice. For the collection of the second abnormal event, the signal of group 1 is collected during the first signal collection; the signal of group 2 is collected during the second signal collection; at this time, the complete signal collection of the second abnormal event is completed, and then the next collection is carried out, that is, the signal of group 1 is collected during the third signal collection; the signal of group 2 is collected during the fourth signal collection. At this time, the complete signal collection of the second abnormal event is completed, and two groups of different signals are sent through a controller local area network identifier. For signals with low acquisition frequency requirements, the maximum utilization is achieved in limited resources.

[0117] Based on the above embodiments, an embodiment of the present invention further provides a signal processing device.

[0118] Reference Figure 8 , Figure 8 is a block diagram of a signal processing device according to an exemplary embodiment, which may specifically include the following modules:

[0119] The first acquisition module 301 is used to acquire the number of signals of abnormal events to be triggered and the data length of each signal.

[0120] The second acquisition module 302 is used to group the data storage space identified by the controller area network according to a preset size to obtain a plurality of grouped data storage spaces.

[0121] The first allocation module 303 is used to allocate grouped data storage space for the signals of the abnormal events to be triggered based on the number of signals of the abnormal events to be triggered and the data length of each signal, wherein a preset space is allocated in the grouped data storage space for adding an event identifier of the abnormal event to be triggered.

[0122] The third acquisition module 304 is used to acquire the event identifier and the controller area network identifier of the target abnormal event when it is detected that the data transmission channel is idle and the target abnormal event has been triggered.

[0123] The first control module 305 is used to obtain the data signal of the target abnormal event through the event identifier of the target abnormal event and the controller area network identifier, and control the data signal of the target abnormal event to occupy the data sending channel in an idle state.

[0124] Optionally, the signal processing device further includes:

[0125] The first determination module is used to determine multiple abnormal events to be triggered through historical data and expert knowledge of the Internet of Vehicles.

[0126] The first setting module is used to pre-set the judgment logic of conditional triggering and the flag bit of marking event triggering for each abnormal event to be triggered.

[0127] The second control module is used to control the flag position of the event trigger when it is determined that the abnormal event is triggered through the judgment logic of the condition trigger, wherein the flag position is used to indicate that the abnormal event has been triggered.

[0128] The third control module is used to control the flag bit of the event occurrence to be in a default initial state when it is determined through the judgment logic of the conditional trigger that the abnormal event is not triggered.

[0129] The second setting module is used to pre-set a priority score for each abnormal event to be triggered.

[0130] The first generating module is used to obtain the event identifier of each abnormal event to be triggered, bind the priority score and the corresponding event identifier of each abnormal event to be triggered, and generate a priority score assignment table.

[0131] The first assignment module is used to assign a target value of the abnormal event to 0 when it is detected that the flag bit of the abnormal event is in a default initial state.

[0132] The fourth acquisition module is used to acquire the event identifier of the first abnormal event when a first abnormal event with a flag bit is detected.

[0133] The fifth acquisition module is used to search the priority score assignment table according to the event identifier of the first abnormal event to obtain the first priority score bound to the event identifier of the first abnormal event.

[0134] The second assignment module is used to assign the target value of the first abnormal event to a first priority score.

[0135] Optionally, the third acquisition module 304 further includes:

[0136] The first acquisition submodule is used to acquire the number of first abnormal events and the first priority score assigned to the first abnormal event when detecting that the data sending channel is idle.

[0137] The second acquisition submodule is used to determine that the first abnormal event is a target abnormal event when it is determined that the number of the first abnormal event is equal to 1, and to acquire an event identifier and a controller area network identifier of the target abnormal event.

[0138] The first sorting submodule is used to sort the first priority scores in descending order when it is determined that the number of the first abnormal events is greater than 1.

[0139] The first determination submodule is used to determine the priority order of the first abnormal event according to the sorting result.

[0140] The third acquisition submodule is used to select a first abnormal event with the highest priority from the priority sequence as a target abnormal event, and acquire an event identifier and a controller area network identifier of the target abnormal event.

[0141] The fourth acquisition submodule is used to acquire the event identifier and the controller area network identifier of the target abnormal event when it is detected that the target abnormal event has been triggered.

[0142] The first sending submodule is used to send the event identifier and the controller area network identifier of the target abnormal event to the downstream preemption arbitration module.

[0143] The first control submodule is used to control the preemption arbitration module to work when it is detected that the data transmission channel is idle.

[0144] Optionally, the signal processing device further includes:

[0145] The fourth control module is used to control the preemption arbitration module to stop working.

[0146] The first judgment module is used to judge whether there are other triggered abnormal events when it is detected that the data signal of the target abnormal event has been sent and the data sending channel has recovered to be idle.

[0147] The fifth control module is used to control the preemption arbitration module to continue working if it exists.

[0148] The sixth acquisition module is used to obtain the collection time information of the second abnormal event signal sent by the Internet of Vehicles.

[0149] The seventh acquisition module is used to acquire multiple target group data storage spaces allocated for the second abnormal event signal.

[0150] The sixth control module is configured to control the second abnormal event signals in the plurality of target packet data storage spaces to be sent the same number of times according to the number of the collection times if the collection time information contains a plurality of collection times.

[0151] The present invention provides a signal processing method, device, electronic equipment and vehicle, including: obtaining the number of signals of abnormal events to be triggered and the data length of each signal; grouping the data storage space of a controller area network identifier according to a preset size to obtain multiple grouped data storage spaces; based on the number of signals of the abnormal events to be triggered and the data length of each signal, allocating grouped data storage spaces for the signals of the abnormal events to be triggered, wherein a preset space is allocated in the grouped data storage space for adding event identifiers of the abnormal events to be triggered; that is, by grouping the storage space in the controller area network identifier and storing the abnormal events in the groups, the purpose of data transmission of multiple events can be achieved with a small amount of CAN transmission resources, and when it is detected that the data transmission channel is idle and a target abnormal event has been triggered, the event identifier of the target abnormal event and the controller area network identifier are obtained; through the event identifier of the target abnormal event and the controller area network The data signal of the target abnormal event is obtained by identifying and controlling the data signal of the target abnormal event to occupy the data sending channel in an idle state. At this time, it is not necessary for all the signals of the abnormal events to be sent in a high-frequency manner. It is only necessary to obtain the signal of the corresponding abnormal event through the event identifier and the controller LAN identifier, so that the Internet of Vehicles can collect the required signal, which not only avoids the collection of unnecessary signals, but also avoids the high-frequency collection of necessary signals, greatly saves the bandwidth and flow of data transmission, and also saves data storage resources in the cloud. The embodiment of the present invention realizes a small amount of CAN sending resources by grouping in the controller LAN identifier and setting the event identifier in the group, realizes the data transmission of multiple events, and can collect the required data at the required time, which not only avoids the collection of unnecessary signals, but also avoids the high-frequency collection of necessary signals, greatly saves the bandwidth and flow of data transmission, and also saves data storage resources in the cloud.

[0152] An embodiment of the present invention further provides an electronic device, Fig. 9 An electric

[0153] The structural block diagram of the sub-device, such as Fig. 9 As shown, it includes a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.

[0154] Memory 403, used for storing computer programs;

[0155] The processor 401 is used to execute the program stored in the memory 403 to implement the following steps:

[0156] Obtain the number of signals of abnormal events to be triggered and the data length of each signal;

[0157] Grouping the data storage space identified by the controller area network according to a preset size to obtain a plurality of grouped data storage spaces;

[0158] Based on the number of signals of the abnormal event to be triggered and the data length of each signal, a packet data storage space is allocated for the signal of the abnormal event to be triggered, wherein a preset space is allocated in the packet data storage space for adding an event identifier of the abnormal event to be triggered;

[0159] When it is detected that the data transmission channel is idle and a target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event;

[0160] The data signal of the target abnormal event is acquired through the event identifier of the target abnormal event and the controller area network identifier, and the data signal of the target abnormal event is controlled to occupy a data sending channel in an idle state.

[0161] Based on the same inventive concept, another embodiment of the present application provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the signal processing method described in any of the above embodiments of the present application.

[0162] Based on the same inventive concept, another embodiment of the present application provides an embodiment of the present invention further providing a vehicle, which may specifically include: the above-mentioned signal processing device.

[0163] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0164] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on

[0165] These are all differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.

[0166] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0167] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0168] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0169] These computer program instructions can also be loaded into a computer or other programmable data processing terminal device

[0170] A sequence of steps is executed on a computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0171] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0172] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0173] The signal processing method, device, electronic device and vehicle provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. The content of this specification should not be understood as a limitation on the present application.

Claims

1. A signal processing method, characterized in that: The method comprises: Obtain the number of signals of abnormal events to be triggered and the data length of each signal; Grouping the data storage space identified by the controller area network according to a preset size to obtain a plurality of grouped data storage spaces; Based on the number of signals of the abnormal event to be triggered and the data length of each signal, a packet data storage space is allocated for the signal of the abnormal event to be triggered, wherein a preset space is allocated in the packet data storage space for adding an event identifier of the abnormal event to be triggered, and the packet data storage space allocated for the signal of the abnormal event is filled only when the abnormal event is triggered; When it is detected that the data transmission channel is idle and a target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event; The data signal of the target abnormal event is acquired through the event identifier of the target abnormal event and the controller area network identifier, and the data signal of the target abnormal event is controlled to occupy a data sending channel in an idle state.

2. The method according to claim 1, characterized in that Before obtaining the event identifier and controller area network identifier of the target abnormal event when it is detected that the data transmission channel is idle and a target abnormal event is triggered, the method further includes: Determine multiple abnormal events to be triggered through historical data and expert knowledge of the Internet of Vehicles; Pre-setting the judgment logic of conditional triggering and the flag bit for marking event triggering for each abnormal event to be triggered; In the case where the abnormal event is determined to be triggered by the judgment logic of the condition trigger, controlling the flag bit of the event trigger to be set, wherein the flag bit is used to indicate that the abnormal event has been triggered; When it is determined through the judgment logic of the condition trigger that the abnormal event is not triggered, the flag bit controlling the occurrence of the marking event is in a default initial state.

3. The method according to claim 2, characterized in that In the case where the abnormal event is determined to be triggered by the judgment logic of the condition trigger, after controlling the position of the flag bit of the marking event trigger, the method further includes: Pre-set a priority score for each abnormal event to be triggered; Obtaining an event identifier of each abnormal event to be triggered, binding the priority score and the corresponding event identifier of each abnormal event to be triggered, and generating a priority score assignment table; When the flag bit of the detected abnormal event is in the default initial state, the target value of the abnormal event is assigned to 0; In the case of detecting a first abnormal event with a flag set, obtaining an event identifier of the first abnormal event; Searching the priority score assignment table by the event identifier of the first abnormal event to obtain a first priority score bound to the event identifier of the first abnormal event; The target value of the first abnormal event is assigned to the first priority score.

4. The method according to claim 3, characterized in that The step of obtaining, when detecting that the data transmission channel is idle and a target abnormal event has been triggered, an event identifier and a controller area network identifier of the target abnormal event comprises: When it is detected that the data transmission channel is idle, obtaining the number of the first abnormal events and the first priority score assigned to the first abnormal event; When it is determined that the number of the first abnormal events is equal to 1, determining that the first abnormal event is a target abnormal event, and acquiring an event identifier and a controller area network identifier of the target abnormal event; When it is determined that the number of the first abnormal events is greater than 1, sorting the first priority scores in descending order; Determine the priority order of the first abnormal event according to the sorting result; The first abnormal event with the highest priority is selected from the priority order as the target abnormal event, and an event identifier and a controller area network identifier of the target abnormal event are obtained.

5. The method according to claim 1, characterized in that The step of obtaining, when detecting that the data transmission channel is idle and a target abnormal event has been triggered, an event identifier and a controller area network identifier of the target abnormal event comprises: When it is detected that a target abnormal event has been triggered, obtaining an event identifier and a controller area network identifier of the target abnormal event; Sending the event identifier and the controller area network identifier of the target abnormal event to a downstream preemption arbitration module; When it is detected that the data transmission channel is idle, the preemption arbitration module is controlled to work.

6. The method according to claim 5, characterized in that After acquiring the data signal of the target abnormal event through the event identifier of the target abnormal event and the controller local area network identifier, and controlling the data signal of the target abnormal event to occupy the data transmission channel in an idle state, the method includes: Controlling the preemption arbitration module to stop working; When it is detected that the data signal transmission of the target abnormal event is completed and the data transmission channel is restored to idle, determining whether there are other abnormal events that have been triggered; If it exists, the preemption arbitration module is controlled to continue working.

7. The method according to claim 1, characterized in that After allocating packet data storage space for the signal of the abnormal event to be triggered based on the number of signals of the abnormal event to be triggered and the data length of each signal, the method further includes: Obtaining collection time information of the second abnormal event signal sent by the Internet of Vehicles; Acquire a plurality of target group data storage spaces allocated for the second abnormal event signal; If the collection time information includes multiple collection times, the second abnormal event signals in the multiple target packet data storage spaces are controlled to be sent the same number of times according to the number of collection times.

8. A signal processing device, characterized in that: The device comprises: A first acquisition module is used to acquire the number of signals of abnormal events to be triggered and the data length of each signal; A second acquisition module is used to group the data storage space identified by the controller local area network according to a preset size to obtain a plurality of grouped data storage spaces; A first allocation module, configured to allocate a packet data storage space for the signal of the abnormal event to be triggered based on the number of signals of the abnormal event to be triggered and the data length of each signal, wherein a preset space is allocated in the packet data storage space for adding an event identifier of the abnormal event to be triggered, and the packet data storage space allocated for the signal of the abnormal event is filled only when the abnormal event is triggered; A third acquisition module is used to acquire an event identifier and a controller area network identifier of the target abnormal event when it is detected that the data transmission channel is idle and a target abnormal event has been triggered; The first control module is used to obtain the data signal of the target abnormal event through the event identifier of the target abnormal event and the controller local area network identifier, and control the data signal of the target abnormal event to occupy the data sending channel in an idle state.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor is used to implement the steps of the signal processing method described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A vehicle, characterized in that: include: The signal processing device as claimed in claim 8.