Instruction transmission method and device, and vehicle
By using predefined target CAN identifiers on the CAN bus to transmit scenario programming instructions, the problem that traditional CAN communication products cannot transmit scenario programming instructions is solved, realizing vehicle-level scenario programming and improving the response speed and reliability of instruction execution.
Patent Information
- Application Number
- CN202211712186.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2042-12-29
AI Technical Summary
Existing CAN communication-based products are fixed during the development phase and cannot transmit scenario programming instructions, which limits the implementation of scenario programming at the vehicle level.
By sending and receiving scenario programming instructions on the CAN bus of the controller local area network through a predefined target CAN identifier, scenario programming instruction transmission based on the CAN bus is realized.
It enables vehicle-level scenario programming, improving the response speed and reliability of instruction execution and meeting flexible scenario requirements.
Smart Images

Figure CN116418623B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of vehicles, and particularly relates to an instruction transmission method and device and a vehicle. BACKGROUND
[0002] Currently, scene programming technologies are all based on Service-Oriented Architecture (SOA), and all functions under SOA exist in the form of atomic services, and a new scene can be realized by simple recombination of the atomic services by high-level applications. Meanwhile, with the aid of Ethernet communication technology, these high-level applications can easily realize cross-domain mutual calling, and thus realize scene programming at the vehicle level.
[0003] However, there are a large number of Electronic Control Units (ECUs) on the vehicle at present, and the traditional Controller Area Network (CAN) communication technology is relied on, and the traditional CAN communication-based products are fixed at the development stage and cannot transmit the scene programming instructions mentioned above.
[0004] That is, there is an urgent need for a scene programming instruction that can be transmitted based on CAN. SUMMARY
[0005] Embodiments of the present application provide an instruction transmission method, device and vehicle, which can transmit scene programming instructions based on CAN and realize scene programming at the vehicle level.
[0006] In a first aspect, embodiments of the present application provide an instruction transmission method, and the method comprises:
[0007] obtaining a target instruction, the target instruction being a scene programming-based instruction;
[0008] sending the target instruction on a Controller Area Network (CAN) bus by using a pre-defined target CAN identifier.
[0009] In a second aspect, embodiments of the present application provide an instruction transmission method, and the method comprises:
[0010] receiving a target instruction on a Controller Area Network (CAN) bus, the target instruction being a scene programming-based instruction, and the target instruction being transmitted on the CAN bus by using a pre-defined target CAN identifier.
[0011] In a third aspect, embodiments of the present application provide an instruction transmission device, and the device comprises:
[0012] an obtaining module configured to obtain a target instruction, the target instruction being a scene programming-based instruction;
[0013] The sending module is configured to send the target instruction on the CAN bus using a target controller area network (CAN) identifier.
[0014] In a fourth aspect, an embodiment of the present application provides an instruction transmission device, which comprises:
[0015] The receiving module is configured to receive a target instruction on a controller area network (CAN) bus, the target instruction being a scene programming-based instruction, and the target instruction being transmitted on the CAN bus through a pre-defined target CAN identifier.
[0016] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which stores computer program instructions, and the computer program instructions are executed by a processor to implement the method in the first aspect or the second aspect.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product for implementing the method in the first aspect or the second aspect.
[0018] In a seventh aspect, an embodiment of the present application provides a vehicle, which comprises the instruction transmission device in the third aspect and the instruction transmission device in the fourth aspect.
[0019] The instruction transmission method, device and vehicle provided in the embodiments of the present application obtain a target instruction, the target instruction being a scene programming-based instruction; and the target instruction is sent on a CAN bus using a pre-defined target CAN identifier. In this way, the target instruction can be sent using the pre-defined target CAN identifier, the scene programming instruction can be transmitted based on the CAN bus, and thus the scene programming at the vehicle level can be implemented. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly introduced. For those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0021] Figure 1 is a flowchart of an instruction transmission method provided by an embodiment of the present application;
[0022] Figure 2 is another flowchart of an instruction transmission method provided by an embodiment of the present application;
[0023] Figure 3 is a structural diagram of an instruction transmission device provided by an embodiment of the present application;
[0024] Figure 4 FIG. 6 is another structural schematic diagram of the instruction transmission device according to an embodiment of the present application;
[0025] Figure 5 FIG. 7 is a structural schematic diagram of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION
[0026] The features and exemplary embodiments of the various aspects of the present application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended to explain the present application, but not to limit the present application. The present application can be implemented without some of the specific details described below. The following description of the embodiments is merely provided to give a better understanding of the present application by showing examples of the present application.
[0027] It should be noted that the relational terms herein such as first and second and the like are used solely to distinguish one entity or action from another, without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises", "comprising", or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the listed element.
[0028] Figure 1 FIG. 6 is another structural schematic diagram of the instruction transmission device according to an embodiment of the present application; Figure 1 As shown in FIG. 6, the instruction transmission method according to the embodiment of the present application includes the following steps 101-102,
[0029] In which:
[0030] Step 101, obtaining a target instruction, the target instruction being a scene programming-based instruction.
[0031] The instruction transmission method in the present application can be executed by a vehicle-mounted device of a vehicle, specifically, a Bluetooth device. The target instruction is a scene programming-based instruction, and the target instruction can include multiple instructions. The target instruction can be obtained from other devices, for example, downloaded from a network or sent by other electronic devices to the Bluetooth device, which is not limited herein.
[0032] The following is an example of scene-based programming for implementing rapid cooling, as follows:
[0033] START
[0034] Write: open windows, all, 15%
[0035] Wait: window action complete
[0036] Write: air conditioner, blow, maximum air volume
[0037] Wait: 3 minutes
[0038] Write: close windows, all
[0039] Wait: window action complete
[0040] Write: air conditioner, cooling, lowest temperature
[0041] Wait: until the car door is unlocked or 20 minutes
[0042] END
[0043] In the above, "open windows, all, 15%", "air conditioner, blow, maximum air volume" are all instructions, and the target instruction can be understood as an instruction package, which includes multiple instructions. The target instruction can be flexibly set according to the scene requirements.
[0044] In the scene-based programming instructions, all instructions can not be executed in real time, and are only part of the program, and do not require the target component to respond in real time; one instruction does not represent a function, and a complete instruction block, i.e. a complete target instruction, represents a complete function, and the CCU needs to receive the instruction first and then execute the instruction.
[0045] Step 102, sending the target instruction on the CAN bus using a pre-defined target CAN identifier.
[0046] The controller area network (CAN) identifier can be pre-defined, for example, one or more blank CAN identifiers are defined for transmitting target instructions. The blank CAN identifier can be understood as a CAN identifier that is not currently defined for use, and the format of the CAN identifier can be ASCII format.
[0047] The target instruction is transmitted on the CAN bus through continuous multiple frames of signals, and the identifier of each frame of signal is the target CAN identifier. Each frame of signal is used to transmit one or more instructions in the target instruction.
[0048] In defining the target CAN identifier, different CAN identifiers can be defined according to different execution real-time of the target instruction. For example, two CAN identifiers with different execution real-time are defined. For example, the execution real-time of the instruction transmitted through the first CAN identifier is higher. If the target instruction is transmitted through multiple frames of signals, each frame of signal has a sequence number, and the CAN identifier of each frame of signal is the first CAN identifier. The central control unit (CCU) of the vehicle receives the multiple frames of signals. In the case that the CCU receives the first half of the signals in the sequence, the received signals in the sequence are parsed to obtain the first several instructions in the target instruction, and the several instructions are executed. Meanwhile, the CCU receives the remaining signals. After the reception of the remaining signals is completed, the second half of the signals in the sequence in the multiple frames of signals are parsed to obtain the last several instructions in the target instruction, and the last several instructions are executed. That is, the CCU can determine, according to the CAN identifier of the multiple frames of signals transmitting the target instruction, that the received frame of signal can be parsed and the parsed instruction can be executed before the target instruction is completely received, that is, the reception and execution are performed simultaneously, so that the response speed of instruction execution can be improved.
[0049] For example, the execution real-time of the instruction transmitted through the second CAN identifier is lower. If the target instruction is transmitted through multiple frames of signals, the CAN identifier of each frame of signal is the second CAN identifier. The CCU of the vehicle receives the multiple frames of signals. The CCU parses the received multiple frames of signals to obtain the target instruction and executes the target instruction only after the multiple frames of signals transmitting the target instruction are received. That is, the CCU can determine, according to the CAN identifier of the target instruction, that the multiple frames of signals are parsed to obtain the target instruction and executed only after the multiple frames of signals transmitting the target instruction are completely received. For the target instruction with low execution real-time, the second CAN identifier can be used for transmission. In this way, the CCU parses and obtains the complete target instruction only after all the multiple frames of signals are received, and then executes the target instruction, so that the continuity and reliability of the execution of the target instruction can be effectively ensured.
[0050] In the embodiment, a target instruction is obtained, the target instruction is an instruction based on scene programming, and the target instruction is transmitted on the CAN bus by using a predefined target CAN identifier. In the above manner, the target instruction can be transmitted by using the predefined target CAN identifier, the scene programming instruction can be transmitted based on the CAN bus, and scene programming at the vehicle level can be implemented.
[0051] In an embodiment of the present application, the CAN bus comprises a first channel and a second channel, the first channel is used to send the target instruction to the CCU of the vehicle, and the second channel is used to transmit response information sent by the CCU, which can be target instruction receiving success information or target instruction receiving failure information, which is not limited herein.
[0052] Figure 2 A flowchart of the instruction transmission method provided by an embodiment of the present application is shown. As shown in the figure, Figure 2 The instruction transmission method provided by the embodiment of the present application comprises the following step 201, wherein:
[0053] Step 201, receiving a target instruction on a CAN bus, the target instruction is a scene programming-based instruction, and the target instruction is transmitted on the CAN bus through a pre-defined target CAN identifier.
[0054] The instruction transmission method in the present application can be executed by the CCU of the vehicle, the target instruction is a scene programming-based instruction, and the target instruction can comprise multiple instructions. The target instruction can be sent to the CCU by the Bluetooth device of the vehicle. The target instruction can be flexibly set according to the scene requirement.
[0055] The CAN identifier can be pre-defined, for example, one or more blank CAN identifiers are defined for transmitting the target instruction. The blank CAN identifier can be understood as a CAN identifier that is not currently defined for use. The format of the CAN identifier can be ASCII format.
[0056] The CCU can receive continuous multiple frames of signals on the CAN bus, the identifier of each frame of signal is the target CAN identifier, and each frame of signal is used to transmit one or more instructions in the target instruction.
[0057] In defining the target CAN identifier, different CAN identifiers can be defined according to different execution real-time of the target instruction. For example, two CAN identifiers with different execution real-time are defined. For example, the execution real-time of the instruction transmitted through the first CAN identifier is high. If the target instruction is transmitted through multiple frames of signals, each frame of signal has a sequence number, and the CAN identifier of each frame of signal is the first CAN identifier. The central control unit (CCU) of the vehicle receives the multiple frames of signals. When the CCU receives the first half of the signals in the multiple frames of signals, the received first half of the signals can be parsed to obtain the first several instructions in the target instruction, and the first several instructions are executed. After the remaining signals are received, the second half of the signals in the multiple frames of signals are parsed to obtain the last several instructions in the target instruction, and the last several instructions are executed. That is, the CCU can determine, according to the CAN identifier of the multiple frames of signals transmitting the target instruction, that the received frame of signal can be parsed and the parsed instruction can be executed before the target instruction is completely received, that is, the received frame of signal is parsed and executed at the same time, so that the response speed of instruction execution can be improved.
[0058] For example, the execution real-time of the instruction transmitted through the second CAN identifier is low. If the target instruction is transmitted through multiple frames of signals, the CAN identifier of each frame of signal is the second CAN identifier. The CCU of the vehicle receives the multiple frames of signals. The CCU parses the received multiple frames of signals to obtain the target instruction and executes the target instruction only after the multiple frames of signals transmitting the target instruction are received. In the above, the CCU can determine, according to the CAN identifier of the multiple frames of signals transmitting the target instruction, that the multiple frames of signals are parsed to obtain the target instruction and executed only after the multiple frames of signals transmitting the target instruction are completely received. That is, after the target instruction is completely received, the target component of the vehicle executes each instruction in the target instruction in the execution order of each instruction in the target instruction. The target component can be the execution object of each instruction in the target instruction. For example, in the above example, the target component of the instruction “air conditioner, refrigeration, and lowest temperature” is the air conditioner. For the target instruction with low execution real-time, the second CAN identifier can be used for transmission. In this way, the CCU parses to obtain the complete target instruction and then executes the target instruction only after all the multiple frames of signals are completely received, so that the continuity and reliability of the target instruction execution can be effectively guaranteed.
[0059] In this embodiment, a target instruction is received on the CAN bus, the target instruction is a scene programming based instruction, and the target instruction is transmitted on the CAN bus through a pre-defined target CAN identifier. In this way, the target instruction can be transmitted through the pre-defined target CAN identifier, scene programming instructions can be transmitted based on the CAN bus, and scene programming at the vehicle level can be implemented.
[0060] In an embodiment of the present application, the CAN bus includes a first channel and a second channel, the first channel is used to send the target instruction to a CCU of the vehicle, and the second channel is used to transmit response information sent by the CCU. The response information can be target instruction receiving success information or target instruction receiving failure information, which is not limited herein.
[0061] Figure 3 A structure diagram of an instruction transmission device provided by an embodiment of the present application is shown. As shown in Figure 3 The first instruction transmission device 300 includes:
[0062] An acquisition module 301 is configured to acquire a target instruction, the target instruction being a scene programming based instruction.
[0063] A sending module 302 is configured to send the target instruction on a controller area network (CAN) bus through a pre-defined target CAN identifier.
[0064] Optionally, the target instruction includes multiple instructions, and the sending module 302 is configured to:
[0065] The target instruction is transmitted on the CAN bus through continuous multiple frames of signals, an identifier of each frame of signal being the target CAN identifier, and each frame of signal being used to transmit one or more instructions in the target instruction.
[0066] Optionally, the CAN bus includes a first channel and a second channel, the first channel is used to send the target instruction to a central control unit (CCU) of the vehicle, and the second channel is used to transmit response information sent by the CCU.
[0067] The first instruction transmission device 300 provided by an embodiment of the present application can implement the above Figure 1 The instruction transmission method embodiment shown in the foregoing is implemented, and each process is not repeated here.
[0068] Figure 4 A structure diagram of an instruction transmission device provided by an embodiment of the present application is shown. As shown in Figure 4 The second instruction transmission device 400 includes:
[0069] The receiving module 401 is configured to receive a target instruction on a controller area network (CAN) bus, the target instruction being a scene-program-based instruction, and the target instruction being transmitted on the CAN bus through a pre-defined target CAN identifier.
[0070] Optionally, the target instruction includes a plurality of instructions, and the receiving module 401 is configured to:
[0071] The receiving module 401 is configured to receive a plurality of continuous frames of signals on the CAN bus, an identifier of each frame of signals being the target CAN identifier, and each frame of signals being used to transmit one or more instructions of the target instruction.
[0072] Optionally, the method further includes an executing module configured to, after the target instruction is received, control a target component of the vehicle to execute each instruction of the target instruction in sequence according to an execution order of the instructions.
[0073] Optionally, the CAN bus includes a first channel and a second channel, the first channel being used to send the target instruction to a central control unit (CCU) of the vehicle, and the second channel being used to transmit response information sent by the CCU.
[0074] The second instruction transmission apparatus 400 provided by the embodiments of the present application can achieve Figure 2 The processes achieved by the instruction transmission method embodiments shown in the figures will not be described herein again to avoid repetition.
[0075] Figure 5 A hardware structure diagram of a vehicle implementing the instruction transmission method is shown.
[0076] The vehicle can include a processor 601 and a memory 602 storing computer program instructions.
[0077] Specifically, the processor 601 can include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or can be configured as one or more integrated circuits implementing the embodiments of the present application.
[0078] The memory 602 can include mass storage for data or instructions. As an example and not by way of limitation, the memory 602 can include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc (e.g., a compact disc (CD) or a digital versatile disc (DVD)), a solid-state drive (SSD), a USB drive, or a combination of two or more of these. Where appropriate, the memory 602 can include removable or non-removable (or fixed) media. Where appropriate, the memory 602 can be internal or external to the integrated gateway disaster recovery appliance. In particular embodiments, the memory 602 is non-volatile, solid-state memory.
[0079] The memory can include read-only memory (ROM), random-access memory (RAM), magnetic disk storage mediums, optical storage mediums, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software that, when executed (by one or more processors), is operable to access the data and / or instructions that enable the operations described with reference to the methods according to the first aspect of the present disclosure.
[0080] The processor 601 implements the instruction transmission method in any of the above embodiments by reading and executing computer program instructions stored in the memory 602.
[0081] In one example, the vehicle can further include a communication interface 603 and a bus 610. Wherein, as shown, the processor 601, the memory 602, the communication interface 603 are connected through the bus 610 and complete the communication between each other. Figure 5
[0082] The communication interface 603 is mainly used to realize the communication between each module, device, unit and / or equipment in the embodiments of the present application.
[0083] Bus 610 includes a hardware, software, or both that couples components of instruction transmission device to each other. As an example and not by way of limitation, bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or a combination of two or more of these. Where appropriate, bus 610 can include one or more buses. Although this application describes and shows a particular bus, this application contemplates any suitable bus or interconnect.
[0084] In addition, computer program instructions stored in the above-mentioned embodiments of the instruction transmission method are stored; the computer program instructions are executed by the processor to realize any one of the instruction transmission methods in the above-mentioned embodiments.
[0085] It needs to be clear that the present application is not limited to the specific configurations and processes described above and shown in the drawings. For the sake of brevity, detailed descriptions of well-known methods are omitted here. In the above-mentioned embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after understanding the spirit of the present application.
[0086] The functional blocks shown in the above-mentioned structural block diagrams can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, etc. When implemented in software, the elements of the present application are program or code segments used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. The "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segments can be downloaded via a computer network such as the Internet, an intranet, etc.
[0087] It should also be noted that the example embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps are performed simultaneously.
[0088] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other processing device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other processing device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0089] The above describes only specific implementation manners of the present application. For the convenience and brevity of description, the specific working processes of the above-described system, module and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described herein. It should be understood that the protection scope of the present application is not limited in this way. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.
Claims
1. An instruction transfer method, characterized by, The method comprises: Obtaining target instructions, the target instructions being a scene programming-based instruction package, the target instructions comprising a plurality of instructions related to a scene requirement and having an execution sequence, the plurality of instructions collectively corresponding to a complete function; Sending the target instructions to a central control unit (CCU) on a controller area network (CAN) bus using a predefined target CAN identifier, so that the CCU controls target components in a vehicle corresponding to each instruction in the target instructions respectively, and sequentially executes each instruction according to the execution sequence of the instructions in the target instructions, to realize a complete function related to the scene requirement, the target CAN identifier comprising a first CAN identifier and a second CAN identifier, the execution real-time performance of instructions transmitted by the first CAN identifier being higher than that of instructions transmitted by the second CAN identifier; The step of sending the target instructions to the CCU on the CAN bus using the predefined target CAN identifier comprises: Using the first CAN identifier on the CAN bus, transmitting the target instructions through a plurality of frames of signals, so that the CCU, upon receiving a first half of the frames of signals, parses the received signals in the first half, obtains a plurality of instructions in the target instructions, and executes the plurality of instructions according to the execution sequence of the instructions, while receiving the remaining signals, and after the receiving of the remaining signals is completed, continues to parse a second half of the frames of signals, obtains a plurality of instructions in the target instructions, and continues to execute the plurality of instructions according to the execution sequence of the instructions, the CAN identifier of each frame of signal being the first CAN identifier; Using the second CAN identifier on the CAN bus, transmitting the target instructions through a plurality of frames of signals, so that the CCU, upon receiving the plurality of frames of signals, parses the received plurality of frames of signals, obtains the target instructions, and executes the target instructions according to the execution sequence of the instructions, the CAN identifier of each frame of signal being the second CAN identifier; Each frame of signal has a sequence number.
2. The method of claim 1, wherein, The step of sending the target instructions on the CAN bus using the predefined target CAN identifier comprises: Transmitting the target instructions through a plurality of consecutive frames of signals on the CAN bus, the identifier of each frame of signal being the target CAN identifier, and each frame of signal being used to transmit one or more instructions in the target instructions.
3. The method of claim 1, wherein, The CAN bus comprises a first channel and a second channel, the first channel being used to send the target instructions to the CCU of the vehicle, and the second channel being used to transmit response information sent by the CCU.
4. An instruction transfer method characterized by comprising: The method applied to the CCU comprises: Receiving a target instruction on a controller area network (CAN) bus, the target instruction being a scene-program-based instruction package, the target instruction being transmitted on the CAN bus through a pre-defined target CAN identifier, the target instruction including a plurality of instructions related to a scene requirement and having an execution sequence, the plurality of instructions collectively corresponding to a complete function, the target CAN identifier including a first CAN identifier and a second CAN identifier, the first CAN identifier transmitting instructions having higher execution real-time performance than the second CAN identifier transmitting instructions; Controlling target components in a vehicle corresponding to each instruction in the target instruction, and sequentially executing each instruction in the target instruction according to the execution sequence of each instruction to realize a complete function related to the scene requirement; If the target instruction is transmitted through a plurality of frames of signals on the CAN bus using the first CAN identifier, when a first half of the plurality of frames of signals is received, the first half of the signals is parsed to obtain a plurality of instructions in the target instruction, and the plurality of instructions is executed according to the execution sequence of the instructions, and the remaining signals are received, and after the receiving of the remaining signals is completed, a second half of the plurality of frames of signals is parsed to obtain a plurality of instructions in the target instruction, and the plurality of instructions is executed according to the execution sequence of the instructions, and the CAN identifier of each frame of signal is the first CAN identifier; If the target instruction is transmitted through a plurality of frames of signals on the CAN bus using the second CAN identifier, after the plurality of frames of signals is received, the plurality of frames of signals is parsed to obtain the target instruction, and the target instruction is executed according to the execution sequence of the instructions, and the CAN identifier of each frame of signal is the second CAN identifier; Each frame of signal has a sequence number.
5. The method of claim 4, wherein, The step of receiving the target instruction on the CAN bus includes: Receiving a plurality of continuous frames of signals on the CAN bus, the identifier of each frame of signal being the target CAN identifier, and each frame of signal being used to transmit one or more instructions in the target instruction.
6. The method of claim 5, wherein, The method further includes: After the target instruction is received, controlling the target components in the vehicle to sequentially execute each instruction in the target instruction according to the execution sequence of each instruction.
7. The method of claim 4, wherein, The CAN bus includes a first channel and a second channel, the first channel being used to send the target instruction to a central control unit (CCU) of the vehicle, and the second channel being used to transmit response information sent by the CCU.
8. An instruction transfer apparatus characterized by comprising: The device includes: An obtaining module, configured to obtain a target instruction, the target instruction being a scene-program-based instruction package, the target instruction including a plurality of instructions related to a scene requirement and having an execution sequence, the plurality of instructions collectively corresponding to a complete function; The sending module is configured to send the target instruction to a central control unit (CCU) on a controller area network (CAN) bus by using a target CAN identifier, so that the CCU controls target components in a vehicle corresponding to each instruction in the target instruction, and executes each instruction in the target instruction in sequence according to an execution sequence of the instructions, to realize a complete function related to the scene requirement, the target CAN identifier includes a first CAN identifier and a second CAN identifier, and the execution real-time performance of an instruction transmitted by the first CAN identifier is higher than that of an instruction transmitted by the second CAN identifier. The sending module is specifically configured to: transmit the target instruction by using the first CAN identifier through multiple frames of signals on the CAN bus, so that the CCU, when receiving a first half of the multiple frames of signals, analyzes the received first half of the signals, obtains a plurality of instructions in the target instruction, and executes the plurality of instructions in sequence according to the execution sequence of the instructions, and meanwhile, receives the remaining signals, and after the receiving of the remaining signals is completed, continues to analyze a second half of the multiple frames of signals, obtains a plurality of instructions in the target instruction, and continues to execute the plurality of instructions in sequence according to the execution sequence of the instructions, and the CAN identifier of each frame of signal is the first CAN identifier; transmit the target instruction by using the second CAN identifier through multiple frames of signals on the CAN bus, so that the CCU, after receiving the multiple frames of signals, analyzes the received multiple frames of signals, obtains the target instruction, and executes the target instruction in sequence according to the execution sequence of the instructions, and the CAN identifier of each frame of signal is the second CAN identifier; and each frame of signal has a sequence number.
9. An instruction execution apparatus, characterized by comprising: The device includes: a receiving module configured to receive a target instruction package on a controller area network (CAN) bus, the target instruction is a scene programming-based instruction, the target instruction is transmitted on the CAN bus by using a pre-defined target CAN identifier, the target instruction includes a plurality of instructions related to a scene requirement and having an execution sequence, the plurality of instructions correspond to a complete function, and the target CAN identifier includes a first CAN identifier and a second CAN identifier, and the execution real-time performance of an instruction transmitted by the first CAN identifier is higher than that of an instruction transmitted by the second CAN identifier. The execution module is configured to control target components in the vehicle corresponding to each instruction in the target instruction, and sequentially execute each instruction in the target instruction according to the execution order of each instruction, so as to realize complete functions related to the scene requirement; if the target instruction is transmitted through multiple frames of signals using the first CAN identifier on the CAN bus, when half of the signals in the multiple frames of signals are received, the received signals are parsed to obtain the first several instructions in the target instruction, and the first several instructions are executed according to the execution order of the instructions; meanwhile, the remaining signals are received, and after the receiving of the remaining signals is completed, the second half of the signals in the multiple frames of signals are parsed to obtain the last several instructions in the target instruction, and the last several instructions are executed according to the execution order of the instructions; the CAN identifier of each frame of signal is the first CAN identifier; if the target instruction is transmitted through multiple frames of signals using the second CAN identifier on the CAN bus, after the multiple frames of signals are received, the received multiple frames of signals are parsed to obtain the target instruction, and the target instruction is executed according to the execution order of the instructions; the CAN identifier of each frame of signal is the second CAN identifier; each frame of signal has a sequence number.
10. A vehicle characterized by comprising: The vehicle comprises the instruction transmission device according to claim 8 and the instruction execution device according to claim 9.
Citation Information
Patent Citations
Control device for connecting can bus to radio network, and motor vehicle having such control device
CN106059871A
CAN (Controller Area Network) bus communication method with segmented user-defined identifier
CN115174304A
Vehicle control method, mobile terminal, vehicle-mounted device and network device
WO2022057802A1