Signal multiplexing method and device, controller, medium and product

By receiving and mapping CAN signals in the application layer of the automotive open system architecture, the problem that the existing technology cannot adapt to the customization needs of vehicle projects is solved, and more efficient communication and flexible customized support are achieved.

CN119996108APending Publication Date: 2025-05-13CHENGDU DESAY SV KAWA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510164337.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Existing methods use third-party software packages to process multiplexed signals, resulting in the inability to adapt to the customization needs of vehicle project development.

Method used

The CAN signal sent by the application software is received in the application layer of the automotive open system architecture, and map these signals into the original CAN message data based on the registered CAN signal and signal properties, and send it to the runtime environment layer.

Benefits of technology

By multiplexing CAN signals at the application layer, communication efficiency is improved and it can be more flexible to adapt to the customized needs of project development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996108A_ABST
    Figure CN119996108A_ABST
Patent Text Reader

Abstract

The invention discloses a signal multiplexing method and device, a controller, a medium and a product. The method is applied to an application layer of an automobile open system architecture, and comprises the following steps: receiving a group of CAN signals sent by application software; mapping the group of CAN signals into first CAN message original data based on the registered CAN signals and signal attributes; and sending the first CAN message original data to a runtime environment layer of the automobile open system architecture. According to the method, CAN signal multiplexing is carried out on the application layer of the automobile open system architecture, the communication efficiency can be improved, and the customization requirement of project development can be more flexibly met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of signal processing technology, and in particular to a method, device, controller, medium and product for signal multiplexing. Background Art

[0002] In CAN communication, only one signal can be transmitted through one data bit. If there are too many signals of the same type, they cannot be arranged in the same message for transmission. Multiplexed signals are used in CAN communication. Multiple signals can be transmitted through the same CAN message. Each signal is distinguished by an identifier, which can greatly reduce the number of messages and reduce the complexity and cost of the system.

[0003] Currently, the IPDUM module is used to support multiplexed signals in the automotive development system architecture, but this method relies on third-party software packages and third-party tool chains. However, when the customization requirements of the project development of the car company exceed the standard, the third-party software package or third-party tool chain cannot be directly modified, resulting in the third-party software package and third-party tool chain that can perform multiplexing being unable to adapt to the customization requirements of the project development. Summary of the invention

[0004] The present invention provides a method, device, controller, medium and product for signal multiplexing to solve the problem that the existing method uses a third-party software package to use multiplexed signals, resulting in the inability to adapt to the customized requirements of project development.

[0005] According to one aspect of the present invention, a signal multiplexing method is provided, which is applied to the application layer of an automotive open system architecture, comprising:

[0006] Receive a set of CAN signals sent by the application software;

[0007] Mapping the set of CAN signals into first CAN message raw data based on the registered CAN signals and signal attributes;

[0008] The first CAN message original data is sent to the runtime environment layer of the automotive open system architecture.

[0009] According to another aspect of the present invention, a signal multiplexing device is provided, the device being integrated into an application layer of an automotive open system architecture, comprising:

[0010] A receiving module is used to receive a set of CAN signals sent by the application software;

[0011] A mapping module, configured to map the group of CAN signals into first CAN message raw data based on the registered CAN signals and signal attributes;

[0012] A sending module is used to send the first CAN message original data to the runtime environment layer of the automotive open system architecture.

[0013] According to another aspect of the present invention, there is provided a controller, the controller comprising:

[0014] at least one processor;

[0015] and a memory communicatively coupled to the at least one processor;

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the signal multiplexing method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal multiplexing method described in any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product comprises a computer program. When the computer program is executed by a processor, the signal multiplexing method according to any embodiment of the present invention is implemented.

[0019] According to another method of the present invention, a vehicle is provided, wherein the vehicle includes the controller described in the embodiment of the present invention.

[0020] The technical solution of the embodiment of the present invention solves the problem that the existing multiplexing method cannot be applied to the customized needs of vehicle project development by performing multiplexing of CAN signals at the application layer of the automotive open system architecture, and achieves the beneficial effect of more flexibly adapting to the customized needs of project development.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A schematic flow chart of a signal multiplexing method provided in Embodiment 1 of the present invention;

[0024] Figure 2 A schematic diagram of an automotive open system architecture provided in Embodiment 1 of the present invention;

[0025] Figure 3 A layout diagram of a CAN signal in a signal multiplexing method provided in Embodiment 1 of the present invention;

[0026] Figure 4 A schematic flow chart of a signal multiplexing method provided in Embodiment 2 of the present invention;

[0027] Figure 5 A system topology diagram of a signal multiplexing method provided by a specific embodiment of the present invention;

[0028] Figure 6 A schematic diagram of the structure of a CAN signal multiplexer provided in a specific embodiment of the present invention;

[0029] Figure 7 A timing diagram of a signal multiplexing method provided by a specific embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the structure of a signal multiplexing device provided in Embodiment 3 of the present invention;

[0031] Fig. 9 The present invention is a schematic diagram of the structure of a controller of a signal multiplexing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should belong to the scope of protection of the present invention. It should be understood that the various steps recorded in the method implementation of the present invention can be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0033] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0036] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0037] Embodiment 1

[0038] Figure 1 A flow chart of a signal multiplexing method provided in Embodiment 1 of the present invention is provided. The method is applicable to situations where multiple signals are used for data transmission on a CAN network. The method can be performed by a signal multiplexing device, wherein the device can be implemented by software and / or hardware and is generally integrated in a vehicle controller.

[0039] A signal multiplexing method provided in the first embodiment of the present invention is applied to the application layer of the AUTOSAR architecture of an automotive open system. Figure 2 A schematic diagram of an automotive open system architecture provided in Embodiment 1 of the present invention is shown in FIG. Figure 2As shown in the figure, the AUTOSAR architecture includes the application layer, the runtime environment layer, the microcontroller abstraction layer, the ECU abstraction layer, the service layer and the complex driver layer.

[0040] like Figure 1 As shown, a signal multiplexing method provided in Embodiment 1 of the present invention includes the following steps:

[0041] S110: Receive a group of CAN signals sent by application software.

[0042] There is no specific restriction on the type and quantity of application software.

[0043] Among them, CAN signals are commonly used communication signals in the fields of automotive electronics, industrial automation, etc. A set of CAN signals usually has the following elements: CAN frame structure and signal data.

[0044] S120: Map the group of CAN signals into first CAN message original data based on the registered CAN signals and signal attributes.

[0045] In this embodiment, the CAN signal and signal attributes can be registered in advance in the application layer of the automotive open system architecture, and the application layer of the automotive open system architecture has a corresponding interface for registering the CAN signal and signal attributes sent by the application software. In the application layer of the automotive open system architecture, one application software can send one CAN signal at a time to complete the registration through the interface.

[0046] Among them, the registered signal attributes include at least: message identification, signal name, signal starting position, signal starting length, signal big-endian mode, multiplexing type, multiplexing value and signal sending type. It should be noted that in the existing automotive open system architecture, the data obtained from the runtime environment layer has been parsed into CAN signals by the service layer, 1 byte corresponds to 1 CAN signal, and 8 bytes can get 8 CAN signals. However, in the embodiment of the present invention, it is necessary to obtain the original data of the CAN message, so it is necessary to directly map the original CAN message into the CAN signal at the application layer, that is, each signal is a byte in the original data of the CAN message, so the data obtained at the runtime environment layer is the original data of the CAN message.

[0047] In this embodiment, when the application sends a CAN signal, the multiplexing value in the signal attribute of the CAN signal can be detected in the application layer of the automotive open system architecture, and then the signal composition and mapping relationship of the message can be determined according to the multiplexing value, and all signals in the same group can be packaged into the CAN message original data required by the runtime environment layer according to the signal attributes.

[0048] Furthermore, mapping the group of CAN signals into the first CAN message original data based on the registered CAN signals and signal attributes includes: detecting a multiplexing value in the signal attributes from the group of CAN signals; determining the signal composition and mapping relationship of the message according to the multiplexing value; determining the signal attributes of the group of CAN signals from the registered CAN signals and signal attributes; and packaging the group of CAN signals into the first CAN message original data according to the mapping relationship and the signal attributes.

[0049] Figure 3 A layout diagram of a CAN signal in a signal multiplexing method provided in Embodiment 1 of the present invention, such as Figure 3 As shown, one byte can represent the multiplexing value of a signal, and the multiplexing value can be 0 to 7, so the 8 bytes of the message can represent 64 signals.

[0050] Among them, if the registered CAN signal is the group of CAN signals, the registered signal attributes can be used as the signal attributes of the group of CAN signals; if the registered CAN signal includes the group of signals, the signal attributes of the group of signals can be obtained from the registered signal attributes.

[0051] S130: Send the first CAN message original data to the runtime environment layer of the automotive open system architecture.

[0052] A signal multiplexing method provided in the first embodiment of the present invention first receives a group of CAN signals sent by application software; then maps the group of CAN signals into first CAN message original data based on registered CAN signals and signal attributes; and finally sends the first CAN message original data to the runtime environment layer of the automotive open system architecture. Multiplexing CAN signals at the application layer of the automotive open system architecture can not only improve communication efficiency, but also more flexibly adapt to the customized needs of project development.

[0053] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.

[0054] Furthermore, the method also includes: completing the sending of the original data of the CAN message through the runtime environment layer of the automotive open system architecture.

[0055] Specifically, the transmission of the original data of the CAN message is completed through the runtime environment layer, including:

[0056] After detecting the sending request, the signal attributes of all CAN signals in the raw data of the CAN message to be sent are determined from the registered CAN signals and signal attributes;

[0057] The interface of the runtime environment layer is called, and the original data of the CAN message to be sent is written into the runtime environment layer through the interface according to the signal sending type in the signal attribute, so as to send the original data of the CAN message to be sent to an external device through the runtime environment layer.

[0058] The signal transmission type may be immediate transmission, periodic transmission, delayed transmission or the like.

[0059] Embodiment 2

[0060] Figure 4 This is a flow chart of a signal multiplexing method provided by Embodiment 2 of the present invention. Embodiment 2 is optimized on the basis of the above embodiments. For details not yet provided in this embodiment, please refer to Embodiment 1.

[0061] like Figure 4 As shown, a signal multiplexing method provided by Embodiment 2 of the present invention includes the following steps:

[0062] S210: Receive a group of CAN signals sent by application software.

[0063] S220: Map the group of CAN signals into first CAN message original data based on the registered CAN signals and signal attributes.

[0064] S230: Send the first CAN message original data to the runtime environment layer of the automotive open system architecture.

[0065] S240: Acquire original data of a second CAN message from the runtime environment layer.

[0066] Among them, the original data of the CAN message sent by the external device can be received through the runtime environment layer.

[0067] S250: Map the second CAN message original data into a group of CAN signals based on the registered CAN signals and signal attributes.

[0068] Furthermore, mapping the second CAN message original data into a group of CAN signals based on the registered CAN signals and signal attributes includes: obtaining a multiplexing value from the second CAN message original data; determining the signal composition of the second CAN message original data according to the multiplexing value to obtain a group of signals, and determining a mapping relationship according to the multiplexing value; determining the signal attributes of the group of signals from the registered CAN signals and signal attributes; mapping the group of signals according to the signal attributes and the mapping relationship to obtain signal values; and writing the signal values ​​into the group of signals to obtain a group of CAN signals.

[0069] S260: After reading the CAN signal request, send the set of CAN signals to the application software.

[0070] When the application software needs to obtain a CAN signal, it can send a CAN signal request.

[0071] A signal multiplexing method provided by the second embodiment of the present invention includes a process of mapping CAN signals and CAN message raw data to each other. Using this method, communication efficiency can be improved. The code corresponding to this method is executed at the application layer of the automotive open system architecture, and code maintenance and improvement can be performed from more angles.

[0072] Furthermore, the method also includes: completing the reception of CAN signals through the runtime environment layer.

[0073] Specifically, receiving the CAN signal through the runtime environment layer includes:

[0074] After detecting the receiving request, the signal attributes of all CAN signals in the raw data of the CAN message to be received are determined from the registered CAN signals and signal attributes;

[0075] The interface of the runtime environment layer is called, and the original data of the CAN message to be received is read from the runtime environment layer through the interface according to the signal sending type in the signal attribute, so as to receive the original data of the CAN message to be received sent by the external device through the runtime environment layer.

[0076] The receiving request may be sent by an external device, and the sending type may include immediate sending, periodic sending, or delayed sending.

[0077] The embodiments of the present invention provide several specific implementation methods based on the technical solutions of the above embodiments.

[0078] Figure 5 A system topology diagram of a signal multiplexing method provided by a specific embodiment of the present invention, such as Figure 5As shown, the application layer of the automotive open system architecture includes multiple application software APPs and a CAN signal multiplexer, and the CAN signal multiplexer is a software module of the signal multiplexing method; after the CAN signal multiplexer at the application layer receives the CAN signal sent by the application software, it is mapped into the original data of the message and sent to the controller through the runtime environment layer and the basic software layer, and then sent to the external device through the controller; the external device sends the original CAN message data to the controller, and the controller sends it to the application layer through the basic software layer and the runtime environment layer, and the CAN signal multiplexer at the application layer maps the original message data into a CAN signal and sends it to the corresponding application software.

[0079] Figure 6 A schematic diagram of the structure of a CAN signal multiplexer provided in a specific embodiment of the present invention is shown in FIG. Figure 6 As shown, the CAN signal multiplexer includes a registration module, a mapping module, a receiving module and a sending module. Among them, the registration module is used to register the CAN signal and signal attributes; the mapping module is used to complete the mutual mapping of the CAN signal and the original data of the CAN message; the receiving module is used to complete the reception of the original data of the CAN message; and the sending module is used to complete the sending of the original CAN message.

[0080] Figure 7 A timing diagram of a signal multiplexing method provided by a specific embodiment of the present invention, such as Figure 7 As shown, in the application layer of the automotive open system architecture, the APP registers the CAN signal sending to the CAN signal multiplexer CanMultiplexer, and the CAN signal multiplexer completes the registration of the CAN signal and signal attributes; the APP sends the CAN signal value to the CAN signal multiplexer, and the CAN signal multiplexer detects the signal attribute and maps the CAN signal into a CAN message and sends it to the RTE; the APP registers the CAN signal receiving to the CAN signal multiplexer, and the CAN signal multiplexer completes the registration of the CAN signal and signal attributes; the CAN signal multiplexer reads the CAN message request sent by the RTE and then receives the CAN message data sent by the RTE, the CAN signal multiplexer detects the signal attribute of the registration number and maps the CAN message data into a CAN signal for storage, and when the CAN signal multiplexer reads the CAN signal request sent by the APP, it sends the CAN signal to the APP.

[0081] Embodiment 3

[0082] Figure 8 This is a schematic diagram of the structure of a signal multiplexing device provided in Example 3 of the present invention. The device can be used in situations where multiple signals are transmitted data on a CAN network, wherein the device can be implemented by software and is generally integrated in the application layer of an automotive open system architecture.

[0083] like Figure 8 As shown, the device includes: a receiving module 110 , a first mapping module 120 and a first sending module 130 .

[0084] The receiving module 110 is used to receive a group of CAN signals sent by the application software;

[0085] A first mapping module 120, configured to map the group of CAN signals into first CAN message raw data based on the registered CAN signals and signal attributes;

[0086] The first sending module 130 is used to send the first CAN message original data to the runtime environment layer of the automotive open system architecture.

[0087] In this embodiment, the device first receives a group of CAN signals sent by the application software through the receiving module 110; then maps the group of CAN signals into the first CAN message original data based on the registered CAN signals and signal attributes through the first mapping module 120; finally, the first CAN message original data is sent to the runtime environment layer of the automotive open system architecture through the first sending module 130.

[0088] This embodiment provides a signal multiplexing device, which can not only improve communication efficiency but also more flexibly adapt to the customized needs of project development.

[0089] Furthermore, the first mapping module 120 includes:

[0090] A detection unit, configured to detect a multiplexing value in a signal attribute from the group of CAN signals;

[0091] A first determining unit, configured to determine a signal composition and a mapping relationship of a message according to the multiplexing value;

[0092] A second determining unit, configured to determine the signal attributes of the group of CAN signals from the registered CAN signals and signal attributes;

[0093] The packaging unit is used to package the group of CAN signals into first CAN message original data according to the mapping relationship and the signal attributes.

[0094] Furthermore, the device also includes:

[0095] An acquisition module, used for acquiring the second CAN message original data from the runtime environment layer;

[0096] A second mapping module, used for mapping the second CAN message raw data into a group of CAN signals based on the registered CAN signals and signal attributes;

[0097] The second sending module is used to send the group of CAN signals to the application software after reading the CAN signal request.

[0098] Based on the above optimization, the second mapping module includes:

[0099] An acquisition unit, used for acquiring a multiplexing value from the second CAN message original data;

[0100] A third determining unit, configured to determine the signal composition of the second CAN message original data according to the multiplexing value to obtain a group of signals, and determine a mapping relationship according to the multiplexing value;

[0101] a fourth determining unit, configured to determine the signal attributes of the group of signals from the registered CAN signals and signal attributes;

[0102] A mapping unit, configured to map the group of signals according to the signal attributes and the mapping relationship to obtain signal values;

[0103] The writing unit is used to write the signal value into the group of signals to obtain a group of CAN signals.

[0104] Furthermore, the device also includes a transmission module, which is used to complete the sending and receiving of CAN message original data through the runtime environment layer.

[0105] Based on the above optimization scheme, the transmission module includes a sending unit and a receiving unit;

[0106] A sending unit, used to send the original data of the CAN message through the runtime environment layer;

[0107] The receiving unit is used to complete the reception of CAN signals through the runtime environment layer.

[0108] Based on the above optimization, the sending unit is specifically used to: after detecting a sending request, determine the signal attributes of all CAN signals in the original data of the CAN message to be sent from the registered CAN signals and signal attributes; call the interface of the runtime environment layer, and write the original data of the CAN message to be sent to the runtime environment layer through the interface according to the signal sending type in the signal attributes, so as to send the original data of the CAN message to be sent to an external device through the runtime environment layer.

[0109] Based on the above optimization, the receiving unit is specifically used to: after detecting a receiving request, determine the signal attributes of all CAN signals in the original data of the CAN message to be received from the registered CAN signals and signal attributes; call the interface of the runtime environment layer, and read the original data of the CAN message to be received from the runtime environment layer through the interface according to the signal sending type in the signal attributes, so as to receive the original data of the CAN message to be received sent by the external device through the runtime environment layer.

[0110] Furthermore, the signal attributes include at least:

[0111] Message identifier, signal name, signal starting position, signal starting length, signal big-endian and small-endian mode, multiplexing type, multiplexing value and signal sending type.

[0112] The above-mentioned signal multiplexing device can execute the signal multiplexing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0113] Embodiment 4

[0114] Fig. 9 A schematic diagram of the structure of a controller 10 that can be used to implement an embodiment of the present invention is shown. Electronic equipment is intended to represent various forms of microcontrollers, such as engine controllers, vehicle controllers, locomotive controllers, etc. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0115] like Fig. 9 As shown, the controller 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the controller 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0116] A number of components in the controller 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the controller 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0117] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a signal multiplexing method.

[0118] In some embodiments, a method of signal multiplexing may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the controller 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the method of signal multiplexing described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of signal multiplexing in any other appropriate manner (e.g., by means of firmware).

[0119] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0120] In some embodiments, a method of signal multiplexing can be implemented as a computer program, which is invisibly included in a computer program product, and the computer program implements a method of signal multiplexing of the present invention when executed by a processor. The computer program product can be understood as a software product that mainly implements its solution through a computer program. The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the computer program, when executed by the processor, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The computer program can be executed entirely on the machine, partially on the machine, as an independent software package, partially on the machine and partially on a remote machine, or completely on a remote machine or server.

[0121] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0122] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0123] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0124] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0125] A vehicle may include a controller mentioned in an embodiment of the present invention, and the controller may execute a signal multiplexing method in any embodiment of the present invention, and the method is applied to an application layer of an automotive open system architecture, including:

[0126] Receive a set of CAN signals sent by the application software;

[0127] Mapping the set of CAN signals into first CAN message raw data based on the registered CAN signals and signal attributes;

[0128] The first CAN message original data is sent to the runtime environment layer of the automotive open system architecture.

[0129] Furthermore, the method also includes:

[0130] Acquire the second CAN message original data from the runtime environment layer;

[0131] Mapping the second CAN message raw data into a group of CAN signals based on the registered CAN signals and signal attributes;

[0132] After the CAN signal request is read, the group of CAN signals is sent to the application software.

[0133] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0134] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A signal multiplexing method, characterized in that: Applied to the application layer of the automotive open system architecture, the method comprises: Receive a set of CAN signals sent by the application software; Mapping the set of CAN signals into first CAN message raw data based on the registered CAN signals and signal attributes; The first CAN message original data is sent to the runtime environment layer of the automotive open system architecture.

2. The method according to claim 1, characterized in that The method further comprises: Acquire the second CAN message original data from the runtime environment layer; Mapping the second CAN message raw data into a group of CAN signals based on the registered CAN signals and signal attributes; After the CAN signal request is read, the group of CAN signals is sent to the application software.

3. The method according to claim 1, characterized in that The mapping of the group of CAN signals into first CAN message raw data based on the registered CAN signals and signal attributes includes: Detecting a multiplexing value in a signal attribute from the set of CAN signals; Determine the signal composition and mapping relationship of the message according to the multiplexing value; Determining the signal attributes of the group of CAN signals from the registered CAN signals and signal attributes; The group of CAN signals is packaged into first CAN message original data according to the mapping relationship and the signal attribute group.

4. The method according to claim 2, characterized in that: The mapping of the second CAN message raw data into a group of CAN signals based on the registered CAN signals and signal attributes includes: Obtaining a multiplexing value from the second CAN message original data; Determine the signal composition of the second CAN message original data according to the multiplexing value to obtain a group of signals, and determine the mapping relationship according to the multiplexing value; Determining signal attributes of the group of signals from the registered CAN signals and signal attributes; Mapping the group of signals according to the signal attributes and the mapping relationship to obtain signal values; The signal value is written into the group of signals to obtain a group of CAN signals.

5. The method according to claim 2, characterized in that: The method further comprises: The sending and receiving of the original data of the CAN message is completed through the runtime environment layer.

6. The method according to claim 5, characterized in that The transmission of the original data of the CAN message is completed through the runtime environment layer, including: After detecting the sending request, the signal attributes of all CAN signals in the raw data of the CAN message to be sent are determined from the registered CAN signals and signal attributes; The interface of the runtime environment layer is called, and the original data of the CAN message to be sent is written into the runtime environment layer through the interface according to the signal sending type in the signal attribute, so as to send the original data of the CAN message to be sent to the external device through the runtime environment layer.

7. The method according to claim 5, characterized in that The CAN signal is received through the runtime environment layer, including: After detecting the receiving request, the signal attributes of all CAN signals in the raw data of the CAN message to be received are determined from the registered CAN signals and signal attributes; The interface of the runtime environment layer is called, and the original data of the CAN message to be received is read from the runtime environment layer through the interface according to the signal sending type in the signal attribute, so as to receive the original data of the CAN message to be received sent by the external device through the runtime environment layer.

8. The method according to claim 1, characterized in that The signal attributes include at least: Message identifier, signal name, signal starting position, signal starting length, signal big-endian and small-endian mode, multiplexing type, multiplexing value and signal sending type.

9. A signal multiplexing device, characterized in that: The device is integrated into the application layer of the automotive open system architecture, and the device includes: A receiving module is used to receive a set of CAN signals sent by the application software; A first mapping module, used for mapping the group of CAN signals into first CAN message original data based on the registered CAN signals and signal attributes; The first sending module is used to send the first CAN message original data to the runtime environment layer of the automotive open system architecture.

10. A controller, characterized in that: The controller comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal multiplexing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal multiplexing method according to any one of claims 1 to 8 when executed.

12. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the method for signal multiplexing according to any one of claims 1-8.