Instruction transmission method and device, equipment, storage medium, computer product and vehicle
By generating and transmitting control commands through a predefined data protocol, the problem of audio devices being unable to understand the meaning of commands is solved, enabling correct execution by audio devices and cost optimization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-03-31
AI Technical Summary
In existing technologies, when control commands are transmitted via the A2B bus, audio devices cannot understand the specific meaning of the commands, resulting in the inability to execute the control commands.
Control commands are generated through a predefined data protocol and sent to the audio device via an integrated circuit bus or serial peripheral interface, enabling the audio device to parse the protocol and perform corresponding operations.
Audio devices can correctly understand and execute control commands, solving the problem that audio devices cannot understand the meaning of commands and reducing hardware and software development costs.
Smart Images

Figure CN121771304A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method, apparatus, device, storage medium, computer product and vehicle for transmitting instructions. Background Technology
[0002] In modern cockpit architectures, in addition to transmitting audio data, the cockpit domain controller and audio equipment also need to transmit control commands. However, these control commands typically require additional CAN or LIN bus transmission. Especially with dedicated CAN or LIN hardware added to the audio equipment solely for control command transmission, hardware costs increase. Furthermore, software development using CAN or LIN hardware for control command transmission also drives up costs and limits system scalability. For lower-end vehicles, the engineering budget often cannot cover the cost of CAN or LIN buses.
[0003] Automotive Audio Bus (A2B) has been widely used in in-vehicle audio systems due to its high integration, low latency, and low cost. Typically, only audio data is transmitted via the A2B bus; its ability to transmit control messages is not truly utilized. Existing technology uses the Remote Peripheral Integrated Circuit (I2C) access of the A2B chip, allowing the cockpit domain controller to directly access I2C peripherals on the audio equipment via the A2B bus. However, while this solution can transmit control commands, the audio equipment cannot understand the meaning of the received control commands and therefore cannot execute them. Summary of the Invention
[0004] This invention provides a method, apparatus, device, storage medium, computer product, and vehicle for transmitting instructions, in order to solve the problem that existing solutions transmit control instructions via an A2B bus, resulting in the receiving end being unable to understand the specific meaning of the instructions.
[0005] According to one aspect of the present invention, a command transmission method is provided, applied to a cockpit domain controller, comprising:
[0006] Get instructions;
[0007] Control commands are generated according to a predefined data protocol, wherein the predefined data protocol is generated based on the commands;
[0008] The control command is sent to the audio device through a communication channel, so that the audio device performs protocol parsing on the control command, obtains the operation corresponding to the control command, and executes the operation.
[0009] The communication channel includes an integrated circuit bus or a serial peripheral interface.
[0010] According to another aspect of the present invention, a command transmission method is provided, applied to an audio device, comprising:
[0011] Receive control commands, which are generated based on a predefined data protocol and transmitted through a communication channel, which includes an integrated circuit bus and a serial peripheral interface;
[0012] The control command is parsed to obtain its control content, and then the control content is executed.
[0013] According to another aspect of the present invention, a command transmission device is provided for use in a cockpit domain controller, comprising:
[0014] The acquisition module is used to acquire instructions;
[0015] The generation module is used to generate control instructions according to a predefined data protocol, wherein the predefined data protocol is generated according to the instructions;
[0016] The sending module is used to send the control command to the audio device through a communication channel, so that the audio device can perform protocol parsing of the control command, obtain the operation corresponding to the control command, and execute the operation.
[0017] The communication channel includes an integrated circuit bus or a serial peripheral interface.
[0018] According to another aspect of the present invention, an instruction transmission device is provided, applied to an audio device, comprising:
[0019] A receiving module is used to receive control commands, which are generated based on a predefined data protocol. The data protocol is transmitted through a communication channel, which includes an integrated circuit bus and a serial peripheral interface.
[0020] The parsing module is used to perform protocol parsing on the control command to obtain the control content of the control command, and execute the control content.
[0021] According to another aspect of the present invention, a cockpit domain controller is provided, the cockpit domain controller comprising: at least one processor;
[0022] and a memory communicatively connected to the at least one processor;
[0023] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to execute the instruction transfer method provided in one aspect of the present invention.
[0024] According to another aspect of the present invention, an audio device is provided, the audio device comprising: at least one processor;
[0025] and a memory communicatively connected to the at least one processor;
[0026] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to execute the instruction transfer method provided in another aspect of the present invention.
[0027] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the instruction transfer method described in any embodiment of the present invention.
[0028] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the instruction transfer method described in any embodiment of the present invention.
[0029] The technical solution of this invention generates control commands by using a predefined data protocol, enabling audio devices to understand the specific meaning of the control commands after protocol parsing. This solves the problem that existing control commands transmitted via A2B bus cannot be understood by audio devices, thus achieving the beneficial effect of enabling audio devices to understand and execute the commands.
[0030] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This is a flowchart illustrating an instruction transmission method provided in Embodiment 1 of the present invention;
[0033] Figure 2 This is a first interaction diagram corresponding to an instruction transmission method provided in an embodiment of the present invention;
[0034] Figure 3This is a second interactive schematic diagram corresponding to an instruction transmission method provided in an embodiment of the present invention;
[0035] Figure 4 This is a third interaction diagram corresponding to an instruction transmission method provided in an embodiment of the present invention;
[0036] Figure 5 A schematic diagram illustrating instruction transmission according to a specific embodiment of the present invention;
[0037] Figure 6 This is a schematic diagram of the data structure of control instructions in an instruction transmission method according to an embodiment of the present invention;
[0038] Figure 7 This is a flowchart illustrating an instruction transmission method provided in Embodiment 2 of the present invention;
[0039] Figure 8 This is a schematic diagram of the structure of an instruction transmission device provided in Embodiment 3 of the present invention;
[0040] Figure 9 This is a schematic diagram of the structure of an instruction transmission device provided in Embodiment 4 of the present invention;
[0041] Figure 10 This is a schematic diagram of the structure of an electronic device according to an embodiment of the instruction transmission method of the present invention. Detailed Implementation
[0042] To enable those skilled in the art to better understand the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention. It should be understood that the various steps described in the method embodiments of the present invention can be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0043] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based 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". Definitions of other terms will be given in the description below.
[0044] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects 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 the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0045] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0046] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0047] Example 1
[0048] Figure 1 This is a flowchart illustrating an instruction transmission method provided in Embodiment 1 of the present invention. This method is applicable to situations where a cockpit domain controller sends control instructions to an audio device to control the audio device. This method can be executed by an instruction transmission device, which can be implemented by software and / or hardware and is generally integrated into the cockpit domain controller of a vehicle.
[0049] like Figure 1 As shown, an instruction transmission method provided in Embodiment 1 of the present invention includes the following steps:
[0050] S110, Obtain Instructions.
[0051] In this embodiment, the user can click on the corresponding area on the display interface of the vehicle's cockpit domain controller to trigger the cockpit and controller to acquire commands.
[0052] The instructions can be commands that instruct the audio device to perform different functions. The audio device may include multiple audio modules, with different audio modules corresponding to different audio. For example, the audio device may include a Bluetooth module, an FM module, and a digital audio broadcasting module.
[0053] For example, the instruction could be to play Bluetooth music, turn up the broadcast volume, or switch the audio broadcast frequency band.
[0054] S120. Generate control instructions according to a predefined data protocol, wherein the predefined data protocol is generated according to the instructions.
[0055] The instruction provides the specific content of the control command, and corresponding data protocols can be pre-written for different instructions. For example, if the instruction is to turn on Bluetooth, the corresponding predefined data protocol is Bluetooth.Switch.Set.Mode(0x10, 0x0A00, 0x00, 0x01).
[0056] In this embodiment, the cockpit domain controller can generate corresponding fields according to the data protocol. All generated fields can form control commands. Control commands can also include other fields besides the corresponding fields, such as fields that identify the start of control command transmission, fields that identify the end of control command transmission, and fields that represent check codes. Other fields can be set adaptively, and no specific restrictions are imposed here.
[0057] In this embodiment, if the instruction is a software upgrade, a software upgrade control instruction is generated according to a predefined data protocol, and the instruction includes a software upgrade package.
[0058] S130. The control command is sent to the audio device through the communication channel, so that the audio device performs protocol parsing on the control command, obtains the operation corresponding to the control command, and executes the operation.
[0059] The communication channel includes an integrated circuit bus or a serial peripheral interface.
[0060] In this embodiment, the cockpit domain controller can send control commands to the audio device via the I2C channel (i.e., integrated circuit bus) or via the SPI channel (i.e., serial peripheral interface). The I2C channel transmits control commands via the A2B bus.
[0061] In this embodiment, the audio device can be an electronic device with audio playback function. After receiving the control command sent by the cockpit domain controller, the audio device can perform protocol parsing on the control command through the protocol parsing middleware, which may include frame assembly, redundancy check code verification, error retransmission, and timeout retransmission.
[0062] In this system, the audio device parses the control commands through a protocol parsing middleware to understand their specific meaning and then executes the corresponding operations. For example, if the control command means "check in via Bluetooth," the audio device can turn on the Bluetooth function of its Bluetooth module; if the control command includes a software upgrade package, the audio device can parse the upgrade package according to the data protocol and perform a software upgrade.
[0063] It should be noted that, in addition to sending control commands, the I2C or SPI channel can also send audio data.
[0064] Embodiment 1 of the present invention provides an instruction transmission method, which first acquires an instruction; then generates a control instruction according to a predefined data protocol, wherein the predefined data protocol is generated based on the instruction; subsequently, the control instruction is sent to an audio device through a communication channel, so that the audio device performs protocol parsing on the control instruction to obtain the operation corresponding to the control instruction and executes the operation; finally, the communication channel includes an integrated circuit bus or a serial peripheral interface. The above method uses a predefined data protocol to generate control instructions, enabling the audio device to understand the specific meaning of the control instruction after protocol parsing, and then execute the control instruction.
[0065] Based on the above embodiments, modified embodiments of the above embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in the modified embodiments.
[0066] In one embodiment, the control instruction includes multiple fields, and the control fields among the multiple fields include a fourth field, a fifth field, a sixth field, a seventh field, and an eighth field; wherein the control fields are generated through the predefined data protocol.
[0067] The fourth field is used to define the module identifier in the audio device;
[0068] The fifth field is used to define the module's functionality;
[0069] The sixth field is used to define different operations and settings;
[0070] The seventh field is used to specify the length of data in the data protocol;
[0071] The eighth field is used to define the data in the control instructions.
[0072] The fourth field can define the identifiers of different functional modules in the audio device, including Bluetooth module identifiers, FM module identifiers, digital audio broadcasting module identifiers, and other common module identifiers such as Power, Audio, and Diagnostics.
[0073] For example, the name of the fourth field can be FModuleID, where FModuleID=0x03 indicates a Bluetooth module. The fourth field, together with the fifth and sixth fields, forms the control instruction, which defines a specific functional protocol. Its length is 1 byte and ranges from 0x00 to 0xFF.
[0074] The fifth field defines a specific function implementation. For example, the name of the fifth field can be FModuleID. For instance, FModuleID=0x03 can represent a Bluetooth module, and FunctionID=0x0A00 can represent a switch. The combination of the fourth and fifth fields represents the Bluetooth switch. The fifth field, along with the fourth and sixth fields, forms the control instruction, defining a specific function protocol. Its length is 1 byte, ranging from 0x00 to 0xFF.
[0075] The sixth field can perform different operations on properties and methods. It is the basic element for interaction between properties and methods. The name of the sixth field can be OPType. The sixth field, together with the fourth and fifth fields, forms a control instruction that defines a specific functional protocol. Its length is 4 bytes and its range is from 0x0 to 0xF.
[0076] Furthermore, the different operations include setting operations, obtaining operations, and setting and obtaining operations; the setting includes auto-incrementing settings and auto-decrementing settings.
[0077] For example, the sixth field is defined as shown in Table 1 below:
[0078]
[0079] Table 1
[0080] In Table 1, in the control commands, a value of 0x0 for the sixth field indicates sending a setting operation to the audio device, such as setting the Bluetooth module of the audio device to be on or off; a value of 0x1 indicates sending an acquisition operation to the audio device to acquire the functional status of a certain module of the audio device, such as the Bluetooth check-in status of the Bluetooth module, which is returned through a protocol message with the sixth field set to Status; a value of 0x2 indicates sending a setting operation to the audio device and acquiring the status of the audio device, such as setting Bluetooth to be on or off, with the Bluetooth on or off status returned through a protocol message with the sixth field set to Status; a value of 0x3 indicates sending an increment setting to the audio device, such as setting the increment to increase the volume by 1; and a value of 0x4 indicates sending a decrement setting to the audio device, such as setting the decrement to decrease the volume by 1. In the return command, the sixth field is 0xC, which means that after the audio device receives the control command, it returns the result through the protocol message with the sixth field being Status, or the audio device actively sends the specific functional status of a certain module to the cockpit domain controller; the sixth field is 0xF, which means that after the audio device receives the control command, it returns an error code to the cockpit and controller if the control command is incorrect or the corresponding module function is unavailable.
[0081] The seventh field can be named Length. The seventh field is used to specify the length of the data in the protocol. It forms a data field with the eighth field. Its length is 2 bytes, from 0x0000 to 0xFFFF.
[0082] The eighth field can be named "Data" and is used to define the data in the control command. For example, the data for turning on Bluetooth can be 0x1, and the data for turning off Bluetooth can be 0x0. The eighth field, together with the fourth, fifth, and seventh fields, defines a specific functional protocol, and its length is 0xFFFF.
[0083] In this embodiment, the predefined data protocol includes the specific values of the fourth, fifth, sixth, and eighth fields.
[0084] For example, the predefined data protocol is expressed as: Bluetooth.Switch.Set.Mode(0x10,0x0A00,0x0,0x01), where 0x10 represents the value of the fourth field, 0x0A00 represents the value of the fifth field, 0x0 represents the value of the sixth field, and 0x01 represents the value of the eighth field.
[0085] In one embodiment, the audio device returns a result instruction after performing an operation, the result instruction being generated according to the predefined data protocol. Figure 2 This is a first interaction diagram corresponding to an instruction transmission method provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the master device (i.e., the cockpit domain controller) sends the control command Bluetooth.Switch.Set.Mode() to the slave device (i.e., the audio device). This command includes a setting operation (i.e., OPType=Set). For example, the master device sends the command to turn on Bluetooth to the slave device: Bluetooth.Switch.Set.Mode(0x10, 0x0A00, 0x00, 0x01). After receiving the command, the slave device parses and executes the Bluetooth turn-on operation. If Bluetooth is successfully turned on, it generates a Bluetooth status command (i.e., a result command) according to the data protocol and returns the Bluetooth status command to the master device. When an error occurs, an Error command is returned. Error scenarios include parameter errors and Bluetooth hardware fault lights.
[0086] Figure 3 This is a second interactive schematic diagram corresponding to an instruction transmission method provided in an embodiment of the present invention, as shown below. Figure 3As shown, the master device sends a control command Bluetooth.Switch.Get() to the slave device. This command includes a get operation (i.e., OPType = Get). For example, the master device sends a Bluetooth status query command to the slave device: Bluetooth.Switch.Get() (the Data parameter is optional). The slave device generates a result command according to the data protocol and returns a result command through the status: Bluetooth.Switch.Status.Mode(0x01), indicating that Bluetooth is enabled.
[0087] Figure 4 This is a third interaction diagram corresponding to an instruction transmission method provided in an embodiment of the present invention, as shown below. Figure 4 As shown, the master device sends a control command `Bluetooth.Switch.SetGet.Mode()` to the slave device. This command includes a set and get operation (i.e., `OPType = SetGet`). For example, the master device sends `Bluetooth.Switch.SetGet.Mode(0x10, 0x0A00, 0x02, 0x01)` to the slave device. After receiving this command, the slave device attempts to turn on Bluetooth. Regardless of whether the Bluetooth is turned on successfully or not, it generates a result command according to the data protocol and returns the result command through the status. Specifically, if the Bluetooth is turned on successfully, the slave device returns the command `Bluetooth.Switch.Status.Mode(0x01)`; if the Bluetooth is turned on unsuccessfully, the slave device returns the command `Bluetooth.Switch.Error(0x80, 0x01)`.
[0088] In one embodiment, the plurality of fields further includes a first field, a second field, a third field, a ninth field, and a tenth field; the first field is used to mark the beginning of a control instruction, so that the audio device can identify the beginning of control instruction transmission based on the first field; the second field is used to indicate the number of sub-messages into which the control instruction is split; the third field is used to indicate the number of sub-messages into which the control instruction is split; the ninth field is used to represent a cyclic redundancy check code, so that the audio device can verify the integrity of the control instruction based on the ninth field; and the tenth field is used to mark the end of a control instruction, so that the audio device can identify the end of control instruction transmission based on the tenth field.
[0089] The first field can be the first field in the control command, and its name can be SOF. Based on the first field, the audio device can synchronize and recognize the start of a new control command transmission. When the audio device detects this field, it begins reading other fields in the control command. The first field is used in conjunction with the tenth field to define the boundaries of the control command.
[0090] The second field, named "Total sequences," represents the total number of instruction sequences when control commands are split into multiple commands. The audio device can use this field to determine how many commands are needed for a specific data transmission; it can represent a data block. The second field works in conjunction with the third field to ensure the correct reassembly of the split commands. The second field is 1 byte long, ranging from 0x01 to 0xFF, with a value of 0x01 indicating that the data is contained in a single message.
[0091] The third field, named "Sequence Number," indicates the total number of instruction sequences when control commands are split into multiple commands. Audio devices can use this field to determine how many commands are needed for a specific data transfer and can represent a data frame. The third field works in conjunction with the second field to ensure the correct recombination of the split data. The third field is 1 byte long and ranges from 0x01 to 0xFF, with a value of 0x01 indicating that the data is contained within a single message.
[0092] The ninth field can be named CRC. It calculates a cyclic redundancy check value to ensure the integrity of control commands. Audio devices can use this field to verify whether control commands have been corrupted during transmission. The CRC algorithm can be CRC-16, with a polynomial of 0x1021, an initial value of 0xFFFF, and an XOR value of 0x0000. The CRC calculation includes the command identifier, total sequence, sequence number, length, and command.
[0093] If the CRC value calculated by the audio device does not match the CRC value parsed from the received control command, the command is considered corrupted and a NACK message may be sent to make the cockpit domain controller resend the command.
[0094] At the application layer, based on a predefined data protocol, when data is transmitted between the cockpit domain controller and the audio device, ACK or NACK messages are used as responses to check whether the message has been received and whether the CRC is correct. If the CRC is correct, an ACK response is sent; if the CRC is incorrect, a NACK response is sent. If the cockpit domain controller receives a NACK, it needs to resend the control command. If the cockpit and controller do not receive an ACK or NACK from the audio device within a preset time after sending the control command, the control command can be resent up to 3 times.
[0095] Based on the technical solutions of the above embodiments, this invention provides a specific implementation method.
[0096] As one specific implementation method of this embodiment. Figure 5 A schematic diagram of instruction transmission is provided for a specific embodiment of the present invention, such as... Figure 5As shown, the domain controller (i.e., the cockpit domain controller) and the Radio box (i.e., the audio device) transmit control messages (i.e., control commands) and audio data via the A2B bus. The Radio box includes a Bluetooth module, a DAB module (i.e., the digital audio broadcasting module), and an AM / FM module (i.e., the frequency modulation module). AMP is a power amplifier.
[0097] For example, a data protocol for a Bluetooth switch is predefined, and the definition is shown in Table 2.
[0098] The definition of Mode is shown in Table 3. In Table 3, a value of 0x00 indicates Bluetooth is off, a value of 0x01 indicates Bluetooth is on, and values between 0x02 and 0x0F indicate other functions.
[0099]
[0100] Table 2
[0101]
[0102] Table 3
[0103] The control commands generated according to the above data protocol are as follows: Figure 6 As shown, Figure 6 This is a schematic diagram of the data structure of control instructions in an instruction transmission method according to an embodiment of the present invention. Figure 6 In the code, the fourth field (named FModuleID) with a value of 0x10 indicates a Bluetooth module, the fifth field (named FunctionID) with a value of 0x0A00 indicates a switch, the sixth field (named OPType) with a value of 0x00 indicates Bluetooth is off, the seventh field (named Length) with a value of 0x0001 indicates a data length of 1, and the eighth field (named Data) with a value of 1 indicates a check-in Bluetooth command.
[0104] Example 2
[0105] Figure 7 This is a flowchart illustrating an instruction transmission method provided in Embodiment 2 of the present invention. This method is applicable to situations where an audio device executes control instructions. The method can be executed by an instruction transmission device, which can be implemented by software and / or hardware and is generally integrated into the audio device.
[0106] like Figure 7 As shown, the instruction transmission method provided in Embodiment 2 of the present invention includes the following steps:
[0107] S210. Receive control commands, which are generated based on a predefined data protocol and transmitted through a communication channel, which includes an integrated circuit bus and a serial peripheral interface.
[0108] In this embodiment, the audio device can receive control commands sent by the cockpit domain controller, which are generated by the cockpit domain controller according to a predefined data protocol.
[0109] The cockpit domain controller can generate corresponding fields according to the data protocol. All generated fields can form control commands. Control commands can also include other fields besides the corresponding fields, such as fields that identify the start of control command transmission, fields that identify the end of control command transmission, and fields that represent check codes. Other fields can be set adaptively, and no specific restrictions are imposed here.
[0110] In this embodiment, if the instruction is a software upgrade, a software upgrade control instruction is generated according to a predefined data protocol, and the instruction includes a software upgrade package.
[0111] In this embodiment, the cockpit domain controller can send control commands to the audio device via the I2C channel (i.e., integrated circuit bus) or via the SPI channel (i.e., serial peripheral interface). The I2C channel transmits control commands via the A2B bus.
[0112] It should be noted that, in addition to sending control commands, the I2C or SPI channel can also send audio data.
[0113] S220. Perform protocol parsing on the control command to obtain the control content of the control command, and execute the control content.
[0114] In this system, the audio device parses the control commands through a protocol parsing middleware to understand their specific meaning and then executes the corresponding operations. For example, if the control command means "check in via Bluetooth," the audio device can turn on the Bluetooth function of its Bluetooth module; if the control command includes a software upgrade package, the audio device can parse the upgrade package according to the data protocol and perform a software upgrade.
[0115] Embodiment 2 of the present invention provides an instruction transmission method. First, a control instruction is received. The control instruction is generated based on a predefined data protocol, which is transmitted through a communication channel including an integrated circuit bus and a serial peripheral interface. Then, the control instruction is parsed to obtain its control content, and the control content is executed. In this method, the audio device parses the received control instruction according to the predefined data protocol to understand its specific meaning, thereby enabling correct execution of the control instruction.
[0116] Example 3
[0117] Figure 8 This is a schematic diagram of a command transmission device provided in Embodiment 3 of the present invention. The device is applicable to situations where a cockpit domain controller sends control commands to an audio device to control the audio device. The device can be implemented by software and / or hardware and is generally integrated into the cockpit domain controller device.
[0118] like Figure 8 As shown, the device includes: an acquisition module 110, a generation module 120, and a transmission module 130.
[0119] Module 110 is used to acquire instructions;
[0120] The generation module 120 is used to generate control instructions according to a predefined data protocol, wherein the predefined data protocol is generated according to the instructions;
[0121] The sending module 130 is used to send the control command to the audio device through a communication channel, so that the audio device can perform protocol parsing of the control command, obtain the operation corresponding to the control command, and execute the operation.
[0122] The communication channel includes an integrated circuit bus or a serial peripheral interface.
[0123] In this embodiment, the device first acquires an instruction through the acquisition module 110; then, it generates a control instruction according to a predefined data protocol through the generation module 120, wherein the predefined data protocol is generated based on the instruction; finally, it sends the control instruction to the audio device through the communication channel through the sending module 130, so that the audio device can parse the control instruction according to the protocol, obtain the operation corresponding to the control instruction, and execute the operation; wherein, the communication channel includes an integrated circuit bus or a serial peripheral interface.
[0124] This embodiment provides an instruction transmission device that uses a predefined data protocol to generate control instructions, enabling audio devices to parse the control instructions according to the protocol and understand their specific meaning, and then execute the control instructions.
[0125] Furthermore, the control instruction includes multiple fields, among which the control fields include a fourth field, a fifth field, a sixth field, a seventh field, and an eighth field; wherein, the control fields are generated through the predefined data protocol;
[0126] The fourth field is used to define the module identifier in the audio device;
[0127] The fifth field is used to define the module's functionality;
[0128] The sixth field is used to define different operations and settings;
[0129] The seventh field is used to specify the length of data in the data protocol;
[0130] The eighth field is used to define the data in the control instructions.
[0131] Based on the above optimizations, the different operations include setting operations, obtaining operations, and setting and obtaining operations; the setting includes auto-incrementing settings and auto-decrementing settings.
[0132] Furthermore, after performing the operation, the audio device returns a result instruction, which is generated according to the predefined data protocol.
[0133] Furthermore, the plurality of fields also includes a first field, a second field, a third field, a ninth field, and a tenth field;
[0134] The first field is used to mark the start of a control command, so that the audio device can identify the start of the control command transmission based on the first field;
[0135] The second field is used to indicate the number of sub-messages into which a control instruction is split;
[0136] The third field is used to indicate the number of sub-messages into which the control instruction is divided;
[0137] The ninth field is used to represent a cyclic redundancy check code, so that the audio device can verify the integrity of the control command based on the ninth field;
[0138] The tenth field is used to mark the end of the control command, so that the audio device can identify the end of the control command transmission based on the tenth field.
[0139] The above-mentioned instruction transmission device can execute the instruction transmission method provided in Embodiment 1 of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0140] Example 4
[0141] Figure 9 This is a schematic diagram of the structure of an instruction transmission device provided in Embodiment 4 of the present invention. The device is applicable to situations where an audio device executes control instructions. The device can be implemented by software and / or hardware and is generally integrated into the audio device.
[0142] like Figure 9 As shown, the device includes a receiving module 210 and a parsing module 220.
[0143] The receiving module 210 is used to receive control commands, which are generated based on a predefined data protocol. The data protocol is transmitted through a communication channel, which includes an integrated circuit bus and a serial peripheral interface.
[0144] The parsing module 220 is used to perform protocol parsing on the control command to obtain the control content of the control command, and execute the control content.
[0145] This embodiment provides an instruction transmission device that can parse received control instructions according to a predefined data protocol to understand the specific meaning of the control instructions, thereby enabling the correct execution of the control instructions.
[0146] Furthermore, the control instruction includes multiple fields, among which the control fields include a fourth field, a fifth field, a sixth field, a seventh field, and an eighth field; wherein, the control fields are generated through the predefined data protocol;
[0147] The fourth field is used to define the module identifier in the audio device;
[0148] The fifth field is used to define the module's functionality;
[0149] The sixth field is used to define different operations and settings;
[0150] The seventh field is used to specify the length of data in the data protocol;
[0151] The eighth field is used to define the data in the control instructions.
[0152] Based on the above optimizations, the different operations include setting operations, obtaining operations, and setting and obtaining operations; the setting includes auto-incrementing settings and auto-decrementing settings.
[0153] Furthermore, the device also includes a response module for returning a result instruction after performing an operation, the result instruction being generated according to the predefined data protocol.
[0154] Furthermore, the plurality of fields also includes a first field, a second field, a third field, a ninth field, and a tenth field;
[0155] The first field is used to mark the start of a control command, so that the audio device can identify the start of the control command transmission based on the first field;
[0156] The second field is used to indicate the number of sub-messages into which a control instruction is split;
[0157] The third field is used to indicate the number of sub-messages into which the control instruction is divided;
[0158] The ninth field is used to represent a cyclic redundancy check code, so that the audio device can verify the integrity of the control command based on the ninth field;
[0159] The tenth field is used to mark the end of the control command, so that the audio device can identify the end of the control command transmission based on the tenth field.
[0160] The above-mentioned instruction transmission device can execute the instruction transmission method provided in Embodiment 2 of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0161] Example 5
[0162] Figure 10 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device may be a cockpit domain controller or an audio device. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0163] like Figure 10 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0164] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0165] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as instruction transfer methods executed by a cockpit domain controller or instruction transfer methods executed by an audio device.
[0166] In some embodiments, the instruction transfer method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the instruction transfer method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the instruction transfer method by any other suitable means (e.g., by means of firmware).
[0167] Various embodiments 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-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0168] In some embodiments, the instruction transfer method may be implemented as a computer program, which is implicitly included in a computer program product. When executed by a processor, the computer program implements the instruction transfer method of the present invention. The computer program product can be understood as a software product that primarily implements its solution through a computer program. The computer program used to implement the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer program causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a standalone software package, or entirely on a remote machine or server.
[0169] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0170] To provide interaction with a user, the systems and techniques described herein can 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 pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0171] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0172] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0173] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0174] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for transmitting instructions, characterized in that, The method is applied to a cockpit domain controller, and the method includes: Get instructions; Control commands are generated according to a predefined data protocol, wherein the predefined data protocol is generated based on the commands; The control command is sent to the audio device through a communication channel, so that the audio device performs protocol parsing on the control command, obtains the operation corresponding to the control command, and executes the operation. The communication channel includes an integrated circuit bus or a serial peripheral interface.
2. The method according to claim 1, characterized in that, The control command includes multiple fields, among which the control fields include a fourth field, a fifth field, a sixth field, a seventh field, and an eighth field; wherein, the control fields are generated through the predefined data protocol; The fourth field is used to define the module identifier in the audio device; The fifth field is used to define the module's functionality; The sixth field is used to define different operations and settings; The seventh field is used to specify the length of data in the data protocol; The eighth field is used to define the data in the control instructions.
3. The method according to claim 2, characterized in that, The different operations include setting operations, obtaining operations, and setting and obtaining operations; the setting includes auto-incrementing settings and auto-decrementing settings.
4. The method according to claim 1 or 3, characterized in that, After performing the operation, the audio device returns a result instruction, which is generated according to the predefined data protocol.
5. The method according to claim 2, characterized in that, The plurality of fields also includes a first field, a second field, a third field, a ninth field, and a tenth field; The first field is used to mark the start of a control command, so that the audio device can identify the start of the control command transmission based on the first field; The second field is used to indicate the number of sub-messages into which a control instruction is split; The third field is used to indicate the number of sub-messages into which the control instruction is divided; The ninth field is used to represent a cyclic redundancy check code, so that the audio device can verify the integrity of the control command based on the ninth field; The tenth field is used to mark the end of the control command, so that the audio device can identify the end of the control command transmission based on the tenth field.
6. A method for transmitting instructions, characterized in that, The method is applied to an audio device, and the method includes: Receive control commands, which are generated based on a predefined data protocol and transmitted through a communication channel, which includes an integrated circuit bus and a serial peripheral interface; The control command is parsed to obtain its control content, and then the control content is executed.
7. A command transmission device, characterized in that, The device is used in a cockpit domain controller, and the device includes: The acquisition module is used to acquire instructions; The generation module is used to generate control instructions according to a predefined data protocol, wherein the predefined data protocol is generated according to the instructions; The sending module is used to send the control command to the audio device through a communication channel, so that the audio device can perform protocol parsing of the control command, obtain the operation corresponding to the control command, and execute the operation. The communication channel includes an integrated circuit bus or a serial peripheral interface.
8. A command transmission device, characterized in that, The device is used in an audio device, and the device includes: A receiving module is used to receive control commands, which are generated based on a predefined data protocol. The data protocol is transmitted through a communication channel, which includes an integrated circuit bus and a serial peripheral interface. The parsing module is used to perform protocol parsing on the control command to obtain the control content of the control command, and execute the control content.
9. A cockpit domain controller, characterized in that, The cockpit domain controller includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the instruction transfer method according to any one of claims 1-5.
10. An audio device, characterized in that, The audio device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the instruction transfer method of claim 6.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute and implement the instruction transfer method of any one of claims 1-5, or the instruction transfer method of claim 6.
12. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the instruction transmission method according to any one of claims 1-5, or implements the instruction transmission method according to claim 6.
13. A vehicle, characterized in that, The vehicle includes the cockpit domain controller as described in claim 9.