Information transmission method and device based on multifunctional communication interface board card and board card
By modifying the device protocol format and parsing the encapsulated data on the multi-functional communication interface board, the limitation of communication functions of the multi-functional communication interface board was solved, and wide-application communication between different interface devices was realized.
Patent Information
- Application Number
- CN202510832854.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-11-11
Smart Images

Figure CN120935272A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to an information transmission method, apparatus and board based on a multi-functional communication interface board. Background Technology
[0002] In modern industrial and Internet of Things (IoT) applications, multi-functional communication interface boards play a crucial role in connecting and controlling various sensors, actuators, and other devices. Through multi-functional communication interface boards, data from various sensors can be transmitted to other devices.
[0003] In related technologies, by statistically analyzing various common communication interface types, and then setting these common communication interface types on a multi-functional communication interface board, communication between devices that conform to these common communication interface types can be achieved through the multi-functional communication interface board.
[0004] However, the above technologies only support some communication interface types, and their communication functions are relatively limited. Summary of the Invention
[0005] This invention provides an information transmission method, device, and board based on a multi-functional communication interface board. It addresses the limitation of existing multi-functional communication interface boards, which only support a limited number of common communication interface types. The invention enables a first device to modify its own protocol according to the protocol format supported by the second device and the multi-functional communication interface board, and then encapsulate and transmit data to the second device. Thus, when any external device is connected to the multi-functional communication interface board, communication between the two devices can be achieved through the board, enabling communication between devices with various interfaces and achieving a wider range of applications.
[0006] This invention provides an information transmission method based on a multi-functional communication interface board, applied to an information transmission system. The information transmission system includes a first device, a second device, and a multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board. The multi-functional communication interface board supports information transmission between various types of interfaces. The method includes: Obtain first information transmitted by the first device through the first interface; the first information is information obtained after modifying the protocol format of the first device according to the protocol format supported by the multi-function communication interface board and the protocol format supported by the second device, and then processing the information to be transmitted according to the modified protocol; the first interface is the interface on the multi-function communication interface board that is connected to the first device. The first information is parsed according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted; the second information is the information to be transmitted that conforms to the protocol format supported by the second device. The second information is transmitted to the second device through the second interface; the second interface is the interface on the multi-function communication interface board that connects to the second device.
[0007] According to the present invention, an information transmission method based on a multi-functional communication interface board is provided, wherein the first information includes interface parameters of a second interface, and before obtaining the first information transmitted by the first device through the first interface, the method further includes: Obtain the interface parameters corresponding to the second interface of the second device; Based on the interface parameters of the second interface, the interface parameters corresponding to the first interface of the first device are initialized; the initialization process includes adding the interface parameters corresponding to the second interface to the interface parameters corresponding to the first interface.
[0008] According to the present invention, an information transmission method based on a multi-functional communication interface board is provided, the method further comprising: The return result from the second device is obtained through the second interface, and the return result is transmitted to the first device through the first interface. The returned results are used to characterize the execution status of the second device in executing the second information, or the returned results are used to characterize the data collected by the second device according to the needs of the first device.
[0009] According to the present invention, an information transmission method based on a multi-functional communication interface board is provided, wherein the above-mentioned transmission of the return result to a first device through a first interface includes: Remove the interface parameters related to the second interface from the returned results to obtain the first returned result; Add the interface parameters of the first interface to the first returned result to obtain the second returned result; The second return result is transmitted to the first device through the first interface.
[0010] According to the present invention, an information transmission method based on a multi-functional communication interface board is provided. The first device includes multiple first devices, the first interface includes multiple first interfaces, the second device includes multiple second devices, and the second interface includes multiple second interfaces. The method for obtaining first information transmitted by the first device through the first interface includes: Acquire the first information transmitted in parallel by each first device through its corresponding first interface; each first interface is different from the others, and each first interface is a control interface on a multi-functional communication interface board. Accordingly, the above-mentioned transmission of the second information to the second device via the second interface includes: The second information of each second device is transmitted to the corresponding second device through its respective second interface; each second interface is different from the others, and each second interface is a control interface and / or communication interface on a multi-functional communication interface board.
[0011] According to the present invention, an information transmission method based on a multi-functional communication interface board is provided, wherein the protocol format supported by the multi-functional communication interface board includes a start bit, data length, message body, and checksum. The message body includes a function code and message details. The function code is used to identify the configuration or control of the first interface and / or the second interface, and the message details are used to define the configuration or control information corresponding to the function code.
[0012] According to the present invention, an information transmission method based on a multi-functional communication interface board is provided, wherein the above-mentioned function code includes a configuration function code or a control function code. The configuration function code is used to represent the configuration of the first interface and / or the second interface, and the control function code is used to represent the control of the first interface and / or the second interface. The above-mentioned parsing of the first information according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted includes: The first information is parsed according to the protocol format supported by the multi-functional communication interface board to obtain the target function code, the second information, and the second interface to which the second information needs to be transmitted, which are included in the first information. If the target function code is a control function code, then return to the above steps of transmitting the second information to the second device through the second interface.
[0013] This invention also provides an information transmission method based on a multi-functional communication interface board, applied to an information transmission system. The information transmission system includes a first device, a second device, and a multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board. The multi-functional communication interface board supports information transmission between various types of interfaces. The device includes: The information acquisition module is used to acquire the first information transmitted by the first device through the first interface; the first information is the information obtained after the protocol format of the first device is modified according to the protocol format supported by the multi-function communication interface board and the protocol format supported by the second device, and the information to be transmitted is processed according to the modified protocol; the first interface is the interface on the multi-function communication interface board that is connected to the first device. The parsing module is used to parse the first information according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted; the second information is the information to be transmitted that conforms to the protocol format supported by the second device. The information transmission module is used to transmit the second information to the second device through the second interface; the second interface is the interface on the multi-functional communication interface board that connects to the second device.
[0014] The present invention also provides a multi-functional communication interface board, including a memory, a processor, and a computer program stored in the memory and executable on the processor, applied to an information transmission system. The information transmission system includes a first device, a second device, and the multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board. The multi-functional communication interface board supports information transmission between various types of interfaces. When the processor executes the computer program, it implements any of the above-described information transmission methods based on the multi-functional communication interface board.
[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an information transmission method based on a multi-functional communication interface board as described above.
[0016] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the information transmission method based on a multi-functional communication interface board as described above.
[0017] The present invention provides an information transmission method, apparatus, and board based on a multi-functional communication interface board, which is applied to an information transmission system. This information transmission system includes a first device, a second device, and a multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board. The multi-functional communication interface board supports information transmission between various types of interfaces. The method involves acquiring first information transmitted by the first device through a first interface, parsing the first information according to the protocol format supported by the multi-functional communication interface board to obtain second information conforming to the protocol format supported by the second device and the second interface to which the second information needs to be transmitted, and then transmitting the second information to the second device through the second interface. The first interface is the interface on the multi-functional communication interface board connected to the first device, the second interface is the interface on the multi-functional communication interface board connected to the second device, and the first information is the information obtained after modifying the protocol format of the first device according to the protocol format supported by the multi-functional communication interface board and the protocol format supported by the second device, and then processing the information to be opened according to the modified protocol. In this method, since the first device can change its own protocol according to the protocol format supported by the second device and the protocol format supported by the multi-functional communication interface board, and encapsulate the data accordingly before transmitting it to the second device, communication between the two devices can be achieved through the multi-functional communication interface board when any external device is connected to it, thus achieving a wide range of applicability. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram of the information transmission system provided by the present invention.
[0020] Figure 2 This is one of the flowcharts illustrating the information transmission method based on a multi-functional communication interface board provided by the present invention.
[0021] Figure 3 This is a schematic diagram of the overall architecture of the multi-functional communication interface board provided by the present invention.
[0022] Figure 4 This is a hardware design architecture diagram of the multi-functional communication interface board provided by the present invention.
[0023] Figure 5 This is a schematic diagram of the system initialization process provided by the present invention.
[0024] Figure 6 This is a schematic diagram of the control command processing flow provided by the present invention.
[0025] Figure 7 This is a schematic diagram of the overall information transmission process provided by the present invention.
[0026] Figure 8 This is a schematic diagram illustrating the parallel implementation of communication between multiple groups of devices with different interfaces provided by the present invention.
[0027] Figure 9 This is a schematic diagram illustrating the communication process between the host computer and peripherals / sensors provided by this invention through a multi-functional communication interface board.
[0028] Figure 10 This is a schematic diagram of the information transmission device based on a multi-functional communication interface board provided by the present invention.
[0029] Figure 11 This is a schematic diagram of the structure of the multi-functional communication interface board provided by the present invention. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0031] In modern industrial and IoT applications, multi-functional communication interface boards play a crucial role in connecting and controlling various sensors, actuators, and other devices. Existing boards typically suffer from the following drawbacks: 1. Limited functionality: They only support a few communication interface types, failing to meet diverse needs; 2. Inflexible control methods: They usually only support specific control methods, lacking unified management capabilities for multiple control interfaces; 3. Low integration: They require multiple boards or additional devices for expansion, increasing system complexity. Therefore, current multi-functional communication interface boards struggle to meet diverse application requirements, limiting their application scope. Based on this, this invention provides an information transmission method, apparatus, and board based on a multi-functional communication interface board, which can solve the aforementioned technical problems.
[0032] The following is combined Figures 1-9 This invention describes an information transmission method based on a multi-functional communication interface board.
[0033] To better illustrate the technical solutions of the embodiments of the present invention, the application scenarios of the embodiments of the present invention will first be described. See [link to documentation]. Figure 1 The diagram shows the structure of an information transmission system, which includes a first device (i.e., the hardware interface board shown in the diagram), a second device (i.e., the sensor or other board shown in the diagram), and a multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board, which supports information transmission between various types of interfaces.
[0034] The multi-functional communication interface board includes a control interface and a communication interface. The control interface receives control information transmitted from the first device. This control information includes setting the hardware and software parameters of the interface, such as setting the baud rate and parity bit of an RS485 interface (which is a control interface), or setting the duty cycle and frequency of other interfaces, such as a PWM interface. Different function codes can be used to initially configure different interfaces. The communication interface is mainly used for information transmission with external devices (such as a second device). This multi-functional communication interface board can configure, manage, and process information from different types of communication interfaces through various control interfaces, specifically including: 1. Supports multiple communication interfaces, including: IO interface, SPI interface, I2C interface, PWM pulse, analog-to-digital converter (AD), digital-to-analog converter (DA), Ethernet interface, TTL serial port, CAN interface, RS485 interface, WiFi, and Bluetooth, enabling the multi-functional communication interface board to meet the needs of various device interface connections.
[0035] 2. Among the above communication interfaces, the Ethernet interface, TTL serial port, CAN interface, RS485 interface, WiFi and Bluetooth interface can be used as both communication interfaces and control interfaces, thereby improving the flexibility of the multi-functional communication interface board.
[0036] Furthermore, the first device has interface A, which transmits interface A type data to the multi-function communication interface board through interface A. The second device has interface B, which transmits interface B type data to the multi-function communication interface board through interface B. Because interfaces A and B are inconsistent, the two devices cannot communicate. Therefore, in this embodiment of the invention, the first device's own protocol format is changed to the protocol format supported by the multi-function communication interface board and the protocol format supported by the second device. Then, the data to be transmitted to the second device is encapsulated, parsed by the multi-function communication interface board, and transmitted to the second device. This allows communication between two devices with any interface to be achieved through the multi-function communication interface board.
[0037] Based on the aforementioned information transmission system, the information transmission method based on a multi-functional communication interface board according to embodiments of the present invention will be described below. It should be noted that the executing entity in the following embodiments can be an information transmission system, an information transmission device based on a multi-functional communication interface board, or a multi-functional communication interface board, etc.
[0038] Figure 2 This is one of the flowcharts illustrating the information transmission method based on a multi-functional communication interface board provided by the present invention, such as... Figure 2 As shown, the method includes the following steps: Step 202: Obtain the first information transmitted by the first device through the first interface; the first information is the information obtained after the protocol format of the first device is modified according to the protocol format supported by the multi-function communication interface board and the protocol format supported by the second device, and the information to be transmitted is processed according to the modified protocol; the first interface is the interface on the multi-function communication interface board that is connected to the first device.
[0039] In this embodiment, to better illustrate the information transmission method based on the multi-functional communication interface board, the relevant content of the multi-functional communication interface board proposed in this embodiment will be described first. The multi-functional communication interface board mainly includes two parts: hardware design and software design. The hardware design covers the external interface and its corresponding required hardware driver and interface hardware support, while the software part includes interface configuration, board status detection, message parsing, data transmission, and port management between interfaces. The port management between interfaces includes the following two types of interaction management: 1. External interface and control interface, 2. Control interface and control interface.
[0040] The following section will first explain the hardware design of the multi-functional communication interface board.
[0041] See Figure 3 The diagram shows the overall architecture of a multi-functional communication interface board, which includes a processor module and an external interface module. The processor module uses an STM32F407IGT6 as the main control chip for the multi-functional communication interface board, responsible for overall control and data processing. (See also...) Figure 4 The hardware design architecture diagram of the multi-functional communication interface board shown is illustrated. The STM32F407IGT6 chip has GPIO, SPI, and I / O pins. 2 The C, TIM, ADC, DAC, USART, and ETH hardware pins, through hardware driver circuits / modules and interface conversion peripherals, can build external interfaces to meet most interface usage requirements. These hardware driver modules can include, for example, GPIO, SPI, and I... 2 The processor module includes driver modules for C, TIM, ADC, DAC, USART, and ETH RMII, and interface conversion peripherals such as DM9162, isolation circuits, RSM485M, ESP8266 module, ESP32 module, ISO1050DUB, op-amp bias, and linear isolation. It can also connect to external peripherals such as a 3.3V power supply module, JTAG, EEPROM, IWDG, temperature sensor, and power chips.
[0042] The aforementioned multi-functional communication interface board also includes an external interface module, which may include various external interfaces, such as: IO interface (3.3V), CAN port, SPI interface, etc. 2The board features a C-type interface, PWM pulse output, analog-to-digital converter (AD), digital-to-analog converter (DA), Ethernet interface, TTL serial port, RS485 interface, WiFi module, and Bluetooth module. All of these external interfaces can be used as communication interfaces, transmitting data between devices. The Ethernet, TTL, RS485, WiFi, and Bluetooth interfaces can also serve as control interfaces, receiving control commands from host computers and configuring communication parameters. In other words, this multi-functional communication interface board provides various communication interfaces, some of which also have control functions. Each interface is connected to the STM32F407IGT6 chip via dedicated hardware circuitry and is configured with corresponding drivers and design function programs. External devices can be connected via the board's different communication interfaces and then configured and managed through unused control interfaces, thus enhancing the board's flexibility and application range.
[0043] The following section describes the software design of the multi-functional communication interface board.
[0044] The software design of the aforementioned multi-functional communication interface board, namely the software protocol module within the processor module, can include system initialization, external interface configuration, interface control, protocol processing, application logic, and system status detection.
[0045] During system initialization (i.e., the multi-functional communication interface board), the main initialization and configuration involves the STM32F407IGT6 chip (i.e., the processor module). This ensures that all hardware resources function correctly after system startup. The STM32F407IGT6 chip is the core of the entire system. Through configuring the system clock, initializing GPIO, and other initialization processes, the system can ultimately enter the processor module's main program, providing fundamental support for subsequent communication interfaces and control logic. The initialization process for the STM32F407IGT6 chip can be found in [link to STM32F407IGT6 initialization procedure]. Figure 5 The diagram shows the system initialization process. After the system is powered on, the STM32F407IGT6 main control chip starts executing the startup code. First, it sets the main clock frequency and the clocks of each peripheral device to ensure stable system operation. Then, it configures the working mode, output type and status of each GPIO pin, as well as interrupt configuration and other necessary initialization processes. After initialization is completed, it jumps to the main program to execute, waiting to receive control commands or process data.
[0046] After system initialization, external interface configuration can be performed, as shown above. Figure 4As shown, each communication interface (IO, CAN, SPI, I2C, PWM, AD, DA, Ethernet, TTL serial port, RS485, WiFi, Bluetooth) has a corresponding driver module or chip-isolated direct connection. These modules are responsible for initializing and configuring the hardware interface and providing unified interface functions for easy use by upper-layer modules to send and receive data. The fixed configuration part of the communication interface is implemented in software and cannot be modified by the control interface. However, the variable configuration part is open to the control interface, allowing users to use the interface flexibly. The open parameter table for the corresponding communication interface is shown in Table 1 below: Table 1
[0047] The external interfaces can be configured using the methods described above. After configuration, interface control can be implemented, managing control interfaces such as Ethernet, serial port, RS485, WiFi, and Bluetooth. These interfaces can not only be used as external interfaces but also by the host computer to send control commands, control other communication interfaces, or perform specific operations. For details, see [link to documentation]. Figure 6 The control command processing flowchart shown can be used to first initialize the Ethernet interface, TTL serial port, RS485, WiFi interface, and Bluetooth interface to ensure they are working properly. Then, the host computer can send control commands to the control interface. After receiving the command, the board parses the private communication protocol, identifies the command type and operation content, and calls the corresponding communication interface driver module or control interface management module to execute the operation according to the command content. It handles any errors that may occur during the command execution process, such as incorrect command format or incorrect parameters. The operation result or data needs to be fed back to the host computer to ensure that the feedback information conforms to the communication protocol specification.
[0048] After the interface control settings are completed, protocol processing can begin. In the multi-functional communication interface board, to unify the operation descriptions of all control interfaces, a unified protocol specification is implemented within the board. A proprietary protocol is introduced for the control interface, and its content is described in Table 2 below. Table 2
[0049] After the protocol is processed, application logic processing and system status monitoring can be performed. Application logic processing can be configured according to specific application scenarios; the basic requirement is to transmit information between devices with different interfaces through the multi-functional communication interface board. System status monitoring refers to the fact that the multi-functional communication interface board also integrates temperature and power data acquisition, as well as corresponding alarm parameters, enabling real-time monitoring and fault warning of the board's operating status.
[0050] The advantages of the aforementioned multi-functional communication interface board are: 1. Enhanced multifunctionality, primarily including diverse communication interfaces. It integrates a wide range of communication interface types to meet the needs of different application scenarios, and offers flexible control methods, supporting multiple control modes including Ethernet, serial port, WiFi, and Bluetooth, thus improving the system's flexibility and applicability. 2. Increased integration, with integrated hardware and software design. Through a unified communication protocol and software framework, it achieves a high degree of integration of multiple communication interfaces and control methods; the system also boasts consistency and maintainability, simplifying system layout and management, and reducing the complexity of equipment deployment and maintenance. 3. Increased application flexibility, primarily including broad applicability. It can be applied to multiple fields such as industrial control, smart homes, and IoT devices, expanding the product's application scope and market potential.
[0051] Based on the above description of the hardware and software design of the multi-functional communication interface board, the following describes the process of information transmission between two devices with different interfaces through the multi-functional communication interface board in this embodiment.
[0052] In this step, the first device is one whose own information transmission protocol is known and whose protocol format can be changed. It has several interfaces and can select an interface of the same type as its own on the multi-function communication interface board, denoted as the first interface. It then connects to the multi-function communication interface board via this first interface. This first interface is a control interface, meaning the first device can transmit control commands and / or data to the multi-function communication interface board. The second device is an external device (referred to as a peripheral), which also has several interfaces. It can obtain an interface of the same type as its own on the multi-function communication interface board, denoted as the second interface. It then connects to the multi-function communication interface board via this second interface. This second interface can be either a control interface or a communication interface; that is, the second device can be controlled via the first device through the multi-function communication interface board, or the second device can transmit data to the first device through the multi-function communication interface board.
[0053] The first and second interfaces mentioned above are different types of interfaces. For example, the first interface is a network port (i.e., an Ethernet interface), and the second interface is a WiFi interface. The first device can be a host computer, and the second device is generally an external device, such as an external sensor.
[0054] The protocol description corresponding to the second device can be known in advance, that is, the protocol format supported by the second device can be obtained. At the same time, through the above protocol processing of the multi-functional communication interface board, it can be known that the protocol format inside the multi-functional communication interface board is a unified format, that is, a format composed of start bit, data length, message body and check code.
[0055] After obtaining the protocol formats supported by the second device and the multi-function communication interface board, the first device can modify its own protocol format according to the protocol format supported by the second device, changing its own protocol format to the protocol format supported by the second device. Then, it converts the modified protocol format supported by the second device according to the protocol format supported by the multi-function communication interface board, ultimately obtaining a protocol format. The information to be transmitted can then be processed according to this final obtained protocol format to obtain information matching the final obtained protocol format, which is denoted as the first information. After obtaining the processed first information, the first device can transmit the first information to the multi-function communication interface board through the first interface.
[0056] It is understandable that the protocol format of this first piece of information conforms to the protocol format of the multi-functional communication interface board and also conforms to the protocol format supported by the second device. Furthermore, the protocol format here can be understood as the specific data type represented by each position in the transmitted information; for example, the first field in the transmitted information might be the frame ID, the second field might be a control field, and the third field might be power consumption data, etc.
[0057] Step 204: Parse the first information according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted; the second information is the information to be transmitted that conforms to the protocol format supported by the second device.
[0058] In this step, after receiving the first information transmitted by the first device, the processor module / main control chip of the multi-functional communication interface board can parse the first information according to the protocol format set / supported by the multi-functional communication interface board itself. For example, it can parse the information according to a format composed of a start bit, data length, message body, and checksum, and obtain the message body, which includes the second information. This second information is understood to be information to be transmitted that conforms to the protocol format supported by the second device; that is, the second information is information encapsulated in the protocol format supported by the second device.
[0059] Meanwhile, the multi-functional communication interface board can also obtain a second interface for connecting to the second device. This second interface can be obtained by the multi-functional communication interface board through the interface accessed by self-test, or it can be obtained by parsing the first information transmitted by the first device.
[0060] Step 206: Transmit the second information to the second device through the second interface; the second interface is the interface on the multi-function communication interface board that connects to the second device.
[0061] In this step, after the multi-function communication interface board obtains the second interface for connection with the second device, it can transmit the second information to the second device through the second interface. In this way, the second device can receive the second information, realizing communication and information transmission between the first device and the multi-function communication interface.
[0062] As described above, the multi-functional communication interface board can bridge two devices that cannot communicate due to incompatible communication interface types. It configures drivers and facilitates indirect interaction to implement control logic for peripherals. During communication, the first device (e.g., a host computer) can obtain the interface of the external device and bridge the corresponding communication link through the multi-functional adapter interface. This involves changing its own protocol format, calling control commands via the protocol, and achieving cross-interface communication through the bridging interface of the multi-functional communication interface board. Furthermore, the multi-functional communication interface board includes various types of interfaces, making it suitable for communication between devices with different interfaces.
[0063] In this embodiment, the information transmission system includes a first device, a second device, and a multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board. The multi-functional communication interface board supports information transmission between various types of interfaces. The method involves acquiring first information transmitted by the first device through the first interface, parsing the first information according to the protocol format supported by the multi-functional communication interface board to obtain second information conforming to the protocol format supported by the second device and the second interface to which the second information needs to be transmitted, and then transmitting the second information to the second device through the second interface. The first interface is the interface on the multi-functional communication interface board that connects to the first device, the second interface is the interface on the multi-functional communication interface board that connects to the second device, and the first information is the information obtained after modifying the protocol format of the first device according to the protocol format supported by the multi-functional communication interface board and the protocol format supported by the second device, and then processing the information to be disassembled according to the modified protocol. In this method, since the first device can change its own protocol according to the protocol format supported by the second device and the protocol format supported by the multi-functional communication interface board, and encapsulate the data accordingly before transmitting it to the second device, communication between the two devices can be achieved through the multi-functional communication interface board when any external device is connected to it, thus achieving a wide range of applicability.
[0064] The following describes the process by which the multi-functional communication interface board obtains the second interface by parsing the first information transmitted by the first device.
[0065] In some embodiments, the first information includes interface parameters of the second interface. Before step 202 obtains the first information transmitted by the first device through the first interface, the method may further include the following steps: Obtain the interface parameters corresponding to the second interface of the second device; based on the interface parameters of the second interface, initialize the interface parameters corresponding to the first interface of the first device; the initialization process includes adding the interface parameters corresponding to the second interface to the interface parameters corresponding to the first interface.
[0066] In this step, after the first device connects to itself via the first interface, and after the second device connects to itself via the second interface, the multi-functional communication interface board can obtain the interface parameters related to the second interface. These interface parameters may include, for example, the interface name and related configuration parameters. Then, the interface parameters of the first interface can be initialized using these second interface parameters. For instance, the interface parameters of the second interface can be added to the interface parameters of the first interface to enable subsequent communication between these two devices with different interfaces.
[0067] For details, see Figure 7 The diagram illustrates the overall information transmission process. After the first device connects to the multi-functional communication interface via the first interface and the second device connects to the multi-functional communication interface board via the second interface, the system of the multi-functional communication interface board can be started. After startup, the first interface (i.e., interface A) can be controlled to initialize the relevant interface parameters of the second interface (i.e., interface B). Then, the first device processes the information to be transmitted (e.g., Data) according to the modified protocol format to obtain the first information, which can be represented as 7E XX MM {Data} CRCH CRCL. This first information is data in the protocol format supported by the multi-functional communication interface board, where 7E represents the start bit, XX represents the data length, MM represents the second interface (i.e., interface B), {Data} represents the message body, and CRCH CRCL represents the checksum. This first information can be parsed according to the protocol format supported by the multi-functional communication interface board, and its integrity and correctness can be verified, thereby obtaining the second information {Data} and the second interface MM to which the second information needs to be transmitted. Then, the second information {Data} can be sent out completely through the second interface (i.e., interface B). The multi-functional communication interface board can then wait for the return result from the second interface and send the return result to the first interface (i.e., interface A), thereby enabling communication between devices with different interfaces.
[0068] In this embodiment, the interface parameters of the second interface of the second device are initialized in the interface parameters of the first interface of the first device, which facilitates accurate and fast communication between the two devices with different interfaces.
[0069] The following embodiments illustrate that after transmitting information to the second device, the first device can also receive information returned by the second device.
[0070] In some embodiments, the above method may further include the following steps: The return result of the second device is obtained through the second interface, and the return result is transmitted to the first device through the first interface; wherein, the return result is used to characterize the execution status of the second information by the second device or the return result is used to characterize the data collected by the second device according to the needs of the first device.
[0071] In this step, after the first device transmits the first information to the multi-function communication interface board, and the multi-function communication interface board parses the first information to obtain the second information and transmits it to the second device through the second interface, the second device can perform corresponding operations or collect corresponding data based on the second information. The second information may include control instructions or data acquisition requirements. The control instructions are used to control the second device to perform certain control operations, and the data acquisition requirements are used to indicate that the second device needs to collect certain data and return it to the first device.
[0072] After the second device completes the corresponding operation or collects the corresponding data, it can determine the return result based on the operation result (including success or failure) or the collected data, and transmit it to the first device through the first interface of the multi-function communication interface board.
[0073] As an optional embodiment, the above-mentioned transmission of the returned result to the first device through the first interface may include: removing the interface parameters related to the second interface from the returned result to obtain a first returned result; adding the interface parameters of the first interface to the first returned result to obtain a second returned result; and transmitting the second returned result to the first device through the first interface.
[0074] In other words, after the multi-functional communication interface board receives the return result from the second device through the second interface, this return result includes interface parameters related to the second interface. These interface parameters need to be removed to obtain the operation execution result or collected data returned by the second device, which is denoted as the first return result. Then, interface parameters related to the first interface can be added to this first return result to obtain the second return result. This allows the second return result to be successfully transmitted to the first device through the first interface. After receiving the second return result, the first device can parse it according to the previously modified protocol format to obtain the final operation execution result or collected data.
[0075] In this embodiment, the multi-functional communication interface card can obtain the return result from the second device through the second interface and transmit it to the first device through the first interface, thus realizing a complete communication process between the first and second devices. Furthermore, after obtaining the return result from the second device through the second interface, the multi-functional communication interface card can remove the interface parameters of the second interface and add the interface parameters of the first interface before transmitting it to the first device. This ensures that the second return result can be successfully transmitted to the first device through the first interface, achieving accurate communication between two devices with different interfaces.
[0076] As mentioned in the above embodiments, the multi-functional communication interface board in the embodiments of the present invention includes various types of communication interfaces and control interfaces. When communicating between different interface devices, the communication process between multiple groups of different interface devices can be implemented in parallel. The following embodiments will describe the parallel implementation of the communication process between multiple groups of different interface devices.
[0077] In some embodiments, the first device includes a plurality of first devices, the first interface includes a plurality of first interfaces, the second device includes a plurality of second devices, and the second interface includes a plurality of second interfaces. The step 202 of obtaining the first information transmitted by the first device through the first interface may include: The system acquires the first information transmitted in parallel by each first device through its corresponding first interface; each first interface is different from the others, and each first interface is a control interface on a multi-functional communication interface board.
[0078] Accordingly, in step 206 above, transmitting the second information to the second device through the second interface may include: transmitting the second information of each second device to the corresponding second device through their respective second interfaces; the second interfaces are different from each other, and each second interface is a control interface and / or communication interface on a multi-function communication interface board.
[0079] Specifically, each first device can connect to the multi-function communication interface board through different first interfaces. Simultaneously, each second device communicating with each first device also connects to the multi-function communication interface board through different second interfaces. Each first device can then modify its own protocol format according to the protocol format supported by the second device it is communicating with and the protocol format supported by the multi-function communication interface board. It then processes its own information to be transmitted using the modified protocol format to obtain its corresponding first information. Each first device can then transmit its first information to the multi-function communication interface board through its corresponding first interface. The multi-function communication interface board can parse the first information of each first device in parallel, obtaining the second information that each first device needs to transmit and the second interface to which the second information needs to be transmitted. It then transmits the second information in parallel to the corresponding second device through its respective second interface, enabling parallel communication between multiple groups of first and second devices.
[0080] For example, see Figure 8 The diagram illustrates parallel communication between multiple sets of devices with different interfaces. Assume the first device is a data acquisition unit, abbreviated as SJCJ, and there are multiple data acquisition units. Each data acquisition unit has three control interfaces: a network port, a TTL serial port, and an RS485 interface. Currently, some functions need to be added to the data acquisition units (such as data aggregation, WiFi check-in data, and power consumption data acquisition). These functions require the use of peripherals (i.e., the second device). Assume the peripherals include a data aggregation board, abbreviated as SJHZ, multiple WiFi check-in modules, and multiple ADC power consumption measurement devices.
[0081] In this embodiment, multiple data acquisition devices can be connected to multi-functional communication interface boards (i.e., multi-functional interfaces-1 to n in the figure, where n is the number of multi-functional communication interface boards) via Ethernet ports, TTL serial ports, and RS485 interfaces, respectively. Simultaneously, each WiFi check-in module is connected to the WiFi interface on one of the multi-functional communication interface boards, and each ADC power consumption measurement device is connected to the analog-to-digital converter (ADC) interface on one of the multi-functional communication interface boards. The CAN interfaces of each multi-functional communication interface board are connected to the CAN interface of the data aggregation board SJHZ via a CAN bus. The specific connections are as follows: SJCJ <—Network Port—>Multi-functional Communication Interface Board <—CAN Interface—>SJHZ; SJCJ <—TTL interface—>Multi-functional communication interface board <—wifi interface—>wifi check-in module; SJCJ <—RS485 interface—>Multi-functional communication interface board <—ADC interface—>ADC power consumption measurement device.
[0082] During use, each data acquisition device SJCJ can communicate with the data aggregation board SJHZ via Ethernet, multi-function communication interface board, and CAN interface. It can also communicate with the WiFi check-in module via TTL interface, multi-function communication interface board, and WiFi interface. Furthermore, it can communicate with the ADC power consumption measurement device via RS485 interface, multi-function communication interface board, and ADC interface. This enables each data acquisition device SJCJ to communicate with multiple different peripherals in parallel, improving communication efficiency.
[0083] In this embodiment, each first device can communicate with its corresponding second device in parallel through different interfaces on the multi-functional communication interface board. This can improve the communication efficiency between devices with different interfaces and further expand the applicability of the multi-functional communication interface board.
[0084] The following examples illustrate the specific content of the protocol formats supported by the multi-functional communication interface board and the specific steps to be executed based on the protocol formats.
[0085] In some embodiments, the protocol format supported by the above-mentioned multi-functional communication interface board includes a start bit, data length, message body, and checksum; the message body includes a function code and message details, the function code is used to characterize the configuration or control of the first interface and / or the second interface, and the message details are used to define the configuration information or control information corresponding to the function code.
[0086] As shown in Table 2 above, the protocol format supported by the multi-functional communication interface board includes a start bit, data length, message body, and checksum. The message body includes a function code and message details. The function code is used to identify the configuration or control of the first interface and / or the second interface, and the message details are used to define the configuration or control information corresponding to the function code. Both the first and second interfaces are interfaces on the multi-functional communication board.
[0087] There are many types of function codes mentioned above. As an optional embodiment, the function codes may include configuration function codes with configuration functions and control function codes with control functions. The configuration function code is used to indicate configuration of the first interface and / or the second interface, and the control function code is used to indicate control of the first interface and / or the second interface. In the response from the control board (i.e., the multi-function communication interface board), the configuration function code will return one byte of data after adding 0x80 to the original function code | (i.e., logical OR) to indicate the success or failure of the configuration operation. The definition of the configuration function code can be found in Table 3 below. Table 3
[0088] The control function codes mentioned above will be returned by the control board (i.e., the multi-function communication interface board) by adding 0x80 to the original function code and then returning data of variable length. Users can extract the processing information according to the control message pattern. The definition of the control function codes can be found in Table 4 below: Table 4
[0089] Based on the definition information of the configuration function code and control function code, step 204 above, which involves parsing the first information according to the protocol format supported by the multi-function communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted, may include: The first information is parsed according to the protocol format supported by the multi-functional communication interface board to obtain the target function code, the second information, and the second interface to which the second information needs to be transmitted.
[0090] In other words, after obtaining the first information and parsing it according to its supported protocol format, the multi-functional communication interface board can obtain the message body and extract the function code from the message body, which is recorded as the target function code. Simultaneously, it can parse and obtain the second information and the second interface to which the second information needs to be transmitted.
[0091] Then, based on the definition information of the configuration function code and control function code, the specific value of the function code can be used to determine whether the target function code is a configuration function code or a control function code. If the target function code is a control function code, the process returns to step 206 above, which involves transmitting the second information to the second device through the second interface. In other words, if the first information includes a control function code, it means that the first device needs to control the second device or needs the second device to perform certain operations. Therefore, the second information can be transmitted to the second device through the second interface.
[0092] If the target function code is a configuration function code, then the first interface and / or the second interface are configured according to the message details corresponding to the target function code. That is, if the first information includes a configuration function code, it means that the first device needs to configure the interface for communication between the two devices. Then, the interface can be configured accordingly according to the message body description in the configuration function code definition table in the message details in the second information.
[0093] In this embodiment, the multi-functional communication interface board, by setting its own supported protocol formats, can unify the operation descriptions of all control interfaces for the multi-functional communication interface board, thereby effectively achieving accurate information transmission between different interface devices and the multi-functional communication interface board. Furthermore, by setting different function codes, interface configuration or information transmission to peripherals can be achieved relatively quickly and accurately.
[0094] The following example, using a host computer as the first device and an external device or sensor as the second device, details the process of communication between the host computer and the external device / sensor through a multi-functional communication interface board. (See [link to relevant documentation]). Figure 9 The diagram shown illustrates the communication process between the host computer and peripherals / sensors via a multi-function communication interface board. This communication process may include the following: The host computer, based on the peripheral / sensor communication adapter interface configuration, issues the interface configuration to the multi-functional communication interface board. The multi-functional communication interface board adjusts its external interface according to the interface configuration and receives feedback (i.e., whether the configuration was successful). If the configuration fails, the host computer resends the interface configuration until it succeeds. If the configuration is successful, the host computer sends control commands to the multi-functional communication interface board. The multi-functional communication interface board processes the commands according to its supported protocol format and sends them to the sensor through the sensor communication adapter interface. The sensor can use the interface control commands and process the data, then return the data to the multi-functional communication interface board. After receiving the data through the sensor communication adapter interface, the multi-functional communication interface board processes the data according to the protocol and returns the processed data to the host computer's communication interface. After receiving the data returned by the sensor, the host computer can further process and display it.
[0095] The multi-functional communication interface board that integrates multiple communication interfaces and multiple control methods can bridge multiple different interface devices, thus enabling communication between a wider range of different interface devices. Therefore, it has a wider range of applications and is more flexible.
[0096] The information transmission device based on a multi-functional communication interface board provided by the present invention is described below. The information transmission device based on a multi-functional communication interface board described below and the information transmission method based on a multi-functional communication interface board described above can be referred to in correspondence.
[0097] Figure 10 This is a schematic diagram of the information transmission device based on a multi-functional communication interface board provided by the present invention. The device is applied to an information transmission system, which includes a first device, a second device, and a multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board. The multi-functional communication interface board supports information transmission between various types of interfaces. The device includes: The information acquisition module 1001 is used to acquire the first information transmitted by the first device through the first interface; the first information is the information obtained after the protocol format of the first device is modified according to the protocol format supported by the multi-function communication interface board and the protocol format supported by the second device, and the information to be transmitted is processed according to the modified protocol; the first interface is the interface on the multi-function communication interface board that is connected to the first device. The parsing module 1002 is used to parse the first information according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted; the second information is the information to be transmitted that conforms to the protocol format supported by the second device. The information transmission module 1003 is used to transmit second information to the second device through the second interface; the second interface is the interface on the multi-functional communication interface board that connects to the second device.
[0098] In some embodiments, the first information includes interface parameters of the second interface. Before the information acquisition module 1001 acquires the first information transmitted by the first device through the first interface, the device further includes: The interface initialization module is used to obtain the interface parameters corresponding to the second interface of the second device; and to perform initialization processing on the interface parameters corresponding to the first interface of the first device based on the interface parameters of the second interface; the initialization processing includes adding the interface parameters corresponding to the second interface to the interface parameters corresponding to the first interface.
[0099] In some embodiments, the above-described apparatus further includes: The return result transmission module is used to obtain the return result of the second device through the second interface and transmit the return result to the first device through the first interface; wherein, the return result is used to characterize the execution status of the second device in executing the second information or the return result is used to characterize the data collected by the second device according to the needs of the first device.
[0100] Optionally, the above-mentioned return result transmission module is specifically used to remove the interface parameters related to the second interface from the return result to obtain the first return result; add the interface parameters of the first interface to the first return result to obtain the second return result; and transmit the second return result to the first device through the first interface.
[0101] In some embodiments, the first device includes multiple first devices, the first interface includes multiple first interfaces, the second device includes multiple second devices, and the second interface includes multiple second interfaces. The information acquisition module 1001 is specifically used to acquire the first information transmitted in parallel by each first device through its respective corresponding first interface. Each first interface is different from the others, and each first interface is a control interface on a multi-functional communication interface board. Accordingly, the aforementioned information transmission module 1003 is specifically used to transmit the second information of each second device to the corresponding second device through their respective second interfaces; each second interface is different from the others, and each second interface is a control interface and / or communication interface on a multi-functional communication interface board.
[0102] In some embodiments, the protocol format supported by the above-mentioned multi-functional communication interface board includes a start bit, data length, message body, and checksum; the message body includes a function code and message details, the function code is used to characterize the configuration or control of the first interface and / or the second interface, and the message details are used to define the configuration information or control information corresponding to the function code.
[0103] Optionally, the above function codes include configuration function codes or control function codes. The configuration function codes are used to represent the configuration of the first interface and / or the second interface, and the control function codes are used to represent the control of the first interface and / or the second interface. The aforementioned parsing module 1002 is specifically used to parse the first information according to the protocol format supported by the multi-function communication interface board, and obtain the target function code, the second information, and the second interface to which the second information needs to be transmitted in the first information; if the target function code is a control function code, then return to execute the above steps of transmitting the second information to the second device through the second interface.
[0104] It should be noted that the apparatus provided in this embodiment of the invention can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0105] Figure 11 An example is a schematic diagram of the physical structure of a multi-functional communication interface board, such as... Figure 11As shown, the multi-functional communication interface board (specifically, the processor module of the multi-functional communication interface board) may include: a processor 1110, a communication interface 1120, a memory 1130, and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 can call logic instructions in the memory 1130 to execute an information transmission method based on a multi-function communication interface board. This method includes: acquiring first information transmitted by a first device through a first interface; the first information is information obtained by modifying the protocol format of the first device according to the protocol format supported by the multi-function communication interface board and the protocol format supported by the second device, and then processing the information to be transmitted according to the modified protocol; the first interface is an interface on the multi-function communication interface board connected to the first device; parsing the first information according to the protocol format supported by the multi-function communication interface board to obtain second information and a second interface to which the second information needs to be transmitted; the second information is information to be transmitted conforming to the protocol format supported by the second device; and transmitting the second information to the second device through the second interface; the second interface is an interface on the multi-function communication interface board connected to the second device.
[0106] Furthermore, the logical instructions in the aforementioned memory 1130 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0107] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the information transmission method based on a multi-functional communication interface board provided by the above methods. The method includes obtaining first information transmitted by a first device through a first interface; the first information is information obtained by modifying the protocol format of the first device according to the protocol format supported by the multi-functional communication interface board and the protocol format supported by the second device, and then processing the information to be transmitted according to the modified protocol; the first interface is an interface on the multi-functional communication interface board connected to the first device; parsing the first information according to the protocol format supported by the multi-functional communication interface board to obtain second information and a second interface to which the second information needs to be transmitted; the second information is information to be transmitted that conforms to the protocol format supported by the second device; and transmitting the second information to the second device through the second interface; the second interface is an interface on the multi-functional communication interface board connected to the second device.
[0108] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the information transmission method based on a multi-functional communication interface board provided by the above methods. The method includes: acquiring first information transmitted by a first device through a first interface; the first information is information obtained by modifying the protocol format of the first device according to the protocol format supported by the multi-functional communication interface board and the protocol format supported by the second device, and then processing the information to be transmitted according to the modified protocol; the first interface is an interface on the multi-functional communication interface board connected to the first device; parsing the first information according to the protocol format supported by the multi-functional communication interface board to obtain second information and a second interface to which the second information needs to be transmitted; the second information is information to be transmitted that conforms to the protocol format supported by the second device; and transmitting the second information to the second device through the second interface; the second interface is an interface on the multi-functional communication interface board connected to the second device.
[0109] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0110] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention 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 the present invention.
Claims
1. An information transmission method based on a multi-functional communication interface board, characterized in that, The method is applied to an information transmission system, which includes a first device, a second device, and a multi-functional communication interface card. The first device and the second device transmit information through the multi-functional communication interface card, which supports information transmission between various types of interfaces. The method includes: Obtain first information transmitted by the first device through the first interface; the first information is information obtained after modifying the protocol format of the first device according to the protocol format supported by the multi-functional communication interface board and the protocol format supported by the second device, and then processing the information to be transmitted according to the modified protocol; the first interface is the interface on the multi-functional communication interface board that is connected to the first device. The first information is parsed according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted; the second information is the information to be transmitted that conforms to the protocol format supported by the second device. The second information is transmitted to the second device through the second interface; the second interface is the interface on the multi-functional communication interface board that is connected to the second device.
2. The information transmission method based on a multi-functional communication interface board according to claim 1, characterized in that, The first information includes interface parameters of the second interface. Before obtaining the first information transmitted by the first device through the first interface, the method further includes: Obtain the interface parameters corresponding to the second interface of the second device; Based on the interface parameters of the second interface, the interface parameters corresponding to the first interface of the first device are initialized; the initialization process includes adding the interface parameters corresponding to the second interface to the interface parameters corresponding to the first interface.
3. The information transmission method based on a multi-functional communication interface board according to claim 1, characterized in that, The method further includes: The return result from the second device is obtained through the second interface, and the return result is transmitted to the first device through the first interface. The returned result is used to characterize the execution status of the second device in executing the second information, or the returned result is used to characterize the data collected by the second device according to the needs of the first device.
4. The information transmission method based on a multi-functional communication interface board according to claim 3, characterized in that, The step of transmitting the returned result to the first device through the first interface includes: Remove the interface parameters related to the second interface from the returned result to obtain the first returned result; Add the interface parameters of the first interface to the first returned result to obtain the second returned result; The second returned result is transmitted to the first device through the first interface.
5. The information transmission method based on a multi-functional communication interface board according to claim 1, characterized in that, The first device includes multiple first devices, the first interface includes multiple first interfaces, the second device includes multiple second devices, and the second interface includes multiple second interfaces. The step of obtaining the first information transmitted by the first device through the first interface includes: The first information transmitted in parallel by each of the first devices through their respective first interfaces is obtained; each of the first interfaces is different from the others, and each of the first interfaces is a control interface on the multi-functional communication interface board. Accordingly, transmitting the second information to the second device via the second interface includes: The second information of each of the second devices is transmitted to the corresponding second device through their respective second interfaces; each of the second interfaces is different from the others, and each of the second interfaces is a control interface and / or a communication interface on the multi-functional communication interface board.
6. The information transmission method based on a multi-functional communication interface board according to claim 1, characterized in that, The protocol formats supported by the multi-functional communication interface board include start bit, data length, message body, and checksum. The message body includes a function code and message details. The function code is used to represent the configuration or control of the first interface and / or the second interface, and the message details are used to define the configuration information or control information corresponding to the function code.
7. The information transmission method based on a multi-functional communication interface board according to claim 6, characterized in that, The function code includes a configuration function code or a control function code. The configuration function code is used to represent the configuration of the first interface and / or the second interface, and the control function code is used to represent the control of the first interface and / or the second interface. The step of parsing the first information according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted includes: The first information is parsed according to the protocol format supported by the multi-functional communication interface board to obtain the target function code, the second information, and the second interface to which the second information needs to be transmitted, which are included in the first information. If the target function code is a control function code, then return to the step of transmitting the second information to the second device through the second interface.
8. An information transmission device based on a multi-functional communication interface board, characterized in that, An application is made in an information transmission system, the information transmission system including a first device, a second device, and a multi-functional communication interface board, wherein the first device and the second device transmit information through the multi-functional communication interface board, the multi-functional communication interface board supporting information transmission between various types of interfaces, and the device includes: The information acquisition module is used to acquire the first information transmitted by the first device through the first interface; the first information is the information obtained after the protocol format of the first device is modified according to the protocol format supported by the multi-functional communication interface board and the protocol format supported by the second device, and the information to be transmitted is processed according to the modified protocol; the first interface is the interface on the multi-functional communication interface board that is connected to the first device. The parsing module is used to parse the first information according to the protocol format supported by the multi-functional communication interface board to obtain the second information and the second interface to which the second information needs to be transmitted; the second information is information to be transmitted that conforms to the protocol format supported by the second device. The information transmission module is used to transmit the second information to the second device through the second interface; the second interface is the interface on the multi-functional communication interface board that is connected to the second device.
9. A multi-functional communication interface board, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, The method is applied to an information transmission system, which includes a first device, a second device, and a multi-functional communication interface board. The first device and the second device transmit information through the multi-functional communication interface board. The multi-functional communication interface board supports information transmission between various types of interfaces. When the processor executes the computer program, it implements the information transmission method based on the multi-functional communication interface board as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the information transmission method based on the multi-functional communication interface board as described in any one of claims 1 to 7.