Signal processing method and apparatus, vehicle, and storage medium

By providing signal values ​​and conversion factors on the server side, the problems of low resource consumption and low signal conversion efficiency in the vehicle SOA architecture are solved, and efficient signal processing is achieved.

CN117640676BActive Publication Date: 2026-11-24GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311348007.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-17
Publication Date
2026-11-24
Estimated Expiration
2043-10-17

AI Technical Summary

Technical Problem

In the automotive SOA architecture, the application needs to set up multiple modules and service interfaces when obtaining signals from the vehicle, which leads to excessive resource consumption. In addition, the application needs to convert signal values ​​and physical values ​​by itself, which is a cumbersome process.

Method used

The server receives signal acquisition requests from the application, obtains the signal value and conversion factor, and sends them to the application. The application then uses the conversion factor to directly calculate the physical value.

Benefits of technology

This reduces the number of modules and service interfaces used in the vehicle system to acquire vehicle signals, thus improving the efficiency of signal value to physical value conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117640676B_ABST
    Figure CN117640676B_ABST
Patent Text Reader

Abstract

This application provides a signal processing method, apparatus, vehicle, and storage medium, relating to the field of vehicle communication technology. By receiving a signal acquisition request from an application, the method acquires the signal value and conversion factor corresponding to the signal identification information in the acquisition request. The conversion factor assists in converting the signal value into a physical value. The acquired signal value and conversion factor are sent to the application corresponding to the signal acquisition request. This allows the application to acquire different signals on the bus simply by searching for them on the server. Developers do not need to set up numerous modules and service interfaces in the vehicle system for acquiring vehicle signals, reducing resource consumption. Furthermore, since the server sends the conversion factor and signal value together to the application, the application can directly calculate based on the conversion factor when it needs to convert the signal value into a physical value, improving efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle communication technology, specifically to a signal processing method, apparatus, vehicle, and storage medium. Background Technology

[0002] With the development and evolution of automotive electronic and electrical architecture, more and more domain controllers are being applied to vehicle design. Domain controllers can centrally control a large number of related functions. As the functions of the whole vehicle become increasingly complex, the Service-Oriented Architecture (SOA), which features hardware-software decoupling, modularity, and standardization, has become the mainstream solution.

[0003] In the automotive SOA architecture, the application side (i.e., the application end) and the service provider communicate with each other through an interface. The electronic control units on the vehicle often communicate with each other through the vehicle bus (such as the controller area network bus or local interconnection network bus). The application side and the service provider communicate with each other through Ethernet.

[0004] In automotive systems, applications need to acquire signals from the entire vehicle and execute corresponding functions based on these signals. However, currently, when running applications on open operating systems (such as Linux), acquiring vehicle signals from the traditional vehicle bus is very cumbersome. Specifically, if an application needs to acquire vehicle signals, a module corresponding to the required signal must be set up in the automotive system. This module extracts the required signal from the bus, encapsulates it into a service interface, and then transmits the signal to the application through the service interface. Each signal requires a corresponding module, i.e., a corresponding service interface. This results in a large number of service interfaces in the automotive system when the application requires many signals, leading to significant resource consumption.

[0005] Furthermore, in existing technologies, when an application obtains vehicle signals through a service interface, the service interface typically sends the signal values, and the application itself converts these signals into physical values ​​according to the signal definition rules. This requires the application to understand the conversion relationship between signal and physical values, which is very cumbersome. Summary of the Invention

[0006] This application provides a signal processing method, apparatus, vehicle, and storage medium to solve the above-mentioned problems.

[0007] In a first aspect, embodiments of this application provide a signal processing method applied to a server, comprising: receiving a signal acquisition request from an application, the signal acquisition request including signal identification information; acquiring a signal value and a conversion factor corresponding to the signal identification information, the conversion factor being used to assist in converting the signal value into a physical value; and sending the acquired signal value and conversion factor to the application corresponding to the signal acquisition request.

[0008] Secondly, embodiments of this application provide a signal processing method applied to an application, comprising: sending a signal acquisition request to a server, the server being configured to receive the signal acquisition request, the signal acquisition request including signal identification information; acquiring a signal value and a conversion factor corresponding to the signal identification information; sending the acquired signal value and conversion factor to the application, wherein the conversion factor is used to assist in converting the signal value into a physical value; and upon receiving the signal value and conversion factor sent by the server, converting the signal value into a physical value according to the conversion factor.

[0009] Thirdly, embodiments of this application provide a signal processing apparatus, including a data acquisition module for receiving a signal acquisition request from an application terminal, the signal acquisition request including signal identification information; a mapping relationship acquisition module for acquiring a signal value and a conversion factor corresponding to the signal identification information, the conversion factor being used to assist in converting the signal value into a physical value; and a data transmission module for sending the acquired signal value and conversion factor to the application terminal corresponding to the signal acquisition request.

[0010] Fourthly, embodiments of this application provide a signal processing apparatus, including a request sending module for sending a signal acquisition request to a server, the server for receiving the signal acquisition request, the signal acquisition request including signal identification information, acquiring a signal value and a conversion factor corresponding to the signal identification information, and sending the acquired signal value and conversion factor to an application, wherein the conversion factor is used to assist in converting the signal value into a physical value; and an operation execution module for converting the signal value into a physical value according to the conversion factor when receiving the signal value and conversion factor sent by the server.

[0011] Fifthly, embodiments of this application provide a vehicle, the vehicle including a memory; one or more processors; one or more applications, the one or more applications being stored in the memory and used to execute the methods described above when invoked by one or more processors.

[0012] Sixthly, embodiments of this application provide a computer-readable storage medium storing program code, which is used to execute the above-described method when invoked by a processor.

[0013] The signal processing method, apparatus, vehicle, and storage medium provided in this application embodiment receive a signal acquisition request from an application, acquire a signal value and a conversion factor corresponding to the signal identification information in the signal acquisition request, and the conversion factor is used to assist in converting the signal value into a physical value; the acquired signal value and conversion factor are sent to the application corresponding to the signal acquisition request, so that when the application acquires different signals on the bus, it only needs to look up the signal from the server, and the developer does not need to set up too many modules and service interfaces for acquiring vehicle signals in the vehicle system, reducing resource consumption; in addition, since the server sends the conversion factor and signal value together to the application, the application can directly calculate based on the conversion factor when it needs to convert the signal value into a physical value, which improves efficiency. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 A schematic diagram of the structure of a signal processing system provided in an embodiment of this application is shown;

[0016] Figure 2 A schematic diagram illustrating the workflow of a signal parsing module provided in an exemplary embodiment of this application is shown.

[0017] Figure 3 This illustration shows a schematic diagram of the workflow of a signal data buffer module provided in an exemplary embodiment of this application;

[0018] Figure 4 This illustration shows a schematic diagram of the workflow of a signal management module provided in an exemplary embodiment of this application;

[0019] Figure 5 A schematic flowchart of a signal processing method provided in an embodiment of this application is shown;

[0020] Figure 6 A schematic flowchart of a signal processing method provided in another embodiment of this application is shown;

[0021] Figure 7 A schematic flowchart of a signal processing method provided in another embodiment of this application is shown;

[0022] Figure 8 A schematic diagram of the structure of a signal processing apparatus provided in an embodiment of this application is shown;

[0023] Figure 9 A schematic diagram of the structure of a signal processing apparatus provided in another embodiment of this application is shown;

[0024] Figure 10 A schematic diagram of the vehicle structure provided in an embodiment of this application is shown. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.

[0026] Please see Figure 1 , Figure 1 A schematic diagram of the structure of a signal processing system provided in an embodiment of this application is shown. The signal processing system 100 includes a message receiving and processing module 110, a message parsing module 120, a signal parsing module 130, a signal data buffering module 140, a signal management module 150, and a service interface 160.

[0027] Please see Figure 1 The signal processing system 100 is connected to the vehicle bus via the message receiving and processing module 110. The vehicle bus may include a Controller Area Network (CAN) bus and a Local Interconnect Network (LIN) bus. The signal processing system 100 is connected to the application that needs to use the signal processing system via a service interface 160.

[0028] The message receiving and processing module 110 can acquire CAN / LIN messages sent on the CAN / LIN bus in real time. Whenever a certain number of CAN / LIN messages are acquired, the acquired CAN / LIN messages are converted into Ethernet packets and sent to the message parsing module 120 via Ethernet.

[0029] The message parsing module 120 can receive Ethernet packets sent by the message receiving and processing module 110. Whenever an Ethernet packet is received, the message parsing module 120 parses the Ethernet packet back into the corresponding CAN / LIN message, and sends the parsed CAN / LIN messages together to the signal parsing module 130.

[0030] Please see Figure 2 The signal parsing module 130 receives multiple CAN / LIN messages simultaneously and parses them concurrently. Based on the vehicle message matrix rules, it can parse specific signal identification information and signal values ​​from the CAN / LIN messages. There is a mapping relationship between the signal identification information and signal values, and the signal parsing module 130 can send this data and their mapping relationships to the signal data buffer module 140.

[0031] The vehicle message matrix rule refers to the definition rules of signals in CAN / LIN messages. Since the vehicle bus transmits data through messages, the vehicle message matrix rule defines the data transmission rules of the bus. Common vehicle message matrix rules may include the Controller Area Network Database File (Data Base CAN, DBC) definition rules.

[0032] Please see Figure 3 After receiving signal identification information, signal values, and their mapping relationships, the signal data caching module 140, based on the vehicle message matrix rules, stores the signal identification information and signal values ​​in a pre-established cache pool. This cache pool, when pre-established, can include all signal identification information and the corresponding conversion factors for each signal identification information. The conversion factors are used to assist in converting signal values ​​into physical values; typically, the conversion factor for each signal identification information is fixed.

[0033] Service interface 160 is predefined by the developer at the initial design stage. For example, the service interface can be defined as shown in the table below:

[0034] Table 1

[0035]

[0036] Taking the SignalDBService service shown in the table above as an example, when an application needs to obtain a certain signal, it calls the GetSignal method (i.e., function) and inputs a string parameter. The input parameter can be the signal identifier information of the required signal. After a series of internal operations, if the SignalDBService service finds the signal identifier information in the cache pool, it outputs (returns) the corresponding parameters. The output parameters can include the encrypted signal value of an unsigned integer, the signal resolution of a floating-point number, and the signal offset value of a floating-point number.

[0037] Service interface 160 can receive signal acquisition requests sent by the application client. When service interface 160 receives a signal acquisition request from the application client, it forwards the request directly to the signal management module 150.

[0038] See Figure 4 , Figure 4 The working process of the signal management module is shown. The signal management module 150 searches in the cache pool according to the signal identification information sent by the service interface 160. When the signal identification information is found, the signal value and conversion factor that have a mapping relationship with the signal identification information are sent back to the application end corresponding to the signal acquisition request through the service interface 160. When the signal identification information cannot be found, an error code is sent to the application end corresponding to the signal acquisition request.

[0039] In some implementations, the signal management module 150 may encrypt the signal value to be sent before sending it to ensure data security.

[0040] Please see Figure 5 , Figure 5 A schematic flowchart of a signal processing method according to an embodiment of this application is shown. This signal processing method can be applied to a server, the signal processing system or device provided in the above embodiment, or a vehicle. Referring to the above signal processing system, the signal processing method may specifically include the following steps S110 to S130.

[0041] Step S110: Receive a signal acquisition request from the application, the signal acquisition request including signal identification information.

[0042] The signal processing system exposes a service interface to the application, through which it receives signal acquisition requests from the application. This service interface can have predefined input parameter rules; for example, it can specify that it only accepts signal acquisition requests with string input parameters.

[0043] In some implementations, the signal acquisition request may include signal identification information required by the application. Signal identification information is used to uniquely identify the signal; it can be the signal's identity information or the signal name, and is not limited here. For example, the identification information for a vehicle speed signal is BCS_VehSpd.

[0044] Step S120: Obtain the signal value and conversion factor corresponding to the signal identification information.

[0045] The signal value refers to the logical value of the signal corresponding to the signal identification information, which can be the bit length occupied by the signal in the message. A conversion factor can be used to convert the logical value of the signal into a physical value, which characterizes the physical state of the signal. The conversion factor can include signal resolution and signal offset. Signal resolution can be the amount of data represented by each bit, and signal offset can be used to determine the sign of the physical value. For example, assuming the signal value corresponding to the vehicle speed signal is 0x80, the signal resolution is 0.05625 km / h, and the signal offset is 0, then when converting the signal value to a physical value, the hexadecimal signal value 0x80 needs to be converted to decimal 128 first. Then, the decimal signal value 128 is multiplied by the signal resolution, and the product is added to the signal offset. The final physical value of the vehicle speed signal is V = 128 * 0.05625 km / h + 0 = 7.2 km / h. That is, the physical value corresponding to the current vehicle speed signal is 7.2 km / h.

[0046] Each signal has only one signal value at any given time, and correspondingly only one signal resolution and one signal offset value, from which a unique physical value can be calculated.

[0047] In some implementations, a buffer pool can be pre-defined during the development and design of the signal processing system. The buffer pool stores relevant data for all signals that the signal processing system can acquire. This data may include signal identification information and the mapping relationship between conversion factors (e.g., signal resolution and signal offset). In the buffer pool, the signal identification information uniquely represents the signal; therefore, the signal identification information is not null. Furthermore, other data items that have a mapping relationship with the signal identification information (e.g., signal resolution and signal offset) all have default values. These default values ​​can be empty (NULL) or pre-filled by the developer.

[0048] In other implementations, the buffer pool can be empty at the beginning of the signal processing system development. Each time new signal-related data is acquired, the mapping relationship of the new signal-related data is written into the buffer pool.

[0049] The cache pool can be set in the memory of the signal data cache module, and the signal data cache module performs data storage and other operations on the cache pool.

[0050] When the signal value and conversion factor corresponding to the signal identification information are obtained from the cache pool, step S130 is executed; when the signal value and conversion factor corresponding to the signal identification information are not obtained from the cache pool, an error code can be generated and sent to the application corresponding to the signal acquisition request. The error code can be a fixed string or a specific number, which can be preset at the beginning of the service interface design and is not limited here.

[0051] Step S130: Send the acquired signal value and conversion factor to the application corresponding to the signal acquisition request.

[0052] The signal management module can send the signal value and conversion factor corresponding to the signal identification information back to the application that requested the signal acquisition through the service interface.

[0053] Due to varying business requirements, some applications need specific physical values ​​to implement their functions, while others do not. If an application needs to use physical values ​​but the signal processing system only sends signal values, the application may be unable to convert the signal values ​​into physical values ​​without knowing the conversion factors (such as signal resolution and signal offset), rendering the relevant functions of that application unusable.

[0054] In existing technologies, if an application needs to convert signal values ​​into physical values, it must first obtain the signal definition rules when receiving the signal value of a certain signal for the first time, and record the signal and the corresponding signal definition rules. This allows the application to convert the signal value into a physical value when receiving the signal value again subsequently. If the application requires a large number of signals, the number of signal definition rules that need to be recorded is also large, consuming significant memory resources.

[0055] Therefore, in this embodiment of the application, by sending the signal value and the conversion factor together to the application that requested the signal acquisition, the application can directly calculate the required physical value without performing operations such as recording.

[0056] In some implementations, when sending the signal value and conversion factor, the signal value to be sent can be encrypted, and the encrypted signal value and conversion factor can be sent to the application requesting the signal acquisition to ensure the security of data transmission. Common encryption algorithms, including but not limited to 128-bit Advanced Encryption Standard 128 (AES128), hash encryption, and Data Encryption Standard (DES), can be used to encrypt the signal value. XOR encryption algorithms can also be used; no specific limitation is made here.

[0057] In this embodiment, the signal management module can send the signal value and conversion factor together through the service port to the application requesting the signal acquisition without considering the actual business needs of the application. Thus, once the application obtains the signal value, it can simultaneously know how to convert the signal value into a physical value, so that the application requesting the signal acquisition does not need to perform unnecessary operations, thereby improving the conversion efficiency.

[0058] The signal processing method provided in this application receives a signal acquisition request from an application, acquires the signal value and conversion factor corresponding to the signal identification information in the signal acquisition request, and the conversion factor is used to assist in converting the signal value into a physical value. The acquired signal value and conversion factor are sent to the application corresponding to the signal acquisition request, so that when the application acquires different signals on the bus, it only needs to look up the signal from the server. Developers do not need to set up too many modules and service interfaces for acquiring vehicle signals in the vehicle system, reducing resource consumption. In addition, since the server sends the conversion factor and signal value to the application together, the application can directly calculate based on the conversion factor when it needs to convert the signal value into a physical value, improving efficiency.

[0059] Please see Figure 6 , Figure 6 A schematic flowchart of a signal processing method according to another embodiment of this application is shown. This signal processing method can be applied to the signal processing system, signal processing device, or vehicle provided in the above embodiments. Referring to the above signal processing system, the signal processing method may specifically include the following steps S210 to S230.

[0060] Step S210: Obtain a message from the bus.

[0061] As shown above, the message receiving and processing module is connected to the vehicle bus, and can receive messages from the bus in real time through the message receiving and processing module.

[0062] The method of message acquisition can be determined by the communication architecture of the real-time operating system and the open operating system. The acquisition method includes, but is not limited to, Serial Peripheral Interface (SPI), Universal Asynchronous Receiver / Transmitter (UART), and Ethernet communication. This application embodiment does not limit the method.

[0063] Step S220: Whenever the number of acquired messages reaches a preset number, the preset number of messages are parsed to obtain multiple sets of signal identification information and signal values, with each signal identification information corresponding to a signal value.

[0064] In some implementations, the message receiving and processing module and the message parsing module can communicate via Ethernet, for example, via the Audio / Video Transport Protocol (AVTP). The message receiving and processing module can calculate the number of messages (i.e., frames) acquired from the bus. Whenever the number of acquired messages reaches a preset number, it writes the received multiple frames into an AVTP message and sends the AVTP message to the message parsing module via Ethernet.

[0065] When the message parsing module receives an AVTP message, it can parse it to reconstruct the CAN / LIN message from the AVTP message. Understandably, if the message receiving and processing module writes each CAN / LIN message into an AVTP message and sends it to the message parsing module, the Ethernet AVTP message transmission pressure will be extremely high when the number of CAN / LIN messages is large. This will not only consume a lot of resources but may also lead to message loss.

[0066] Therefore, the message receiving and processing module writes the received multi-frame messages into AVTP messages and sends them to the message parsing module. The message parsing module parses the AVTP messages to restore them into multi-frame messages at once, and sends them to the signal parsing module together, thereby reducing the message transmission pressure.

[0067] In some implementations, the signal parsing module can parse the received multi-frame messages one by one according to the vehicle's message matrix rules. Taking the CAN bus as an example, the corresponding message matrix rules are the DBC definition rules. For example, the DBC definition rules require that the CAN message define the signal name, the message identifier information of the signal, the start point of the signal in the message, the length occupied by the signal (i.e., the signal value mentioned above), the signal resolution, and the signal offset value. The signal parsing module parses the message frame by frame according to the DBC definition rules, which can parse the message into specific signal identifier information and signal value data.

[0068] Step S230: Update the mapping relationship between signal identification information and signal value based on multiple sets of signal identification information and signal value.

[0069] As previously mentioned, the cache pool can pre-define the default values ​​and corresponding conversion factors for the data corresponding to each signal identifier during the design phase. When the signal parsing module obtains multiple sets of signal identifier information and signal values, it can send these multiple sets of signal identifier information and signal values ​​to the signal data cache module to store and record the obtained mapping relationship.

[0070] In some implementations, the signal data caching module can search for the signal identification information in the current cache pool for each set of acquired signal identification information and the mapping relationship between signal values; if the signal identification information is found in the cache pool, the signal value corresponding to the acquired signal identification information is used to replace the original signal value corresponding to the signal identification information in the current cache pool.

[0071] It is understandable that the state of a signal can change in real time during vehicle operation. For services that require acquiring signal values ​​(or physical values), the latest data is usually needed to ensure timely service. Therefore, whenever the relevant content of a signal changes, a CAN / LIN message is sent on the bus. The CAN / LIN message is acquired and parsed to obtain the signal value reflecting the latest state of the signal.

[0072] When the signal data caching module finds that the signal identification information obtained this time has already been preset in the current cache pool, it will update the mapping relationship corresponding to the signal identification information obtained this time to the cache pool.

[0073] In some implementations, if the mapping relationship corresponding to the signal identifier information obtained this time is the same as the existing mapping relationship in the cache pool, the update operation is skipped. In other implementations, regardless of whether the mapping relationship corresponding to the signal identifier information obtained this time is the same as the existing mapping relationship in the cache pool, the existing mapping relationship in the cache pool is deleted and the obtained mapping relationship is written into the cache pool.

[0074] In some implementations, when the signal data caching module cannot find the acquired signal identification information in the current cache pool, it can write the acquired signal identification information, along with other data that has a mapping relationship with the signal identification information, into the cache pool.

[0075] As the signal identification information and the mapping relationship between signal values ​​are continuously acquired, the buffer pool can continuously update the signal identification information and the mapping relationship, ensuring that the data in the buffer pool is always up-to-date. In this embodiment, regardless of whether the application needs the latest data or historical data, the signal processing system in this embodiment only sends the latest data. If the application needs historical data, it can record the "latest data" acquired each time and retrieve historical data according to its own business needs.

[0076] In other implementations, a storage threshold n can be preset by the user, and each signal identifier can store the latest n signal values. The caching rule can be determined according to actual design requirements, but at least the cache pool should contain the latest signal value.

[0077] Step S240: Receive a signal acquisition request from the application, the signal acquisition request including signal identification information.

[0078] Step S250: Obtain the signal value and conversion factor corresponding to the signal identification information.

[0079] Step S260: Send the acquired signal value and conversion factor to the application corresponding to the signal acquisition request.

[0080] The specific implementation of steps S240 to S260 can be referred to steps S110 to S130 above, and will not be repeated here in the embodiments of this application.

[0081] Based on steps S210 to S260, whenever the number of acquired messages reaches a preset number, the preset number of messages are parsed. According to the parsed signal identification information and the mapping relationship between signal values, the mapping relationship in the buffer pool is updated, so that the data in the buffer pool is always the latest data, reducing the message transmission pressure and improving parsing efficiency.

[0082] Please see Figure 7 , Figure 7 A schematic flowchart of a signal processing method according to another embodiment of this application is shown. This signal processing method can be applied to an application, a signal processing device, or a vehicle. Specifically, the signal processing method may include steps S310 to S320.

[0083] Step S310: Send a signal acquisition request to the server. The signal acquisition request includes signal identification information.

[0084] In this embodiment, the server can be the signal processing system described in the above embodiment.

[0085] The signal acquisition request must be in the format specified by the server. For example, if the service interface of the signal processing system (i.e., the server) specifies that it only accepts signal acquisition requests in string format, then the application must send a string containing the signal identifier information of the required signal, using this string as the signal acquisition request.

[0086] Referring to the detailed description of steps S110 to S130, the server responds to the signal identification information in the signal acquisition request, retrieves the signal value and conversion factor corresponding to the signal identification information from the cache pool, and sends the retrieved signal value and conversion factor to the application corresponding to the signal acquisition request. The cache pool stores the mapping relationship between signal identification information, signal value and conversion factor, and the conversion factor is used to assist in converting the signal value into a physical value.

[0087] Step S320: Upon receiving the signal value and conversion factor sent by the server, convert the signal value into a physical value according to the conversion factor.

[0088] The step of converting the signal value into a physical value according to the conversion factor can refer to step 120 of the aforementioned embodiment, and will not be repeated here.

[0089] It should be noted that if a signal processing system needs to encrypt the signal value before sending it, the application end that is softly coupled with the signal processing system needs to be informed in advance of the encryption method and decryption method of the signal value.

[0090] Based on steps S310 to S320, when the signal value and conversion factor sent by the server are received, the signal value is converted into a physical value according to the conversion factor. This allows the application to calculate the physical value based on the conversion factor received at the same time without having to know the definition rules of the signal value in advance, thus improving efficiency.

[0091] Please see Figure 8 , Figure 8A schematic diagram of a signal processing apparatus according to an embodiment of this application is shown. The signal processing apparatus 200 includes: a data acquisition module 210, configured to receive a signal acquisition request from an application terminal, the signal acquisition request including signal identification information; a mapping relationship acquisition module 220, configured to acquire a signal value and a conversion factor corresponding to the signal identification information, the conversion factor being used to assist in converting the signal value into a physical value; and a data transmission module 230, configured to send the acquired signal value and conversion factor to the application terminal corresponding to the signal acquisition request.

[0092] In some embodiments, the signal processing device 200 further includes a buffer pool update module. The buffer pool update module is used to acquire packets from the bus; whenever the number of acquired packets reaches a preset number, it parses the preset number of packets to obtain multiple sets of signal identification information and signal values, each signal identification information corresponding to a signal value; and updates the mapping relationship between the signal identification information and the signal values ​​based on the multiple sets of signal identification information and signal values.

[0093] In some implementations, the cache pool update module is also used to search for each signal identifier in multiple sets of signal identifier information; if the signal identifier information is found, the signal value obtained this time corresponding to the signal identifier information is used to replace the saved signal value corresponding to the signal identifier information.

[0094] In some embodiments, the signal processing device 200 further includes an error response module. The error response module is used to generate an error code and send it to the application corresponding to the signal acquisition request if no signal value and conversion factor corresponding to the signal identification information are obtained.

[0095] In some implementations, the data sending module 230 is also used to encrypt the acquired signal value and send the encrypted signal value and the acquired conversion factor to the application terminal corresponding to the signal acquisition request.

[0096] In some implementations, the signal acquisition request, the signal value, and the conversion factor are all transmitted through a unified service interface, and the signal acquisition request satisfies the preset input parameter rules of the service interface.

[0097] Those skilled in the art will clearly understand that the signal processing apparatus 200 provided in the embodiments of this application can implement the signal processing method provided in the embodiments of this application. The specific working process of the above modules can be found in the corresponding process of the signal processing method in the embodiments of this application, and will not be described further here.

[0098] In the embodiments provided in this application, the coupling, direct coupling, or communication connection between the modules shown or discussed may be indirect coupling or communication coupling through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms. The embodiments of this application do not limit this.

[0099] Furthermore, the functional modules in the embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules, and this application embodiment does not impose any restrictions on this.

[0100] Please see Figure 9 , Figure 9 A schematic diagram of a signal processing apparatus according to another embodiment of this application is shown. The signal processing apparatus 300 includes: a request sending module 310, configured to send a signal acquisition request to a server, the server being configured to receive the signal acquisition request, the signal acquisition request including signal identification information, acquiring a signal value and a conversion factor corresponding to the signal identification information, and sending the acquired signal value and conversion factor to the application, wherein the conversion factor is used to assist in converting the signal value into a physical value; and a calculation execution module 320, configured to convert the signal value into a physical value according to the conversion factor when receiving the signal value and conversion factor sent by the server.

[0101] Those skilled in the art will clearly understand that the signal processing apparatus 300 provided in the embodiments of this application can implement the signal processing method provided in the embodiments of this application. The specific working process of the above modules can be found in the corresponding process of the signal processing method in the embodiments of this application, and will not be described further here.

[0102] In the embodiments provided in this application, the coupling, direct coupling, or communication connection between the modules shown or discussed may be indirect coupling or communication coupling through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms. The embodiments of this application do not limit this.

[0103] Furthermore, the functional modules in the embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules, and this application embodiment does not impose any restrictions on this.

[0104] Please see Figure 10 , Figure 10A schematic diagram of the structure of a vehicle 400 provided in an embodiment of this application is shown. The vehicle includes a memory 410; one or more processors 420; and one or more application programs, which are stored in the memory 410 and used to execute the methods as described in the above method embodiments when invoked by one or more processors 420.

[0105] The processor 420 may include one or more processing cores. The processor 420 connects to various parts within the vehicle 400 using various interfaces and lines, and performs various vehicle functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 410, and by calling data stored in the memory 410. The processor 420 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 420 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. It is understood that the aforementioned modem may also not be integrated into the processor 420, but may be implemented separately through a communication chip.

[0106] The memory 410 may include random access memory (RAM) or read-only memory (ROM). The memory 410 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 410 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the various method embodiments described above, etc. The data storage area may store data created by the vehicle 400 during use.

[0107] This application embodiment also provides a computer-readable storage medium storing program code, which is used to execute the method described in the above method embodiments when called by a processor.

[0108] Computer-readable storage media can be electronic storage devices such as flash memory, electrically erasable programmable read-only memory (EEPROM), electrically programmable read-only memory (EPROM), hard disk, or read-only memory (ROM). In some embodiments, the computer-readable storage medium may include a non-transitory computer-readable storage medium (NTRSM). The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code may be compressed in an appropriate form.

[0109] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although this application has disclosed preferred embodiments as above, it is not intended to limit this application. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the technical solution of this application. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of this application without departing from the scope of the technical solution of this application shall still fall within the scope of the technical solution of this application.

Claims

1. A signal processing method, characterized in that, Applied to the server side, the method includes: Receive a signal acquisition request from the application, the signal acquisition request including signal identification information; The signal identification information included in the signal acquisition request is searched in the cache pool, which stores the mapping relationship between signal identification information, signal value and conversion factor; When the signal identification information included in the signal acquisition request is found, the signal value and conversion factor that have a mapping relationship with the signal identification information included in the signal acquisition request are obtained from the cache pool. The conversion factor is used to assist in converting the signal value into a physical value. The acquired signal value and conversion factor are sent to the application corresponding to the signal acquisition request.

2. The method according to claim 1, characterized in that, The method further includes: Obtain messages from the bus; Whenever the number of messages acquired reaches a preset number, the preset number of messages are parsed to obtain multiple sets of signal identification information and signal values, with each signal identification information corresponding to a signal value; Based on the multiple sets of signal identification information and signal values, update the mapping relationship between signal identification information and signal values.

3. The method according to claim 2, characterized in that, The step of updating the mapping relationship between signal identification information and signal value based on the multiple sets of signal identification information and signal value includes: Find each signal identifier in multiple sets of signal identifier information; If the signal identification information is found, the signal value obtained in this instance corresponding to the signal identification information is used to replace the previously saved signal value.

4. The method according to claim 1, characterized in that, The method further includes: If the signal value and conversion factor corresponding to the signal identification information are not obtained, an error code is generated and sent to the application corresponding to the signal acquisition request.

5. The method according to claim 1, characterized in that, The step of sending the acquired signal value and conversion factor to the application corresponding to the signal acquisition request includes: The acquired signal value is encrypted; The encrypted signal value and the obtained conversion factor are sent to the application terminal.

6. The method according to claim 1, characterized in that, The signal acquisition request, the signal value, and the conversion factor are all transmitted through a unified service interface, and the signal acquisition request satisfies the preset input parameter rules of the service interface.

7. A signal processing method, characterized in that, When applied to the application side, the method includes: A signal acquisition request is sent to the server, which receives the signal acquisition request, which includes signal identification information. The server searches for the signal identification information included in the signal acquisition request in a cache pool, which stores a mapping relationship between signal identification information, signal value, and conversion factor. When the signal identification information included in the signal acquisition request is found, the server retrieves the signal value and conversion factor that have a mapping relationship with the signal identification information included in the signal acquisition request from the cache pool, and sends the retrieved signal value and conversion factor to the application. The conversion factor is used to assist in converting the signal value into a physical value. Upon receiving the signal value and conversion factor sent by the server, the signal value is converted into a physical value according to the conversion factor.

8. A signal processing apparatus, characterized in that, include: The data acquisition module is used to receive a signal acquisition request from the application, wherein the signal acquisition request includes signal identification information; The mapping relationship acquisition module is used to search for the signal identification information included in the signal acquisition request in the cache pool. The cache pool stores the mapping relationship between the signal identification information, the signal value, and the conversion factor. When the signal identification information included in the signal acquisition request is found, the module retrieves the signal value and the conversion factor that have a mapping relationship with the signal identification information included in the signal acquisition request from the cache pool. The conversion factor is used to assist in converting the signal value into a physical value. The data transmission module is used to send the acquired signal value and conversion factor to the application terminal corresponding to the signal acquisition request.

9. A signal processing apparatus, characterized in that, include: A request sending module is used to send a signal acquisition request to a server. The server receives the signal acquisition request, which includes signal identification information. The server searches for the signal identification information included in the signal acquisition request in a cache pool. The cache pool stores a mapping relationship between signal identification information, signal values, and conversion factors. When the signal identification information included in the signal acquisition request is found, the server retrieves the signal value and conversion factor that have a mapping relationship with the signal identification information included in the signal acquisition request from the cache pool, and sends the retrieved signal value and conversion factor to the application. The conversion factor is used to assist in converting the signal value into a physical value. The operation execution module is used to convert the signal value into a physical value according to the conversion factor when it receives the signal value and conversion factor sent by the server.

10. A vehicle, characterized in that, include: Memory; One or more processors; One or more applications, the one or more applications being stored in the memory and used to perform the method as described in any one of claims 1-7 when invoked by the one or more processors.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code that, when invoked by a processor, executes the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Vehicle data acquisition method and device, computer equipment and storage medium

    CN114760289A