WO2021197327A1 - Signal processing method and related device - Google Patents
Signal processing method and related device Download PDFInfo
- Publication number
- WO2021197327A1 WO2021197327A1 PCT/CN2021/083988 CN2021083988W WO2021197327A1 WO 2021197327 A1 WO2021197327 A1 WO 2021197327A1 CN 2021083988 W CN2021083988 W CN 2021083988W WO 2021197327 A1 WO2021197327 A1 WO 2021197327A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- rule
- configuration file
- signal
- key
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/44—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Definitions
- the embodiments of the present application relate to the field of computer technology, and in particular, to a signal processing method and related equipment.
- the sensor signals collected in the sensor unit on the vehicle can be processed into a message according to certain rules, and then the message is reported to the server, and the server provides intelligent services for the vehicle based on the message.
- the message may be a message for the state of a car window, and the message may be used to indicate whether the car window is open, or the percentage of open.
- the message includes multiple message parameters, and processing the sensor signal into a message according to certain rules means: determining the parameter value of each message parameter in the message according to the signal value of the sensor signal.
- the process of how to determine the parameter value of each message parameter in the message based on the signal value of the sensor signal is written as a code in a hard-coded manner to obtain the processing function of the message.
- the processing function indicates that when the signal value of sensor signal 1 satisfies condition 1, the signal value of sensor signal 2 satisfies condition 2, the value of the message parameter "percentage" in the message is 50 %, when the signal value of sensor signal 1 satisfies condition 3 and the signal value of sensor signal 2 satisfies condition 4, the value of the message parameter "open or not" in the message is "unopened".
- the message processing function is used to indicate the corresponding parameter value of the message parameter when the signal value of each sensor signal meets different conditions.
- the processing function of the message is acquired from the message processing mapping table.
- the parameter value of each message parameter included in the message can be determined.
- the processing function of each message in the above message processing mapping table needs to be written in a hard-coded manner. If a certain logic in the processing function changes, the code of the processing function of the message needs to be rewritten, which results in a large workload of manual coding.
- the embodiments of the present application provide a signal processing method and related equipment, which can reduce the workload of manual encoding codes in the process of generating messages.
- the technical solution is as follows:
- a signal processing method is provided.
- a signal data packet is obtained, and the signal data packet includes the identifier of the first message and a plurality of signal values, and the plurality of signal values correspond to a plurality of sensor signals; this is based on the rule grammar and the first rule configuration file.
- the multiple signal values are processed to obtain the parameter value of each message parameter in the first message.
- the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to convert the signal values of the multiple sensor signals into the parameters of each message.
- the parameter value is used to indicate how to convert the signal values of the multiple sensor signals into the parameters of each message.
- the parameter value is used to indicate how to convert the signal values of the multiple sensor signals into the parameters of each message.
- the processing function of writing a message is hard-coded, which is equivalent to hard-coding various possible value combinations of the sensor signal, resulting in a high degree of similarity in each part of the code of the written processing function, which in turn leads to the code
- the readability is very poor.
- the embodiment of the present application extends a rule grammar, based on which the generation rules of each message can be standardized in advance to obtain the rule configuration file of the message. That is, the embodiment of the present application only needs to use the rule configuration file to indicate the generation rule of the message, which avoids the need to write the code in a hard-coding manner, thereby eliminating the problem of poor readability of the code in the hard-coding.
- the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar.
- the rule grammar is used to indicate the semantics of each key in the first rule configuration file.
- each key is indicated by the rule grammar, so that the first rule file is used to indicate the generation rule of the first message, which avoids the need to indicate the generation rule of the first message in a hard-coded manner.
- the first rule configuration file includes multiple condition keys corresponding to the first message parameters, and multiple action keys corresponding to the multiple condition keys one-to-one ,
- the first message parameter is one of the message parameters of the first message; the value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, the first condition
- the key is one of the multiple condition keys; the value corresponding to the first action key is used to indicate that when the signal value of the multiple sensor signals meets the condition indicated by the value of the first condition key, the value of the first message parameter Parameter value, the first action key is the action key corresponding to the first condition key.
- each possible parameter value of the message parameter and the condition that the sensor signal corresponding to each possible parameter value needs to meet can be indicated through the above-mentioned action key and condition key.
- the first rule configuration file can indicate the generation rule of the first message, so as to solve the technical problem caused by the hard coding method.
- the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal ,
- the triple includes a logical operator used to indicate a logical operation relationship, an identifier of the first sensor signal, and a reference signal value.
- the conditions that the sensor signal corresponding to each possible parameter value of the message parameter needs to meet can be represented by the above triplet. That is, in the embodiments of the present application, through the definition of the logical operation relationship, it is possible to store the complex generation rules in the rule configuration file in a key-value manner, so as to achieve the technical effects provided by the above-mentioned first aspect.
- a configuration file update request is also received, and the configuration file update request carries the identifier of the first message and the change in the generation rule of the first message Content; obtain the first rule configuration file based on the identifier of the first message; update the first rule configuration file according to the changed content.
- the embodiment of this application indicates the generation rule of the message through the rule configuration file, when the generation rule of a certain message is changed, only the rule configuration file of the message needs to be adaptively modified, and there is no need to regenerate it.
- the entire rule configuration file In this way, it is possible to avoid writing the code of the generation rules by hard coding, which leads to the problem of rewriting all the codes when updating the generation rules.
- the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar.
- the implementation of updating the first rule configuration file according to the changed content may be: according to the changed content, the key to be modified in the first rule configuration file is determined based on the rule syntax; and the key corresponding to the determined key according to the changed content The value is modified.
- rule configuration file Since the rule configuration file is stored in a key-value manner to store the generated rules, only the value of the corresponding key that has changed can be modified without rewriting the entire rule configuration file, which improves the efficiency of updating the rule configuration file.
- the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
- the embodiment of the present application indicates the generation rules of the message through the rule configuration file, even in the process of generating the message, the rule configuration file can still be modified, and the message only needs to be generated based on the modified rule configuration file. In this way, the hot update of the rule configuration file is realized, and the flexibility of the signal processing method provided in the embodiment of the present application is improved.
- the method is applied to a signal processing unit included in a signal processing system, and the signal processing system further includes a microcontroller unit (MCU) and a multiple Multiple sensors with one sensor signal.
- the signal data packet is that the MCU encapsulates the signal values of the multiple sensor signals and then reports them to the signal processing unit.
- the signal processing method provided based on the embodiment of the present application can realize the conversion of vehicle-mounted signals into messages based on the rule configuration file, avoiding the need to write codes through hard coding, thus Eliminates all kinds of technical problems caused by hard-coded generation rules.
- a signal processing device which includes:
- An acquisition module for acquiring a signal data packet includes the identifier of the first message and multiple signal values, and the multiple signal values correspond to multiple sensor signals;
- the processing module is used to process the multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message;
- the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to convert signal values of multiple sensor signals into parameter values of various message parameters.
- the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar.
- the rule grammar is used to indicate the semantics of each key in the first rule configuration file.
- the first rule configuration file includes multiple condition keys corresponding to the first message parameter, and multiple action keys corresponding to the multiple condition keys one-to-one ,
- the first message parameter is one of the message parameters of the first message;
- the value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys;
- the value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal values of the multiple sensor signals meet the condition indicated by the value corresponding to the first condition key.
- the action key corresponding to the key is used to indicate the parameter value of the first message parameter when the signal values of the multiple sensor signals meet the condition indicated by the value corresponding to the first condition key.
- the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal.
- the group includes a logical operator used to indicate a logical operation relationship, an identification of the first sensor signal, and a reference signal value.
- the device further includes:
- the receiving module is configured to receive a configuration file update request, where the configuration file update request carries the identifier of the first message and the changed content in the generation rule of the first message;
- the obtaining module is further configured to obtain the first rule configuration file based on the identifier of the first message
- the device also includes an update module, which is used to update the first rule configuration file according to the changed content.
- the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar.
- the above-mentioned update module is specifically used to: according to the changed content, find the key to be modified in the first rule configuration file based on the rule grammar; and modify the value corresponding to the found key according to the changed content.
- the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
- the device is deployed in a signal processing unit included in a signal processing system, and the signal processing system further includes a micro-control unit MCU and a multiplexer for collecting signals from multiple sensors.
- the signal processing system further includes a micro-control unit MCU and a multiplexer for collecting signals from multiple sensors.
- a sensor; the signal data packet is the MCU encapsulates the signal value of multiple sensor signals and reports it to the signal processing unit.
- the embodiment of the present application also provides a signal processing device.
- the device has the function of realizing the behavior of the signal processing method in the first aspect.
- the signal processing device includes at least one module, and the at least one module is used to implement the signal processing method provided in the above-mentioned first aspect.
- a signal processing device in a third aspect, includes a memory and a processor;
- the memory is used to store computer programs
- the processor is configured to execute a program stored in the memory to execute any method described in the first aspect.
- a chip in a fourth aspect, includes a processor and an interface circuit;
- the interface circuit is used to receive instructions and transmit them to the processor
- the processor is configured to execute any method described in the first aspect.
- a computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute the signal processing method described in the first aspect.
- a computer program product containing instructions which when run on a computer, causes the computer to execute the signal processing method described in the first aspect.
- a signal processing system which includes a signal processing unit, an MCU, and multiple sensors;
- the MCU is used to obtain the signal values of multiple sensor signals, and report signal data packets to the signal processing unit based on the signal values of the multiple sensor signals.
- the signal processing unit is configured to implement the method according to any one of the foregoing first aspects based on the signal data packet.
- FIG. 1 is a schematic diagram of the architecture of a signal processing system provided by an embodiment of the present application
- FIG. 2 is a flowchart of a signal processing method provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of condition keys and action keys in a rule configuration file provided by an embodiment of the present application
- FIG. 4 is a flowchart of another signal processing method provided by an embodiment of the present application.
- FIG. 5 is a flowchart of another signal processing method provided by an embodiment of the present application.
- FIG. 6 is a structural intention of a signal processing device provided by an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of another signal processing device provided by an embodiment of the present application.
- the vehicle needs to collect surrounding environmental information and other data, and report the collected data to the network platform, which will plan the route of the vehicle based on the data.
- the car factory remotely collects or controls the on-board electronic control unit (ECU) signal, it needs to perform the regular conversion processing of the signal value, that is, the signal value of the collected sensor signal is converted into a message according to a certain rule, and then sent to The network platform reports the message so that the network platform can control the vehicle based on the reported message.
- ECU electronice control unit
- the smart terminal (telematics BOX, T-BOX) on the vehicle collects the signal value of each sensor on the vehicle, and it is required to process the message into a message according to the set signal conversion rules, and then report the message to the application center of the car factory. Based on the message, the application center of the car factory performs remote control of the car such as flashing lights and whistle.
- the vehicle-mounted intelligent terminal is mainly used for communication between the vehicle and the Internet of Vehicles service platform.
- the above processing rules for the collected signal values are also the generation rules for messages.
- a sample generation rule of a message is introduced. Table 1 shows the definition of each parameter included in the message.
- the identifier of the message is "VAL_WINDOWFIRSTROWRIGHT_IND", indicating that the message is for the window on the right side of the first row of the vehicle.
- the message includes three message parameters, namely the first message parameter, the second message parameter, and the third message parameter.
- the first message parameter is used to indicate whether the window is installed
- the second message parameter is used to indicate whether the window is open
- the third message parameter is used to indicate the open percentage of the window. Therefore, the first message parameter may also be referred to as a state parameter
- the second message parameter may also be referred to as an open parameter
- the third message parameter may also be referred to as an open percentage parameter.
- the parameter value range of the first message parameter includes three value ranges: valid, invalid, and notsend. Among them, valid is used to indicate that a window is currently installed, invalid is used to indicate that a window is not currently installed, and notsend is used to indicate that the parameter value of the message parameter is not currently sent.
- the parameter value range of the second message parameter includes two values: true and false. Among them, true (yes) is used to indicate that the current window is open. false (no) is used to indicate that it is currently closed.
- the parameter value of the third message parameter ranges from 0 to 100, which are respectively used to indicate the current open ratio of the window. For example, the parameter value of the third message parameter is 50, which indicates that the window is currently opened by 50%.
- the message generation rule refers to a rule for indicating how to determine the parameter value of the message parameter based on the signal value of the sensor signal.
- the following uses the first message parameter in Table 1 as an example to illustrate the generation rule of the message.
- FIG. 1 is a schematic structural diagram of a signal processing system provided by an embodiment of the present application.
- the system 100 includes a microcontroller unit (microcontroller Unit, MCU) 101 and a signal processing unit 102.
- MCU microcontroller Unit
- the MCU 101 and the signal processing unit 102 are connected for communication.
- the aforementioned MCU 101 and signal processing unit 102 may be deployed on a vehicle.
- an in-vehicle signal collection application can also be deployed on the vehicle, so that the signal processing unit can implement the signal processing method provided in the embodiment of the present application through a server corresponding to the in-vehicle signal collection application. That is, the signal processing method provided by the embodiment of the present application can be directly executed by the signal processing unit. In this scenario, the signal processing unit needs to have relatively large data processing capabilities.
- the signal processing method provided in the embodiments of the present application may also be delivered by the signal processing unit to the server corresponding to the vehicle-mounted signal acquisition application for processing, so as to reduce the data processing pressure of the signal processing unit.
- the aforementioned MCU 101 is used to collect signal values of various sensors deployed on the vehicle, and send signal data packets to the signal processing unit 102 in units of messages.
- the MCU 101 sending a signal data packet in a message unit means that the MUC 101 determines the signal value of each sensor signal required to generate a certain message and the identifier of the message together as a data packet, and sends it to the signal processing unit 102.
- the MCU 101 may send the first signal data packet and the second signal data packet to the signal processing unit 102 respectively.
- the first signal data packet includes the identifier of the first message and the signal value of each sensor signal required to generate the first message.
- the second signal data packet includes the identifier of the second message and the signal value of each sensor signal required to generate the second message.
- the first message and the second message can be any two messages.
- the signal processing unit 102 After receiving the signal data packet, the signal processing unit 102 determines the message indicated by the message identifier included in the signal data packet based on the signal value of each sensor signal included in the signal data packet through the signal processing method provided in the embodiment of the present application The parameter value of each message parameter in.
- the signal processing unit 102 After the signal processing unit 102 determines the parameter value of each message parameter in a certain message, it can report the parameter value of each message parameter in the message to the data collection server 103 in FIG. 1.
- the data collection server 103 performs operations such as intelligent control of the vehicle based on the parameter value of each message parameter in the message.
- the foregoing takes the signal processing unit 102 to implement the method provided in the embodiment of the application as an example to illustrate the system architecture of the communication network.
- the method provided in the embodiment of the application can also be directly collected by the vehicle-mounted signal deployed on the vehicle or other terminal. It is used to implement the signal processing method provided in the embodiment of the present application online, which is not specifically limited in the embodiment of the present application.
- the MCU 101 in FIG. 1 can be connected to various sensors deployed on the vehicle through a communication bus, so as to collect the signal value of each sensor.
- the signal processing unit 102 in FIG. 1 is also connected to the communication bus of the vehicle to realize the connection between the MCU 101 and the signal processing unit 102.
- the data collection server 103 may be an independent server or a cluster server, which is not specifically limited in the embodiment of the present application.
- FIG. 1 is only used to illustrate a possible application system of the embodiment of the present application.
- the signal processing method provided in the embodiment of the present application can also be applied to other systems that need to convert sensor signals into messages.
- the embodiment of the present application There is no specific restriction on this.
- FIG. 2 is a flowchart of a signal processing method provided by an embodiment of the present application, and the method is applied to the signal processing unit shown in FIG. 1. As shown in Figure 2, the method includes the following steps:
- Step 201 The signal processing unit obtains a signal data packet, the signal data packet includes an identifier of the first message and a plurality of signal values, and the plurality of signal values correspond to a plurality of sensor signals.
- the signal processing unit can receive signal data packets sent by the MCU. Based on the explanation of the system shown in Figure 1, it can be known that the MCU has processed the collected sensor signals in units of messages in advance. Therefore, the signal data packet received by the information processing server includes the identifier of the message currently to be processed, and determines the The signal value of each sensor signal required by the message.
- the identifier of the first message is "VAL_WINDOWFIRSTROWRIGHT_IND", which indicates that the first message is the message for the window on the right side of the first row of the vehicle shown in Table 1 above.
- the signal data packet includes the signal value of each sensor signal required to determine the parameter value of the three message parameters shown in Table 1.
- the multiple signal values may include the signal values of the seven sensor signals shown in Table 2 to determine the first message parameter in Table 1.
- the generation rules of each message are stored in the form of a rule configuration file in advance.
- the rule configuration file provided in the embodiment of the present application will be explained here first. Taking the first message as an example, the rule configuration files of other messages can refer to the first message. In addition, for ease of description, the rule configuration file of the first message is referred to as the first rule configuration file.
- the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar.
- the generation rule of the first message is used to indicate how to convert the signal values of multiple sensor signals into the parameters of each message parameter in the first message. value.
- the embodiment of the present application extends a rule grammar, and based on the rule grammar, the generation rules of each message can be standardized in advance to obtain the rule configuration file of the message. So that in the subsequent process of generating messages, the rule configuration file can be parsed only based on the rule grammar, so as to determine the parameter value of each message parameter based on the generation rule indicated in the rule file. In this way, even if the message generation rule changes in the future, only the corresponding rule configuration file needs to be changed, and the entire rule configuration file does not need to be recompiled. In this way, it is possible to avoid writing the code of the generation rules by hard coding, which leads to the problem of rewriting all the codes when updating the generation rules.
- the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar.
- the rule grammar is used to indicate the semantics of each key in the first rule configuration file. That is, the first rule configuration file stores the generation rule of the first message by key value. In this way, if the generation rule of the message changes, you only need to change the value of some keys in the corresponding rule configuration file. Yes, there is no need to rewrite the entire rule configuration file.
- the first rule configuration file refers to a file that stores the generation rule of the first message in a key-value manner based on the rule grammar, and the generation rule of the first message is used to indicate how to determine each of the first messages based on the signal values of multiple sensor signals The parameter value of the message parameter. Therefore, in a possible implementation manner, for the first message parameter in the first message, the first rule configuration file includes multiple condition keys corresponding to the first message parameter, and multiple The condition key corresponds to multiple action keys one by one. Wherein, the first message parameter is one of the message parameters of the first message.
- the value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys.
- the value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal values of the multiple sensor signals meet the condition indicated by the value corresponding to the first condition key.
- the first action key is an action key corresponding to the first condition key.
- the first condition key is used to indicate each sensor in the third row of Table 2.
- the first action key corresponding to the first condition key is used to indicate that the parameter value of the first message parameter in the third row of Table 2 is "valid".
- each possible value of the message parameter and the signal of the sensor signal corresponding to each possible value can be known The condition that the value needs to meet.
- the value of the condition key is used to indicate the conditions that each sensor signal needs to meet. Therefore, the value range of the signal value of each sensor signal needs to be stored in the value of the condition key. Therefore, in a possible implementation manner, for the first sensor signal of the plurality of sensor signals, the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal, and the triplet includes For indicating the logical operator of the logical operation relationship, the identification of the first sensor signal, and the reference signal value. The value range of the signal value of the first sensor signal can be indicated through the triplet.
- the foregoing logical operation relations may include various logical operation relations such as equal, greater than, greater than or equal to, less than, less than or equal to.
- the above-mentioned triples can also continue to be represented in the key-value manner, that is, in the embodiment of the present application, the value of the key can continue to be embedded A set of key-value pairs to achieve an accurate description of the message generation rules.
- the above-mentioned triples can also be described in terms of key values.
- the keys included in the triples are the logical operators used to indicate the logical operation relationship, and the values of the keys included in the triples That is, the identification of the first sensor signal and the reference signal value.
- Fig. 3 is a schematic diagram of condition keys and action keys in a rule configuration file provided by an embodiment of the present application.
- the value of the condition key “CONDITION” includes six triples, namely "EQUAL: ⁇ LVA:EPS-Lenkerposition, RVA: 2 ⁇ ” and “GTE: ⁇ LVA:FT-FH-Oe réelle, RVA: 0 ⁇ ", “LTE: ⁇ LVA:FT-FH-Oe réelle, RVA:200 ⁇ ", “GTE: ⁇ LVA:FT-FH-Fang, RVA: 0 ⁇ ”, “LTE: ⁇ LVA:FT- FH-Fang, RVA: 1 ⁇ ”, “EQUAL: ⁇ LVA:FT-FH-normiert, RVA: 1 ⁇ ”.
- EQUAL "GTE”, and “LTE” are three logical operators respectively.
- the three logical operation relationships indicated by these three logical operators are “equal to”, “greater than or equal to”, and “ less than or equal to”.
- the RVA in the above triple is used to indicate that the following information is placed on the right side of the logical operation relationship
- the RVA is used to indicate that the following information is placed on the left side of the logical operation relationship. Therefore, the physical meaning of each of the above-mentioned triples is as follows:
- EQUAL: ⁇ LVA:EPS-Lenkerposition, RVA:2 ⁇ is used to indicate that the signal value of the first sensor signal "EPS-Lenkerposition" is equal to 2;
- GTE: ⁇ LVA:FT-FH-Oetechnisch, RVA: 0 ⁇ is used to indicate that the signal value of the second sensor signal “FT-FH-Oe réelle" is greater than or equal to 0;
- GTE: ⁇ LVA:FT-FH-Fang, RVA: 0 ⁇ is used to indicate that the signal value of the third sensor signal "FT-FH-Fang" is greater than or equal to 0;
- LTE: ⁇ LVA:FT-FH-Fang, RVA: 1 ⁇ is used to indicate that the signal value of the third sensor signal “FT-FH-Fang" is less than or equal to 1;
- the value of the action key "ACTION” corresponding to the condition key “CONDITION” is “state: valid", which is used to indicate when the signal value of each sensor signal meets the conditions indicated by the above six triples,
- the value of the message parameter "state” is "valid".
- the value corresponding to the first condition key may not only include the six triples mentioned above, but also include the keyword "AND” used to indicate the logical relationship between the triples. When it indicates that these six triples need to be satisfied at the same time, the value of the message parameter "state" can take "valid".
- the first condition key may also include a logical operator used to indicate whether each triplet is a logical AND or a logical OR.
- the first condition key may not include a logical operator used to indicate whether each triplet is a logical AND or a logical OR.
- the logical relationship between each triplet may be a pre-default relationship, which is not specifically limited in the embodiment of the present application.
- Table 3 is a semantic description of each key in an extended rule grammar provided by an embodiment of the present application.
- the above is a key-value way to explain how the first rule configuration file indicates the generation rule of the first message.
- the rule configuration file stores the generation rule of the first message in other ways, only the corresponding rule grammar needs to be expanded at this time, and the examples are not described here.
- the rule configuration file for each message is pre-configured.
- the rule configuration file of each message and the identifier of the message may be stored in the message identifier processing mapping table in advance. Therefore, after the signal processing unit receives the signal data packet, it can obtain the rule configuration file corresponding to the first message identification from the message identification processing mapping table based on the identification of the first message in the signal data packet. This process can also be referred to as "MCU message distribution".
- the multiple signal values corresponding to multiple sensor signals in step 201 may mean that multiple signal values correspond to multiple sensor signals one-to-one.
- the number of multiple signal values may also be less than the number of multiple sensor signals.
- one sensor signal may correspond to two or more signal values, which is not specifically limited here.
- Step 202 The signal processing unit processes the multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message.
- the first rule configuration file is a file after the generation rule of the first message is processed based on the extended rule grammar. Therefore, after the signal processing unit obtains the signal data packet, it can be directly based on the rule grammar and the first rule.
- the configuration file processes the multiple signal values to obtain the parameter value of each message in the first message. The parameter value of each message parameter in the first message can be obtained without writing the code for the generation rule of the first message first.
- a rule execution engine may be pre-deployed in the signal processing unit, and the rule execution engine is loaded with the rule grammar.
- the rule grammar is used to interpret the rule configuration file. Therefore, in step 202, the signal processing unit may call the rule execution engine to process the multiple signal values based on the first rule configuration file to obtain the first message The parameter value of each message parameter.
- the rule grammar is loaded into the rule execution engine at this time, indicating that the rule execution engine has learned the semantics of each key defined in the rule grammar.
- the way that the rule execution engine processes these multiple signal values based on the first rule configuration file can be implemented as follows: for a certain condition key for any message parameter in the first rule configuration file, pairing based on the rule syntax Perform semantic analysis on the value of the condition key. For example, perform semantic analysis on the above-mentioned first triplet to obtain a condition "The signal value of the first sensor signal "EPS-Lenkerposition" is equal to 2".
- which sensor signal corresponds to each signal value in the signal data packet in step 210 can be directly formulated in advance through a configuration file, that is, the data structure in the signal data packet is indicated through the configuration file. Therefore, after receiving the signal data packet, the signal processing unit can also analyze the signal data packet based on the configuration file to obtain the multiple signal values, and determine which signal value corresponds to which sensor signal.
- the configuration file method can also avoid increasing the workload of manual coding.
- the signal processing unit After the signal processing unit obtains the parameter value of each message parameter in the first message through step 202, it can send the parameter value of each message parameter in the first message to the data collection server, so that the data collection server can use the information in the first message.
- the parameter value of each message parameter performs operations such as intelligent control of the vehicle.
- the signal processing unit When the signal processing unit reports the parameter value of each message parameter in the first message to the data collection server, it may also send the parameter value of each message parameter in the first message in the form of a message data packet.
- the specific structure of the message data packet can be specified in advance through a configuration file.
- the configuration file can specify which fields in the message data packet correspond to the parameter value of the first message parameter and which fields correspond to the parameter value of the second message parameter. In this way, when the signal processing unit reports the parameter value of each message parameter in the first message to the data collection server, it only needs to generate a message data packet according to the format specified in the configuration file.
- step 201 to step 202 can be further illustrated by the flow shown in FIG. 5.
- the signal processing method provided by the embodiment of the present application may include two aspects, one is the preparation phase and the other is the operation phase.
- the preparation stage mainly includes the following three aspects:
- Step 1 Generate a rule configuration file for each message based on the rule grammar.
- Step 2 Generate a configuration file for the data structure of the signal data packet.
- Step 3 Generate a configuration file for the data structure of the message data packet.
- the operation phase includes the following five aspects:
- Step 1 The MCU reports the signal data packet.
- Step 2 The signal processing unit obtains the first rule configuration file of the first message from the message identification processing mapping table based on the identification of the first message. This step can be called "MCU message distribution”.
- Step 3 The signal processing unit sends each signal value and the first rule configuration file to the rule execution engine through the message processing entry.
- Step 4 The rule execution engine first determines which sensor signals the multiple signal values correspond to, based on the configuration file for the data structure of the signal data packet. Then, the parameter value of each message parameter in the first message is determined based on the first rule configuration file and the signal value of each sensor signal, and finally the message data packet is generated based on the configuration file for the data structure of the message data packet.
- Step 5 The signal processing unit reports the message data packet to the data collection server.
- the signal processing unit can directly determine the parameter value of each message parameter in the message through the rule configuration file.
- the rule configuration file is used to indicate the generation rules of the message. Therefore, if the message generation rule is changed, only the rule configuration file needs to be modified, and there is no need to rewrite the entire rule configuration file.
- the signal processing unit may also receive a configuration file update request, the configuration file update request carrying the identifier of the first message and the changed content in the generation rule of the first message; Identify the first rule configuration file to be acquired; update the rule configuration file according to the aforementioned changes.
- the above-mentioned implementation method of updating the first rule configuration file according to the aforementioned change content may be: according to the change content , Determine the key to be modified in the first rule configuration file based on the rule grammar; modify the value corresponding to the determined key according to the content of the change. In order to facilitate subsequent generation of the first message based on the modified first rule configuration file.
- the first rule configuration file indicates the generation rule of the first message through the key-value method based on the rule grammar, at this time, if the generation rule of the first message changes, then you only need to follow the rules in the generation rule. Modify the corresponding key value without modifying other content in the rule configuration file.
- the content of the change in the generation rule of the first message may mean that the condition that a certain sensor signal needs to meet has changed, or it may mean that the parameter value of a certain message parameter needs to be satisfied.
- the condition of adding a sensor signal to the condition can also refer to the condition of deleting a sensor signal from the condition that the parameter value of a certain message parameter needs to meet. I will not give examples one by one here.
- the above configuration file update request may be received in the process of determining the first message based on the first rule configuration file. That is, in the process of generating the first message, the first rule configuration file can also be updated, and only the rule execution engine needs to load the updated first rule configuration file in time, so as to realize the hottest of the rule configuration file. Revise.
- Fig. 6 is a schematic structural diagram of a signal processing device provided by an embodiment of the present application. As shown in FIG. 6, the device 600 includes:
- the acquiring module 601 is configured to acquire a signal data packet.
- the signal data packet includes the identifier of the first message and multiple signal values, and the multiple signal values correspond to multiple sensor signals.
- step 201 in the embodiment shown in FIG. 2.
- the processing module 602 is configured to process multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message. For a specific implementation manner, reference may be made to step 202 in the embodiment shown in FIG. 2.
- the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to convert the signal value of the multiple sensor signals into the parameter value of each message parameter .
- the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar; the rule grammar is used to indicate the semantics of each key in the first rule configuration file.
- the first rule configuration file includes multiple condition keys corresponding to the first message parameter, and multiple action keys corresponding to the multiple condition keys one-to-one, and the first message parameter is each message parameter of the first message one of;
- the value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys;
- the value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal values of the multiple sensor signals meet the condition indicated by the value corresponding to the first condition key.
- the first action key is the same as the first condition key. Corresponding action key.
- the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal, and the triplet includes a logical operator for indicating a logical operation relationship , The identification of the first sensor signal and the reference signal value.
- the device further includes:
- the receiving module is configured to receive a configuration file update request, where the configuration file update request carries the identifier of the first message and the changed content in the generation rule of the first message;
- the obtaining module is further configured to obtain the first rule configuration file based on the identifier of the first message
- the device also includes an update module, which is used to obtain the first rule configuration file based on the identifier of the first message.
- the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar.
- the update module is used to:
- the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
- the device is deployed on a signal processing unit deployed on a signal processing system.
- the signal processing system also includes a micro-control unit MCU and multiple sensors for collecting multiple sensor signals; the signal data packet is the MCU combining multiple The signal value of the sensor signal is encapsulated and reported to the signal processing unit.
- the embodiment of the present application extends a rule grammar, based on which the generation rules of each message can be standardized in advance to obtain the rule configuration file of the message. So that in the subsequent process of generating messages, the rule configuration file can be parsed only based on the rule grammar, so as to determine the parameter value of each message parameter based on the generation rule indicated in the rule file. In this way, even if the message generation rule changes in the future, only the corresponding rule configuration file needs to be changed, and the entire rule configuration file does not need to be recompiled. In this way, it is possible to avoid writing the code of the generation rules by hard coding, which leads to the problem of rewriting all the codes when updating the generation rules.
- the signal processing device provided in the above embodiment processes signals
- only the division of the above functional modules is used as an example for illustration.
- the above functions can be allocated by different functional modules according to needs, i.e.
- the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
- the signal processing device provided in the foregoing embodiment and the signal processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
- FIG. 7 is a schematic structural diagram of a signal processing device provided by an embodiment of the present application.
- the signal processing device may be deployed on a vehicle.
- the signal processing device may specifically be the signal processing unit shown in FIG. 1 to implement the signal processing method provided in the embodiment of the present application.
- the device 700 includes at least one processor 701, a communication bus 702, a memory 703, and at least one communication interface 704.
- the processor 701 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling program execution of the solution of this application.
- the processor may be used to determine the parameter value of each message parameter in the message through step 201 and step 202 in the embodiment shown in FIG. 2.
- the communication bus 702 may include a path for transferring information between the above-mentioned components.
- the memory 703 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types that can store information and instructions
- the dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only Memory (CD-ROM) or other optical disc storage, optical disc storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disks or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer Any other media, but not limited to this.
- the memory 703 may exist independently, and is connected to the processor 701 through a communication bus 702.
- the memory 703 may also be integrated with the processor 701.
- the memory 703 is used to store program codes for executing the solutions of the present application, and the processor 701 controls the execution.
- the processor 701 is configured to execute program codes stored in the memory 703.
- the program code may include one or more software modules, for example, may include each module shown in FIG. 6.
- Communication interface 704 which uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
- the communication interface can be used to obtain the signal data packet through step 201 in the embodiment shown in FIG. 2, and can also report the parameter value of each message parameter generated in step 202 to the data collection server.
- the apparatus may include multiple processors, for example, the processor 701 and the processor 705 shown in FIG. 7.
- processors can be a single-CPU (single-CPU) processor or a multi-core (multi-CPU) processor.
- the processor here may refer to one or more devices, circuits, and/or processing cores for processing data (for example, computer program instructions).
- the above-mentioned device may be a general-purpose device or a special-purpose device.
- the device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device.
- PDA personal digital assistant
- the embodiment of the present application does not limit the type of the device.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
- the usable medium may be a magnetic medium (for example: floppy disk, hard disk, magnetic tape), optical medium (for example: digital versatile disc (DVD)), or semiconductor medium (for example: solid state disk (SSD)) )Wait.
- the program can be stored in a computer-readable storage medium.
- the storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiments of the present application relate to the technical field of computers. Disclosed are a signal processing method and a related device. The method comprises: acquiring a signal data packet, the signal data packet comprising an identifier of a first message and multiple signal values, and the multiple signal values corresponding to multiple sensor signals; and processing the multiple signal values on the basis of a rule syntax and of a first rule configuration file to obtain parameter values of message parameters in the first message. In other words, the embodiments of the present application expand a rule syntax and allow, on the basis of the rule syntax, standardized processing to be performed in advance with respect to generation rules for messages to produce a rule configuration file for the messages. In other words, the embodiments of the present application indicate the generation rules for the messages simply via the rule configuration file, and obviate the need to compile codes by means of hardcoding, thus eliminating the problem of poor code readability in hardcoding.
Description
本申请实施例要求于2020年3月31日提交的申请号为202010245337.4、发明名称为“信号处理方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请实施例中。The embodiment of this application requires the priority of the Chinese patent application filed on March 31, 2020 with the application number 202010245337.4 and the title of the invention "signal processing method and related equipment", the entire content of which is incorporated into the embodiment of this application by reference .
本申请实施例涉及计算机技术领域,特别涉及一种信号处理方法及相关设备。The embodiments of the present application relate to the field of computer technology, and in particular, to a signal processing method and related equipment.
随着汽车电子化技术的快速发展,可以将车辆上的传感器单元中采集的传感器信号按照一定的规则处理为消息,之后将该消息上报给服务器,由服务器基于该消息为车辆提供智能服务。比如,该消息可以为针对车窗状态的消息,该消息可以用于指示车窗是否打开、或打开的百分比等信息。其中,消息中包括多个消息参数,将传感器信号按照一定的规则处理为消息是指:根据传感器信号的信号值确定消息中每个消息参数的参数值。With the rapid development of automotive electronics technology, the sensor signals collected in the sensor unit on the vehicle can be processed into a message according to certain rules, and then the message is reported to the server, and the server provides intelligent services for the vehicle based on the message. For example, the message may be a message for the state of a car window, and the message may be used to indicate whether the car window is open, or the percentage of open. Among them, the message includes multiple message parameters, and processing the sensor signal into a message according to certain rules means: determining the parameter value of each message parameter in the message according to the signal value of the sensor signal.
相关技术中,对于多个消息中的每个消息,预先将如何基于传感器信号的信号值确定该消息中各个消息参数的参数值的过程通过硬编码方式写成代码,得到该消息的处理函数。比如,对于针对车窗状态的消息,该处理函数中指示了在传感器信号1的信号值满足条件1、传感器信号2的信号值满足条件2时,该消息中消息参数“百分比”的值为50%,在传感器信号1的信号值满足条件3、传感器信号2的信号值满足条件4时,该消息中消息参数“是否打开”的值为“未打开”。也即是,消息的处理函数用于指示在各个传感器信号的信号值满足不同条件时消息参数相应的参数值。将消息和消息的处理函数存储在消息处理映射表中。当获取到针对某个消息的多个传感器信号的信号值时,从该消息处理映射表中获取该消息的处理函数。基于获取的处理函数对多个传感器信号的信号值进行处理,即可确定该消息中包括的各个消息参数的参数值。In the related art, for each of the multiple messages, the process of how to determine the parameter value of each message parameter in the message based on the signal value of the sensor signal is written as a code in a hard-coded manner to obtain the processing function of the message. For example, for a message for the state of a car window, the processing function indicates that when the signal value of sensor signal 1 satisfies condition 1, the signal value of sensor signal 2 satisfies condition 2, the value of the message parameter "percentage" in the message is 50 %, when the signal value of sensor signal 1 satisfies condition 3 and the signal value of sensor signal 2 satisfies condition 4, the value of the message parameter "open or not" in the message is "unopened". That is, the message processing function is used to indicate the corresponding parameter value of the message parameter when the signal value of each sensor signal meets different conditions. Store messages and message processing functions in the message processing mapping table. When the signal values of multiple sensor signals for a certain message are acquired, the processing function of the message is acquired from the message processing mapping table. By processing the signal values of multiple sensor signals based on the acquired processing function, the parameter value of each message parameter included in the message can be determined.
上述消息处理映射表中每个消息的处理函数均需通过硬编码方式写成。如果处理函数中的某个逻辑发生变化,则需重新编写该消息的处理函数的代码,导致人工编写代码的工作量较大。The processing function of each message in the above message processing mapping table needs to be written in a hard-coded manner. If a certain logic in the processing function changes, the code of the processing function of the message needs to be rewritten, which results in a large workload of manual coding.
发明内容Summary of the invention
本申请实施例提供了一种信号处理方法及相关设备,可以减少在生成消息过程的人工编码代码的工作量。所述技术方案如下:The embodiments of the present application provide a signal processing method and related equipment, which can reduce the workload of manual encoding codes in the process of generating messages. The technical solution is as follows:
第一方面,提供了一种信号处理方法。在该方法中,获取信号数据包,该信号数据包中包括第一消息的标识以及多个信号值,这多个信号值与多个传感器信号对应;基于规则语法和第一规则配置文件对这多个信号值进行处理,得到第一消息中各个消息参数的参数值。In the first aspect, a signal processing method is provided. In this method, a signal data packet is obtained, and the signal data packet includes the identifier of the first message and a plurality of signal values, and the plurality of signal values correspond to a plurality of sensor signals; this is based on the rule grammar and the first rule configuration file. The multiple signal values are processed to obtain the parameter value of each message parameter in the first message.
其中,第一规则配置文件是指基于该规则语法来指示第一消息的生成规则的文件,第一消息的生成规则用于指示如何将这多个传感器信号的信号值转换为这各个消息参数的参数值。 基于第一规则配置文件的设置,本申请实施例提供的技术方案至少具有如下技术效果:Among them, the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to convert the signal values of the multiple sensor signals into the parameters of each message. The parameter value. Based on the setting of the first rule configuration file, the technical solution provided by the embodiment of the present application has at least the following technical effects:
(1)传统技术中通过硬编码发生编写消息的处理函数,相当于对传感器信号各种可能的取值组合进行硬编码,导致编写的处理函数的代码中各个部分相似度很高,进而导致代码可读性很差。而本申请实施例扩展一种规则语法,基于该规则语法可以预先对各个消息的生成规则进行标准化处理,得到消息的规则配置文件。也即是,本申请实施例只需通过规则配置文件即可指示消息的生成规则,避免了需要通过硬编码方式编写代码,从而也就消除了硬编码中的代码可读性差的问题。(1) In traditional technology, the processing function of writing a message is hard-coded, which is equivalent to hard-coding various possible value combinations of the sensor signal, resulting in a high degree of similarity in each part of the code of the written processing function, which in turn leads to the code The readability is very poor. The embodiment of the present application extends a rule grammar, based on which the generation rules of each message can be standardized in advance to obtain the rule configuration file of the message. That is, the embodiment of the present application only needs to use the rule configuration file to indicate the generation rule of the message, which avoids the need to write the code in a hard-coding manner, thereby eliminating the problem of poor readability of the code in the hard-coding.
(2)传统技术中通过硬编码方式编写的消息的处理函数一旦发布,将不接收消息的生成规则发生变更。如果消息的生成规则发生变更,则需重新编写处理函数,重新发布。但是在本申请实施例中,由于是通过规则配置文件来指示消息的生成规则的,因此,当某个消息的生成规则发生变化时,仅需对该消息的规则配置文件进行适应性修改即可,无需重新生成整个规则配置文件。如此便可避免通过硬编码方式编写生成规则的代码,从而导致在更新生成规则时需要重新编写全部代码的问题。(2) Once the message processing function written by hard coding in the traditional technology is released, the generation rule of the message will not be changed. If the message generation rules are changed, the processing function needs to be rewritten and republished. However, in the embodiment of the present application, since the message generation rule is indicated by the rule configuration file, when the generation rule of a certain message changes, only the rule configuration file of the message needs to be adaptively modified. , There is no need to regenerate the entire rule configuration file. In this way, it is possible to avoid writing the code of the generation rules by hard coding, which leads to the problem of rewriting all the codes when updating the generation rules.
(3)针对传统技术中的硬编码方式编写各个消息的处理函数,由于目前各个车厂的车载信号数据采集并没有统一的车规要求,每个车厂的信号处理规则也存在差异,因此针对各个车厂采集的信号的消息的生成规则的代码的可复用性也比较差。这样导致针对不同的车厂需要维护不同的消息的生成规则代码,加大了消息的生成规则的代码的维护成本。但是,在本申请实施例中提供统一的规则语法,只需基于统一的规则语法即可完成规则配置文件到生成规则的转换,从而可以满足车厂数据采集差异化诉求。因此,不同的车厂均可以在车辆在加载本申请实施例提供的信号处理方法的相关模块,以实现信号处理,如此便可实现多个厂商数据采集功能共享复用,从而降低产品软件实现难度和工作量。(3) Compile the processing function of each message according to the hard-coded method in the traditional technology. Because there is no unified vehicle regulation requirement for the on-board signal data collection of each car factory, the signal processing rules of each car factory are also different, so it is targeted for each car factory. The reusability of the code of the generated rules for the message of the collected signal is also relatively poor. This leads to the need to maintain different message generation rule codes for different depots, which increases the maintenance cost of the message generation rule codes. However, in the embodiment of the present application, a unified rule grammar is provided, and the conversion of the rule configuration file to the generation rule can be completed only based on the unified rule grammar, so as to meet the differentiated demands of the vehicle factory for data collection. Therefore, different car manufacturers can load the relevant modules of the signal processing method provided in the embodiments of the application on the vehicle to realize signal processing. In this way, data collection functions of multiple manufacturers can be shared and reused, thereby reducing the difficulty and difficulty of product software implementation. Workload.
基于第一方面提供的方法,在一种可能的实现方式中,第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则的。这种场景下,该规则语法用于指示第一规则配置文件中各个键的语义。Based on the method provided in the first aspect, in a possible implementation manner, the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar. In this scenario, the rule grammar is used to indicate the semantics of each key in the first rule configuration file.
通过规则语法来指示各个键的定义,以实现通过第一规则文件来指示第一消息的生成规则,避免了需要通过硬编码的方式来指示第一消息的生成规则。The definition of each key is indicated by the rule grammar, so that the first rule file is used to indicate the generation rule of the first message, which avoids the need to indicate the generation rule of the first message in a hard-coded manner.
基于第一方面提供的方法,在一种可能的实现方式中,第一规则配置文件包括与第一消息参数对应的多个条件键,以及与这多个条件键一一对应的多个动作键,第一消息参数为第一消息的各个消息参数的一个;这多个条件键中的第一条件键对应的值用于指示这多个传感器信号的信号值需要满足的一个条件,第一条件键为这多个条件键中的一个;第一动作键对应的值用于指示在这多个传感器信号的信号值满足、第一条件键对应的值所指示的条件时,第一消息参数的参数值,第一动作键为与第一条件键对应的动作键。Based on the method provided in the first aspect, in a possible implementation manner, the first rule configuration file includes multiple condition keys corresponding to the first message parameters, and multiple action keys corresponding to the multiple condition keys one-to-one , The first message parameter is one of the message parameters of the first message; the value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, the first condition The key is one of the multiple condition keys; the value corresponding to the first action key is used to indicate that when the signal value of the multiple sensor signals meets the condition indicated by the value of the first condition key, the value of the first message parameter Parameter value, the first action key is the action key corresponding to the first condition key.
对于第一消息中的任一消息参数,均可以通过上述动作键和条件键的方式来指示该消息参数的各个可能的参数值,以及每个可能的参数值对应的传感器信号需要满足的条件。从而实现第一规则配置文件能够指示第一消息的生成规则,以解决硬编码方式带来的技术问题。For any message parameter in the first message, each possible parameter value of the message parameter and the condition that the sensor signal corresponding to each possible parameter value needs to meet can be indicated through the above-mentioned action key and condition key. Thereby, it is realized that the first rule configuration file can indicate the generation rule of the first message, so as to solve the technical problem caused by the hard coding method.
基于第一方面提供的方法,在一种可能的实现方式中,对于该多个传感器信号中的第一传感器信号,该第一条件键对应的值包括与该第一传感器信号对应的三元组,该三元组包括用于指示逻辑运算关系的逻辑运算符、该第一传感器信号的标识以及参考信号值。Based on the method provided in the first aspect, in a possible implementation manner, for the first sensor signal of the plurality of sensor signals, the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal , The triple includes a logical operator used to indicate a logical operation relationship, an identifier of the first sensor signal, and a reference signal value.
由于对应任一消息参数,该消息参数每个可能的参数值对应的传感器信号需要满足的条 件可以通过上述三元组来表示。也即是,在本申请实施例中,通过对逻辑运算关系的定义,可以实现将复杂的生成规则通过键值方式存储在规则配置文件中,以实现上述第一方面提供的技术效果。Since it corresponds to any message parameter, the conditions that the sensor signal corresponding to each possible parameter value of the message parameter needs to meet can be represented by the above triplet. That is, in the embodiments of the present application, through the definition of the logical operation relationship, it is possible to store the complex generation rules in the rule configuration file in a key-value manner, so as to achieve the technical effects provided by the above-mentioned first aspect.
基于第一方面提供的方法,在一种可能的实现方式中,在该方法中,还接收配置文件更新请求,该配置文件更新请求携带第一消息的标识和第一消息的生成规则中的变动内容;基于第一消息的标识获取第一规则配置文件;根据该变动内容更新第一规则配置文件。Based on the method provided in the first aspect, in a possible implementation manner, in the method, a configuration file update request is also received, and the configuration file update request carries the identifier of the first message and the change in the generation rule of the first message Content; obtain the first rule configuration file based on the identifier of the first message; update the first rule configuration file according to the changed content.
由于本申请实施例是通过规则配置文件来指示消息的生成规则的,因此,当某个消息的生成规则发生变化时,仅需对该消息的规则配置文件进行适应性修改即可,无需重新生成整个规则配置文件。如此便可避免通过硬编码方式编写生成规则的代码,从而导致在更新生成规则时需要重新编写全部代码的问题。Since the embodiment of this application indicates the generation rule of the message through the rule configuration file, when the generation rule of a certain message is changed, only the rule configuration file of the message needs to be adaptively modified, and there is no need to regenerate it. The entire rule configuration file. In this way, it is possible to avoid writing the code of the generation rules by hard coding, which leads to the problem of rewriting all the codes when updating the generation rules.
基于第一方面提供的方法,在一种可能的实现方式中,第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则的。这种场景下,根据该变动内容更新第一规则配置文件的实现方式可以为:根据该变动内容,基于规则语法确定第一规则配置文件待修改的键;根据该变动内容对确定的键对应的值进行修改。Based on the method provided in the first aspect, in a possible implementation manner, the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar. In this scenario, the implementation of updating the first rule configuration file according to the changed content may be: according to the changed content, the key to be modified in the first rule configuration file is determined based on the rule syntax; and the key corresponding to the determined key according to the changed content The value is modified.
由于规则配置文件是以键值方式存储来存储生成规则的,因此只需对发生变化的相应的键的值进行修改即可,无需重新编写整个规则配置文件,提高了更新规则配置文件的效率。Since the rule configuration file is stored in a key-value manner to store the generated rules, only the value of the corresponding key that has changed can be modified without rewriting the entire rule configuration file, which improves the efficiency of updating the rule configuration file.
基于第一方面提供的方法,在一种可能的实现方式中,该配置文件更新请求为在基于该第一规则配置文件确定该第一消息的过程中接收到的。Based on the method provided in the first aspect, in a possible implementation manner, the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
由于本申请实施例是通过规则配置文件来指示消息的生成规则的,因此,即使在生成消息的过程中,仍然可以对规则配置文件进行修改,只需基于修改后的规则配置文件生成消息即可,从而实现对规则配置文件的热更新,提高了本申请实施例提供的信号处理方法的灵活性。Since the embodiment of the present application indicates the generation rules of the message through the rule configuration file, even in the process of generating the message, the rule configuration file can still be modified, and the message only needs to be generated based on the modified rule configuration file. In this way, the hot update of the rule configuration file is realized, and the flexibility of the signal processing method provided in the embodiment of the present application is improved.
基于第一方面提供的方法,在一种可能的实现方式中,该方法应用于信号处理系统包括的信号处理单元,该信号处理系统还包括微控制单元(microcontroller Unit,MCU)和用于采集多个传感器信号的多个传感器。这种场景下,信号数据包是MCU将这多个传感器信号的信号值封装后上报至信号处理单元。Based on the method provided in the first aspect, in a possible implementation manner, the method is applied to a signal processing unit included in a signal processing system, and the signal processing system further includes a microcontroller unit (MCU) and a multiple Multiple sensors with one sensor signal. In this scenario, the signal data packet is that the MCU encapsulates the signal values of the multiple sensor signals and then reports them to the signal processing unit.
当上述信号处理系统为车辆为上信号处理系统时,基于本申请实施例提供的信号处理方法可以基于规则配置文件实现将车载信号转换为消息,避免了需要通过硬编码方式编写代码,从而也就消除了硬编码编写生成规则带来的各种技术问题。When the above-mentioned signal processing system is a vehicle-mounted signal processing system, the signal processing method provided based on the embodiment of the present application can realize the conversion of vehicle-mounted signals into messages based on the rule configuration file, avoiding the need to write codes through hard coding, thus Eliminates all kinds of technical problems caused by hard-coded generation rules.
第二方面,提供了一种信号处理装置,该装置包括:In a second aspect, a signal processing device is provided, which includes:
获取模块,用于获取信号数据包,信号数据包中包括第一消息的标识以及多个信号值,这多个信号值与多个传感器信号对应;An acquisition module for acquiring a signal data packet, the signal data packet includes the identifier of the first message and multiple signal values, and the multiple signal values correspond to multiple sensor signals;
处理模块,用于基于规则语法和第一规则配置文件对这多个信号值进行处理,得到第一消息中各个消息参数的参数值;The processing module is used to process the multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message;
其中,第一规则配置文件是指基于规则语法来指示第一消息的生成规则的文件,第一消息的生成规则用于指示如何将多个传感器信号的信号值转换为各个消息参数的参数值。The first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to convert signal values of multiple sensor signals into parameter values of various message parameters.
基于第二方面提供的装置,在一种可能的实现方式中,第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则的。这种场景下,该规则语法用于指示第一规则 配置文件中各个键的语义。Based on the device provided in the second aspect, in a possible implementation manner, the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar. In this scenario, the rule grammar is used to indicate the semantics of each key in the first rule configuration file.
基于第二方面提供的装置,在一种可能的实现方式中,第一规则配置文件包括与第一消息参数对应的多个条件键,以及与这多个条件键一一对应的多个动作键,第一消息参数为第一消息的各个消息参数的一个;Based on the device provided in the second aspect, in a possible implementation manner, the first rule configuration file includes multiple condition keys corresponding to the first message parameter, and multiple action keys corresponding to the multiple condition keys one-to-one , The first message parameter is one of the message parameters of the first message;
这多个条件键中的第一条件键对应的值用于指示多个传感器信号的信号值需要满足的一个条件,第一条件键为多个条件键中的一个;The value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys;
第一动作键对应的值用于指示在这多个传感器信号的信号值满足第一条件键对应的值所指示的条件时,第一消息参数的参数值,第一动作键为与第一条件键对应的动作键。The value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal values of the multiple sensor signals meet the condition indicated by the value corresponding to the first condition key. The action key corresponding to the key.
基于第二方面提供的装置,在一种可能的实现方式中,对于多个传感器信号中的第一传感器信号,第一条件键对应的值包括与第一传感器信号对应的三元组,三元组包括用于指示逻辑运算关系的逻辑运算符、第一传感器信号的标识以及参考信号值。Based on the device provided by the second aspect, in a possible implementation manner, for the first sensor signal among the plurality of sensor signals, the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal. The group includes a logical operator used to indicate a logical operation relationship, an identification of the first sensor signal, and a reference signal value.
基于第二方面提供的装置,在一种可能的实现方式中,装置还包括:Based on the device provided in the second aspect, in a possible implementation manner, the device further includes:
接收模块,用于接收配置文件更新请求,该配置文件更新请求携带第一消息的标识和第一消息的生成规则中的变动内容;The receiving module is configured to receive a configuration file update request, where the configuration file update request carries the identifier of the first message and the changed content in the generation rule of the first message;
获取模块,还用于基于第一消息的标识获取第一规则配置文件;The obtaining module is further configured to obtain the first rule configuration file based on the identifier of the first message;
装置还包括更新模块,用于根据变动内容更新第一规则配置文件。The device also includes an update module, which is used to update the first rule configuration file according to the changed content.
基于第二方面提供的装置,在一种可能的实现方式中,第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则的。这种场景下,上述更新模块具体用于:根据变动内容,基于规则语法查找第一规则配置文件待修改的键;根据变动内容对查找到的键对应的值进行修改。Based on the device provided in the second aspect, in a possible implementation manner, the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar. In this scenario, the above-mentioned update module is specifically used to: according to the changed content, find the key to be modified in the first rule configuration file based on the rule grammar; and modify the value corresponding to the found key according to the changed content.
基于第二方面提供的装置,在一种可能的实现方式中,配置文件更新请求为在基于第一规则配置文件确定第一消息的过程中接收到的。Based on the device provided in the second aspect, in a possible implementation manner, the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
基于第二方面提供的装置,在一种可能的实现方式中,该装置部署在信号处理系统包括的信号处理单元,该信号处理系统还包括微控制单元MCU和用于采集多个传感器信号的多个传感器;信号数据包是MCU将多个传感器信号的信号值封装后上报至信号处理单元。Based on the device provided in the second aspect, in a possible implementation manner, the device is deployed in a signal processing unit included in a signal processing system, and the signal processing system further includes a micro-control unit MCU and a multiplexer for collecting signals from multiple sensors. A sensor; the signal data packet is the MCU encapsulates the signal value of multiple sensor signals and reports it to the signal processing unit.
也即是,本申请实施例还提供了一种信号处理装置。该装置具有实现上述第一方面中的信号处理方法行为的功能。信号处理装置包括至少一个模块,该至少一个模块用于实现上述第一方面所提供的信号处理方法。That is, the embodiment of the present application also provides a signal processing device. The device has the function of realizing the behavior of the signal processing method in the first aspect. The signal processing device includes at least one module, and the at least one module is used to implement the signal processing method provided in the above-mentioned first aspect.
第三方面,提供了一种信号处理装置,该控制节点包括存储器和处理器;In a third aspect, a signal processing device is provided, and the control node includes a memory and a processor;
该存储器用于存储计算机程序;The memory is used to store computer programs;
该处理器用于执行该存储器中存储的程序以执行上述第一方面所述的任一方法。The processor is configured to execute a program stored in the memory to execute any method described in the first aspect.
第四方面,提供了一种芯片,该芯片包括处理器和接口电路;In a fourth aspect, a chip is provided, and the chip includes a processor and an interface circuit;
该接口电路用于接收指令并传输至处理器;The interface circuit is used to receive instructions and transmit them to the processor;
该处理器用于执行上述第一方面所述的任一方法。The processor is configured to execute any method described in the first aspect.
第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的信号处理方法。In a fifth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute the signal processing method described in the first aspect.
第六方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的信号处理方法。In a sixth aspect, a computer program product containing instructions is provided, which when run on a computer, causes the computer to execute the signal processing method described in the first aspect.
第七方面,提供了一种信号处理系统,该信号处理系统包括信号处理单元、MCU和多个传感器;In a seventh aspect, a signal processing system is provided, which includes a signal processing unit, an MCU, and multiple sensors;
这多个传感器用于分别采集多个传感器信号。该MCU用于获取多个传感器信号的信号值,并基于这多个传感器信号的信号值向信号处理单元上报信号数据包。该信号处理单元用于基于该信号数据包实现上述第一方面中任一项所述的方法。These multiple sensors are used to collect multiple sensor signals respectively. The MCU is used to obtain the signal values of multiple sensor signals, and report signal data packets to the signal processing unit based on the signal values of the multiple sensor signals. The signal processing unit is configured to implement the method according to any one of the foregoing first aspects based on the signal data packet.
上述第二方面、第三方面、第四方面、第五方面、第六方面以及第七方面所获得的技术效果与第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the second, third, fourth, fifth, sixth, and seventh aspects described above are similar to those obtained by the corresponding technical means in the first aspect, and will not be repeated here.
图1是本申请实施例提供的一种信号处理系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a signal processing system provided by an embodiment of the present application;
图2是本申请实施例提供的一种信号处理方法流程图;FIG. 2 is a flowchart of a signal processing method provided by an embodiment of the present application;
图3是本申请实施例提供的一种规则配置文件中条件键和动作键的示意图;FIG. 3 is a schematic diagram of condition keys and action keys in a rule configuration file provided by an embodiment of the present application;
图4是本申请实施例提供另一种信号处理方法流程图;FIG. 4 is a flowchart of another signal processing method provided by an embodiment of the present application;
图5是本申请实施例提供另一种信号处理方法流程图;FIG. 5 is a flowchart of another signal processing method provided by an embodiment of the present application;
图6是本申请实施例提供一种信号处理装置的结构意图;FIG. 6 is a structural intention of a signal processing device provided by an embodiment of the present application;
图7是本申请实施例提供的另一种信号处理装置的结构示意图。FIG. 7 is a schematic structural diagram of another signal processing device provided by an embodiment of the present application.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following further describes the embodiments of the present application in detail with reference to the accompanying drawings.
在对本申请实施例提供的信号处理方法进行解释说明之前,先对本申请实施例涉及的应用场景进行介绍。Before explaining the signal processing method provided in the embodiments of the present application, the application scenarios involved in the embodiments of the present application will be introduced first.
随着汽车电子化进程的快速发展,目前车辆功能、厂家服务的实现越来越依赖网络平台。比如,在自动驾驶场景中,车辆需要采集周围的环境信息等数据,并将采集的数据上报给网络平台,由网络平台基于这些数据对车辆的路线等进行规划。其中,车厂远程采集或者控制车载电子控制单元(electronic control unit,ECU)信号时需要进行信号值的规则转换处理,也即是将采集的传感器信号的信号值按照一定的规则转换为消息,然后向网络平台上报该消息,以使网络平台可以基于上报的消息对车辆进行控制。例如通过车辆上的智能终端(telematics BOX,T-BOX)采集车辆上的各个传感器的信号值,要求按照设定的信号转换规则处理为消息后,将消息上报车厂应用中心。车厂应用中心基于该消息对汽车进行诸如闪灯、鸣笛等远程控制。其中,车载智能终端主要用于车与车联网服务平台之间通信。With the rapid development of automotive electronics, the current realization of vehicle functions and manufacturer services is increasingly dependent on network platforms. For example, in an autonomous driving scenario, the vehicle needs to collect surrounding environmental information and other data, and report the collected data to the network platform, which will plan the route of the vehicle based on the data. Among them, when the car factory remotely collects or controls the on-board electronic control unit (ECU) signal, it needs to perform the regular conversion processing of the signal value, that is, the signal value of the collected sensor signal is converted into a message according to a certain rule, and then sent to The network platform reports the message so that the network platform can control the vehicle based on the reported message. For example, the smart terminal (telematics BOX, T-BOX) on the vehicle collects the signal value of each sensor on the vehicle, and it is required to process the message into a message according to the set signal conversion rules, and then report the message to the application center of the car factory. Based on the message, the application center of the car factory performs remote control of the car such as flashing lights and whistle. Among them, the vehicle-mounted intelligent terminal is mainly used for communication between the vehicle and the Internet of Vehicles service platform.
上述对采集的信号值的处理规则,也即是消息的生成规则。当前针对消息的生成规则没有统一的车规要求,每个车厂实现都可能不一样。为便于后续方案阐述,介绍一个消息的生 成规则样例,该消息包括的各个参数定义如表1所示。The above processing rules for the collected signal values are also the generation rules for messages. Currently, there is no uniform vehicle regulation requirement for the message generation rules, and each vehicle manufacturer may implement it differently. In order to facilitate the subsequent program elaboration, a sample generation rule of a message is introduced. Table 1 shows the definition of each parameter included in the message.
如表1所示,该消息的标识为“VAL_WINDOWFIRSTROWRIGHT_IND”,表明该消息是针对车辆第一排右侧窗户的消息。该消息包括三个消息参数,分别为第一消息参数、第二消息参数和第三消息参数。其中,第一消息参数用于指示是否安装了窗户、第二消息参数用于指示窗户是否打开了、第三消息参数用于指示窗户的打开百分比。因此,第一消息参数还可以称为状态(state)参数,第二消息参数还以称为打开(open)参数,第三消息参数还可以称为打开百分比(open percent)参数。As shown in Table 1, the identifier of the message is "VAL_WINDOWFIRSTROWRIGHT_IND", indicating that the message is for the window on the right side of the first row of the vehicle. The message includes three message parameters, namely the first message parameter, the second message parameter, and the third message parameter. Among them, the first message parameter is used to indicate whether the window is installed, the second message parameter is used to indicate whether the window is open, and the third message parameter is used to indicate the open percentage of the window. Therefore, the first message parameter may also be referred to as a state parameter, the second message parameter may also be referred to as an open parameter, and the third message parameter may also be referred to as an open percentage parameter.
表1Table 1
如表1所示,第一消息参数的参数值的取值范围包括三个,分别为:valid、invalid、notsend。其中,valid(有效)用于指示当前安装有窗口,invalid(无效)用于指示当前没有安装窗户,notsend(不发送)用于指示当前不发送该消息参数的参数值。第二消息参数的参数值的取值范围包括两个,分别为:true、false。其中,true(是)用于指示当前窗户处于打开状态。false(否)用于指示当前处于关闭状态。第三消息参数的参数值的取值范围在0到100,分别用于指示当前窗户的打开比例。比如,第三消息参数的参数值为50,则表明当前该窗户打开了50%。As shown in Table 1, the parameter value range of the first message parameter includes three value ranges: valid, invalid, and notsend. Among them, valid is used to indicate that a window is currently installed, invalid is used to indicate that a window is not currently installed, and notsend is used to indicate that the parameter value of the message parameter is not currently sent. The parameter value range of the second message parameter includes two values: true and false. Among them, true (yes) is used to indicate that the current window is open. false (no) is used to indicate that it is currently closed. The parameter value of the third message parameter ranges from 0 to 100, which are respectively used to indicate the current open ratio of the window. For example, the parameter value of the third message parameter is 50, which indicates that the window is currently opened by 50%.
在本申请实施例中,消息的生成规则是指用于指示如何基于传感器信号的信号值来确定消息参数的参数值的规则。下面以上述表1中的第一消息参数举例说明该消息的生成规则。In the embodiment of the present application, the message generation rule refers to a rule for indicating how to determine the parameter value of the message parameter based on the signal value of the sensor signal. The following uses the first message parameter in Table 1 as an example to illustrate the generation rule of the message.
表2Table 2
以上述表2中第三行为例说明如何根据传感器信号的信号值,确定第一消息参数的参数值。如第三行所示,当第一传感器信号的信号值为2、第二传感器信号的信号值处于有效区间[0,200]之内,第三传感器信号的信号值处于有效区间[0,1]之内,第四传感器信号的信号值为1,第五传感器信号、第六传感器信号、第七传感器信号的信号值不管取什么值(表2中的DC用于指示不管该传感器信号取和值),该第一消息参数的参数值均为valid。表2中第四行至第八行中每一行对应第一消息参数的一个参数值,以及各个传感器信号的信号值需满足的条件,在此就不再一一解释说明。Take the third line in Table 2 above as an example to illustrate how to determine the parameter value of the first message parameter according to the signal value of the sensor signal. As shown in the third row, when the signal value of the first sensor signal is 2, the signal value of the second sensor signal is within the valid interval [0,200], and the signal value of the third sensor signal is within the valid interval [0,1] Inside, the signal value of the fourth sensor signal is 1, and the signal value of the fifth sensor signal, the sixth sensor signal, and the seventh sensor signal does not matter what value it takes (DC in Table 2 is used to indicate whether the sensor signal takes the sum value) , The parameter values of the first message parameter are all valid. Each row in the fourth row to the eighth row in Table 2 corresponds to a parameter value of the first message parameter and the conditions to be met by the signal value of each sensor signal, which will not be explained one by one here.
通过上述表1和表2,当获取到各个传感器的信号值,便可确定出消息中的各个消息参数的参数值,进而将该消息中各个消息参数的参数值进行上报。本申请实施例提供的信号处理方法就应用于上述基于传感器信号的信号值确定消息中各个消息参数的参数值的场景中。这些场景不限于基于车载的传感器信号确定消息的场景,也包括其他任意需要基于传感器信号确定消息的场景。Through the above Table 1 and Table 2, when the signal value of each sensor is obtained, the parameter value of each message parameter in the message can be determined, and then the parameter value of each message parameter in the message can be reported. The signal processing method provided by the embodiment of the present application is applied to the above-mentioned scenario in which the parameter value of each message parameter in the message is determined based on the signal value of the sensor signal. These scenarios are not limited to scenarios where messages are determined based on sensor signals on the vehicle, but also include any other scenarios where messages need to be determined based on sensor signals.
图1是本申请实施例提供的一种信号处理系统的架构示意图。如图1所示,该系统100包括微控制单元(microcontroller Unit,MCU)101和信号处理单元102。MCU 101和信号处理单元102之间连接以进行通信。FIG. 1 is a schematic structural diagram of a signal processing system provided by an embodiment of the present application. As shown in FIG. 1, the system 100 includes a microcontroller unit (microcontroller Unit, MCU) 101 and a signal processing unit 102. The MCU 101 and the signal processing unit 102 are connected for communication.
上述MCU 101和信号处理单元102可以部署在车辆上。此外,车辆上还可以部署车载信号采集应用,如此信号处理单元便可通过车载信号采集应用对应的服务器来实现本申请实施例提供的信号处理方法。也即是,本申请实施例提供的信号处理方法可以由信号处理单元直接执行,这种场景下,需要信号处理单元具有比较大的数据处理能力。本申请实施例提供的信号处理方法也可以由信号处理单元交付至车载信号采集应用对应的服务器来处理,以减轻信号处理单元的数据处理压力。The aforementioned MCU 101 and signal processing unit 102 may be deployed on a vehicle. In addition, an in-vehicle signal collection application can also be deployed on the vehicle, so that the signal processing unit can implement the signal processing method provided in the embodiment of the present application through a server corresponding to the in-vehicle signal collection application. That is, the signal processing method provided by the embodiment of the present application can be directly executed by the signal processing unit. In this scenario, the signal processing unit needs to have relatively large data processing capabilities. The signal processing method provided in the embodiments of the present application may also be delivered by the signal processing unit to the server corresponding to the vehicle-mounted signal acquisition application for processing, so as to reduce the data processing pressure of the signal processing unit.
上述MCU 101用于采集部署在车辆上的各个传感器的信号值,并以消息为单位向信号处理单元102发送信号数据包。MCU 101以消息为单位发送信号数据包是指:MUC 101将生成某个消息所需的各个传感器信号的信号值和该消息的标识一起确定为一个数据包,发送至信号处理单元102。比如,对于第一消息和第二消息,MCU 101可以分别向信号处理单元102发送第一信号数据包和第二信号数据包。其中,第一信号数据包包括第一消息的标识和生成第一消息所需的各个传感器信号的信号值。第二信号数据包包括第二消息的标识和生成第二消息所需的各个传感器信号的信号值。第一消息和第二消息可以为任意的两个消息。The aforementioned MCU 101 is used to collect signal values of various sensors deployed on the vehicle, and send signal data packets to the signal processing unit 102 in units of messages. The MCU 101 sending a signal data packet in a message unit means that the MUC 101 determines the signal value of each sensor signal required to generate a certain message and the identifier of the message together as a data packet, and sends it to the signal processing unit 102. For example, for the first message and the second message, the MCU 101 may send the first signal data packet and the second signal data packet to the signal processing unit 102 respectively. Wherein, the first signal data packet includes the identifier of the first message and the signal value of each sensor signal required to generate the first message. The second signal data packet includes the identifier of the second message and the signal value of each sensor signal required to generate the second message. The first message and the second message can be any two messages.
信号处理单元102在接收到信号数据包后,基于该信号数据包包括的各个传感器信号的信号值,通过本申请实施例提供的信号处理方法,确定该信号数据包包括的消息标识所指示的消息中各个消息参数的参数值。After receiving the signal data packet, the signal processing unit 102 determines the message indicated by the message identifier included in the signal data packet based on the signal value of each sensor signal included in the signal data packet through the signal processing method provided in the embodiment of the present application The parameter value of each message parameter in.
信号处理单元102在确定出某个消息中各个消息参数的参数值之后,便可将该消息中各个消息参数的参数值上报至图1中的数据采集服务器103。由数据采集服务器103基于该消 息中各个消息参数的参数值对车辆进行智能控制等操作。After the signal processing unit 102 determines the parameter value of each message parameter in a certain message, it can report the parameter value of each message parameter in the message to the data collection server 103 in FIG. 1. The data collection server 103 performs operations such as intelligent control of the vehicle based on the parameter value of each message parameter in the message.
上述是以信号处理单元102实现本申请实施例提供的方法为例进行说明通信网络的系统架构,在应用本申请实施例提供的方法时,也可以直接通过车辆或其他终端上部署的车载信号采集应用来在线实现本申请实施例提供的信号处理方法,本申请实施例对此不作具体限定。The foregoing takes the signal processing unit 102 to implement the method provided in the embodiment of the application as an example to illustrate the system architecture of the communication network. When the method provided in the embodiment of the application is applied, it can also be directly collected by the vehicle-mounted signal deployed on the vehicle or other terminal. It is used to implement the signal processing method provided in the embodiment of the present application online, which is not specifically limited in the embodiment of the present application.
图1中的MCU 101可以通过通信总线与车辆上部署的各种传感器连接,以便于采集各个传感器的信号值。图1中的信号处理单元102也连接在车辆的通信总线上,以实现MCU 101与信号处理单元102之间的连接。此外,数据采集服务器103可以为独立的一个服务器,也可以为集群服务器,本申请实施例对此不作具体限定。The MCU 101 in FIG. 1 can be connected to various sensors deployed on the vehicle through a communication bus, so as to collect the signal value of each sensor. The signal processing unit 102 in FIG. 1 is also connected to the communication bus of the vehicle to realize the connection between the MCU 101 and the signal processing unit 102. In addition, the data collection server 103 may be an independent server or a cluster server, which is not specifically limited in the embodiment of the present application.
此外,图1仅仅用于举例说明本申请实施例的一种可能的应用系统,本申请实施例提供的信号处理方法也可以应用于其他需要将传感器信号转换为消息的系统中,本申请实施例对此不作具体限定。In addition, FIG. 1 is only used to illustrate a possible application system of the embodiment of the present application. The signal processing method provided in the embodiment of the present application can also be applied to other systems that need to convert sensor signals into messages. The embodiment of the present application There is no specific restriction on this.
下面对本申请实施例提供的信号处理方法进行解释说明。The signal processing method provided by the embodiment of the present application will be explained below.
图2是本申请实施例提供的一种信号处理方法流程图,该方法应用于图1所示的信号处理单元中。如图2所示,该方法包括如下步骤:FIG. 2 is a flowchart of a signal processing method provided by an embodiment of the present application, and the method is applied to the signal processing unit shown in FIG. 1. As shown in Figure 2, the method includes the following steps:
步骤201:信号处理单元获取信号数据包,该信号数据包中包括第一消息的标识以及多个信号值,该多个信号值与多个传感器信号对应。Step 201: The signal processing unit obtains a signal data packet, the signal data packet includes an identifier of the first message and a plurality of signal values, and the plurality of signal values correspond to a plurality of sensor signals.
如图1所示,信号处理单元可以接收MCU发送的信号数据包。基于图1所示的系统的解释说明可知,MCU预先对采集的传感器信号以消息为单位进行了处理,因此,信处理服务器接收到的信号数据包包括当前待处理的消息的标识,以及确定该消息所需的各个传感器信号的信号值。As shown in Figure 1, the signal processing unit can receive signal data packets sent by the MCU. Based on the explanation of the system shown in Figure 1, it can be known that the MCU has processed the collected sensor signals in units of messages in advance. Therefore, the signal data packet received by the information processing server includes the identifier of the message currently to be processed, and determines the The signal value of each sensor signal required by the message.
比如,第一消息的标识为“VAL_WINDOWFIRSTROWRIGHT_IND”,表明第一消息是上述表1所示的针对车辆第一排右侧窗户的消息。此时,信号数据包中包括的是确定表1中的所示的三个消息参数的参数值所需的各个传感器信号的信号值。这多个信号值可以包括表2所示七个传感器信号的信号值,以用于确定表1中的第一消息参数。For example, the identifier of the first message is "VAL_WINDOWFIRSTROWRIGHT_IND", which indicates that the first message is the message for the window on the right side of the first row of the vehicle shown in Table 1 above. At this time, the signal data packet includes the signal value of each sensor signal required to determine the parameter value of the three message parameters shown in Table 1. The multiple signal values may include the signal values of the seven sensor signals shown in Table 2 to determine the first message parameter in Table 1.
在本申请实施例中,为了避免需要对各个消息的生成规则通过硬编码方式编写代码,预先将各个消息的生成规则以规则配置文件的方式存储。为了后续便于说明,在此先对本申请实施例提供的规则配置文件进行解释说明。以第一消息来举例说明,其他消息的规则配置文件均可以参考该第一消息。此外,为了便于说明,将第一消息的规则配置文件称为第一规则配置文件。In the embodiments of the present application, in order to avoid the need to hard-code the generation rules of each message to write code, the generation rules of each message are stored in the form of a rule configuration file in advance. In order to facilitate the subsequent description, the rule configuration file provided in the embodiment of the present application will be explained here first. Taking the first message as an example, the rule configuration files of other messages can refer to the first message. In addition, for ease of description, the rule configuration file of the first message is referred to as the first rule configuration file.
第一规则配置文件是指基于规则语法来指示第一消息的生成规则的文件,第一消息的生成规则用于指示如何将多个传感器信号的信号值转化为第一消息中各个消息参数的参数值。The first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar. The generation rule of the first message is used to indicate how to convert the signal values of multiple sensor signals into the parameters of each message parameter in the first message. value.
由此可知,本申请实施例扩展一种规则语法,基于该规则语法可以预先对各个消息的生成规则进行标准化处理,得到消息的规则配置文件。以便于后续在生成消息的过程中,仅需基于规则语法即可对规则配置文件进行解析,从而基于规则文件中指示的生成规则确定各个消息参数的参数值。这样,后续即使消息的生成规则发生了变化,仅需更改相应规则配置文件即可,无需重新编译整个规则配置文件。如此便可避免通过硬编码方式编写生成规则的代码,从而导致在更新生成规则时需要重新编写全部代码的问题。From this, it can be seen that the embodiment of the present application extends a rule grammar, and based on the rule grammar, the generation rules of each message can be standardized in advance to obtain the rule configuration file of the message. So that in the subsequent process of generating messages, the rule configuration file can be parsed only based on the rule grammar, so as to determine the parameter value of each message parameter based on the generation rule indicated in the rule file. In this way, even if the message generation rule changes in the future, only the corresponding rule configuration file needs to be changed, and the entire rule configuration file does not need to be recompiled. In this way, it is possible to avoid writing the code of the generation rules by hard coding, which leads to the problem of rewriting all the codes when updating the generation rules.
在一种可能的实现方式中,第一规则配置文件是基于规则语法通过键值方式来指示第一 消息的生成规则的。这种场景下,该规则语法用于指示第一规则配置文件中各个键的语义。也即是,第一规则配置文件是通过键值的方式来存储第一消息的生成规则的,如此,如果消息的生成规则发生了变化,仅需更改相应规则配置文件中某些键的值即可,无需重新编写整个规则配置文件。In a possible implementation manner, the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar. In this scenario, the rule grammar is used to indicate the semantics of each key in the first rule configuration file. That is, the first rule configuration file stores the generation rule of the first message by key value. In this way, if the generation rule of the message changes, you only need to change the value of some keys in the corresponding rule configuration file. Yes, there is no need to rewrite the entire rule configuration file.
由于第一规则配置文件是指基于规则语法通过键值方式存储第一消息的生成规则的文件,而第一消息的生成规则用于指示如何基于多个传感器信号的信号值确定第一消息中各个消息参数的参数值,因此,在一种可能的实现方式中,对于第一消息中的第一消息参数,第一规则配置文件包括与第一消息参数对应的多个条件键,以及与多个条件键一一对应的多个动作键。其中,第一消息参数为第一消息的各个消息参数的一个。Because the first rule configuration file refers to a file that stores the generation rule of the first message in a key-value manner based on the rule grammar, and the generation rule of the first message is used to indicate how to determine each of the first messages based on the signal values of multiple sensor signals The parameter value of the message parameter. Therefore, in a possible implementation manner, for the first message parameter in the first message, the first rule configuration file includes multiple condition keys corresponding to the first message parameter, and multiple The condition key corresponds to multiple action keys one by one. Wherein, the first message parameter is one of the message parameters of the first message.
这多个条件键中的第一条件键对应的值用于指示这多个传感器信号的信号值需要满足的一个条件,第一条件键为多个条件键中的一个。第一动作键对应的值用于指示在多个传感器信号的信号值满足第一条件键对应的值所指示的条件时,第一消息参数的参数值。第一动作键是与第一条件键对应的动作键。The value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys. The value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal values of the multiple sensor signals meet the condition indicated by the value corresponding to the first condition key. The first action key is an action key corresponding to the first condition key.
比如,以表2中第三行所指示的第一消息参数的参数值为例说明,此时,在第一规则配置文件中,第一条件键用于指示表2中第三行中各个传感器信号的信号值需要满足的取值范围。第一条件键对应的第一动作键用于指示表2中第三行第一消息参数的参数值为“valid”。For example, take the parameter value of the first message parameter indicated in the third row of Table 2 as an example. At this time, in the first rule configuration file, the first condition key is used to indicate each sensor in the third row of Table 2. The value range that the signal value of the signal needs to meet. The first action key corresponding to the first condition key is used to indicate that the parameter value of the first message parameter in the third row of Table 2 is "valid".
对于第一消息中的任一消息参数,通过这多个条件键和一一对应的多个动作键,便可知名该消息参数的各个可能取值,以及各个可能取值对应的传感器信号的信号值需要满足的条件。For any message parameter in the first message, through these multiple condition keys and one-to-one corresponding multiple action keys, each possible value of the message parameter and the signal of the sensor signal corresponding to each possible value can be known The condition that the value needs to meet.
此外,对于任一条件键,由于该条件键的值用于指示各个传感器信号需要满足的条件。因此,在该条件键的值中需要存储各个传感器信号的信号值的取值范围。因此,在一种可能的实现方式中,对于这多个传感器信号中的第一传感器信号,上述第一条件键对应的值包括与第一传感器信号对应的三元组,该三元组包括用于指示逻辑运算关系的逻辑运算符、第一传感器信号的标识以及参考信号值。通过该三元组可以指示第一传感器信号的信号值的取值区间。In addition, for any condition key, the value of the condition key is used to indicate the conditions that each sensor signal needs to meet. Therefore, the value range of the signal value of each sensor signal needs to be stored in the value of the condition key. Therefore, in a possible implementation manner, for the first sensor signal of the plurality of sensor signals, the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal, and the triplet includes For indicating the logical operator of the logical operation relationship, the identification of the first sensor signal, and the reference signal value. The value range of the signal value of the first sensor signal can be indicated through the triplet.
上述逻辑运算关系可以包括等于、大于、大于或等于、小于、小于或等于等各种逻辑运算关系。The foregoing logical operation relations may include various logical operation relations such as equal, greater than, greater than or equal to, less than, less than or equal to.
此外,由于规则配置文件是以键值方式存储的,因此,对于上述三元组还可以继续通过键值方式来表示,也即是,在本申请实施例中,键的值中是可以继续嵌套键值对,以实现对消息的生成规则的准确描述。比如,上述三元组也可以以键值的方式来描述,此时,该三元组中包括的键为该用于指示逻辑运算关系的逻辑运算符,该三元组中包括的键的值即为第一传感器信号的标识以及参考信号值。In addition, because the rule configuration file is stored in the key-value manner, the above-mentioned triples can also continue to be represented in the key-value manner, that is, in the embodiment of the present application, the value of the key can continue to be embedded A set of key-value pairs to achieve an accurate description of the message generation rules. For example, the above-mentioned triples can also be described in terms of key values. At this time, the keys included in the triples are the logical operators used to indicate the logical operation relationship, and the values of the keys included in the triples That is, the identification of the first sensor signal and the reference signal value.
以上述表2中第三行所示的所指示的第一消息参数的参数值为例说明。图3是本申请实施例提供的一种规则配置文件中条件键和动作键的示意图。如图3所示,条件键“CONDITION”的值包括六个三元组,分别为“EQUAL:{LVA:EPS-Lenkerposition,RVA:2}”、“GTE:{LVA:FT-FH-Oeffnung,RVA:0}”、“LTE:{LVA:FT-FH-Oeffnung,RVA:200}”、“GTE:{LVA:FT-FH-Fang,RVA:0}”、“LTE:{LVA:FT-FH-Fang,RVA:1}”、“EQUAL:{LVA:FT-FH-normiert,RVA:1}”。Take the parameter value of the indicated first message parameter shown in the third row of Table 2 as an example for description. Fig. 3 is a schematic diagram of condition keys and action keys in a rule configuration file provided by an embodiment of the present application. As shown in Figure 3, the value of the condition key "CONDITION" includes six triples, namely "EQUAL:{LVA:EPS-Lenkerposition, RVA: 2}" and "GTE:{LVA:FT-FH-Oeffnung, RVA: 0}", "LTE:{LVA:FT-FH-Oeffnung, RVA:200}", "GTE:{LVA:FT-FH-Fang, RVA: 0}", "LTE:{LVA:FT- FH-Fang, RVA: 1}", "EQUAL:{LVA:FT-FH-normiert, RVA: 1}".
上述三元组中“EQUAL”、“GTE”、“LTE”分别为三个逻辑运算符,这三个逻辑运算符 指示的三个逻辑运算关系分别为“等于”、“大于或等于”、“小于或等于”。此外,上述三元组中的RVA用于指示后面的信息放在逻辑运算关系的右侧,RVA用于指示后面的信息放在逻辑运算关系的左侧。因此,上述各个三元组的物理意义如下:In the above triplet, "EQUAL", "GTE", and "LTE" are three logical operators respectively. The three logical operation relationships indicated by these three logical operators are "equal to", "greater than or equal to", and " less than or equal to". In addition, the RVA in the above triple is used to indicate that the following information is placed on the right side of the logical operation relationship, and the RVA is used to indicate that the following information is placed on the left side of the logical operation relationship. Therefore, the physical meaning of each of the above-mentioned triples is as follows:
“EQUAL:{LVA:EPS-Lenkerposition,RVA:2}”用于指示第一传感器信号“EPS-Lenkerposition”的信号值等于2;"EQUAL:{LVA:EPS-Lenkerposition, RVA:2}" is used to indicate that the signal value of the first sensor signal "EPS-Lenkerposition" is equal to 2;
“GTE:{LVA:FT-FH-Oeffnung,RVA:0}”用于指示第二传感器信号“FT-FH-Oeffnung”的信号值大于或等于0;"GTE:{LVA:FT-FH-Oeffnung, RVA: 0}" is used to indicate that the signal value of the second sensor signal "FT-FH-Oeffnung" is greater than or equal to 0;
“LTE:{LVA:FT-FH-Oeffnung,RVA:200}”用于指示第二传感器信号“FT-FH-Oeffnung”的信号值小于或等于200;"LTE:{LVA:FT-FH-Oeffnung, RVA:200}" is used to indicate that the signal value of the second sensor signal "FT-FH-Oeffnung" is less than or equal to 200;
“GTE:{LVA:FT-FH-Fang,RVA:0}”用于指示第三传感器信号“FT-FH-Fang”的信号值大于等于0;"GTE:{LVA:FT-FH-Fang, RVA: 0}" is used to indicate that the signal value of the third sensor signal "FT-FH-Fang" is greater than or equal to 0;
“LTE:{LVA:FT-FH-Fang,RVA:1}”用于指示第三传感器信号“FT-FH-Fang”的信号值小于或等于1;"LTE:{LVA:FT-FH-Fang, RVA: 1}" is used to indicate that the signal value of the third sensor signal "FT-FH-Fang" is less than or equal to 1;
“EQUAL:{LVA:FT-FH-normiert,RVA:1}”用于指示第四传感器信号“FT-FH-normiert”的信号值等于1。"EQUAL:{LVA:FT-FH-normiert, RVA: 1}" is used to indicate that the signal value of the fourth sensor signal "FT-FH-normiert" is equal to 1.
如图3所示,与条件键“CONDITION”对应的动作键“ACTION”的值为“state:valid”,用于指示当各个传感器信号的信号值满足上述六个三元组指示的条件时,该消息参数“state”的值为“valid”。As shown in Figure 3, the value of the action key "ACTION" corresponding to the condition key "CONDITION" is "state: valid", which is used to indicate when the signal value of each sensor signal meets the conditions indicated by the above six triples, The value of the message parameter "state" is "valid".
此外,如图3所示,第一条件键对应的值除了包括上述六个三元组之外,还可以包括用于指示各个三元组之间的逻辑关系的关键字“AND”,用于指示这六个三元组需同时满足时,该消息参数“state”的值才可以取“valid”。In addition, as shown in FIG. 3, the value corresponding to the first condition key may not only include the six triples mentioned above, but also include the keyword "AND" used to indicate the logical relationship between the triples. When it indicates that these six triples need to be satisfied at the same time, the value of the message parameter "state" can take "valid".
也即是,第一条件键中还可以包括用于指示各个三元组之间为逻辑与、还是逻辑或的逻辑运算符。That is, the first condition key may also include a logical operator used to indicate whether each triplet is a logical AND or a logical OR.
可选地,第一条件键中也可以不包括用于指示各个三元组之间为逻辑与、还是逻辑或的逻辑运算符。此时,各个三元组之间的逻辑关系可以为预先默认的关系,本申请实施例对此不作具体限定。Optionally, the first condition key may not include a logical operator used to indicate whether each triplet is a logical AND or a logical OR. At this time, the logical relationship between each triplet may be a pre-default relationship, which is not specifically limited in the embodiment of the present application.
由于规则配置文件是通过键值方式来存储消息的生成规则的,因此,需要通过规则语法对规则配置文件中各个键的语义进行定义。表3是本申请实施例提供的一种扩展的规则语法中各个键的语义说明。Since the rule configuration file stores the message generation rules in a key-value manner, it is necessary to define the semantics of each key in the rule configuration file through the rule grammar. Table 3 is a semantic description of each key in an extended rule grammar provided by an embodiment of the present application.
表3table 3
需要说明的是,上述表3仅仅用于举例说明扩展语法中部分键的语义,在使用本申请实施例提供的规则配置文件时,可以根据需求继续扩展其他键,只需在规则语法中指明这些多占的键的语义即可。It should be noted that the above Table 3 is only used to illustrate the semantics of some keys in the extended grammar. When using the rule configuration file provided by the embodiment of this application, you can continue to expand other keys according to your needs. You only need to specify these in the rule grammar. The semantics of the over-occupied key is sufficient.
上述是以键值方式来说明第一规则配置文件如何指示第一消息的生成规则。可选地,如果规则配置文件通过其他方式来存储第一消息的生成规则,此时只需扩展相应的规则语法即可,在此就不再一一举例说明。The above is a key-value way to explain how the first rule configuration file indicates the generation rule of the first message. Optionally, if the rule configuration file stores the generation rule of the first message in other ways, only the corresponding rule grammar needs to be expanded at this time, and the examples are not described here.
基于上述对规则配置文件的解释说明可知,预先配置有各个消息的规则配置文件。为了后续便于快速获取各个消息的规则配置文件,可以预先将各个消息的规则配置文件和消息的标识存储在消息标识处理映射表中。因此,当信号处理单元接收到该信号数据包后,可以基于该信号数据包中的第一消息的标识,从消息标识处理映射表中获取与第一消息的标识对应的规则配置文件。该过程还可以称为“MCU消息分发”。Based on the above explanation of the rule configuration file, it can be known that the rule configuration file for each message is pre-configured. In order to facilitate the quick acquisition of the rule configuration file of each message in the follow-up, the rule configuration file of each message and the identifier of the message may be stored in the message identifier processing mapping table in advance. Therefore, after the signal processing unit receives the signal data packet, it can obtain the rule configuration file corresponding to the first message identification from the message identification processing mapping table based on the identification of the first message in the signal data packet. This process can also be referred to as "MCU message distribution".
此外,步骤201中的多个信号值与多个传感器信号对应可以是指多个信号值与多个传感器信号一一对应。多个信号值的数量也可以小于多个传感器信号的数量,这种情况下,一个传感器信号可能对应两个或两个以上的信号值,在此不做具体限定。In addition, the multiple signal values corresponding to multiple sensor signals in step 201 may mean that multiple signal values correspond to multiple sensor signals one-to-one. The number of multiple signal values may also be less than the number of multiple sensor signals. In this case, one sensor signal may correspond to two or more signal values, which is not specifically limited here.
步骤202:信号处理单元基于规则语法和第一规则配置文件对该多个信号值进行处理,得到第一消息中各个消息参数的参数值。Step 202: The signal processing unit processes the multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message.
由步骤201可知,第一规则配置文件是基于扩展的规则语法对第一消息的生成规则处理之后的文件,因此,信号处理单元在获取到信号数据包后,可以直接基于规则语法和第一规则配置文件对该多个信号值进行处理,以得到第一消息中各个消息的参数值。无需先编写针对第一消息的生成规则的代码,即可得到第一消息中各个消息参数的参数值。It can be seen from step 201 that the first rule configuration file is a file after the generation rule of the first message is processed based on the extended rule grammar. Therefore, after the signal processing unit obtains the signal data packet, it can be directly based on the rule grammar and the first rule. The configuration file processes the multiple signal values to obtain the parameter value of each message in the first message. The parameter value of each message parameter in the first message can be obtained without writing the code for the generation rule of the first message first.
在一种可能的实现方式中,可以在信号处理单元中预先部署规则执行引擎,该规则执行引擎中加载有该规则语法。而规则语法是用于对规则配置文件进行解释的,因此,在步骤202中,信号处理单元可以调用规则执行引擎基于第一规则配置文件对这多个信号值进行处理,以得到第一消息中各个消息参数的参数值。In a possible implementation manner, a rule execution engine may be pre-deployed in the signal processing unit, and the rule execution engine is loaded with the rule grammar. The rule grammar is used to interpret the rule configuration file. Therefore, in step 202, the signal processing unit may call the rule execution engine to process the multiple signal values based on the first rule configuration file to obtain the first message The parameter value of each message parameter.
如果规则配置文件是以键值方式存储生成规则的,此时该规则执行引擎中加载有该规则语法,表明该规则执行引擎已经学习到规则语法中定义的各个键的语义。这种场景下,规则执行引擎基于第一规则配置文件对这多个信号值进行处理的实现方式可以为:对于第一规则配置文件中针对任一消息参数的某个条件键,基于规则语法对该条件键的值进行语义分析,比如对上述第一个三元组进行语义分析,得到一个条件“第一传感器信号“EPS-Lenkerposition”的信号值等于2”,此时,则判断多个信号值第一传感器信号的信号值是否满足该条件,如果满足该条件,则继续判断该条件键中其他三元组是否满足,如果均满足,则获取与该条件键 对应的动作键的值,该值即为该消息参数的参数值。如果不满足该条件键中任一个三元组所指示的条件,则对该消息参数的下一个条件键继续上述处理过程,直至得到满足的一个条件键。这个过程可以通过图4所示的处理流程图所示,在此不再详细说明。If the rule configuration file stores the generated rules in a key-value manner, the rule grammar is loaded into the rule execution engine at this time, indicating that the rule execution engine has learned the semantics of each key defined in the rule grammar. In this scenario, the way that the rule execution engine processes these multiple signal values based on the first rule configuration file can be implemented as follows: for a certain condition key for any message parameter in the first rule configuration file, pairing based on the rule syntax Perform semantic analysis on the value of the condition key. For example, perform semantic analysis on the above-mentioned first triplet to obtain a condition "The signal value of the first sensor signal "EPS-Lenkerposition" is equal to 2". At this time, multiple signals are judged If the signal value of the first sensor signal satisfies the condition, if it satisfies the condition, it will continue to judge whether the other triples in the condition key are satisfied, and if they are all met, then obtain the value of the action key corresponding to the condition key. The value is the parameter value of the message parameter. If the condition indicated by any triplet in the condition key is not satisfied, then the next condition key of the message parameter will continue the above processing process until a satisfied condition key is obtained. This process can be shown by the processing flowchart shown in FIG. 4, which will not be described in detail here.
此外,步骤210中信号数据包中各个信号值对应哪个传感器信号预先可以直接通过配置文件的方式制定,也即是,通过配置文件来指示信号数据包中的数据结构。因此,信号处理单元在接收到该信号数据包后,同样可以基于该配置文件解析该信号数据包,以得到这多个信号值,并确定出哪个信号值对应哪个传感器信号。通过配置文件的方式同样可以避免增加人工编写代码的工作量。In addition, which sensor signal corresponds to each signal value in the signal data packet in step 210 can be directly formulated in advance through a configuration file, that is, the data structure in the signal data packet is indicated through the configuration file. Therefore, after receiving the signal data packet, the signal processing unit can also analyze the signal data packet based on the configuration file to obtain the multiple signal values, and determine which signal value corresponds to which sensor signal. The configuration file method can also avoid increasing the workload of manual coding.
信号处理单元在通过步骤202获取到第一消息中各个消息参数的参数值后,便可将第一消息中各个消息参数的参数值发送至数据采集服务器,以便于数据采集服务器基于第一消息中各个消息参数的参数值对车辆进行智能控制等操作。After the signal processing unit obtains the parameter value of each message parameter in the first message through step 202, it can send the parameter value of each message parameter in the first message to the data collection server, so that the data collection server can use the information in the first message. The parameter value of each message parameter performs operations such as intelligent control of the vehicle.
信号处理单元在向数据采集服务器上报第一消息中各个消息参数的参数值时,同样可以以消息数据包的方式发送第一消息中各个消息参数的参数值。此时,可以预先通过配置文件的方式指定消息数据包的具体结构,比如通过配置文件指定消息数据包中哪些字段对应第一消息参数的参数值,哪些字段对应第二消息参数的参数值。如此,信号处理单元在向数据采集服务器上报第一消息中各个消息参数的参数值时,只需按照该配置文件中指定的格式生成消息数据包即可。When the signal processing unit reports the parameter value of each message parameter in the first message to the data collection server, it may also send the parameter value of each message parameter in the first message in the form of a message data packet. At this time, the specific structure of the message data packet can be specified in advance through a configuration file. For example, the configuration file can specify which fields in the message data packet correspond to the parameter value of the first message parameter and which fields correspond to the parameter value of the second message parameter. In this way, when the signal processing unit reports the parameter value of each message parameter in the first message to the data collection server, it only needs to generate a message data packet according to the format specified in the configuration file.
上述步骤201至步骤202的完整过程还可以通过图5所示的流程来进一步说明。如图5所示,本申请实施例提供的信号处理方法可以包括两个方面,一个是准备阶段、一个是运行阶段。The above-mentioned complete process from step 201 to step 202 can be further illustrated by the flow shown in FIG. 5. As shown in FIG. 5, the signal processing method provided by the embodiment of the present application may include two aspects, one is the preparation phase and the other is the operation phase.
准备阶段主要包括以下三个方面:The preparation stage mainly includes the following three aspects:
步骤1:基于规则语法生成各个消息的规则配置文件。Step 1: Generate a rule configuration file for each message based on the rule grammar.
步骤2:生成针对信号数据包的数据结构的配置文件。Step 2: Generate a configuration file for the data structure of the signal data packet.
步骤3:生成针对消息数据包的数据结构的配置文件。Step 3: Generate a configuration file for the data structure of the message data packet.
运行阶段包括以下是五个方面:The operation phase includes the following five aspects:
步骤1:MCU上报信号数据包。Step 1: The MCU reports the signal data packet.
步骤2:信号处理单元基于第一消息的标识从消息标识处理映射表中获取第一消息的第一规则配置文件。该步骤可以成为“MCU消息分发”。Step 2: The signal processing unit obtains the first rule configuration file of the first message from the message identification processing mapping table based on the identification of the first message. This step can be called "MCU message distribution".
步骤3:信号处理单元通过消息处理入口将各个信号值以及第一规则配置文件发送至规则执行引擎。Step 3: The signal processing unit sends each signal value and the first rule configuration file to the rule execution engine through the message processing entry.
步骤4:规则执行引擎先基于针对信号数据包的数据结构的配置文件,确定多个信号值分别于哪些传感器信号对应。然后基于第一规则配置文件和各个传感器信号的信号值确定第一消息中各个消息参数的参数值,最后再基于针对消息数据包的数据结构的配置文件,生成消息数据包。Step 4: The rule execution engine first determines which sensor signals the multiple signal values correspond to, based on the configuration file for the data structure of the signal data packet. Then, the parameter value of each message parameter in the first message is determined based on the first rule configuration file and the signal value of each sensor signal, and finally the message data packet is generated based on the configuration file for the data structure of the message data packet.
步骤5:信号处理单元将消息数据包上报至数据采集服务器。Step 5: The signal processing unit reports the message data packet to the data collection server.
通过图5所示的流程相对于传统技术中采用硬编码方式编写每个消息的处理函数有以下几个技术效果:The process shown in Figure 5 has the following technical effects compared to the hard-coded method of writing the processing function of each message in the traditional technology:
(1)传统技术中通过硬编码发生编写每个消息的处理函数,此时相当于对表2所示的每一种组合(表2中每一行的消息参数取值对应的各个传感器信号的取值)进行硬编码,导致 编写的处理函数的代码中各个部分相似度很高,进而导致代码可读性很差。而本申请实施例是只需通过规则配置文件即可指示消息的生成规则,避免了需要通过硬编码方式编写代码,从而也就消除了硬编码带来的技术问题。(1) In the traditional technology, the processing function of each message is written by hard coding. At this time, it is equivalent to the selection of each sensor signal corresponding to each combination shown in Table 2 (the value of the message parameter in each row in Table 2) Value) is hard-coded, resulting in a high degree of similarity in each part of the code of the written processing function, which in turn leads to poor readability of the code. However, in the embodiment of the present application, the message generation rules can be indicated only through the rule configuration file, which avoids the need to write codes in a hard coding manner, thereby eliminating the technical problems caused by hard coding.
(2)传统技术中通过硬编码方式编写的消息的处理函数一旦发布,将不接收消息的生成规则发生变更。如果消息的生成规则发生变更,则需重新编写处理函数,重新发布。但是在本申请实施例中,当某个消息的生成规则发生变化时,仅需对该消息的规则配置文件进行适应性修改即可,后续由执行引擎加载修改后规则配置文件即可。(2) Once the message processing function written by hard coding in the traditional technology is released, the generation rule of the message will not be changed. If the message generation rules are changed, the processing function needs to be rewritten and republished. However, in the embodiment of the present application, when the generation rule of a certain message changes, only the rule configuration file of the message needs to be adaptively modified, and the modified rule configuration file is subsequently loaded by the execution engine.
(3)目前各个车厂的车载信号数据采集并没有统一的车规要求,每个车厂的信号处理规则也存在差异,因此针对各个车厂采集的信号的消息生成规则的代码的可复用性也比较差。这样导致针对不同的车厂需要维护不同的消息的生成规则代码,加大了消息的生成规则的代码的维护成本。但是,在本申请实施例中提供统一的规则语法,只需通过规则引擎完成规则配置文件到生成规则的转换,可以满足车厂数据采集差异化诉求。因此,不同的车厂均可以在车辆在加载本申请实施例提供的信号处理方法的相关模块,以实现信号处理,如此便可实现多个厂商数据采集功能共享复用,从而降低产品软件实现难度和工作量。(3) At present, there is no unified vehicle regulation requirement for the on-board signal data collection of various depots, and the signal processing rules of each depot are also different. Therefore, the reusability of the code of the message generation rule for the signals collected by each depot is also compared. Difference. This leads to the need to maintain different message generation rule codes for different depots, which increases the maintenance cost of the message generation rule codes. However, in the embodiment of the present application, a unified rule grammar is provided, and the conversion of the rule configuration file to the generation rule only needs to be completed by the rule engine, which can meet the demand of the car factory for data collection differentiation. Therefore, different car manufacturers can load the relevant modules of the signal processing method provided in the embodiments of the application on the vehicle to realize signal processing. In this way, data collection functions of multiple manufacturers can be shared and reused, thereby reducing the difficulty and difficulty of product software implementation. Workload.
另外,基于步骤201至步骤202可知,在本申请实施例中,信号处理单元可以通过规则配置文件直接确定消息中各个消息参数的参数值。而规则配置文件用于指示消息的生成规则。因此,如果消息的生成规则发生了变化,只需对规则配置文件进行修改即可,无需重新编写整个规则配置文件。In addition, based on step 201 to step 202, it can be known that in this embodiment of the present application, the signal processing unit can directly determine the parameter value of each message parameter in the message through the rule configuration file. The rule configuration file is used to indicate the generation rules of the message. Therefore, if the message generation rule is changed, only the rule configuration file needs to be modified, and there is no need to rewrite the entire rule configuration file.
因此,在一种可能的实现方式中,信号处理单元还可以接收配置文件更新请求,该配置文件更新请求携带第一消息的标识和第一消息的生成规则中的变动内容;基于第一消息的标识获取第一规则配置文件;根据前述变动内容更新对规则配置文件。Therefore, in a possible implementation manner, the signal processing unit may also receive a configuration file update request, the configuration file update request carrying the identifier of the first message and the changed content in the generation rule of the first message; Identify the first rule configuration file to be acquired; update the rule configuration file according to the aforementioned changes.
如果第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则的,这种场景下,上述根据前述变动内容更新第一规则配置文件的实现方式可以为:根据该变动内容,基于规则语法确定第一规则配置文件待修改的键;根据该变动内容对确定的键对应的值进行修改。以便于后续基于修改后的第一规则配置文件生成第一消息。If the first rule configuration file indicates the generation rule of the first message through the key-value method based on the rule grammar, in this scenario, the above-mentioned implementation method of updating the first rule configuration file according to the aforementioned change content may be: according to the change content , Determine the key to be modified in the first rule configuration file based on the rule grammar; modify the value corresponding to the determined key according to the content of the change. In order to facilitate subsequent generation of the first message based on the modified first rule configuration file.
也即是,当第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则,此时,如果第一消息的生成规则发生了变化,此时则只需要根据生成规则中的变动内容对相应的键值进行修改,无需修改规则配置文件中的其他内容。That is, when the first rule configuration file indicates the generation rule of the first message through the key-value method based on the rule grammar, at this time, if the generation rule of the first message changes, then you only need to follow the rules in the generation rule. Modify the corresponding key value without modifying other content in the rule configuration file.
比如,对于图3所示的规则配置文件,如果生成规则中针对第一消息参数的变动内容为:在第一消息参数的参数值取valid的条件中,需将第二传感器信号需要满足的条件修改为大于或等于100。这种情况下需先根据第一消息参数的参数值取valid这个动作键来查找对应的条件键,然后在条件键对应的值进行如下修改:将“第二传感器信号“FT-FH-Oeffnung”的信号值大于或等于0”修改为“第二传感器信号“FT-FH-Oeffnung”的信号值大于或等于100”。此时,则只需将图3中的“GTE:{LVA:FT-FH-Oeffnung,RVA:0}”中的“0”替换为“100”即可。For example, for the rule configuration file shown in Figure 3, if the change content of the first message parameter in the generation rule is: in the condition that the parameter value of the first message parameter is valid, the condition that the second sensor signal needs to meet Modify it to be greater than or equal to 100. In this case, you need to take the action key valid according to the parameter value of the first message parameter to find the corresponding condition key, and then modify the value corresponding to the condition key as follows: Change the "second sensor signal "FT-FH-Oeffnung" The signal value of "is greater than or equal to 0" is modified to "the signal value of the second sensor signal "FT-FH-Oeffnung" is greater than or equal to 100". At this time, just replace the "0" in "GTE:{LVA:FT-FH-Oeffnung, RVA: 0}" in Figure 3 with "100".
又比如,对于图3所示的规则配置文件,如果生成规则中针对第一消息参数的变动内容为:在第一消息参数的参数值取valid的条件中,需将第二传感器信号需要满足的条件修改为小于或等于0。这种情况下需先根据第一消息参数的参数值取valid这个动作键来查找对应的条件键,然后在条件键对应的值进行如下修改:将“第二传感器信号“FT-FH-Oeffnung”的 信号值大于或等于0”修改为“第二传感器信号“FT-FH-Oeffnung”的信号值小于或等于0”。此时,则只需将图3中的“GTE:{LVA:FT-FH-Oeffnung,RVA:0}”中的“GTE”替换为“LTE”即可。For another example, for the rule configuration file shown in Figure 3, if the content of the first message parameter change in the generation rule is: in the condition that the parameter value of the first message parameter is valid, the second sensor signal needs to be satisfied The condition is modified to be less than or equal to 0. In this case, you need to take the action key valid according to the parameter value of the first message parameter to find the corresponding condition key, and then modify the value corresponding to the condition key as follows: Change the "second sensor signal "FT-FH-Oeffnung" The signal value of is greater than or equal to 0" is modified to "The signal value of the second sensor signal "FT-FH-Oeffnung" is less than or equal to 0". At this time, you only need to replace "GTE" in "GTE:{LVA:FT-FH-Oeffnung, RVA: 0}" in Figure 3 with "LTE".
又比如,对于图3所示的规则配置文件,如果生成规则中针对第一消息参数的变动内容为:在第一消息参数的参数值取valid的条件中,需新增一个目标传感器信号的信号值需要满足的条件,该目标传感器信号是第一规则配置文件中原来没有的。这种情况下需先根据第一消息参数的参数值取valid这个动作键来查找对应的条件键,然后在条件键对应的值添加与该目标传感器信号对应的三元组即可。For another example, for the rule configuration file shown in Figure 3, if the change content of the first message parameter in the generation rule is: in the condition that the parameter value of the first message parameter is valid, a signal of the target sensor signal needs to be added The value needs to meet the condition that the target sensor signal is not originally in the first rule configuration file. In this case, it is necessary to first take the action key valid according to the parameter value of the first message parameter to find the corresponding condition key, and then add the triple corresponding to the target sensor signal to the value corresponding to the condition key.
又比如,对于图3所示的规则配置文件,如果生成规则中针对第一消息参数的变动内容为:在第一消息参数的参数值取valid的条件中,需删除第二传感器信号需要满足的条件。这种情况下需先根据第一消息参数的参数值取valid这个动作键来查找对应的条件键,然后在条件键对应的值进行如下修改:将与“第二传感器信号“FT-FH-Oeffnung”对应的三元组删除即可。此时,则只需将图3中的“GTE:{LVA:FT-FH-Oeffnung,RVA:0}”删除即可。For another example, for the rule configuration file shown in Figure 3, if the change content of the first message parameter in the generation rule is: in the condition that the parameter value of the first message parameter is valid, the second sensor signal needs to be deleted. condition. In this case, you need to take the action key valid according to the parameter value of the first message parameter to find the corresponding condition key, and then modify the value corresponding to the condition key as follows: "The corresponding triples can be deleted. At this time, you only need to delete "GTE:{LVA:FT-FH-Oeffnung, RVA:0}" in Figure 3.
也即是,在本申请实施例中,第一消息的生成规则中的变动内容可以是指某个传感器信号需要满足的条件发生了变化,也可以是指在某个消息参数的参数值需要满足的条件中新增一个传感器信号的条件,也可以是指在某个消息参数的参数值需要满足的条件中删除一个传感器信号的条件。在此就不再一一举例说明。That is, in the embodiment of the present application, the content of the change in the generation rule of the first message may mean that the condition that a certain sensor signal needs to meet has changed, or it may mean that the parameter value of a certain message parameter needs to be satisfied. The condition of adding a sensor signal to the condition can also refer to the condition of deleting a sensor signal from the condition that the parameter value of a certain message parameter needs to meet. I will not give examples one by one here.
需要说明的是,上述配置文件更新请求可以为在基于第一规则配置文件确定第一消息的过程中接收到的。也即是,在生成第一消息的过程中,还可以对第一规则配置文件进行更新,只需规则执行引擎及时加载更新后的第一规则配置文件即可,以实现对规则配置文件的热修改。It should be noted that the above configuration file update request may be received in the process of determining the first message based on the first rule configuration file. That is, in the process of generating the first message, the first rule configuration file can also be updated, and only the rule execution engine needs to load the updated first rule configuration file in time, so as to realize the hottest of the rule configuration file. Revise.
图6是本申请实施例提供的一种信号处理装置的结构示意图。如图6所示,该装置600包括:Fig. 6 is a schematic structural diagram of a signal processing device provided by an embodiment of the present application. As shown in FIG. 6, the device 600 includes:
获取模块601,用于获取信号数据包,信号数据包中包括第一消息的标识以及多个信号值,这多个信号值与多个传感器信号对应。具体实现方式可以参考图2所示的实施例中的步骤201。The acquiring module 601 is configured to acquire a signal data packet. The signal data packet includes the identifier of the first message and multiple signal values, and the multiple signal values correspond to multiple sensor signals. For a specific implementation manner, reference may be made to step 201 in the embodiment shown in FIG. 2.
处理模块602,用于基于规则语法和第一规则配置文件对多个信号值进行处理,得到第一消息中各个消息参数的参数值。具体实现方式可以参考图2所示的实施例中的步骤202。The processing module 602 is configured to process multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message. For a specific implementation manner, reference may be made to step 202 in the embodiment shown in FIG. 2.
其中,第一规则配置文件是指基于规则语法来指示第一消息的生成规则的文件,第一消息的生成规则用于指示如何将这多个传感器信号的信号值转换为各个消息参数的参数值。Among them, the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to convert the signal value of the multiple sensor signals into the parameter value of each message parameter .
可选地,第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则;规则语法用于指示第一规则配置文件中各个键的语义。Optionally, the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar; the rule grammar is used to indicate the semantics of each key in the first rule configuration file.
可选地,第一规则配置文件包括与第一消息参数对应的多个条件键,以及与这多个条件键一一对应的多个动作键,第一消息参数为第一消息的各个消息参数的一个;Optionally, the first rule configuration file includes multiple condition keys corresponding to the first message parameter, and multiple action keys corresponding to the multiple condition keys one-to-one, and the first message parameter is each message parameter of the first message one of;
这多个条件键中的第一条件键对应的值用于指示多个传感器信号的信号值需要满足的一个条件,第一条件键为多个条件键中的一个;The value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys;
第一动作键对应的值用于指示在多个传感器信号的信号值满足第一条件键对应的值所指示的条件时,第一消息参数的参数值,第一动作键为与第一条件键对应的动作键。The value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal values of the multiple sensor signals meet the condition indicated by the value corresponding to the first condition key. The first action key is the same as the first condition key. Corresponding action key.
可选地,对于这多个传感器信号中的第一传感器信号,第一条件键对应的值包括与第一传感器信号对应的三元组,三元组包括用于指示逻辑运算关系的逻辑运算符、第一传感器信号的标识以及参考信号值。Optionally, for the first sensor signal among the plurality of sensor signals, the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal, and the triplet includes a logical operator for indicating a logical operation relationship , The identification of the first sensor signal and the reference signal value.
可选地,该装置还包括:Optionally, the device further includes:
接收模块,用于接收配置文件更新请求,配置文件更新请求携带第一消息的标识和第一消息的生成规则中的变动内容;The receiving module is configured to receive a configuration file update request, where the configuration file update request carries the identifier of the first message and the changed content in the generation rule of the first message;
获取模块,还用于基于第一消息的标识获取第一规则配置文件;The obtaining module is further configured to obtain the first rule configuration file based on the identifier of the first message;
该装置还包括更新模块,用于基于第一消息的标识获取第一规则配置文件。The device also includes an update module, which is used to obtain the first rule configuration file based on the identifier of the first message.
可选地,第一规则配置文件是基于规则语法通过键值方式来指示第一消息的生成规则。这种场景下,更新模块用于:Optionally, the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar. In this scenario, the update module is used to:
根据变动内容,基于规则语法确定第一规则配置文件待修改的键;According to the changed content, determine the key to be modified in the first rule configuration file based on the rule grammar;
根据变动内容对确定的键对应的值进行修改。Modify the value corresponding to the determined key according to the content of the change.
可选地,配置文件更新请求为在基于第一规则配置文件确定第一消息的过程中接收到的。Optionally, the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
可选地,该装置部署在信号处理系统上部署的信号处理单元,信号处理系统上还包括有微控制单元MCU和用于采集多个传感器信号的多个传感器;信号数据包是MCU将多个传感器信号的信号值封装后上报至信号处理单元。Optionally, the device is deployed on a signal processing unit deployed on a signal processing system. The signal processing system also includes a micro-control unit MCU and multiple sensors for collecting multiple sensor signals; the signal data packet is the MCU combining multiple The signal value of the sensor signal is encapsulated and reported to the signal processing unit.
本申请实施例扩展一种规则语法,基于该规则语法可以预先对各个消息的生成规则进行标准化处理,得到消息的规则配置文件。以便于后续在生成消息的过程中,仅需基于规则语法即可对规则配置文件进行解析,从而基于规则文件中指示的生成规则确定各个消息参数的参数值。这样,后续即使消息的生成规则发生了变化,仅需更改相应规则配置文件即可,无需重新编译整个规则配置文件。如此便可避免通过硬编码方式编写生成规则的代码,从而导致在更新生成规则时需要重新编写全部代码的问题。The embodiment of the present application extends a rule grammar, based on which the generation rules of each message can be standardized in advance to obtain the rule configuration file of the message. So that in the subsequent process of generating messages, the rule configuration file can be parsed only based on the rule grammar, so as to determine the parameter value of each message parameter based on the generation rule indicated in the rule file. In this way, even if the message generation rule changes in the future, only the corresponding rule configuration file needs to be changed, and the entire rule configuration file does not need to be recompiled. In this way, it is possible to avoid writing the code of the generation rules by hard coding, which leads to the problem of rewriting all the codes when updating the generation rules.
需要说明的是:上述实施例提供的信号处理装置在处理信号时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的信号处理装置与信号处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the signal processing device provided in the above embodiment processes signals, only the division of the above functional modules is used as an example for illustration. In actual applications, the above functions can be allocated by different functional modules according to needs, i.e. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the signal processing device provided in the foregoing embodiment and the signal processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
图7是本申请实施例提供的一种信号处理装置的结构示意图。该信号处理装置可以部署在车辆上,此时该信号处理装置具体可以为图1所示的信号处理单元,以实现本申请实施例提供的信号处理方法。参见图7,该装置备700包括至少一个处理器701,通信总线702、存储器703以及至少一个通信接口704。FIG. 7 is a schematic structural diagram of a signal processing device provided by an embodiment of the present application. The signal processing device may be deployed on a vehicle. In this case, the signal processing device may specifically be the signal processing unit shown in FIG. 1 to implement the signal processing method provided in the embodiment of the present application. Referring to FIG. 7, the device 700 includes at least one processor 701, a communication bus 702, a memory 703, and at least one communication interface 704.
处理器701可以是一个通用中央处理器(central processing unit,CPU)、特定应用集成电路(application-specific integrated circuit,ASIC)或一个或多个用于控制本申请方案程序执行的集成电路。处理器可以用于通过图2所示的实施例中的步骤201和步骤202确定消息中各个消息参数的参数值。The processor 701 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling program execution of the solution of this application. The processor may be used to determine the parameter value of each message parameter in the message through step 201 and step 202 in the embodiment shown in FIG. 2.
通信总线702可包括一通路,在上述组件之间传送信息。The communication bus 702 may include a path for transferring information between the above-mentioned components.
存储器703可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息 和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器703可以是独立存在,通过通信总线702与处理器701相连接。存储器703也可以和处理器701集成在一起。The memory 703 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types that can store information and instructions The dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only Memory (CD-ROM) or other optical disc storage, optical disc storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disks or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer Any other media, but not limited to this. The memory 703 may exist independently, and is connected to the processor 701 through a communication bus 702. The memory 703 may also be integrated with the processor 701.
其中,存储器703用于存储执行本申请方案的程序代码,并由处理器701来控制执行。处理器701用于执行存储器703中存储的程序代码。程序代码中可以包括一个或多个软件模块,比如可以包括图6所示的各个模块。The memory 703 is used to store program codes for executing the solutions of the present application, and the processor 701 controls the execution. The processor 701 is configured to execute program codes stored in the memory 703. The program code may include one or more software modules, for example, may include each module shown in FIG. 6.
通信接口704,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。通信接口可以用于通过图2所示的实施例中的步骤201获取信号数据包,还可以将步骤202生成的各个消息参数的参数值上报至数据采集服务器。 Communication interface 704, which uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. . The communication interface can be used to obtain the signal data packet through step 201 in the embodiment shown in FIG. 2, and can also report the parameter value of each message parameter generated in step 202 to the data collection server.
在具体实现中,作为一种实施例,装置可以包括多个处理器,例如图7中所示的处理器701和处理器705。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In specific implementation, as an embodiment, the apparatus may include multiple processors, for example, the processor 701 and the processor 705 shown in FIG. 7. Each of these processors can be a single-CPU (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and/or processing cores for processing data (for example, computer program instructions).
上述的装置可以是一个通用装置或者是一个专用装置。在具体实现中,装置可以是台式机、便携式电脑、网络服务器、掌上电脑(personal digital assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备或者嵌入式设备。本申请实施例不限定装置的类型。The above-mentioned device may be a general-purpose device or a special-purpose device. In specific implementation, the device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. The embodiment of the present application does not limit the type of the device.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(digital subscriber line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例如:数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如:固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (for example: coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example: infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium may be a magnetic medium (for example: floppy disk, hard disk, magnetic tape), optical medium (for example: digital versatile disc (DVD)), or semiconductor medium (for example: solid state disk (SSD)) )Wait.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps in the above embodiments can be implemented by hardware, or by a program to instruct relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned examples provided for this application are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application. Inside.
Claims (20)
- 一种信号处理方法,其特征在于,所述方法包括:A signal processing method, characterized in that the method includes:获取信号数据包,所述信号数据包中包括第一消息的标识以及多个信号值,所述多个信号值与多个传感器信号对应;Acquiring a signal data packet, the signal data packet including an identifier of the first message and a plurality of signal values, the plurality of signal values corresponding to a plurality of sensor signals;基于规则语法和第一规则配置文件对所述多个信号值进行处理,得到所述第一消息中各个消息参数的参数值;Processing the multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message;其中,所述第一规则配置文件是指基于所述规则语法来指示所述第一消息的生成规则的文件,所述第一消息的生成规则用于指示如何将所述多个传感器信号的信号值转换为所述各个消息参数的参数值。Wherein, the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to combine the signals of the plurality of sensor signals. The value is converted into the parameter value of each message parameter.
- 如权利要求1所述的方法,其特征在于,所述第一规则配置文件是基于所述规则语法通过键值方式来指示所述第一消息的生成规则的,所述规则语法用于指示所述第一规则配置文件中各个键的语义。The method according to claim 1, wherein the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar, and the rule grammar is used to indicate all Describe the semantics of each key in the first rule configuration file.
- 如权利要求2所述的方法,其特征在于,所述第一规则配置文件包括与第一消息参数对应的多个条件键,以及与所述多个条件键一一对应的多个动作键,所述第一消息参数为所述第一消息的各个消息参数的一个;3. The method according to claim 2, wherein the first rule configuration file comprises a plurality of condition keys corresponding to the first message parameter, and a plurality of action keys corresponding to the plurality of condition keys one-to-one, The first message parameter is one of the message parameters of the first message;所述多个条件键中的第一条件键对应的值用于指示所述多个传感器信号的信号值需要满足的一个条件,所述第一条件键为所述多个条件键中的一个;The value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys;第一动作键对应的值用于指示在所述多个传感器信号的信号值满足所述第一条件键对应的值所指示的条件时,所述第一消息参数的参数值,所述第一动作键为与所述第一条件键对应的动作键。The value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal value of the multiple sensor signals meets the condition indicated by the value corresponding to the first condition key. The action key is an action key corresponding to the first condition key.
- 如权利要3所述的方法,其特征在于,对于所述多个传感器信号中的第一传感器信号,所述第一条件键对应的值包括与所述第一传感器信号对应的三元组,所述三元组包括用于指示逻辑运算关系的逻辑运算符、所述第一传感器信号的标识以及参考信号值。The method according to claim 3, wherein for the first sensor signal of the plurality of sensor signals, the value corresponding to the first condition key includes a triplet corresponding to the first sensor signal, The triple includes a logical operator used to indicate a logical operation relationship, an identifier of the first sensor signal, and a reference signal value.
- 如权利要求1至4任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:接收配置文件更新请求,所述配置文件更新请求携带所述第一消息的标识和所述第一消息的生成规则中的变动内容;Receiving a configuration file update request, where the configuration file update request carries the identifier of the first message and the changed content in the generation rule of the first message;基于所述第一消息的标识获取所述第一规则配置文件;Acquiring the first rule configuration file based on the identifier of the first message;根据所述变动内容更新所述第一规则配置文件。The first rule configuration file is updated according to the changed content.
- 如权利要5所述的方法,其特征在于,所述第一规则配置文件是基于所述规则语法通过键值方式来指示所述第一消息的生成规则的;The method according to claim 5, wherein the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar;所述根据所述变动内容更新所述第一规则配置文件,包括:The updating the first rule configuration file according to the changed content includes:根据所述变动内容,基于所述规则语法确定所述第一规则配置文件中待修改的键;Determine the key to be modified in the first rule configuration file based on the rule grammar according to the changed content;根据所述变动内容对确定的键对应的值进行修改。Modify the value corresponding to the determined key according to the change content.
- 如权利要求5或6所述的方法,其特征在于,所述配置文件更新请求为在基于所述第一规则配置文件确定所述第一消息的过程中接收到的。The method according to claim 5 or 6, wherein the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
- 如权利要求1至7任一所述的方法,其特征在于,所述方法应用于信号处理系统包括的信号处理单元,所述信号处理系统还包括有微控制单元MCU和用于分别采集所述多个传感器信号的多个传感器;7. The method according to any one of claims 1 to 7, wherein the method is applied to a signal processing unit included in a signal processing system, and the signal processing system further includes a micro-control unit MCU and a micro-control unit for separately collecting the Multiple sensors with multiple sensor signals;所述信号数据包是所述MCU将所述多个传感器信号的信号值封装后上报至所述信号处理单元。In the signal data packet, the MCU encapsulates the signal values of the multiple sensor signals and reports them to the signal processing unit.
- 一种信号处理装置,其特征在于,所述装置包括:A signal processing device, characterized in that the device comprises:获取模块,用于获取信号数据包,所述信号数据包中包括第一消息的标识以及多个信号值,所述多个信号值与多个传感器信号对应;An obtaining module, configured to obtain a signal data packet, the signal data packet including an identifier of the first message and a plurality of signal values, the plurality of signal values corresponding to a plurality of sensor signals;处理模块,用于基于规则语法和第一规则配置文件对所述多个信号值进行处理,得到所述第一消息中各个消息参数的参数值;A processing module, configured to process the multiple signal values based on the rule grammar and the first rule configuration file to obtain the parameter value of each message parameter in the first message;其中,所述第一规则配置文件是指基于所述规则语法来指示所述第一消息的生成规则的文件,所述第一消息的生成规则用于指示如何将所述多个传感器信号的信号值转换为所述各个消息参数的参数值。Wherein, the first rule configuration file refers to a file that indicates the generation rule of the first message based on the rule grammar, and the generation rule of the first message is used to indicate how to combine the signals of the plurality of sensor signals. The value is converted into the parameter value of each message parameter.
- 如权利要求9所述的装置,其特征在于,所述第一规则配置文件是基于所述规则语法通过键值方式来指示所述第一消息的生成规则的,所述规则语法用于指示所述第一规则配置文件中各个键的语义。The device according to claim 9, wherein the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar, and the rule grammar is used to indicate all Describe the semantics of each key in the first rule configuration file.
- 如权利要求10所述的装置,其特征在于,所述第一规则配置文件包括与第一消息参数对应的多个条件键,以及与所述多个条件键一一对应的多个动作键,所述第一消息参数为所述第一消息的各个消息参数的一个;The device of claim 10, wherein the first rule configuration file comprises a plurality of condition keys corresponding to the first message parameter, and a plurality of action keys corresponding to the plurality of condition keys one-to-one, The first message parameter is one of the message parameters of the first message;所述多个条件键中的第一条件键对应的值用于指示所述多个传感器信号的信号值需要满足的一个条件,所述第一条件键为所述多个条件键中的一个;The value corresponding to the first condition key in the multiple condition keys is used to indicate a condition that the signal values of the multiple sensor signals need to meet, and the first condition key is one of the multiple condition keys;第一动作键对应的值用于指示在所述多个传感器信号的信号值满足所述第一条件键对应的值所指示的条件时,所述第一消息参数的参数值,所述第一动作键为与所述第一条件键对应的动作键。The value corresponding to the first action key is used to indicate the parameter value of the first message parameter when the signal value of the multiple sensor signals meets the condition indicated by the value corresponding to the first condition key. The action key is an action key corresponding to the first condition key.
- 如权利要求11所述的装置,其特征在于,对于所述多个传感器信号中的第一传感器信号,所述第一条件键对应的值包括与所述第一传感器信号对应的三元组,所述三元组包括用于指示逻辑运算关系的逻辑运算符、所述第一传感器信号的标识以及参考信号值。The device of claim 11, wherein for the first sensor signal of the plurality of sensor signals, the value corresponding to the first condition key comprises a triplet corresponding to the first sensor signal, The triple includes a logical operator used to indicate a logical operation relationship, an identifier of the first sensor signal, and a reference signal value.
- 如权利要求9至12任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 9 to 12, wherein the device further comprises:接收模块,用于接收配置文件更新请求,所述配置文件更新请求携带所述第一消息的标 识和所述第一消息的生成规则中的变动内容;A receiving module, configured to receive a configuration file update request, where the configuration file update request carries the identifier of the first message and the changed content in the generation rule of the first message;所述获取模块,还用于基于所述第一消息的标识获取所述第一规则配置文件;The acquiring module is further configured to acquire the first rule configuration file based on the identifier of the first message;所述装置还包括更新模块,用于根据所述变动内容更新所述第一规则配置文件。The device also includes an update module, configured to update the first rule configuration file according to the changed content.
- 如权利要13所述的装置,其特征在于,所述第一规则配置文件是基于所述规则语法通过键值方式来指示所述第一消息的生成规则的;The apparatus according to claim 13, wherein the first rule configuration file indicates the generation rule of the first message in a key-value manner based on the rule grammar;所述更新模块用于:The update module is used for:根据所述变动内容,基于所述规则语法确定所述第一规则配置文件待修改的键;Determine, based on the rule grammar, the key to be modified in the first rule configuration file according to the change content;根据所述变动内容对确定的键对应的值进行修改。Modify the value corresponding to the determined key according to the change content.
- 如权利要求13或14所述的装置,其特征在于,所述配置文件更新请求为在基于所述第一规则配置文件确定所述第一消息的过程中接收到的。The apparatus according to claim 13 or 14, wherein the configuration file update request is received during the process of determining the first message based on the first rule configuration file.
- 如权利要求9至15任一所述的装置,其特征在于,所述装置部署在信号处理系统包括的信号处理单元,所述信号处理系统还包括有微控制单元MCU和分别用于采集所述多个传感器信号的多个传感器;The device according to any one of claims 9 to 15, wherein the device is deployed in a signal processing unit included in a signal processing system, and the signal processing system further includes a micro-control unit MCU and a micro-control unit for collecting the Multiple sensors with multiple sensor signals;所述信号数据包是所述MCU将所述多个传感器信号的信号值封装后上报至所述信号处理单元。In the signal data packet, the MCU encapsulates the signal values of the multiple sensor signals and reports them to the signal processing unit.
- 一种信号处理装置,其特征在于,所述信号处理装置包括存储器和处理器;A signal processing device, characterized in that the signal processing device includes a memory and a processor;所述存储器用于存储计算机程序;The memory is used to store a computer program;所述处理器用于执行所述存储器中存储的程序以执行权利要求1-8任一项所述的方法。The processor is configured to execute a program stored in the memory to execute the method according to any one of claims 1-8.
- 一种芯片,其特征在于,所述芯片包括处理器和接口电路;A chip, characterized in that the chip includes a processor and an interface circuit;所述接口电路用于接收指令并传输至所述处理器;The interface circuit is used to receive instructions and transmit them to the processor;所述处理器用于执行权利要求1-8任意一项所述的方法。The processor is configured to execute the method according to any one of claims 1-8.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行权利要求1-8任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the method according to any one of claims 1-8.
- 一种信号处理系统,其特征在于,所述信号处理系统包括信号处理单元、MCU和多个传感器;A signal processing system, characterized in that the signal processing system includes a signal processing unit, an MCU, and a plurality of sensors;所述多个传感器用于分别采集多个传感器信号;The multiple sensors are used to collect multiple sensor signals respectively;所述MCU用于获取所述多个传感器信号的信号值,并基于所述多个传感器信号的信号值向所述信号处理单元上报信号数据包;The MCU is used to obtain signal values of the multiple sensor signals, and report signal data packets to the signal processing unit based on the signal values of the multiple sensor signals;所述信号处理单元用于基于所述信号数据包实现权利要求1-8任一项所述的方法。The signal processing unit is configured to implement the method according to any one of claims 1-8 based on the signal data packet.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010245337.4 | 2020-03-31 | ||
CN202010245337.4A CN113467798A (en) | 2020-03-31 | 2020-03-31 | Signal processing method and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021197327A1 true WO2021197327A1 (en) | 2021-10-07 |
Family
ID=77865498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/083988 WO2021197327A1 (en) | 2020-03-31 | 2021-03-30 | Signal processing method and related device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113467798A (en) |
WO (1) | WO2021197327A1 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546259A (en) * | 2012-01-20 | 2012-07-04 | 中兴通讯股份有限公司 | Interface parameter transmission method and device adopting same |
CN102787976A (en) * | 2011-04-29 | 2012-11-21 | 通用电气公司 | Method, system and computer program product for dynamic rule engine for a wind turbine farm |
US9119236B1 (en) * | 2011-03-04 | 2015-08-25 | Alarm.Com Incorporated | Monitoring system control technology |
US20170214701A1 (en) * | 2016-01-24 | 2017-07-27 | Syed Kamran Hasan | Computer security based on artificial intelligence |
CN108093070A (en) * | 2017-12-27 | 2018-05-29 | 复旦大学 | A kind of Internet of Things data service middleware system |
CN110351715A (en) * | 2019-07-15 | 2019-10-18 | 西安中兴物联软件有限公司 | AT command processing method, terminal adapter and computer readable storage medium |
CN110688372A (en) * | 2019-08-30 | 2020-01-14 | 深圳鸿智云创科技有限公司 | Industrial equipment communication method based on 5G and microprocessor |
-
2020
- 2020-03-31 CN CN202010245337.4A patent/CN113467798A/en active Pending
-
2021
- 2021-03-30 WO PCT/CN2021/083988 patent/WO2021197327A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9119236B1 (en) * | 2011-03-04 | 2015-08-25 | Alarm.Com Incorporated | Monitoring system control technology |
CN102787976A (en) * | 2011-04-29 | 2012-11-21 | 通用电气公司 | Method, system and computer program product for dynamic rule engine for a wind turbine farm |
CN102546259A (en) * | 2012-01-20 | 2012-07-04 | 中兴通讯股份有限公司 | Interface parameter transmission method and device adopting same |
US20170214701A1 (en) * | 2016-01-24 | 2017-07-27 | Syed Kamran Hasan | Computer security based on artificial intelligence |
CN108093070A (en) * | 2017-12-27 | 2018-05-29 | 复旦大学 | A kind of Internet of Things data service middleware system |
CN110351715A (en) * | 2019-07-15 | 2019-10-18 | 西安中兴物联软件有限公司 | AT command processing method, terminal adapter and computer readable storage medium |
CN110688372A (en) * | 2019-08-30 | 2020-01-14 | 深圳鸿智云创科技有限公司 | Industrial equipment communication method based on 5G and microprocessor |
Also Published As
Publication number | Publication date |
---|---|
CN113467798A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110635933B (en) | Apparatus, control method, and recording medium for managing network of SDN | |
US20220276856A1 (en) | Software upgrading method, apparatus, and system | |
EP4202645A1 (en) | Vehicle upgrading method and apparatus | |
CN111209319B (en) | Data service method and device | |
CN113886336A (en) | Flow detection method, device, equipment and medium | |
US20220236710A1 (en) | Efficient controller data generation and extraction | |
CN113791792B (en) | Method, device and storage medium for acquiring application call information | |
WO2021197327A1 (en) | Signal processing method and related device | |
KR20180074128A (en) | Diagnosis message routing system and method for gateway of vehicle | |
WO2024109543A1 (en) | Vehicle-to-cloud communication method based on service-oriented architecture, and storage medium | |
CN115167351B (en) | Controller function updating method, system, vehicle and server | |
WO2021218384A1 (en) | Algorithm update method, system and device | |
CN112068899B (en) | Plug-in loading method and device, electronic equipment and storage medium | |
WO2021232860A1 (en) | Communication method, apparatus and system | |
CN115755867A (en) | Vehicle diagnosis method and related device | |
CN118317003B (en) | Vehicle data processing method and vehicle | |
WO2022041279A1 (en) | Device management method and apparatus in internet of things, computer device and storage medium | |
WO2024016251A1 (en) | Log reporting method and apparatus | |
US12147208B2 (en) | Efficient controller data generation and extraction | |
WO2024041563A1 (en) | Model acquisition method, apparatus and system | |
WO2023143061A1 (en) | Data access method and data access system thereof | |
CN115987755B (en) | Domain controller fault reporting method, system, electronic device and readable storage medium | |
WO2021073501A1 (en) | Resource configuration method, apparatus, and system for in-vehicle service slices | |
WO2024026592A1 (en) | Data storage method and related apparatus | |
US12081614B2 (en) | Chunked file transfer among mobile peer devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21781551 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21781551 Country of ref document: EP Kind code of ref document: A1 |