Signal and service message conversion method and device, electronic equipment and storage medium
By calling target conversion and turn-around codes in the autonomous driving system, precise conversion from raw signals to service information and from vehicle control service messages to signals is achieved, solving the problem that signals and service information cannot be directly converted and ensuring the stable operation of the autonomous driving system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-13
AI Technical Summary
In autonomous driving systems, raw signals cannot be directly converted into service information with driving decision-making value, and service information cannot be directly converted into control signals that can be executed by hardware, resulting in the system's inability to form environmental cognition and execute effective driving strategies.
By receiving the raw signal, calling the target conversion code to convert it into service information, and using the target return code to convert the vehicle control service message into a signal, the system achieves accurate matching and efficient conversion between the signal and service information by utilizing the preset mapping relationship and signal parsing encapsulation code.
It improves the accuracy and efficiency of signal and service information conversion, ensures the stable operation of autonomous vehicles, and enhances the system's response speed and reliability.
Smart Images

Figure CN121664879A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of vehicle communication technology, and in particular to a method, apparatus, electronic device, and storage medium for converting signals and service messages. Background Technology
[0002] In autonomous driving systems, signals serve as inputs and can be digital representations of physical quantities directly acquired by hardware sensors, such as point cloud data generated by LiDAR and pixel arrays of images captured by cameras. These signals typically exist in binary or numerical array form. As outputs, signals can represent physical layer control parameters for the drive actuators, transformed from logical decisions output by higher-level functional modules (such as planning and control modules). Service information, on the other hand, is a standardized data unit encapsulating the decision results of higher-level functional modules, carrying concrete operational instructions.
[0003] It is necessary to transform the raw signals at the bottom layer into service information because the raw signals themselves do not have driving decision-making value. They must be processed to transform the raw signals into service information containing environmental semantics so that higher-level functional modules can understand the current road conditions and formulate reasonable driving strategies. If the system remains at the signal level, it cannot form an understanding of the environment, and the decision-making process cannot be carried out.
[0004] Conversely, converting service information into underlying control signals is equally crucial. This is because the decision-making instructions contained in the service information belong to the logical functional requirements and cannot be directly recognized and executed by the hardware. A signal conversion process is necessary to transform these decision-making instructions into specific control signals that the hardware can interpret, enabling the hardware to accurately execute the corresponding actions and translating service-level decisions into actual driving operations.
[0005] Therefore, the mutual conversion between signals and service information is the key to achieving a complete closed loop of perception, decision-making, and execution in autonomous driving systems. The conversion of signals into service information completes the leap from raw data to environmental cognition and decision-making, providing a logical basis for driving behavior; the conversion of service information into signals realizes the implementation from decision commands to hardware actions, ensuring the effective execution of driving strategies.
[0006] Therefore, a method for converting service information and signals is needed to support the stable operation of autonomous driving systems from environmental perception to safe driving. Summary of the Invention
[0007] This disclosure provides a method, apparatus, electronic device, and storage medium for converting signals and service messages to support the stable operation of an autonomous driving system from environmental perception to safe driving.
[0008] According to a first aspect of the present disclosure, a method for converting between signal and service messages is provided, comprising: Receive at least one raw signal, each of the at least one raw signal carrying a first signal type; Invoke the target conversion code corresponding to the first signal type, the target conversion code being used to convert a signal of the first signal type into service information; Based on the target conversion code, each of the at least one original signal is converted into a target service message; The target service message is sent to the corresponding subscriber, so that the subscriber generates a vehicle control service message based on the target service message and sends the vehicle control service message, wherein the vehicle control service message carries the service type. The vehicle control service message is received, and the target turn code corresponding to the service type is invoked. The target turn code is used to convert service information of the type of the service into a signal. Based on the target turn code, the vehicle control service message is converted into a target signal.
[0009] According to a second aspect of the present disclosure, a signal-to-service message conversion apparatus is provided, comprising: A raw signal receiving module is used to receive at least one raw signal, each of the at least one raw signal carrying a first signal type; The target conversion code invocation module is used to invoke the target conversion code corresponding to the first signal type, and the target conversion code is used to convert the signal of the first signal type into service information. A signal conversion module is used to convert each of the at least one original signal into a target service message based on the target conversion code. The target service message sending module is used to send the target service message to the corresponding subscriber, so that the subscriber generates a vehicle control service message based on the target service message and sends the vehicle control service message, wherein the vehicle control service message carries the service type. The target turn code module is used to receive the vehicle control service message and call the target turn code corresponding to the service type. The target turn code is used to convert service information of the type of the service into a signal. The service message conversion module is used to convert the vehicle control service message into a target signal based on the target turn code.
[0010] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method as described in any one of the first aspects above.
[0011] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided such that, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method described in any of the first aspects of the present disclosure. According to a fifth aspect of the present disclosure, a computer program product including instructions is provided that, when run on a computer, causes the computer to perform the method described in any of the first aspects of the present disclosure.
[0012] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects: By calling the corresponding target conversion code and target return code based on the first signal type of at least one original signal and the service type of the vehicle control service message, the conversion requirements of service messages and signals can be accurately matched, effectively improving the accuracy of mutual conversion between service messages and signals. At the same time, the code call eliminates the manual adaptation step, improving the conversion efficiency. Furthermore, the closed-loop conversion from signal to target service message and from vehicle control service message to target signal enhances the smoothness of mutual conversion between service messages and signals, thereby ensuring the stable driving of autonomous vehicles.
[0013] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0014] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0015] Figure 1 This is a flowchart illustrating a method for converting signals and service messages according to an exemplary embodiment; Figure 2 This is a schematic diagram illustrating a process for receiving at least one raw signal according to an exemplary embodiment; Figure 3 This is a schematic diagram illustrating a process for verifying whether at least one original signal needs to be converted, according to an exemplary embodiment. Figure 4 This is a schematic diagram illustrating a process of converting at least one original signal into a target service message based on a target conversion code, according to an exemplary embodiment. Figure 5 This is a schematic diagram illustrating a process of converting vehicle control service messages into target signals based on target turn codes, according to an exemplary embodiment. Figure 6 This is a flowchart illustrating a method for invoking target conversion code corresponding to a first signal type, according to an exemplary embodiment. Figure 7 This is a block diagram illustrating a signal-to-service message conversion device according to an exemplary embodiment; Figure 8 This is a block diagram illustrating an electronic device for converting signal and service messages according to an exemplary embodiment. Detailed Implementation
[0016] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0017] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar different contents and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0018] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0019] Figure 1 This is a flowchart illustrating a method for converting signal and service messages according to an exemplary embodiment. This method is applied to a multi-core heterogeneous platform, such as... Figure 1 As shown, it includes the following steps: In step S101, at least one raw signal is received.
[0020] In one specific embodiment, at least one raw signal each carries a first signal type. The raw signal is an unprocessed, low-level data unit directly acquired by the hardware device in the autonomous driving system. The raw signal can be a binary sequence in a CAN message.
[0021] For example, the raw signals can be wheel speed signals and accelerator pedal position signals, etc. Specifically, the wheel speed signals can be collected by wheel speed sensors of each wheel, and the accelerator pedal position signals can be collected by pedal position sensors.
[0022] In a specific embodiment, such as Figure 2 As shown, the above method also includes: In step S201, the preset conversion module is run based on the preset running configuration file of the preset conversion module.
[0023] In one specific embodiment, the preset conversion module can be an S2S service, deployed in the second preset processing unit. For example, the second preset processing unit can be an A core. The preset conversion module is used to convert signals and service information to each other. The second preset processing unit is a high-performance service processing center that runs the Ap AUTOSAR platform and provides the runtime environment for the service.
[0024] In one specific embodiment, the above-mentioned preset running configuration file based on the preset conversion module, running the preset conversion module may include: storing the preset running configuration file of the preset conversion module in the second preset processing unit, so as to run the preset conversion module in the second preset processing unit.
[0025] In one specific embodiment, receiving at least one raw signal includes: In step S203, at least one raw signal is received based on the first preset processing unit.
[0026] In one specific embodiment, the first preset processing unit is a real-time signal gateway for interfacing with the vehicle communication bus; exemplarily, the second preset processing unit can be an R-core. The first preset processing unit can be based on the CP Autosar platform and forward signals to the conversion module in the second preset processing unit. In step S205, at least one raw signal is sent to the preset conversion module based on the first preset processing unit, so that the preset conversion module receives at least one raw signal.
[0027] In one specific embodiment, receiving at least one raw signal based on the first preset processing unit may include: receiving at least one raw signal from the vehicle communication bus based on the first preset processing unit.
[0028] In the above embodiments, by running the preset conversion module based on the preset running configuration file, and combining the reception and forwarding of the original signal by the first preset processing unit, the standardization and stability of the system processing link are effectively improved.
[0029] In a specific embodiment, such as Figure 3 As shown, the above method includes: In step S301, based on preset processing signal information, it is verified whether at least one original signal needs to be converted.
[0030] In one specific embodiment, the preset processing signal information includes the signal type corresponding to the signal that needs to be converted.
[0031] In step S303, if at least one original signal needs to be converted, the following conversion steps are performed.
[0032] In the above embodiments, by verifying whether the original signal needs to be converted based on preset processing signal information, it is ensured that only signals that meet the conditions will enter the conversion process, thereby significantly improving the system processing efficiency and the targeting of the conversion, while avoiding unnecessary resource consumption and enhancing the overall system response speed and reliability.
[0033] In step S103, the target conversion code corresponding to the first signal type is called.
[0034] In one specific embodiment, the target conversion code is used to convert a signal of type 1 signal type into service information.
[0035] In a specific embodiment, the above-mentioned invocation of the target conversion code corresponding to the first signal type may include: invoking the target conversion code corresponding to the first signal type based on a preset conversion module.
[0036] In step S105, at least one original signal is converted into a target service message based on the target conversion code.
[0037] In one specific embodiment, the target service message is service-level information with environmental semantics or state logic. For example, the target service message may be event notification information and field update information, etc.
[0038] In step S107, the target service message is sent to the corresponding subscriber, so that the subscriber generates a vehicle control service message based on the target service message and sends the vehicle control service message.
[0039] In one specific embodiment, the vehicle control service message carries a service type. The vehicle control service message can be generated by the subscriber performing algorithmic analysis on the target service message, generating vehicle control instructions, and then encapsulating the vehicle control instructions into a Method service message according to the Ap AUTOSAR platform standard.
[0040] In one specific embodiment, sending the target service message to the corresponding subscriber may include: sending the target service message to the corresponding subscriber through the communication module of the Ap AUTOSAR platform based on a preset conversion module.
[0041] In step S109, a vehicle control service message is received, and the target turn code corresponding to the service type is invoked.
[0042] In one specific embodiment, receiving the vehicle control service message and calling the target turn-around code corresponding to the service type may include: receiving the vehicle control service message based on a preset conversion module and calling the target turn-around code corresponding to the service type.
[0043] In one specific embodiment, the target loop code is used to convert service information of type service into a signal.
[0044] In one specific embodiment, the above method further includes: Based on the preset signal definition file, generate signal parsing code and signal encapsulation code corresponding to different types of signals.
[0045] In one specific embodiment, the signal parsing code is used to parse signals of the corresponding type, and the signal encapsulation code is used to encapsulate signals of the corresponding type.
[0046] In a specific embodiment, such as Figure 4 As shown, before calling the target conversion code corresponding to the first signal type, the above method also includes: In step S401, the signal parsing code corresponding to the first signal type is called.
[0047] In a specific embodiment, the above-mentioned invocation of the signal parsing code corresponding to the first signal type may include: invoking the signal parsing code corresponding to the first signal type based on a preset conversion module.
[0048] In step S403, at least one original signal is parsed based on the signal parsing code to obtain at least one signal value.
[0049] In one specific embodiment, the signal value is standardized data with physical meaning that can characterize device parameters, environmental conditions, and system status.
[0050] In one specific embodiment, the above-mentioned conversion of at least one original signal into a target service message based on the target conversion code includes: In step S405, at least one signal value is converted into a target service message based on the target conversion code.
[0051] In a specific embodiment, such as Figure 5 As shown, the above-mentioned conversion of vehicle control service messages into target signals based on target turn codes includes: In step S501, the vehicle control service message is converted into a basic signal based on the target turn code.
[0052] In one specific embodiment, the base signal carries a second signal type. The base signal is an intermediate signal form that has preliminary structured features but has not yet completed final encapsulation.
[0053] In step S503, the signal encapsulation code corresponding to the second signal type is called.
[0054] In a specific embodiment, the above-mentioned invocation of the signal encapsulation code corresponding to the second signal type may include: invoking the signal encapsulation code corresponding to the second signal type based on a preset conversion module.
[0055] In step S505, the basic signal is encapsulated based on the signal encapsulation code to obtain the target signal.
[0056] In one specific embodiment, the target signal conforms to the transmittable signal unit of the vehicle communication bus specification. The target signal encapsulates specific control command parameters, enabling the electronic control unit to directly receive, parse and execute the corresponding vehicle control actions.
[0057] In the above embodiments, by generating signal parsing code and signal encapsulation code that match the signal type based on a preset signal definition file, the accuracy and reliability of signal value extraction and encapsulation are ensured, and the standardization of signal processing flow in vehicle communication scenarios is improved.
[0058] In one specific embodiment, the above method further includes: Based on the preset mapping relationship, preset conversion codes corresponding to different types of signals and preset rotation codes corresponding to different types of service information are generated.
[0059] In one specific embodiment, a preset conversion code is used to convert different types of signals into their corresponding types of service information, a preset rollback code is used to convert different types of service information into their corresponding types of signals, and a preset mapping relationship includes the conversion correspondence between different types of service information and different types of signals.
[0060] In a specific embodiment, after generating preset conversion codes corresponding to different types of signals and preset rotation codes corresponding to different types of service information based on preset mapping relationships, the above method may further include: The preset conversion code and preset rotation code are stored in the second preset processing unit so that the preset conversion module can call any preset conversion code to convert the corresponding type of signal into a service message, and call any preset rotation code to convert the corresponding type of service message into a signal.
[0061] In the above embodiments, by generating preset conversion codes and preset return codes that match the signal type and service information type based on preset mapping relationships, the standardization and automation of bidirectional conversion between signals and service information are realized, ensuring the accuracy and reliability of the conversion process.
[0062] In one specific embodiment, the preset mapping relationship also includes priority indication information corresponding to different types of signals.
[0063] In one specific embodiment, the above method may further include: storing a preset mapping relationship in a second preset processing unit.
[0064] In one specific embodiment, when at least one original signal is multiple original signals, such as Figure 6 As shown, the target conversion code corresponding to the first signal type mentioned above includes: In step S601, priority indication information corresponding to each of the multiple original signals is determined based on a preset mapping relationship.
[0065] In a specific embodiment, the above-mentioned determination of the priority indication information corresponding to each of the multiple original signals based on the preset mapping relationship may include: querying the preset mapping relationship based on the preset conversion module to determine the priority indication information corresponding to each of the multiple original signals.
[0066] In step S603, the target conversion code corresponding to the first signal type of the original signal is called in order of priority from highest to lowest as indicated by the priority indication information.
[0067] In the above embodiments, by calling the target conversion code in descending order of priority, it is ensured that high-priority original signals can be converted into service messages first, thereby significantly improving the system's real-time response capability, processing efficiency and reliability, and effectively guaranteeing low-latency conversion and transmission of critical signals.
[0068] In step S111, the vehicle control service message is converted into a target signal based on the target turn code.
[0069] In one specific embodiment, after converting the vehicle control service message into a target signal based on the target turn code, the above method further includes: The target signal is sent to the vehicle communication bus so that the corresponding electronic control unit can receive the target signal from the vehicle communication bus and control the vehicle based on the target signal.
[0070] In one specific embodiment, sending the target signal to the vehicle communication bus may include: sending the target signal to a first preset processing unit based on a preset conversion module, and sending the target signal to the vehicle communication bus based on the first preset processing unit.
[0071] In the above embodiments, by sending the target signal after the slew code conversion to the vehicle communication bus, a complete execution link from service message to vehicle physical control is constructed, enabling the corresponding electronic control unit to receive the target signal, thereby enabling the actuator to complete precise vehicle control actions, improving the transmission reliability of vehicle control commands and the overall system response efficiency.
[0072] Figure 7 This is a block diagram illustrating a signal-to-service message conversion apparatus according to an exemplary embodiment. (Refer to...) Figure 7 The device includes: The raw signal receiving module 710 is used to receive at least one raw signal, each of which carries a first signal type. The target conversion code calling module 720 is used to call the target conversion code corresponding to the first signal type; The signal conversion module 730 is used to convert at least one original signal into a target service message based on the target conversion code. The target service message sending module 740 is used to send the target service message to the corresponding subscriber, so that the subscriber generates a vehicle control service message based on the target service message and sends the vehicle control service message. The vehicle control service message carries the service type, and the target conversion code is used to convert the signal of type first signal type into service information. The target turn code module 750 is used to receive vehicle control service messages and call the target turn code corresponding to the service type. The target turn code is used to convert service information of type service into a signal. The service message conversion module 760 is used to convert vehicle control service messages into target signals based on the target turn code.
[0073] In an optional embodiment, the above-described apparatus further includes: The first code generation module is used to generate preset conversion codes corresponding to different types of signals and preset rotation codes corresponding to different types of service information based on preset mapping relationships. The preset conversion codes are used to convert different types of signals into their corresponding types of service information, and the preset rotation codes are used to convert different types of service information into their corresponding types of signals. The preset mapping relationship includes the conversion correspondence between different types of service information and different types of signals.
[0074] In an optional embodiment, the aforementioned preset mapping relationship further includes priority indication information corresponding to different types of signals. When at least one original signal is multiple original signals, the aforementioned target conversion code invocation module 720 includes: The priority indication information determination unit is used to determine the priority indication information corresponding to each of the multiple original signals based on a preset mapping relationship; The target conversion code invocation unit is used to invoke the target conversion code corresponding to the first signal type of the original signal in order of priority from highest to lowest as indicated by the priority indication information.
[0075] In an optional embodiment, the above-described apparatus further includes: The second code generation module is used to generate signal parsing code and signal encapsulation code corresponding to different types of signals based on a preset signal definition file; the signal parsing code is used to parse the corresponding type of signal, and the signal encapsulation code is used to encapsulate the corresponding type of signal. In an optional embodiment, prior to the target conversion code invocation module 720, the above-described apparatus further includes: The signal parsing code calling module is used to call the signal parsing code corresponding to the first signal type; The parsing module is used to parse at least one original signal based on the signal parsing code to obtain at least one signal value; In an optional embodiment, the signal conversion module 730 includes: A signal conversion unit is used to convert at least one signal value into a target service message based on a target conversion code. In an optional embodiment, the service message conversion module 760 includes: The service message conversion unit is used to convert vehicle control service messages into basic signals based on the target turn code, and the basic signals carry a second signal type. The signal encapsulation code calling unit is used to call the signal encapsulation code corresponding to the second signal type; The encapsulation unit is used to encapsulate the basic signal based on the signal encapsulation code to obtain the target signal.
[0076] In an optional embodiment, prior to the target conversion code invocation module 720, the above-mentioned apparatus includes: The verification module is used to verify whether at least one original signal needs to be converted based on preset processed signal information. The preset processed signal information includes the signal type corresponding to the signal that needs to be converted. The conversion module is used to perform conversion steps when at least one original signal needs to be converted.
[0077] In an optional embodiment, the above-described apparatus further includes: The preset conversion module execution module is used to run the preset conversion module based on the preset execution configuration file of the preset conversion module; In an optional embodiment, the raw signal receiving module 710 includes: A raw signal receiving unit is used to receive at least one raw signal based on a first preset processing unit; The raw signal transmission unit is used to transmit at least one raw signal to the preset conversion module based on the first preset processing unit, so that the preset conversion module receives at least one raw signal.
[0078] In an optional embodiment, after the service message conversion module 760, the above-mentioned apparatus further includes: The target signal transmission module is used to send the target signal to the vehicle communication bus so that the corresponding electronic control unit can receive the target signal from the vehicle communication bus and perform vehicle control based on the target signal.
[0079] Figure 8 This is a block diagram illustrating an electronic device for converting signal and service messages according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, the electronic device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for converting signals into service messages. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse.
[0080] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the electronic device to which the present disclosure is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements. In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement a signal-to-service message conversion method as described in the embodiments of this disclosure.
[0081] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the signal and service message conversion method of the embodiments of this disclosure.
[0082] In an exemplary embodiment, a computer program product including instructions is also provided, which, when run on a computer, causes the computer to perform the signal and service message conversion method of the embodiments of this disclosure.
[0083] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0084] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0085] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for converting signals to service messages, characterized in that, The method includes: Receive at least one raw signal, each of the at least one raw signal carrying a first signal type; Invoke the target conversion code corresponding to the first signal type, the target conversion code being used to convert a signal of the first signal type into service information; Based on the target conversion code, each of the at least one original signal is converted into a target service message; The target service message is sent to the corresponding subscriber, so that the subscriber generates a vehicle control service message based on the target service message and sends the vehicle control service message, wherein the vehicle control service message carries the service type. The vehicle control service message is received, and the target turn code corresponding to the service type is invoked. The target turn code is used to convert service information of the type of the service into a signal. Based on the target turn code, the vehicle control service message is converted into a target signal.
2. The method according to claim 1, characterized in that, The method further includes: Based on a preset mapping relationship, preset conversion codes corresponding to different types of signals and preset rotation codes corresponding to different types of service information are generated. The preset conversion codes are used to convert different types of signals into their corresponding types of service information, and the preset rotation codes are used to convert different types of service information into their corresponding types of signals. The preset mapping relationship includes the conversion correspondence between different types of service information and different types of signals.
3. The method according to claim 2, characterized in that, The preset mapping relationship also includes priority indication information corresponding to different types of signals. When the at least one original signal is multiple original signals, calling the target conversion code corresponding to the first signal type includes: Based on the preset mapping relationship, the priority indication information corresponding to each of the multiple original signals is determined; According to the priority indication information, the target conversion code corresponding to the first signal type of the original signal is called in order of priority from largest to smallest.
4. The method according to claim 1, characterized in that, The method further includes: Based on a preset signal definition file, signal parsing code and signal encapsulation code are generated for different types of signals; the signal parsing code is used to parse the corresponding type of signal, and the signal encapsulation code is used to encapsulate the corresponding type of signal. Before invoking the target conversion code corresponding to the first signal type, the method further includes: Call the signal parsing code corresponding to the first signal type; Based on the signal parsing code, the at least one original signal is parsed to obtain at least one signal value; The step of converting each of the at least one original signal into a target service message based on the target conversion code includes: Based on the target conversion code, each of the at least one signal value is converted into the target service message; The step of converting the vehicle control service message into a target signal based on the target turn code includes: Based on the target turn code, the vehicle control service message is converted into a basic signal, and the basic signal carries a second signal type; Call the signal encapsulation code corresponding to the second signal type; Based on the signal encapsulation code, the basic signal is encapsulated to obtain the target signal.
5. The method according to claim 1, characterized in that, Before invoking the target conversion code corresponding to the first signal type, the method includes: Based on preset processed signal information, verify whether the at least one original signal needs to be converted. The preset processing signal information includes the signal type corresponding to the signal that needs to be converted; If at least one of the original signals needs to be converted, a conversion step is performed.
6. The method according to claim 1, characterized in that, The method further includes: The preset conversion module is run based on the preset configuration file of the preset conversion module; The receiving of at least one raw signal includes: The first preset processing unit receives the at least one original signal; The first preset processing unit sends the at least one original signal to the preset conversion module so that the preset conversion module receives the at least one original signal.
7. The method according to claim 1, characterized in that, After converting the vehicle control service message into a target signal based on the target turn code, the method further includes: The target signal is sent to the vehicle communication bus so that the corresponding electronic control unit receives the target signal from the vehicle communication bus and performs vehicle control based on the target signal.
8. A signal-to-service message conversion device, characterized in that, include: A raw signal receiving module is used to receive at least one raw signal, each of the at least one raw signal carrying a first signal type; The target conversion code invocation module is used to invoke the target conversion code corresponding to the first signal type, and the target conversion code is used to convert the signal of the first signal type into service information. A signal conversion module is used to convert each of the at least one original signal into a target service message based on the target conversion code. The target service message sending module is used to send the target service message to the corresponding subscriber, so that the subscriber generates a vehicle control service message based on the target service message and sends the vehicle control service message, wherein the vehicle control service message carries the service type. The target turn code module is used to receive the vehicle control service message and call the target turn code corresponding to the service type. The target turn code is used to convert service information of the type of the service into a signal. The service message conversion module is used to convert the vehicle control service message into a target signal based on the target turn code.
9. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the signal and service message conversion method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the signal and service message conversion method as described in any one of claims 1 to 7.