Processing method, updating method, system, vehicle and computer program product
The S2S process in vehicle signal processing decouples service and signal logic, reducing redundant processing and resource consumption, ensuring efficient and timely vehicle status updates.
Patent Information
- Application Number
- CN202411374274.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-13
AI Technical Summary
Existing vehicle signal processing methods in a service-oriented architecture consume excessive system resources due to repetitive processing of vehicle signals by multiple services, leading to reduced computing efficiency and delayed vehicle status updates.
Implement a signal-to-service (S2S) process that decouples business logic from signal processing, using signal processing rule data to parse and determine changed signal values, reporting only to relevant services, thereby avoiding redundant processing and reducing system load.
This approach significantly reduces system resource consumption and improves computing efficiency, ensuring real-time vehicle status updates by minimizing redundant signal parsing and judgment, thus enhancing user experience.
Smart Images

Figure CN119135786A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of signal processing technology, and in particular to a vehicle signal processing method, a vehicle status updating method, a vehicle signal processing system, a vehicle status updating system, a vehicle, and a computer program product. Background Art
[0002] In the field of vehicle communications, in a service-oriented architecture, the functions of the entire vehicle will be divided into a variety of different services. Each service can provide the corresponding functional status of the vehicle to the demand side, thereby realizing the update of the vehicle status on the demand side.
[0003] In related technologies, after a signal is received, it will be uploaded to the corresponding service, which will parse and process the signal. This signal processing method will occupy more system resources. Summary of the invention
[0004] The present disclosure provides a vehicle signal processing method, a vehicle status updating method, a vehicle signal processing system, a vehicle status updating system, a vehicle, and a computer program product.
[0005] The first aspect of the present disclosure proposes a vehicle signal processing method, including: loading signal processing rule data, the signal processing rule data is used to represent a first mapping relationship between an in-vehicle service and a vehicle signal required by the in-vehicle service; receiving a message containing a vehicle signal; parsing the message to obtain a parsed signal value of the vehicle signal; if the parsed signal value is different from an existing signal value of the corresponding vehicle signal, determining the in-vehicle service requiring the corresponding vehicle signal through the first mapping relationship represented by the signal processing rule data; and reporting vehicle signal data to the in-vehicle service requiring the corresponding vehicle signal, the vehicle signal data being obtained through the parsed signal value.
[0006] According to some embodiments of the present disclosure, the signal processing rule data is also used to indicate the position of the vehicle signal in the message; parsing the message to obtain the parsed signal value of the vehicle signal comprises: extracting the vehicle signal at the position indicated by the signal processing rule data in the message to obtain the parsed signal value of the vehicle signal.
[0007] According to some embodiments of the present disclosure, the signal processing rule data is also used to represent a second mapping relationship between the vehicle signal and the message ID; before parsing the message to obtain the parsed signal value of the vehicle signal, the method also includes: obtaining the message ID of the message; and determining the vehicle signal contained in the message based on the message ID and the second mapping relationship represented by the signal processing rule data.
[0008] According to some embodiments of the present disclosure, the method further includes: if the analyzed signal value is different from the existing signal value, replacing the existing signal value with the analyzed signal value.
[0009] According to some embodiments of the present disclosure, the existing signal value is cached in a memory.
[0010] According to some embodiments of the present disclosure, the vehicle signal data includes the analyzed signal value, or a state value of the corresponding vehicle signal obtained by operating the analyzed signal value. According to some embodiments of the present disclosure, the signal processing rule data is also used to represent the operation rules of the signal value of the vehicle signal; if the vehicle signal data includes the status value of the corresponding vehicle signal, then before reporting the vehicle signal data to the in-vehicle service that requires the corresponding vehicle signal, the method also includes: determining the operation rules of the vehicle signal corresponding to the analyzed signal value from the processing rule data; and operating the analyzed signal value according to the operation rules to obtain the status value of the corresponding vehicle signal.
[0011] According to some embodiments of the present disclosure, reporting vehicle signal data to an in-vehicle service that requires the corresponding vehicle signal includes: assigning a value to a callback function of the in-vehicle service that requires the corresponding vehicle signal, wherein the assigned value is the vehicle signal data; and reporting the vehicle signal data to the corresponding in-vehicle service through the assigned callback function.
[0012] According to some embodiments of the present disclosure, before receiving the message including the vehicle signal, the method further includes: registering a callback function of the in-vehicle service.
[0013] According to some embodiments of the present disclosure, if the resolved signal value is the same as the existing signal value, the resolved signal value is discarded.
[0014] The second aspect of the present disclosure proposes a vehicle status update method, including: reporting vehicle signal data according to the vehicle signal processing method described in any of the above-mentioned embodiments; the in-vehicle service receives the reported vehicle signal data; the in-vehicle service integrates the vehicle signal data to obtain status parameter information of the vehicle status corresponding to the in-vehicle service; and sending the status parameter information to a client, where the status parameter information is used by the client to update the vehicle status.
[0015] The third aspect of the present disclosure proposes a vehicle signal processing system, including: a processor and a memory, the memory storing a computer program, when the computer program is executed by the processor, the processor performs the following process: loading signal processing rule data, the signal processing rule data is used to represent a first mapping relationship between an in-vehicle service and a vehicle signal required by the in-vehicle service; receiving a message containing a vehicle signal; parsing the message to obtain a parsed signal value of the vehicle signal; if the parsed signal value is different from an existing signal value of the corresponding vehicle signal, determining the in-vehicle service requiring the corresponding vehicle signal through the first mapping relationship represented by the signal processing rule data; and reporting vehicle signal data to the in-vehicle service requiring the corresponding vehicle signal, the vehicle signal data being obtained through the parsed signal value.
[0016] In a fourth aspect of the present disclosure, a vehicle status update system is proposed, comprising: a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following processes: reporting vehicle signal data according to the vehicle signal processing method described in any of the above-mentioned embodiments; an in-vehicle service receives the reported vehicle signal data; the in-vehicle service integrates the vehicle signal data to obtain status parameter information of the vehicle status corresponding to the in-vehicle service; and sending the status parameter information to a client, wherein the status parameter information is used by the client to update the vehicle status.
[0017] A fifth aspect of the present disclosure proposes a vehicle, comprising: a vehicle signal processing system as described in any one of the above embodiments, or a vehicle status update system as described in any one of the above embodiments.
[0018] A sixth aspect of the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it is used to implement the method described in any of the above embodiments.
[0019] In the technical solution provided in the present invention, the decoupling between the business logic of the service and the signal processing is achieved, and the signal processing work including the parsing of the message and the judgment of whether the signal value has changed is performed through the signal-to-service process (S2S process), thereby avoiding repeated parsing and judgment of the same message, greatly reducing the number of message parsing and signal value judgment times, effectively reducing the system load, saving system resources, and improving the computing efficiency of each functional state, avoiding the accumulation of signal processing tasks, and ensuring that the vehicle status can be updated in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0021] Figure 1 A schematic diagram of an application scenario of a vehicle signal processing method according to some embodiments of the present disclosure is shown.
[0022] Figure 2 An interactive schematic diagram of performing signal processing using a vehicle signal processing method according to some embodiments of the present disclosure is shown.
[0023] Figure 3 An interactive schematic diagram of updating a vehicle status using a vehicle status updating method according to some embodiments of the present disclosure is shown.
[0024] Figure 4-Figure 10 A schematic diagram of the overall process of a vehicle signal processing method according to some embodiments of the present disclosure is shown.
[0025] Fig.11 A schematic diagram of the overall process of a vehicle status update method according to some embodiments of the present disclosure is shown.
[0026] Fig.12 is a schematic block diagram of the structure of a vehicle signal processing system according to some embodiments of the present disclosure.
[0027] Fig.13 It is a schematic block diagram of the structure of a vehicle status update system of some embodiments of the present disclosure. DETAILED DESCRIPTION
[0028] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0029] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.
[0031] The software architecture model of vehicle electronic systems usually uses the SOA (Service-Oriented Architecture) architecture, which can modularize the functions of the entire vehicle and split the functions of the entire vehicle into multiple different service modules. Each service module can provide its own functional status and update it to the application, which depends on interacting with the underlying signals of the vehicle. The interaction between the service module and the underlying signal can be achieved through the S2S technology (Signal To Service).
[0032] In the process of processing vehicle signals, the S2S process in the vehicle control system can receive a data packet containing vehicle signals, which is a signal packet. A frame of a signal packet usually contains multiple signals. The S2S process then directly passes the signal packet to the service that needs at least one signal in the signal packet. Each service that receives the signal processes the signal, and then determines whether it needs to update the vehicle status to the client based on the processing result, thereby completing the signal-to-service logic.
[0033] For example, the S2S process receives a frame of signal packet A1, which contains 5 signals a1~a5, each of which is required by multiple services, and a service may need multiple signals in the signal packet at the same time. Assuming that the 5 signals are required by 13 services B1~B13 in total, the S2S process will send signal packet A1 to services B1~B13 respectively. After each service receives signal packet A1, it parses and processes signal packet A1 and extracts the signal value required by itself. The extracted signal value may be one or more, depending on the number of signals required by its own service contained in the signal packet. During the signal processing process, signal packet A1 is processed 13 times by the above 13 services. The inventor of the present application found that for a vehicle signal, when multiple services need to receive and process the vehicle signal, each of these services will process the vehicle signal. This repetitive processing method will result in low signal processing efficiency and occupy more system resources.
[0034] In particular, if the vehicle status corresponding to the signal remains unchanged, the signal package formed by the collected signal will still be uploaded to the S2S process regularly or on time, and the S2S process will be uploaded to the corresponding service regularly. The service will repeat the processing of the signal package and then obtain the same signal value as the signal value obtained in the previous cycle.
[0035] Therefore, regularly or on time, the same signal packet is processed 13 times in the same way, and the resulting value is the same as the signal value obtained in the previous cycle. This processing method will not only consume unnecessary computing power, but also reduce the system's computing efficiency. It may also lead to a backlog of signal processing tasks, which in turn leads to the inability to timely feedback the vehicle status to the client. For example, when the user frequently operates the vehicle to execute commands such as closing doors or windows, the vehicle status feedback may not be timely, affecting the user experience.
[0036] Figure 1 The following is a schematic diagram of an application scenario of a vehicle signal processing method according to some embodiments of the present disclosure. In this application scenario, a vehicle 10 is equipped with an onboard control system 100, which can manage various components of the vehicle and implement various functions. The onboard control system 100 includes a signal-to-service module 110 and a service module 120. The signal-to-service module 110 can be an S2S module for running an S2S process, and the service module 120 is used to run an onboard service.
[0037] It is understandable that the vehicle 10 may include different types of transportation vehicles or movable objects. For example, the vehicle may include a car, a motorcycle, a robot, or other types of transportation vehicles or movable objects.
[0038] Figure 2 An interactive schematic diagram of performing signal processing using a vehicle signal processing method according to some embodiments of the present disclosure is shown. Figure 2 The detailed description is for a clearer understanding of the technical solution of the present disclosure and should not be considered as a limitation of the protection scope of the present disclosure. In the process of implementing the technical idea of the present disclosure, one or some steps may be omitted, or other alternatives may be adopted.
[0039] S101, when the vehicle is powered on, the signal processing module 111 of the signal-to-service module 110 loads the pre-configured signal-service mapping file and completes the initialization startup, thereby having the ability to receive and process signal packets. The signal processing module 111 is a new module in the signal-to-service module, which is used to process the signal. The signal-service mapping file records the signal name, message ID, signal length, signal start bit, signal end bit and signal-service mapping relationship of various signals. Among them, the message ID is used to indicate the ID of the message (signal packet) to which the signal belongs. The signal length, signal start bit and signal end bit are used to determine the position of the signal in the signal packet. The signal-service mapping relationship is used to indicate the ID or unique identifier of the service that requires the signal.
[0040] S102 , each service module registers a callback function with the signal processing module 111 after the service is started. Figure 2Only two service modules B1 and B2 are shown and described with reference to these two service modules. The service modules run corresponding services. The callback function is used to report the vehicle signal data obtained by the signal processing module 111 to the corresponding service module in the subsequent steps.
[0041] S103, at time T1, the electronic control unit 130 responsible for signal collection encapsulates the signal data collected in the collection period corresponding to time T1 into a signal package A1, and reports the signal package A1 to the signal processing module 111. The types of signals contained in the same signal package are the same. For multiple signal packages of the same type formed in multiple periods, the position of the signal in the signal package is fixed.
[0042] S104, the signal-to-service module 110 receives the signal package A1, and parses the signal package A1 according to the signal-service mapping file loaded in step S101, and obtains the signal values of a1 to a5, a total of 5 signals. The specific process includes obtaining the message ID of the signal package A1, determining the signal name corresponding to the message ID from the mapping file, thereby determining the signal names a1, a2, a3, a4 and a5 of the signals contained in the signal package A1, which is equivalent to obtaining the types of signals contained in the signal package A1. And determine the signal length, signal start bit and signal end bit corresponding to these signal names from the mapping file, thereby extracting the signal values n1 to n5 of the signals a1 to a5 from the signal package A1.
[0043] S105, for each signal value obtained by analysis (analyzed signal value), the signal value is compared with the existing signal value of the same type of signal, that is, the signal values n1-n5 are compared with the corresponding existing signal values m1-m5 to determine whether the values of signals a1-a5 have changed. The existing signal value represents the latest signal value before receiving the signal packet A1. For example, signal a5 represents the vehicle speed. If the signal value n5 is different from m5, it means that the vehicle has changed speed.
[0044] S106, for any type of vehicle signal, if the signal value obtained by analysis is different from the corresponding existing signal value, it means that the signal value of this type of signal has changed. Then, through the signal-service mapping relationship of the signal in the mapping file, determine which services the signal needs to be reported to, and then report the signal value obtained by analysis to the corresponding service by calling the callback functions of these services.
[0045] In the above mapping relationship, the service run by service module B1 requires signals a1 to a3, and the service run by service module B2 requires signals a3 to a5. If, among signals a1 to a5, the signal values of signals a1 and a2 change, and the signal values of signals a3 to a5 do not change, then based on the above mapping relationship, by calling the callback function corresponding to service module B1 and assigning values to the parameters of the callback function, the signal values of signals a1 and a2 obtained by parsing are reported to service module B1. Since the signal values of signals a3 to a5 do not change, there is no need to report the signal value of signal a3 to service module B1, nor is there any need to report the signal value to service module B2.
[0046] After determining that the signal values of signals a1 and a2 have changed, the signal values of signals a1 and a2 obtained by analysis are used to replace the existing signal values m1 and m2 of signals a1 and a2, thereby updating the existing signal values m1 and m2 for signal value comparison in the next cycle. The signal values of signals a3 to a5 have not changed, so the existing signal values m3 to m5 of signals a3 to a5 are the latest signal values and do not need to be updated. At this time, the signal values n3 to n5 of signals a3 to a5 obtained by analysis can be discarded.
[0047] S107, at time T2, the electronic control unit 130 encapsulates the signal data collected in the collection period corresponding to time T2 (the next period of the collection period corresponding to T1) into a signal package A2. The type of signal contained in the signal package A2 is the same as the type of signal contained in the signal package A1. A2 and A1 belong to the same type of signal package, and the message IDs of the two are the same.
[0048] S108, the signal-to-service module 110 receives the signal packet A2, and parses the signal packet A2 according to the signal-service mapping file loaded in step S101 to obtain signal values n1'-n5' of 5 signals a1-a5.
[0049] S109, comparing the signal values n1'-n5' obtained by analysis with the corresponding existing signal values m1-m5, and determining whether there is a numerical change between the signal values of the signals a1-a5 and the existing signal values m1-m5.
[0050] S110, if among the signals a1 to a5, only the signal value of signal a3 does not change, and the signal values of the other signals all change, then the signal values n1' and n2' are reported to the service module B1 by calling the callback function corresponding to the service module B1, and the signal values n4' and n5' are reported to the service module B2 by calling the callback function corresponding to the service module B2.
[0051] Figure 3An interactive schematic diagram of updating a vehicle status using a vehicle status updating method according to some embodiments of the present disclosure is shown. Figure 3 The service module B2 is not shown in the figure, and only the service module B1 is used as an example for explanation. The execution steps of other service modules in the vehicle status update process can refer to the service module B1. Steps S101 to S105 are all the same as Figure 2 The specific process is the same as shown in the above description and will not be repeated here.
[0052] S111, after the signals a1 and a2 whose signal values have changed are identified in step S105, the signal values n1 and n2 of the signals a1 and a2 are first calculated to obtain the state values, and then the state values of the signals a1 and a2 are reported to the service module B1.
[0053] The signal-service mapping file records the signal operation rules of various signals. The operation rules of different signals may be different. The operation method of the signal values n1 and n2 is obtained by querying the above signal-service mapping file. For example, the signal-service mapping file can record the conversion factor, and the signal value is calculated by calculating the product of the signal value and the conversion factor. The state values p1 and p2 are obtained by calculating n1 and n2 respectively. The state value can represent the state of the vehicle signal. For example, the service module B1 is the rear door lock service, the state value p1 is the switch state of the rear left door, and the state value p2 is the switch state of the rear right door. Both p1 and p2 are switch quantities.
[0054] S112, reporting the state values p1 and p2 to the service module B1 by calling the callback function of the service module B1.
[0055] S113, the service module B1 integrates the state values p1 and p2 to obtain the state parameters of the service vehicle state. For example, p1=0, p2=0, where 0 represents that the door is closed and 1 represents that the door is open. At this time, the state parameter obtained by logical operation is 0, which means that all rear doors are closed. If some or all of the state values of p1 and p2 are 1, the state parameter obtained by logical operation is 1, which means that the rear doors are not fully closed.
[0056] S114, the service module B1 reports the status parameters to the client C, which is the vehicle-mounted screen control system, the user's mobile phone or other terminal.
[0057] S115, client C receives the status parameters, uses the status parameters to update the vehicle status, and displays the updated vehicle status. For example, the display screen of the vehicle screen control system can be switched to the vehicle status display interface by switching the interface, and the real-time status of the vehicle can be displayed in the interface through at least one of images, text and numerical values. After receiving the status parameters of the rear door, the vehicle screen control system updates the display interface, so that the pattern or text of the rear door status in the interface changes, and the owner can understand the real-time status of the vehicle by watching the display interface on the display screen.
[0058] Figure 4 The overall flow chart of the vehicle signal processing method according to some embodiments of the present disclosure is shown. Figure 2 The vehicle signal processing method M200 includes step S210, step S220, step S230, step S240 and step S250.
[0059] S210, signal processing rule data is loaded. The signal processing rule data is used to represent a first mapping relationship between the vehicle service and the vehicle signal required by the vehicle service. The signal processing rule data can be loaded through a process for signal conversion service (signal processing process).
[0060] S220, receiving a message including a vehicle signal.
[0061] S230, the message is parsed to obtain the parsed signal value of the vehicle signal. For example, the message may be parsed through a signal processing process to obtain the signal value of the vehicle signal.
[0062] S240: If the analyzed signal value is different from the existing signal value of the corresponding vehicle signal, determine the vehicle service requiring the corresponding vehicle signal through the first mapping relationship represented by the signal processing rule data.
[0063] S250: Report the vehicle signal data to the vehicle service that requires the corresponding vehicle signal. The vehicle signal data is obtained by analyzing the signal value.
[0064] The signal processing process can be an S2S process, which corresponds to Figure 2 The signal transfer service module 110 in the S2S process runs in the vehicle control system and can use the signal transfer service technology to receive the vehicle signal sent by the electronic control unit ECU and report it to the corresponding service after processing. The S2S process can be provided with a signal processing thread, which corresponds to Figure 2 The signal processing module 111 in the signal processing module can perform signal analysis processing through a signal processing thread.
[0065] Step S210 may be executed when the vehicle is powered on, that is, when the vehicle is powered on, the signal processing process loads the signal processing rule data. The signal processing rule data may be recorded in the signal-service mapping file, and the signal processing rule data may record the names of all types of vehicle signals that the ECU can upload to the S2S process, the names of all types of vehicle services that the S2S process faces, and the mapping relationship between these vehicle signals and vehicle services. The mapping relationship between the vehicle signal and the vehicle service indicates that the vehicle service requires the signal value of the vehicle signal to update the corresponding vehicle status. After the S2S process loads the signal-service mapping file, it can obtain the above mapping relationship, so that it can start receiving messages and parsing. Since the messages exchanged between the ECU and the S2S process are mainly used to transmit the signal value of the signal, the message in this article can be called a signal packet.
[0066] It is understandable that the vehicle signal included in the message is a vehicle signal included in the first mapping relationship of the above-mentioned signal processing rule data. For example, the signal processing rule data includes a first mapping relationship between 100 vehicle signals and 10 vehicle services, and the vehicle signals included in each received message may be the 100 vehicle signals or may be vehicle signals less than 100.
[0067] The signal value of the vehicle signal can be a voltage value, current value, etc. collected and obtained by a sensor. By processing the signal value, a state value representing the current state of the vehicle can be obtained, such as the temperature outside the vehicle, the current speed of the vehicle, the volume of the speaker, and the open or closed state of the door lock. A vehicle can be equipped with multiple electronic control units (ECUs) with different functions. Some of these ECUs can be used to periodically obtain signals collected by sensors installed on the vehicle, encapsulate the collected signals into signal packets, and then report the signal packets to the S2S process through the vehicle network. For example, Figure 2 The electronic control unit 130 reports the signal packet A1 to the signal conversion service module 110 .
[0068] The vehicle signal can be collected according to a set collection cycle. There are multiple types of vehicle signals collected by the electronic control unit 130. The collection cycle of these vehicle signals can be the same. In this case, in each collection cycle, the ECU collects the signal values of all vehicle signals and encapsulates them into signal packets (messages), and then reports them to the S2S process. This is equivalent to the S2S process receiving a signal packet every other collection cycle, and the type of vehicle signal contained in each received signal packet is the same.
[0069] Multiple vehicle signals contained in a frame of signal packets may be required by multiple vehicle services. For example, a frame of signal packet A1 contains the signal values of vehicle signals a1 to a5. Among these five vehicle signals, some or all of the signals may be required by multiple different services, such as signal a1 is required by service b1, and signals a2 to a5 are required by services b1 and b2.
[0070] The existing signal value of the vehicle signal can also be called the stored signal value. One vehicle signal corresponds to one existing signal value. The vehicle control system can store the existing signal value of the vehicle signal. The existing signal value can be a pre-set standard value, or it can be a signal value in a signal packet received before the moment when the signal packet is received this time, that is, a historical signal value. For each vehicle, the existing signal value is the same as the signal value obtained by receiving and parsing the signal packet last time.
[0071] After the S2S process receives the signal packet sent by the ECU, it parses the message to obtain the signal values of all vehicle signals, and compares the parsed signal values (parsed signal values) with the existing signal values. For each vehicle signal, if the existing signal value of the vehicle signal is different from the signal value obtained through parsing, it means that the vehicle status has changed.
[0072] In order to update the change of vehicle status through the change of vehicle signal, the first mapping relationship in the above mapping file is used to determine which services require the vehicle signal whose signal value has changed, and then the signal value obtained by parsing is reported to the vehicle service that has a demand for the signal value. The vehicle service can update the vehicle status according to the signal value of the received vehicle signal. For example, if the signal value of vehicle signal a1 changes, it is determined through the first mapping relationship that services b1 and b2 both have a mapping relationship with signal a1, and the signal value of signal a1 obtained by parsing is reported to services b1 and b2 respectively.
[0073] It can be understood that, for the first signal packet received by the S2S process after the vehicle is powered on, after parsing the first signal packet to obtain a signal value, it can be directly used as the latest existing new signal value and cached to form the existing signal values of signals a1~a5.
[0074] The vehicle signal processing method proposed in accordance with the embodiment of the present invention realizes the decoupling between the business logic of the service and the signal processing, and executes the signal processing work including the parsing of the message and the judgment of whether the signal value has changed through the process of signal-to-service (S2S process), thereby avoiding the repeated parsing and judgment of the same message, greatly reducing the number of message parsing and signal value judgment, effectively reducing the system load, saving system resources, and improving the computing efficiency of each functional state, avoiding the accumulation of signal processing tasks, and ensuring that the vehicle status can be updated in real time.
[0075] The signal processing rule data can also be used to indicate the position of the vehicle signal in the message, that is, for a message containing multiple types of vehicle signals, the position and order of these types of vehicle signals in the message can be fixed. The signal processing rule data can be stored in the signal-service mapping file in the form of a table, and the table of signal processing rules can be called a processing rule table. In the processing rule table, the signal position can be indicated by three fields: signal length, signal start bit, and signal end bit. For example, for a signal named a2, its signal length is 15, the signal start byte is 20, and the signal end byte is 34.
[0076] Figure 5 The overall flow chart of the vehicle signal processing method according to other embodiments of the present disclosure is shown. Figure 5 In step S230, the method of parsing the message to obtain the parsed signal value of the vehicle signal may include the following steps S231.
[0077] S231, extracting the vehicle signal at the position indicated by the signal processing rule data in the message to obtain the analyzed signal value of the vehicle signal.
[0078] When assembling packets, the ECU will assemble the packets according to the same settings as the signal position indicated in the signal processing rule data, and the signal processing process will unpack the packets according to the same settings, so that the signal type can be determined according to the byte position in the message and the specific signal value can be extracted, which can reduce the size of the message and improve the efficiency of extracting signal values from the message.
[0079] There may be many types of vehicle signals that need to be collected in the vehicle, and the collection cycles of different vehicle signals may be different. The types of signal packets can also be set accordingly, that is, there are many types of messages reported by the ECU to the S2S process. The same message can contain many different vehicle signals, the types of vehicle signals contained in the message can be fixed, and the positions of these vehicle signals in the message can be fixed. Different types of messages can be distinguished by message ID.
[0080] The signal processing rule data can also be used to represent the second mapping relationship between the vehicle signal and the message ID, that is, the message ID can be represented by the message ID field in the above processing rule table. For example, the message ID corresponding to the signal with the signal name a1 is 0x01, and the message ID corresponding to the signal with the signal name a2 is 0x02, indicating that a1 and a2 are reported through different types of messages respectively.
[0081] Figure 6 The overall flow chart of the vehicle signal processing method according to some embodiments of the present disclosure is shown. Figure 6Before parsing the message to obtain the parsed signal value of the vehicle signal, the vehicle signal processing method M200 may further include the following steps S221 and S222.
[0082] S221, obtaining a message ID of the message.
[0083] S222: Determine the vehicle signal included in the message according to the second mapping relationship represented by the message ID and the signal processing rule data.
[0084] After receiving the message, the S2S process obtains the message ID from the message, and then searches the above processing rule table based on the obtained message ID to determine what types of vehicle signals are included in the message, and also determines the positions of these vehicle signals in the message.
[0085] ECU can encapsulate multiple different types of messages at the same time and report them. Among the multiple messages encapsulated at the same time, vehicle signals of related types, similar purposes or the same collection period can be put into the same message. A message can contain the signal value of only one vehicle signal or the signal values of multiple vehicle signals at the same time. The S2S process can receive multiple messages at the same time and parse them in parallel or sequentially. It is understandable that these messages can also be encapsulated and reported by the ECU at different times, and the S2S process can parse them immediately whenever a message is received.
[0086] Different messages are distinguished by message IDs, so that different types of signals can be transmitted using a variety of different messages between the ECU and the S2S process. This is more suitable for signal reporting when there are many types of vehicle signals and different reporting cycles of different signals.
[0087] Figure 7 The overall flow chart of the vehicle signal processing method according to some embodiments of the present disclosure is shown. Figure 7 The vehicle signal processing method M200 may further include the following steps S260.
[0088] S260: If the analyzed signal value is different from the existing signal value, the existing signal value is replaced by the analyzed signal value.
[0089] Taking signal a1 as an example, after the S2S process parses and obtains the signal value n1 of signal a1, if n1 is different from m1, the existing signal value needs to be updated while reporting. The value of n1 is used to replace m1, so that the existing signal value can always represent the latest state of signal a1, so that the existing signal value can be used as a reference to determine whether the state of signal a1 has changed by comparison, and the change of signal a1 can be accurately identified and judged.
[0090] If the parsed signal value is the same as the existing signal value of the vehicle signal, the parsed signal value is discarded. For example, if the signal value n1 is the same as the existing signal value m1 of the signal a1, it means that the state of the signal a1 has not changed, and m1 can still represent the latest state of a1, so n1 can be directly discarded.
[0091] Existing signal values can be cached in memory. For example, existing signal values can be cached in memory in the form of a table, called a signal value table. The signal value table can contain all types of vehicle signals, and each type of vehicle signal corresponds to an existing signal value, which is used to represent the most recently collected signal value of the vehicle signal. Caching in memory facilitates the rapid acquisition of existing signal values and improves the signal processing speed.
[0092] The vehicle signal data may include the parsed signal value, or the status value of the corresponding vehicle signal obtained by calculating the parsed signal value. In other words, the S2S process can directly report the parsed signal value to the corresponding service, and the service calculates the signal value to obtain the vehicle signal status value and reports it to the client; the S2S process can also calculate the signal value after obtaining the signal value through parsing, and report the obtained status value to the corresponding service, and the service directly receives the status value and reports the status value to the client. In this way, the signal value can be flexibly processed, which improves the applicability of signal processing.
[0093] It is understandable that if the vehicle signal data includes a state value, a signal value comparison will be performed first, and when the signal value obtained by analysis is different from the existing signal value, the changed signal value will be calculated to obtain the state value.
[0094] Signal processing rule data can also be used to represent the calculation rules of the signal value of the vehicle signal. For example, the above-mentioned processing rule table includes a calculation rule field, and each signal name corresponds to an calculation rule. The S2S process can calculate the state value of the signal through the signal value according to the calculation rule. The calculation rule may include calculation parameters and calculation methods, such as factor factors and offset parameters. The calculation method may be to first calculate the product of the factor and the signal value, and then calculate the sum of the product and the offset to obtain the state value. The factor and offset parameters of different vehicle signals may be different. The calculation parameters and calculation methods are all pre-set, and the conversion from the signal value of the physical quantity to the state value of the state quantity is achieved by calculating according to the calculation rules.
[0095] Figure 8 The overall flow chart of the vehicle signal processing method according to some embodiments of the present disclosure is shown. Figure 8If the vehicle signal data includes a status value of a corresponding vehicle signal, before reporting the vehicle signal data to the in-vehicle service requiring the corresponding vehicle signal (step S250), the vehicle signal processing method M200 may further include the following steps S232 and S233.
[0096] S232, determining a calculation rule for the vehicle signal corresponding to the analyzed signal value from the processing rule data, for example, can be implemented through a signal processing process.
[0097] S233, performing calculations on the analysis signal value according to a calculation rule to obtain a state value of a corresponding vehicle signal. After obtaining the signal value of the vehicle signal through step S231, the corresponding operation rules of the vehicle signal can be obtained from the above processing rule table by the signal name. Then the above factor and offset parameters are calculated to obtain the state value. The signal value calculation process is performed by the S2S process. For the same signal value, it only needs to be calculated once and can be sent to all services that need the state value of the signal. Compared with the state value calculation performed by each service, it saves computing resources and computing time.
[0098] It is understandable that step S232 and step S231 may be executed in parallel, for example, signal value extraction and operation rule acquisition may be started at the same time, and when both signal value extraction and operation rule acquisition are completed, step S233 may be executed.
[0099] Fig. 9 The overall flow chart of the vehicle signal processing method according to some embodiments of the present disclosure is shown. Fig. 9 In step S250, the method of reporting the vehicle signal data to the vehicle service that requires the corresponding vehicle signal may include the following steps S251 and S252.
[0100] S251, assigning a value to a callback function of the vehicle service that requires the corresponding vehicle signal, wherein the assigned value is the above-mentioned vehicle signal data.
[0101] S252, sending the above vehicle signal data to the corresponding vehicle service through the assigned callback function. Each vehicle-mounted service may correspond to a callback function, and the callback function is used to report the vehicle signal data to the corresponding vehicle-mounted service in a callback manner. For example, the S2S process calculates the signal value of the window position obtained by parsing to obtain the state value of the window position. When the state value is reported as the vehicle signal data, the S2S process calls the callback function of the window service. The callback function may be in the form of WindowPositionCallback(uint32_t value), where WindowPositionCallback is the name of the callback function of the window service, and value is the value of the callback. The state value of the window position is assigned to value, and then the window service is called back. After the window service obtains the state value, it can be used for subsequent business logic processing, such as for updating the vehicle status. It can be understood that if the vehicle signal data is a signal value, the signal value is reported in the same way.
[0102] Fig.10 The overall flow chart of the vehicle signal processing method according to some embodiments of the present disclosure is shown. Fig.10 Before receiving the message including the vehicle signal (step S220 ), the vehicle signal processing method M200 may further include step 211 .
[0103] S211, registering the callback function of the in-vehicle service.
[0104] After the signal processing process registers the callback function of the vehicle service, the callback function can be used to report the vehicle signal data. The execution order between step S211 and step S210 can be arbitrary, for example, they can be executed in parallel. The callback function only needs to be registered once in a system startup, and after registration, it will remain effective until the current system is shut down.
[0105] Fig.11 The overall process diagram of the vehicle status update method of some embodiments of the present disclosure is shown. Fig.11 The vehicle status updating method M300 includes step S310, step S320, step S330 and step S340.
[0106] S310, reporting vehicle signal data according to the vehicle signal processing method. The reporting can be performed through a signal processing process, and the vehicle signal processing method is the vehicle signal processing method M200 of any of the above embodiments. The vehicle signal processing method M200 completes the step of reporting vehicle signal data (signal value or status value) to the service.
[0107] S320, the in-vehicle service receives vehicle signal data reported by the signal processing process.
[0108] S330, the in-vehicle service integrates the vehicle signal data to obtain state parameter information of the vehicle state corresponding to the in-vehicle service.
[0109] S340, sending state parameter information to the client, wherein the state parameter information is used by the client to update the vehicle state.
[0110] Multiple vehicle signals contained in a message are required by multiple services. If the signal value of a vehicle signal required by multiple services changes, multiple services will receive the signal value or status value. Some services may receive the signal value or status value of multiple different signals.
[0111] Assume that after the owner has completed parking, he opens the door and gets out of the car, and has not closed the door yet. At this time, the ECU collects the signal values of the switch status of the four doors, encapsulates them into a message and sends them to S2S Beijing. The message received by the S2S process contains four signals, namely the door switch status signals of the four doors. The S2S process determines that the signal of the main driver's door among the four signals has changed through analysis and comparison, replaces the existing signal value of the main driver's door signal with the signal value of the changed main driver's door signal, and calculates the state value of the main driver's door switch state and sends it to multiple services. The calculated state value indicates that the door is not closed. The service that receives the state value of the main driver's door switch state includes the door service. After the door service receives the state value of the main driver's door switch state, it integrates the received state value and the state values of the other three doors to determine that the state of the vehicle doors is not fully closed. Then the state parameter information that can represent the state is sent to the client through Ethernet communication. The user can see the image or prompt information that the door is not fully closed on the client's display screen.
[0112] Afterwards, when the owner closes the door, the switch status of the main driver's door changes again. After the above signal transmission, analysis, comparison, calculation and other operations, the door service integrates the switch status of the four doors and determines that the door status of the entire vehicle is all closed. Then the status parameter information that can represent this status is sent to the client via Ethernet communication. The user can see an image or prompt information that the doors are all closed on the client's display screen.
[0113] In the process of integrating state values, the in-vehicle service can perform operations such as semantic conversion, so that the client can determine which vehicle state the obtained state parameter information corresponds to, that is, the type of vehicle state corresponding to the state parameter information (such as door switch state, door lock switch state, etc.).
[0114] Fig.12 FIG. 1 is a schematic block diagram of a vehicle signal processing system according to an embodiment of the present disclosure. Fig.12Based on any implementation of the above vehicle signal processing method M200, the present disclosure further provides a vehicle signal processing system 1000, including a processor 1200 and a memory 1300. The memory 1300 stores a computer program. When the computer program is executed by the processor 1200, the processor 1200 performs the following steps S210, S220, S230, S240, and S250.
[0115] S210 , loading signal processing rule data. The signal processing rule data is used to represent a first mapping relationship between the in-vehicle service and the vehicle signal required by the in-vehicle service. Step S210 can be performed by the data loading module 1002 .
[0116] S220 , receiving a message including a vehicle signal. Step S220 may be performed by the message receiving module 1004 .
[0117] S230 , parsing the message to obtain a parsed signal value of the vehicle signal. Step S230 may be performed by the message parsing module 1006 .
[0118] S240 , if the parsed signal value is different from the existing signal value of the corresponding vehicle signal, determine the vehicle service requiring the corresponding vehicle signal through the first mapping relationship represented by the signal processing rule data. Step S240 may be performed by the service determination module 1008 .
[0119] S250, reporting the vehicle signal data to the vehicle service that requires the corresponding vehicle signal. The vehicle signal data is obtained by analyzing the signal value. Step S250 can be executed by the data sending module 1010.
[0120] The implementation process of the functions and effects of each module in the above-mentioned vehicle signal processing system 1000 is specifically described in the implementation process of the corresponding steps in the above-mentioned vehicle signal processing method M200, which will not be repeated here.
[0121] The hardware structure of the vehicle signal processing system 1000 can be implemented using a bus architecture. The bus architecture can include any number of interconnecting buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300, and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.
[0122] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.
[0123] The processor 1200 may be a central processing unit (CPU). The processor 1200 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0124] The memory 1300 can be used as a non-transitory computer-readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions of the computer program in the embodiment of the present disclosure. The processor 1200 implements the vehicle signal processing method by running the non-transitory software programs, instructions and modules stored in the memory 1300.
[0125] The memory 1300 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created by the processor 1200, such as structural data, model data, sample data, stiffness evaluation results, etc. of the bridge. In addition, the memory 1300 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1300 may optionally include a memory remotely arranged relative to the processor 1200, and these remote memories may be connected to the processor 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0126] Fig.13 FIG. 1 is a schematic block diagram of a vehicle status update system according to an embodiment of the present disclosure. Fig.13 Based on any implementation of the above vehicle status update method M300, the present disclosure further provides a vehicle status update system 2000, including a processor 1200 and a memory 1300. The memory 1300 stores a computer program, and when the computer program is executed by the processor 1200, the processor 1200 performs the following steps S310, S320, S330, and S340.
[0127] S310, the signal processing process reports the vehicle signal data according to the vehicle signal processing method. The signal processing process is a process for converting signals to services, and the vehicle signal processing method is the vehicle signal processing method M200 of any of the above-mentioned embodiments. Step S310 can be performed by the data reporting module 2002. The data reporting module 2002 can include the above-mentioned message receiving module, data loading module, service determination module, message parsing module and data sending module.
[0128] S320 , the vehicle service receives the vehicle signal data reported by the signal processing process. Step S320 may be executed by the data receiving module 2004 .
[0129] S330 , the vehicle-mounted service integrates the vehicle signal data to obtain state parameter information of the vehicle state corresponding to the vehicle-mounted service. Step S330 may be executed by the data integration module 2006 .
[0130] S340, sending state parameter information to the client. The state parameter information is used by the client to update the vehicle state. Step S340 can be executed by the information sending module 2008.
[0131] The client can be a vehicle-mounted display system, or it can be a user's mobile phone, tablet computer, laptop computer and other devices.
[0132] While the in-vehicle service is updating the vehicle status, the S2S process can also receive other types of signal packets and parse and process them, that is, the in-vehicle service and the S2S process can work in parallel.
[0133] The vehicle status updating system 2000 and the vehicle signal processing system 1000 may share a processor 1200 and a memory 1300 , and the processor 1200 and the memory 1300 may be a processor and a memory of an onboard control system.
[0134] The implementation process of the functions and effects of each module in the above-mentioned vehicle status updating system 2000 is specifically described in the implementation process of the corresponding steps in the above-mentioned vehicle status updating method M300, which will not be repeated here.
[0135] The present disclosure also provides a vehicle, including the vehicle signal processing system of any of the above embodiments, or including the vehicle status update system of any of the above embodiments. The vehicle may include different types of transportation tools or movable objects, for example, the vehicle may include a car, a bicycle, a motorcycle, a robot or other types of transportation tools or movable objects. In addition, the vehicle may be an electric vehicle or a hybrid vehicle.
[0136] It is understandable that the vehicle may include an onboard control system, and the S2S process and the onboard service are both run in the onboard control system. The onboard control system includes a vehicle state update system, and the vehicle state update system includes a vehicle signal processing system.
[0137] The present disclosure also provides a readable storage medium, in which a computer program is stored, and the computer program is used to implement the above method when executed by a processor. "Readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use in an instruction execution system, device or equipment or in combination with these instruction execution systems, devices or equipment. More specific examples of readable storage media include the following: an electrical connection portion (electronic device) with one or more wirings, a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM), etc.
[0138] The present disclosure also provides a computer program product, and the method of the present disclosure can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed, the process or function of the present disclosure is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.
[0139] The computer program or instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The readable storage medium may be any available medium that can be accessed or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state drive. The computer readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0140] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0141] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0144] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment / method or example. Moreover, the specific features, structures, or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments / methods or examples described in this specification and features of different embodiments / methods or examples, unless they are contradictory.
[0145] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0146] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. A vehicle signal processing method, characterized in that: include: Loading signal processing rule data, the signal processing rule data is used to represent a first mapping relationship between an in-vehicle service and a vehicle signal required by the in-vehicle service; Receiving a message including a vehicle signal; Parsing the message to obtain a parsed signal value of the vehicle signal; If the analyzed signal value is different from the existing signal value of the corresponding vehicle signal, determining the vehicle service requiring the corresponding vehicle signal through the first mapping relationship represented by the signal processing rule data; as well as Reporting vehicle signal data to an in-vehicle service that requires the corresponding vehicle signal, wherein the vehicle signal data is obtained by analyzing the signal value.
2. The vehicle signal processing method according to claim 1, characterized in that: The signal processing rule data is also used to indicate the position of the vehicle signal in the message; parsing the message to obtain the parsed signal value of the vehicle signal includes: The vehicle signal at the position indicated by the signal processing rule data in the message is extracted to obtain a parsed signal value of the vehicle signal.
3. The vehicle signal processing method according to claim 1 or 2, characterized in that: The signal processing rule data is also used to represent a second mapping relationship between the vehicle signal and the message ID; Before parsing the message to obtain the parsed signal value of the vehicle signal, the method further includes: Obtaining a message ID of the message; and The vehicle signal included in the message is determined according to the second mapping relationship represented by the message ID and the signal processing rule data.
4. The vehicle signal processing method according to claim 1, characterized in that: The method further comprises: If the analyzed signal value is different from the existing signal value, the existing signal value is replaced by the analyzed signal value.
5. The vehicle signal processing method according to claim 1 or 4, characterized in that: The existing signal value is cached in the memory.
6. The vehicle signal processing method according to claim 1, characterized in that: The vehicle signal data includes the analyzed signal value, or a state value of the corresponding vehicle signal obtained by calculating the analyzed signal value.
7. The vehicle signal processing method according to claim 6, characterized in that: The signal processing rule data is also used to represent the operation rule of the signal value of the vehicle signal; if the vehicle signal data includes the state value of the corresponding vehicle signal, before reporting the vehicle signal data to the vehicle service requiring the corresponding vehicle signal, the method further includes: Determining a calculation rule for a vehicle signal corresponding to the analyzed signal value from the processing rule data; and The analysis signal value is operated according to the operation rule to obtain the state value of the corresponding vehicle signal.
8. The vehicle signal processing method according to claim 6 or 7, characterized in that: Reporting vehicle signal data to the vehicle service that requires the corresponding vehicle signal includes: Assigning a value to a callback function of an in-vehicle service that requires the corresponding vehicle signal, wherein the value of the assignment is the vehicle signal data; and The vehicle signal data is reported to the corresponding in-vehicle service through the assigned callback function.
9. The vehicle signal processing method according to claim 8, characterized in that: Before receiving the message including the vehicle signal, the method further includes: Register the callback function of the in-vehicle service.
10. The vehicle signal processing method according to claim 1, characterized in that: If the resolved signal value is the same as the existing signal value, the resolved signal value is discarded.
11. A vehicle status updating method, characterized in that: include: Reporting vehicle signal data according to the vehicle signal processing method according to any one of claims 1 to 10; The in-vehicle service receives the reported vehicle signal data; The in-vehicle service integrates the vehicle signal data to obtain state parameter information of the vehicle state corresponding to the in-vehicle service; The status parameter information is sent to the client, and the status parameter information is used by the client to update the vehicle status.
12. A vehicle signal processing system, characterized in that: include: A processor and a memory, wherein the memory stores a computer program. When the computer program is executed by the processor, the processor performs the following process: Loading signal processing rule data, the signal processing rule data is used to represent a first mapping relationship between an in-vehicle service and a vehicle signal required by the in-vehicle service; Receiving a message including a vehicle signal; Parsing the message to obtain a parsed signal value of the vehicle signal; If the analyzed signal value is different from the existing signal value of the corresponding vehicle signal, determining the vehicle service requiring the corresponding vehicle signal through the first mapping relationship represented by the signal processing rule data; as well as Reporting vehicle signal data to an in-vehicle service that requires the corresponding vehicle signal, wherein the vehicle signal data is obtained by analyzing the signal value.
13. A vehicle status update system, characterized in that: include: A processor and a memory, wherein the memory stores a computer program. When the computer program is executed by the processor, the processor performs the following process: Reporting vehicle signal data according to the vehicle signal processing method according to any one of claims 1 to 10; The in-vehicle service receives the reported vehicle signal data; The in-vehicle service integrates the vehicle signal data to obtain state parameter information of the vehicle state corresponding to the in-vehicle service; The status parameter information is sent to the client, and the status parameter information is used by the client to update the vehicle status.
14. A vehicle, characterized in that: include: The vehicle signal processing system as claimed in claim 12, or the vehicle status updating system as claimed in claim 13.
15. A computer program product, characterized in that The computer program product comprises a computer program, which is used to implement at least the method according to any one of claims 1 to 11 when executed by a processor.
Citation Information
Cited By
Vehicle signal-to-service conversion method and system, electronic equipment, storage medium and vehicle
CN121690887A
