A communication information sending method and device, electronic equipment and storage medium

By constructing a message sequence for the 1553B bus protocol, storing and transmitting multiple instruction opcodes and communication information, the problem of low communication efficiency was solved, and a more efficient communication process was achieved.

CN115422099BActive Publication Date: 2026-02-17SHENZHEN STATE MICROELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211045797.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2026-02-17
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

The existing 1553B bus protocol has low communication efficiency, which leads to a decrease in information processing performance.

Method used

The message sequence is constructed, including the bus controller instruction list and message control status block, storing multiple instruction opcodes and communication information. The instruction opcode and message control status block pointer are determined by the start pointer, and the communication information is accessed and transmitted one by one.

Benefits of technology

It improves communication efficiency, reduces the processing time of the host computer and the number of bus controllers, and optimizes the communication process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115422099B_ABST
    Figure CN115422099B_ABST
Patent Text Reader

Abstract

Embodiments of the present application are suitable for the field of communication technology, and provide a communication information sending method and device, electronic equipment and storage medium, the method comprises: constructing a message sequence, the message sequence comprises a bus controller instruction list and a message control state block, the bus controller instruction list is used for storing a plurality of instruction operation codes, and the message control state block is used for storing communication information; determining a starting pointer of the bus controller instruction list; accessing the instruction operation code pointed to by the starting pointer, and obtaining a message control state block pointer; determining the to-be-sent communication information according to the message control state block pointer; and transmitting the to-be-sent communication information. The above method can improve the communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, and in particular relates to a communication information transmission method, apparatus, electronic device and storage medium. Background Technology

[0002] The 1553B bus protocol, also known as the MIL-STD-1553B bus interface protocol, is an internationally recognized data bus standard. Due to its bidirectional output, real-time performance, and reliability, the 1553B data bus is widely used in platform systems such as aviation and ground vehicles. 1553B bus systems typically implement bus communication through dedicated 1553B bus interface chips, which include three types: bus controllers, remote terminals, and bus monitors. In existing technologies, when using a bus controller as the interface chip to transmit large amounts of communication information, the host computer can only pre-configure and load one set of data, often resulting in low communication efficiency and thus affecting the information processing performance of the information application platform. Summary of the Invention

[0003] In view of this, embodiments of this application provide a method for sending communication information to solve the problem of low communication efficiency in the prior art.

[0004] In a first aspect, embodiments of this application provide a method for transmitting communication information, the method comprising:

[0005] Construct a message sequence, the message sequence including a bus controller instruction list and a message control status block, the bus controller instruction list being used to store multiple instruction opcodes, and the message control status block being used to store communication information;

[0006] Determine the starting pointer of the bus controller instruction list;

[0007] Access the instruction opcode pointed to by the start pointer and obtain the message control status block pointer;

[0008] The communication information to be sent is determined based on the message control status block pointer;

[0009] Transmit the communication information to be sent.

[0010] A second aspect of this application provides a communication information transmission apparatus, comprising:

[0011] A message sequence construction module is used to construct a message sequence, which includes a bus controller instruction list and a message control status block. The bus controller instruction list is used to store multiple instruction opcodes, and the message control status block is used to store communication information.

[0012] A start pointer determination module is used to determine the start pointer of the bus controller instruction list;

[0013] The access module is used to access the instruction opcode pointed to by the start pointer and to obtain the message control status block pointer;

[0014] The communication information determination module is used to determine the communication information to be sent based on the message control status block pointer.

[0015] A communication information transmission module is used to transmit the communication information to be sent.

[0016] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the communication information transmission method as described in the first aspect above.

[0017] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the communication information transmission method described in the first aspect above.

[0018] A fifth aspect of this application provides a computer program product that, when run on a computer, causes the computer to execute the communication information transmission method described in the first aspect.

[0019] Compared with the prior art, the embodiments of this application have the following advantages:

[0020] In this embodiment, by constructing a message sequence and accessing the bus controller instruction list, message control status list, and data storage block unit in the message sequence one by one, multiple pre-configured communication messages can be obtained. Finally, these multiple communication messages can be sent one by one via the 1553B bus to complete a series of communication operations. Since the host computer pre-writes multiple instruction opcodes and their corresponding opcode parameters into the bus controller instruction list, it can configure multiple communication messages into the message sequence at once. Therefore, this embodiment can significantly reduce the host computer's processing time, thereby improving communication efficiency. Because the message sequence stores multiple instruction opcodes and their corresponding opcode parameters, the bus controller can autonomously transmit a series of communication messages, greatly reducing the number of host computers and bus controllers required during communication. Attached Figure Description

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

[0022] Figure 1 This is a communication network topology diagram of a 1553B bus system provided in an embodiment of this application;

[0023] Figure 2 This is a schematic diagram of a communication information transmission method provided in an embodiment of this application;

[0024] Figure 3 This is a schematic diagram of a message sequence structure provided in an embodiment of this application;

[0025] Figure 4 This is a schematic diagram of one implementation of S203 in a communication information sending method provided in an embodiment of this application;

[0026] Figure 5 This is a schematic diagram of the structure of an instruction opcode provided in an embodiment of this application;

[0027] Figure 6 This is a flowchart illustrating an automated execution of a bus controller instruction list provided in an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of a communication information transmission device provided in an embodiment of this application;

[0029] Figure 8 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0030] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0031] The 1553B bus protocol, also known as the MIL-STD-1553B bus interface protocol, is an internationally recognized data bus standard. Due to its bidirectional output, real-time performance, and reliability, the 1553B data bus is widely used in platform systems such as aviation and ground vehicles. The 1553B bus system has a transmission rate of 1 Mbps, uses a command / response transmission protocol, employs shielded twisted-pair cable as the transmission medium, and features a typical dual-redundancy fault tolerance mechanism. The 1553B bus system can achieve bus communication through a dedicated 1553B bus interface chip. When using the 1553B bus interface chip for bus communication, one end of the chip connects to the host computer, and the other end connects to the physical shielded twisted-pair cable of the 1553B bus network via an isolation transformer and coupler assembly. In existing technology, the 1553B bus interface chip mounted on the 1553B bus system can be an electronic device. In the 1553B bus system, there are three types of electronic devices used to implement bus communication: Bus Controller (BC), which acts as the controller and manager of the bus system during bus communication; Remote Terminal (RT), which is used to obtain valid commands sent from the host computer to the bus system and respond to the commands to complete the corresponding communication actions; and Monitor Terminal (MT), which can monitor and record various data on the bus system during bus communication.

[0032] Figure 1 The communication network topology diagram of the 1553B bus system is as follows: Figure 1As shown, in existing technology, the communication network of a 1553B bus system can consist of one bus controller, several remote terminals (RTs), and a bus monitor (MT). According to the MIL-STD-1553B bus protocol, the initiator of each 1553B bus communication can only be the bus controller; that is, each time communication information is transmitted using the 1553B bus, the bus controller sends the communication information to the bus network. The communication information sent by the bus controller can be divided into broadcast and non-broadcast types. In the case of broadcast communication information, after it is sent to the bus network, all RTs can receive the communication information sent by the bus controller and process it, but none of the RTs send response information to the 1553B bus communication network. The non-broadcast communication messages sent by the bus controller contain a unique terminal RT address. Therefore, when the bus controller sends non-broadcast communication messages, every terminal RT on the 1553B bus communication network will receive the communication message. Each terminal RT can resolve the terminal RT address contained in the communication message. Only terminal RTs whose own terminal RT address matches the terminal RT address contained in the communication message will save the content of the communication message and respond accordingly. Terminal RTs with mismatched addresses will discard the communication message. Furthermore, since the 1553B bus protocol stipulates that the address of each terminal RT connected to the 1553 bus communication network is unique, when the bus controller sends non-broadcast communication messages, only one terminal RT's address will match the terminal RT address contained in the communication message and respond accordingly. This avoids erroneous communication conflicts caused by multiple RTs simultaneously sending information to the 1553 bus.

[0033] In existing technologies, when using a bus controller as an interface chip to transmit large amounts of communication information, the host computer can only pre-configure and load one set of data information. Therefore, when the bus controller receives a start command from the host computer, it can only transmit a single, pre-set communication message. After the single communication message transmission is completed, the host computer needs to reload the next frame of communication information into the bus controller before it can continue transmitting the next frame. Therefore, when performing large-volume 1553 bus data communication, this communication behavior of loading and sending only a single piece of communication information consumes a significant amount of host computer processing time, leading to a decrease in overall communication efficiency and thus affecting the information processing performance of the entire information application platform.

[0034] The technical solution of this application will be described below through specific embodiments.

[0035] Reference Figure 2The diagram illustrates a communication information transmission method provided in an embodiment of this application, which may specifically include the following steps:

[0036] S201. Construct a message sequence, the message sequence including a bus controller instruction list and a message control status block, the bus controller instruction list being used to store multiple instruction opcodes, and the message control status block being used to store communication information.

[0037] In this embodiment, the created message sequence can be applied to scenarios where the 1553B bus system uses the bus controller as an interface chip to transmit communication information, enabling the bus controller to transmit a series of communication information at once.

[0038] In the embodiments of this application, such as Figure 3As shown, the message sequence may include a bus controller instruction list and a message control status block. The bus controller instruction list may include two unit structures: an opcode parameter unit and an instruction opcode unit. The instruction opcode unit can store multiple instruction opcodes, and the opcode parameter unit can store the opcode parameters corresponding to multiple instruction opcodes. It should be noted that in this embodiment, each instruction opcode corresponds to a message control status block, and each message control status block includes a control word unit, a command word unit, a data block pointer unit, a time interval unit, a time information unit, a block status word unit, a loopback word unit, a second command word unit in RT-RT format, and a second status word unit in RT-RT format. The control word unit can be used to control the transmission status of communication information and store corresponding communication information transmission conditions. For example, it can perform operations such as mass transmission of communication information, control the transmission channel of communication information, and interrupt the transmission of communication information. The command word unit can be used to store the command words of the 1553 bus. After receiving the pointer to the instruction list, the command word unit can send its stored command words to the bus controller. The time interval unit can be used to store time interval information, which can be used to control the interval between sending the current communication information and sending the next communication information. For example, if the time interval information stored in a certain time interval unit is 1 hour, then the bus controller will only send the next communication information to the remote terminal one hour after sending the current communication information. The time information unit can be used to store the time information of the currently sent communication information. The block status word unit can be used to store status information, which can be used to reflect the status of the currently sent communication information, such as the end of message (EOM), the start of message (SOM), and the retransmission status. In addition, the status information stored in the block status word can be used to characterize various status information during the transmission process, such as the transmission bus of communication information, remote terminal response status word errors, whether the current communication information transmission is correct, and word count errors in bus communication. Among them, remote terminal response status word errors can include various remote terminal response errors such as frame format errors, response timeout errors, and loopback errors. The loopback word unit can be used to store the last string in the currently sent communication information, which can be used to characterize whether the encoding and decoding circuit inside the 1553 bus is normal. The RT status word can be used to store the status response string sent by the remote terminal. The second command word unit in the RT-RT format and the second status word unit in the RT-RT format store the second command word in the RT-RT communication format and the corresponding status word of the remote terminal corresponding to the second command word in the RT-RT format, respectively. They are only used for the transmission of communication information in the RT-RT format.

[0039] In another possible implementation of the embodiments of this application, such as Figure 3 As shown, the message sequence may also include a bus controller instruction list pointer register and a data storage block. The bus controller instruction list pointer register can be used to store the start pointer of the bus controller instruction list. The data storage block can be used to store communication information to be sent and / or received on the 1553B bus.

[0040] In this embodiment, by creating a message sequence, all the instruction opcodes and opcode parameters required to complete a series of communication operations can be written into the bus controller instruction list. This allows the host computer to load all the communication information to be transmitted at once, greatly reducing the host computer's processing time and thus improving communication efficiency.

[0041] S202. Determine the starting pointer of the bus controller instruction list.

[0042] In this embodiment, the 1553B bus system can have a host computer write a series of communication information to be transmitted into a message sequence. After writing, the host computer can send a start command to the bus controller to control the bus controller to transmit the communication information. After receiving the start command from the host computer, the bus controller can first determine the starting pointer of the bus controller instruction list. The starting pointer of the bus controller instruction list can be determined by obtaining the starting pointer value stored in the instruction list pointer register.

[0043] S203. Access the instruction opcode pointed to by the start pointer and obtain the message control status block pointer.

[0044] In this embodiment, the obtained start pointer can be used to point to the bus controller instruction list. Since the bus controller instruction list stores multiple instruction opcodes and their corresponding opcode parameters, the start pointer can be used to determine the first instruction opcode to be executed in the bus controller instruction list. After determining the instruction opcode to be executed, it can be verified. If the verification passes, the corresponding opcode parameters can be obtained. By combining the opcode and its corresponding parameter values ​​for analysis, the specific execution method of the current communication information can be determined. After executing the corresponding instruction opcode, the message control status block pointer can be obtained from the opcode parameter unit.

[0045] It should be noted that in this embodiment, different opcodes have different meanings for their parameter values. The specific meaning of the parameter values ​​corresponding to different opcode analyzers can be used to determine the specific execution method of the current communication information by combining the opcode and its corresponding parameter value. The specific execution methods of different opcodes and their corresponding parameter values ​​are shown in Table 1:

[0046]

[0047]

[0048]

[0049]

[0050] In another possible implementation of the embodiments of this application, such as Figure 4 As shown, in S203, accessing the instruction opcode pointed to by the start pointer can specifically include the following steps S2031-S2033:

[0051] S2031. Verify the instruction opcode pointed to by the start pointer.

[0052] In one implementation of this application, the structure of the instruction opcode can be as follows: Figure 5 As shown, an instruction opcode can include multiple address units, each with its corresponding unit number. Based on the unit number from low to high, the multiple address units in the instruction opcode can be sequentially classified as a condition code field, a fixed code field, an opcode field, and a parity bit. The condition code field stores the corresponding condition code when the instruction opcode is executed; the fixed code field stores a fixed binary number used to verify the opcode; the opcode field stores the specific opcode; and the parity bit stores a checksum used to verify the opcode.

[0053] In one possible implementation of this application embodiment, the condition code can determine whether the current instruction opcode can be executed. That is, before executing the current instruction opcode, the bus controller can first determine whether the current communication state meets the communication conditions specified by the corresponding condition code through the condition code. The corresponding communication conditions differ depending on the condition code. The specific relationship between each condition code and its communication conditions is shown in Table 2:

[0054]

[0055]

[0056]

[0057] It should be noted that BIT3 to BIT0 in Table 2 can define 16 communication conditions. For example, BIT4 = "0" can represent the logical execution opcode of the condition, and BIT4 = "1" can represent the logical inverse execution opcode of the condition.

[0058] It should be noted that, in the embodiments of this application, not all instruction opcodes have communication condition constraints. Instruction opcodes may or may not have communication condition constraints, and the embodiments of this application do not impose any restrictions on this.

[0059] In one possible implementation of this application, the condition code in the instruction opcode can be used to determine the communication state. If the condition code is false, it means that the current communication state cannot meet the communication conditions specified by the condition code, and the current instruction opcode is determined to have failed verification. If the condition code is true, it means that the current communication state can meet the communication conditions specified by the condition code. Therefore, the instruction opcode can be verified to determine if it is correct. The verification of the instruction opcode can be performed using the opcode, the check bit, and a fixed bit field. The check bit can be verified using an odd parity algorithm. That is, when the check bit is odd, the opcode is correct; when the check bit is not odd, the opcode is incorrect, and the current instruction opcode is determined to have failed verification. For example, when the number of "1"s in multiple address units other than the check bit in the instruction opcode is odd, if the check value in the check bit is "0", the opcode is correct; if the check value in the check bit is "1", the opcode is incorrect. When the number of "1"s in multiple address units (excluding the parity bit) of an instruction opcode is even, if the parity value in the parity bit is "0", the opcode is incorrect; if the parity value in the parity bit is "1", the opcode is correct. The fixed bit field can contain a fixed binary number. For example, if the fixed bit field is set to 01010, then if the fixed bit field in the current instruction opcode is 01010, the opcode is correct; if the fixed bit field in the current instruction opcode is any value other than 01010, the opcode is incorrect, and the current instruction opcode fails the check. The opcode can be any of a predefined set of opcodes. If the opcode obtained from the current instruction opcode is a defined opcode, the opcode is correct; if the opcode obtained from the current instruction opcode is an undefined opcode, the opcode is incorrect, and the current instruction opcode fails the check. It is understood that, in this embodiment of the application, under the premise that the condition code is true, the opcode can be determined to be correct only when all three conditions are met simultaneously: the opcode is a defined opcode, the parity bit is odd, and the fixed bit field is a preset value. If any one or more of these three conditions are not met, the opcode can be determined to be incorrect, and the current instruction opcode can be determined to have failed the verification.

[0060] S2032. If the instruction opcode passes the verification, then after reading the opcode parameter corresponding to the current instruction opcode, the start pointer is set to the next instruction opcode.

[0061] In this embodiment, after the instruction opcode passes verification, the opcode parameter unit corresponding to the current instruction opcode can be read, and the start pointer can be updated to point to the next instruction opcode in the bus controller instruction list. The opcode parameter unit may include the parameter value corresponding to the current instruction opcode and the message control status block pointer.

[0062] S2033. If the instruction opcode fails the verification, the start pointer is directly set to the next instruction opcode.

[0063] In this embodiment, if the instruction opcode fails the verification, the start pointer can be directly updated to point to the next instruction opcode in the bus controller instruction list.

[0064] In one possible implementation of this application, if the instruction opcode read from the start pointer is a stop opcode, such as the HLT stop opcode, then updating the start pointer and accessing the bus controller instruction list will stop.

[0065] like Figure 6 The diagram illustrates the process of an automated command execution by a bus controller via a message sequence. Upon receiving a start command from the host computer, the bus controller instruction list pointer register in the message sequence is read to determine the pointer value `p` of the instruction list. Based on the pointer value, the first instruction opcode in the instruction list is accessed. The condition code in the first instruction opcode is retrieved, and its validity is determined. If the condition code is valid, the pointer value is incremented by 1 (p = p + 1). The opcode parameter unit corresponding to the current instruction opcode is read, and the specific operation mode for the communication information is determined based on the opcode and its parameters. The processing of the communication information corresponding to the current instruction opcode is then executed, and the pointer value is incremented again (p = p + 1). If the condition code is invalid, the pointer value is incremented by 2 (p = p + 2). The next instruction opcode in the instruction list is accessed based on the updated pointer value, and the above operation is repeated until the HLT stop opcode is accessed. At this point, updating the start pointer stops, accessing the bus controller instruction list stops, and the bus controller can cease communication.

[0066] For example, if the currently accessed instruction opcode is XEQ (which executes a message processing instruction opcode), and the bus controller determines that the condition code in the XEQ opcode is true in the current communication state, then the bus controller can read the XEQ parameter unit, determine the XEQ parameter value, and obtain the message control status block pointer from the XEQ parameter unit. Based on the message control status block pointer, the corresponding message control status block for the XEQ opcode can be determined, and information such as command words and data storage unit pointers can be obtained from the message control status block to enable the transmission of communication information on the 1553B bus. After the current XEQ opcode is executed, the bus controller instruction list pointer value is updated, and the next opcode in the bus controller instruction list is accessed until the HLT stop opcode is detected in the instruction list. At this point, the start pointer is stopped being updated, access to the bus controller instruction list is stopped, and the bus controller notifies the transmission of communication information.

[0067] S204. Determine the communication information to be sent based on the message control status block pointer.

[0068] In this embodiment, the message control status block pointer obtained from the opcode parameter unit points to the message control status block corresponding to the instruction opcode. The data block unit pointer stored in the corresponding message control status block can be obtained based on the message control status block pointer. Based on the obtained data block unit pointer, the corresponding data storage block can be determined, and the corresponding communication information to be sent can be obtained.

[0069] In another possible implementation of this application embodiment, after obtaining the message control status block pointer, the message control status block corresponding to the current instruction opcode can be accessed according to the pointer's direction. Information such as the control word unit, command word unit, data block pointer unit, time interval unit, time information unit, block status word unit, loopback word unit, second command word unit in RT-RT format, and second status word unit in RT-RT format can be obtained from this message control status block. The data storage block pointer obtained from the message control status block can determine the data storage block unit corresponding to the current instruction opcode. By accessing the corresponding data storage block unit, the communication information to be sent can be obtained.

[0070] S205. Transmit the communication information to be sent.

[0071] In this embodiment, the specific operational behavior of the communication information to be sent can be determined by accessing the bus controller instruction list. After accessing the message control status block and data storage block to determine the control status information and the specific communication information to be sent, the communication information can be transmitted via the 1553B bus once the specific operational behavior, control status information, and specific communication information to be sent are determined.

[0072] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0073] In this embodiment, by constructing a message sequence and accessing the bus controller instruction list, message control status list, and data storage block unit in the message sequence one by one, multiple pre-configured communication messages can be obtained. Finally, these multiple communication messages can be sent one by one via the 1553B bus to complete a series of communication operations. Since the host computer pre-writes multiple instruction opcodes and their corresponding opcode parameters into the bus controller instruction list, it can configure multiple communication messages into the message sequence at once. Therefore, this embodiment can significantly reduce the host computer's processing time, thereby improving communication efficiency. Because the message sequence stores multiple instruction opcodes and their corresponding opcode parameters, the bus controller can autonomously transmit a series of communication messages, greatly reducing the number of host computers and bus controllers required during communication.

[0074] Furthermore, since the message control status block includes various units for storing control status information, such as control word units, command word units, data block pointer units, time interval units, time information units, block status word units, loopback word units, second command word units in RT-RT format, and second status word units in RT-RT format, and the instruction opcode is designed with various address units for verifying the instruction opcode, such as check bits, fixed bit fields, and condition codes, it can automatically detect whether there are transmission errors during the automatic transmission of pre-configured communication information by the bus controller. These errors include RT response time, Manchester II encoding, synchronization type, bit count, word parity check, word count, corresponding RT address, and all possible error conditions encountered during the operation of the bus controller (BC).

[0075] In this embodiment, since the various opcode parameters in the instruction opcode can be set and configured by the user, the bus controller can automatically transmit all communication information in the MIL-STD-1553B message format by creating a pre-defined message sequence. Because each message format can be configured individually by the user, and each configured message format is a separately programmable command type, programming allows each type of communication information to be automatically retransmitted or interrupted after meeting its corresponding communication state conditions.

[0076] Reference Figure 7 The diagram illustrates a communication information sending device according to an embodiment of this application, which may specifically include a message sequence construction module 701, a start pointer determination module 702, an access module 703, a communication information determination module 704, and a communication information transmission module 705, wherein:

[0077] The message sequence construction module 701 is used to construct a message sequence, which includes a bus controller instruction list and a message control status block. The bus controller instruction list is used to store multiple instruction opcodes, and the message control status block is used to store communication information.

[0078] The start pointer determination module 702 is used to determine the start pointer of the bus controller instruction list;

[0079] Access module 703 is used to access the instruction opcode pointed to by the start pointer and obtain the message control status block pointer;

[0080] The communication information determination module 704 is used to determine the communication information to be sent based on the message control status block pointer;

[0081] The communication information transmission module 705 is used to transmit the communication information to be sent.

[0082] In one possible implementation of this application embodiment, the access module 703 may be specifically used to: verify the instruction opcode pointed to by the start pointer; if the instruction opcode passes the verification, then after reading the opcode parameter corresponding to the current instruction opcode, the start pointer is set to the next instruction opcode; if the instruction opcode fails the verification, then the start pointer is set to the next instruction opcode directly.

[0083] In another possible implementation of this application embodiment, the access module 703 can also be used to: obtain the condition code in the instruction opcode, and determine whether the condition code is true; if the condition code is true, determine whether the opcode in the instruction opcode is correct; if the opcode is correct, determine that the instruction opcode passes the verification; if the opcode is incorrect, determine that the instruction opcode fails the verification; if the condition code is not true, determine that the instruction opcode fails the verification.

[0084] In another possible implementation of this application embodiment, the access module 703 can also be used to: obtain the opcode and the check bit and fixed bit field in the instruction opcode; if the opcode is a defined opcode, the check bit is odd check, and the fixed bit field is a preset value, then the opcode is determined to be correct; otherwise, the opcode is determined to be incorrect.

[0085] In another possible implementation of this application embodiment, the access module 703 can also be used to: if the instruction opcode is a stop opcode, then end the current communication information sending process.

[0086] In another possible implementation of this application embodiment, the communication information determination module 704 may be specifically used to: obtain a data storage block pointer from the message control state block according to the message control state block pointer; determine the data storage block unit pointed to by the data storage block pointer; and obtain the communication information to be sent from the data storage block unit.

[0087] As the apparatus embodiments are basically similar to the method embodiments, they are described in a relatively simple manner. For relevant details, please refer to the description in the method embodiment section.

[0088] Reference Figure 8 The diagram illustrates an electronic device according to an embodiment of this application. Figure 8 As shown, the electronic device 800 in this embodiment includes: a processor 810, a memory 820, and a computer program 821 stored in the memory 820 and executable on the processor 810. When the processor 810 executes the computer program 821, it implements the steps in the various embodiments of the communication information transmission method described above, for example... Figure 2 The steps S201 to S205 are shown. Alternatively, when the processor 810 executes the computer program 821, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 7 The functions of modules 701 to 705 are shown.

[0089] For example, the computer program 821 can be divided into one or more modules / units, which are stored in the memory 820 and executed by the processor 810 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which can be used to describe the execution process of the computer program 821 in the electronic device 800. For example, the computer program 821 can be divided into a message sequence construction module, a start pointer determination module, an access module, a communication information determination module, and a communication information transmission module, with the specific functions of each module as follows:

[0090] A message sequence construction module is used to construct a message sequence, which includes a bus controller instruction list and a message control status block. The bus controller instruction list is used to store multiple instruction opcodes, and the message control status block is used to store communication information.

[0091] A start pointer determination module is used to determine the start pointer of the bus controller instruction list;

[0092] The access module is used to access the instruction opcode pointed to by the start pointer and to obtain the message control status block pointer;

[0093] The communication information determination module is used to determine the communication information to be sent based on the message control status block pointer.

[0094] A communication information transmission module is used to transmit the communication information to be sent.

[0095] The electronic device 800 may be the bus controller in the foregoing embodiments. The electronic device 800 may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will understand that... Figure 8 This is merely one example of electronic device 800 and does not constitute a limitation on electronic device 800. It may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device 800 may also include input / output devices, network access devices, buses, etc.

[0096] The processor 810 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0097] The memory 820 can be an internal storage unit of the electronic device 800, such as a hard disk or memory of the electronic device 800. The memory 820 can also be an external storage device of the electronic device 800, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc., equipped on the electronic device 800. Furthermore, the memory 820 can include both internal and external storage units of the electronic device 800. The memory 820 is used to store the computer program 821 and other programs and data required by the electronic device 800. The memory 820 can also be used to temporarily store data that has been output or will be output.

[0098] This application also discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the communication information transmission method as described in the foregoing embodiments.

[0099] This application also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the communication information transmission method as described in the foregoing embodiments.

[0100] This application also discloses a computer program product that, when run on a computer, causes the computer to execute the communication information sending method described in the foregoing embodiments.

[0101] The embodiments described above are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for transmitting communication information, characterized in that, include: A message sequence is constructed, comprising a bus controller instruction list and a message control status block. The bus controller instruction list stores multiple instruction opcodes, and the message control status block stores communication information. Each instruction opcode includes multiple address units, each with its corresponding unit number. Based on the unit number from low to high, the multiple address units in the instruction opcode are, in order, a condition code field, a fixed code field, an opcode field, and a check bit. The condition code field stores the corresponding condition code when the instruction opcode is executed. Each instruction opcode corresponds to a message control status block, and each message control status block includes a control word unit, a command word unit, a data block pointer unit, a time interval unit, a time information unit, a block status word unit, a loopback word unit, a second command word unit in RT-RT format, and a second status word unit in RT-RT format. Determine the starting pointer of the bus controller instruction list; Accessing the instruction opcode pointed to by the start pointer includes: first determining whether the condition code in the condition code field is true; if the condition code is true, then further determining whether the opcode in the opcode field is a defined opcode, whether the check bit meets odd parity, and whether the fixed code field is a preset value; if all conditions are met, then the instruction opcode is determined to pass the check; after the instruction opcode passes the check, the message control status block pointer is obtained. The communication information to be sent is determined based on the message control status block pointer; Transmit the communication information to be sent.

2. The method according to claim 1, characterized in that, Accessing the instruction opcode pointed to by the start pointer includes: The opcode of the instruction pointed to by the start pointer is verified; If the instruction opcode passes the verification, then after reading the opcode parameter corresponding to the current instruction opcode, the start pointer is set to the next instruction opcode; If the instruction opcode fails the verification, the start pointer is directly set to the next instruction opcode.

3. The method according to claim 2, characterized in that, The verification of the instruction opcode pointed to by the start pointer includes: Obtain the condition code from the instruction opcode and determine whether the condition code is true; If the condition code is true, then it is determined whether the opcode in the instruction opcode is correct; if the opcode is correct, then the instruction opcode is determined to pass the verification; if the opcode is incorrect, then the instruction opcode is determined to fail the verification. If the condition code is not true, the instruction opcode is determined to have failed the verification.

4. The method according to claim 3, characterized in that, The step of determining whether the opcode in the instruction opcode is correct includes: Obtain the opcode and the check bit and fixed bit field in the instruction opcode; If the opcode is a defined opcode, the check bit is odd parity, and the fixed bit field is a preset value, then the opcode is determined to be correct; otherwise, the opcode is determined to be incorrect.

5. The method according to claim 4, characterized in that, The instruction opcode includes multiple address units, each of which has a corresponding unit number. The address units, from low to high, are the condition code field, the fixed code field, the opcode field, and the check bit.

6. The method according to any one of claims 1-5, characterized in that, After accessing the instruction opcode pointed to by the start pointer, the method further includes: If the instruction opcode is a stop opcode, then the current communication information transmission process ends.

7. The method according to claim 1, characterized in that, The message sequence further includes a data storage block for storing communication information to be sent. Determining the communication information to be sent based on the message control state block pointer includes: The data storage block pointer is obtained from the message control status block according to the message control status block pointer; Determine the data storage block unit pointed to by the data storage block pointer; The communication information to be sent is obtained from the data storage block unit.

8. A communication information transmission device, characterized in that, include: A message sequence construction module is used to construct a message sequence, which includes a bus controller instruction list and a message control status block. The bus controller instruction list stores multiple instruction opcodes, and the message control status block stores communication information. Each instruction opcode includes multiple address units, each with its corresponding unit number. Based on the unit number from low to high, the multiple address units in the instruction opcode are, in order, a condition code field, a fixed code field, an opcode field, and a check bit. The condition code field stores the corresponding condition code when the instruction opcode is executed. Each instruction opcode corresponds to a message control status block, and each message control status block includes a control word unit, a command word unit, a data block pointer unit, a time interval unit, a time information unit, a block status word unit, a loopback word unit, a second command word unit in RT-RT format, and a second status word unit in RT-RT format. A start pointer determination module is used to determine the start pointer of the bus controller instruction list; The access module is used to access the instruction opcode pointed to by the start pointer. First, it determines whether the condition code in the condition code field is true. If the condition code is true, it further determines whether the opcode in the opcode field is a defined opcode, whether the check bit meets the odd check, and whether the fixed code field is a preset value. If all conditions are met, the instruction opcode is determined to pass the check. After the instruction opcode passes the check, the message control status block pointer is obtained. The communication information determination module is used to determine the communication information to be sent based on the message control status block pointer. A communication information transmission module is used to transmit the communication information to be sent.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the communication information transmission method as described in any one of claims 1-7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the communication information transmission method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • 1553B bus controller protocol processing IP core

    CN114077562A