A dynamically configurable multi-data bus centralized switching device and implementation method

By using a graphical interface and data centralized switching software in a multi-data bus centralized switching device to dynamically configure communication protocols and routing tables, the problem of data bus conversion products in the existing technology being unable to adapt to changes in multiple interfaces and protocols is solved, and high efficiency is achieved. testing and low-cost system expansion.

CN115941519BActive Publication Date: 2024-09-24BEIJING ZHONGKE AEROSPACE TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211581966.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2024-09-24
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

Existing data bus conversion products cannot adapt to the cross-data transfer of multiple data bus interfaces and changes in user data communication protocols, and the configuration cost of general simulation test equipment is high, and it is impossible to achieve fast and dynamic configuration of the system.

Method used

Provides a dynamically configurable multi-data bus centralized exchange device, including a general industrial control computer, a switching program control module, a program-controlled power supply module, a data bus interface communication module and data centralized exchange software. The communication protocol is configured through a graphical interface, and dynamic analysis and Edit the routing table to implement driver configuration and communication process configuration for multiple bus boards, and support the opening, configuration, read and write operations of multiple physical bus interfaces.

Benefits of technology

Without the need to re-develop the test code, the communication protocol is dynamically adjusted and modified, which improves test efficiency, reduces system costs, and enables rapid expansion of other data interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941519B
    Figure CN115941519B
Patent Text Reader

Abstract

The present application discloses a dynamically configurable multi-data bus centralized switching device and an implementation method, wherein the dynamically configurable multi-data bus centralized switching device comprises: a general industrial control computer; a switch quantity program control module, a program control power supply module, a data bus interface communication module and data centralized switching software are arranged in the general industrial control computer; wherein the switch quantity program control module is used for physically connecting and outputting / collecting the state of the corresponding switch contact interface with the tested device; the program control power supply module is used for providing the power output of the required voltage and current to the tested device; the data bus interface communication module is used for physically connecting and communicating the corresponding data bus interface with the tested device; the data centralized switching software is used for providing a graphical interface, configuring the communication protocol and the data interface. The present application has the technical effect of improving the test efficiency and reducing the system cost at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic control technology, and in particular to a dynamically configurable multi-data bus centralized switching device and an implementation method thereof. Background Art

[0002] In the process of developing industrial control, automatic driving and aircraft control systems, data collection, data exchange and data processing of various sensors / actuators are involved. At present, the data buses used in real-time control systems include: RS422 / RS485, CAN, 1553B and real-time Ethernet. Due to historical reasons, data buses of different systems are developed for application scenarios in different industries, and a certain amount of mature equipment has been accumulated. Data buses of different systems have certain differences in electrical specifications, networking methods, interface circuits, software SDKs and usage processes. However, for control system developers, their essential role is to realize data exchange between multiple sub-nodes and with the central controller, and simplify the physical connection between systems. When implementing a control system, in order to facilitate the selection of peripheral devices, the central controller often needs to adapt to multiple data bus interfaces to realize data processing for each device. In the development process, it is necessary to configure a universal simulation test equipment with a peer data bus interface, connect to the central controller, simulate the data transmission and reception of peripheral devices, and realize the development, debugging and simulation test of a closed-loop control system; after the equipment is developed and finalized, in order to control costs, it is also necessary to solidify the central controller solution into the simplest configuration for productization.

[0003] At present, data bus conversion products often only focus on exchange speed and product cost, and are usually implemented using ASIC or FPGA. This method can only achieve point-to-point transparent conversion and cannot adapt to the cross-data transmission of multiple data bus interfaces and changes in user data communication protocols.

[0004] Although the method of using general simulation test equipment to configure a variety of data bus interface board modules can meet the above requirements, its communication module is often expensive, and the use process involves development environment configuration, driver calling, communication process development, communication protocol development, program compilation and deployment, etc. Once a protocol error occurs, the test needs to be terminated and restarted after the modification and software deployment are completed. The workload is almost the same as the development of the central controller, and it is impossible to achieve fast and dynamic configuration of the system. Summary of the invention

[0005] The purpose of the present application is to provide a dynamically configurable multi-data bus centralized switching device and implementation method, which is convenient for dynamically adjusting and correcting the communication protocol during the test process without the need to redevelop the test code, thereby effectively improving the test efficiency, and at the same time enabling general simulation test equipment to achieve rapid expansion of other data interfaces while only needing to configure a small number of communication board modules, thereby effectively reducing system costs.

[0006] To achieve the above-mentioned purpose, the present application provides a dynamically configurable multi-data bus centralized switching device, including: a general industrial control computer; a switch quantity program control module, a program-controlled power supply module, a data bus interface communication module and data centralized switching software are provided in the general industrial control computer; wherein, the switch quantity program control module: is used for physically connecting and outputting / collecting the state of the corresponding switch contact interface with the tested device; the program-controlled power supply module: is used for providing the power output of the required voltage and current to the tested device; the data bus interface communication module: is used for physically connecting and communicating the data of the corresponding data bus interface with the tested device; the data centralized switching software: is used for providing a graphical interface, configuring the communication protocol and the data interface.

[0007] As mentioned above, the data centralized exchange software includes at least: a graphical interface, a communication protocol module and a data interface; wherein the graphical interface is used to edit the communication protocol configuration file; generate a virtual test signal; monitor the data in the configured data buffer and allocate the electrical connection configuration; configure the control communication cycle; operate the switch quantity program-controlled module and the program-controlled power supply module; wherein the electrical connection configuration includes at least: the communication board channel, address, baud rate, start and end positions and verification method; the communication protocol module is used to realize dynamic parsing and editing of the communication protocol configuration file and generate a routing table; according to the routing table, the data buffer is automatically maintained in the computer memory; in each control communication cycle, the data of the data interface is collected, exchanged and distributed according to the routing table; the data interface is used to realize the driver configuration and communication process configuration of various bus boards; it is used to realize the opening, configuration and read and write operations of various physical bus interfaces.

[0008] As above, the graphical interface includes at least: a protocol configuration module, a signal generator, an oscilloscope, an IO configuration module, a bus configuration module and a power configuration module; wherein, the protocol configuration module is used to edit the communication protocol configuration file; the signal generator is used to generate a virtual test signal; the oscilloscope is used to monitor the data in the configured data buffer; the IO configuration module is used to control the opening and closing of the switch quantity program-controlled module, and output the state change of the switch to the device under test; the bus configuration module is used to operate the data bus interface communication module, set the communication parameters of each data bus interface, and communicate data with the device under test; the power configuration module is used to operate the control power module, control the voltage setting, current setting and opening and closing of the program-controlled power supply, and supply power to the device under test.

[0009] As above, the communication protocol module includes at least: a routing table and a data buffer; wherein the routing table includes a collection of configurations of all data interfaces, which is used to automatically and dynamically maintain the data buffer in the computer memory; the data buffer is the required data interface configuration object established according to the type of configuration of the data interface defined in the routing table, and the required data interface configuration objects are allocated with the required attribute storage and data buffer memory space for buffering data.

[0010] As above, the configuration of each data interface includes at least: attributes and data buffer; wherein the data buffer includes: data buffer of input interface and data buffer of output interface; the attributes include at least: interface type, channel number, transmission direction, data frame header list, verification method, input data length and output signal list.

[0011] As mentioned above, the data interface API includes at least: UART interface API, CAN interface API and 1553B interface API; the interface types of the data interface include at least: bus device and virtual device; each data interface includes an input interface and an output interface.

[0012] The present application also provides an implementation method of a dynamically configurable multi-data bus centralized switching device, comprising the following steps: within each communication cycle, the above-mentioned dynamically configurable multi-data bus centralized switching device collects data from the input interface of each data interface, exchanges the collected data, and completes data collection; after the data collection is completed, if the interface type of the output interface is a bus device, the corresponding communication board API is called from the data bus interface communication module through the data centralized switching software, and the data content is sent in batches to the physical device of the corresponding bus communication interface through the driver; if the interface type of the output interface is a virtual device, the data is presented on the graphical interface through the data centralized switching software.

[0013] As above, the sub-steps of exchanging the collected data and completing data collection are as follows: input the collected data content into the data buffer of the input interface according to the interface type of the input interface; search for the corresponding data content from the data buffer of the corresponding input interface according to the data source position requested by the signal item to be exchanged in the output signal list, and store the data content in the data buffer of the output interface to complete data collection.

[0014] As above, according to the data source position requested by the signal item to be exchanged in the output signal list, the corresponding data content is searched from the data buffer of the corresponding input interface, and the data content is centrally stored in the data buffer of the output interface. The sub-steps for completing data collection are as follows: T1: Start data exchange, data interface configuration index = 0, execute T2; T2: Determine the total number of data interface configurations according to the data interface configuration index. If the data interface configuration index is less than the total number of data interface configurations, execute T3; if the data interface configuration index is greater than or equal to the total number of data interface configurations, end; T3: Determine the transmission direction. If the transmission direction is input, execute T4; if the transmission direction is not output, execute T5. If the signal list index is less than the total number of signals, execute T7; if the signal list index is greater than or equal to the total number of signals, execute T4; T7: obtain the current signal and execute T8; T8: obtain the signal data and determine whether the signal data is successfully obtained. If successful, execute T9. If failed, output an error message and end; T9: write the data content of the data to the data buffer of the output interface and execute T10; T10: signal list index + 1, execute T6.

[0015] As above, the sub-steps of acquiring the signal data and determining whether the signal data is acquired successfully are as follows: T81: Start acquiring the signal data, data interface configuration index = 0, set the success flag to false, and execute T82; T82: Determine the total number of data interface configurations according to the data interface configuration index. If the data interface configuration index is less than the total number of data interface configurations, execute T83; if the data interface configuration index is greater than or equal to the total number of data interface configurations, then end; T83: Determine the transmission direction. If the transmission direction is output, execute T8 4; If the transmission direction is not input, execute T85; T84: data interface configuration index + 1, and re-execute T82; T85: determine whether the type and channel number of the data interface match, if they match, execute T86; if they do not match, re-execute T84; T86: determine the input data length according to the byte index, if the byte index is less than the input data length, execute T87; if the byte index is greater than or equal to the input data length, end; T87: read and return the data at the byte index, set the success flag to true, and end.

[0016] The beneficial effects achieved by this application are as follows:

[0017] (1) The data transmission, reception and use processes of various data buses are unified, realizing the configuration file-style definition and graphical interface-style operation of the communication protocol.

[0018] (2) It is convenient to dynamically adjust and modify the communication protocol during the test process without the need to redevelop the test code, which effectively improves the test efficiency. At the same time, it enables general simulation test equipment to quickly expand other data interfaces while only configuring a small number of communication board modules, effectively reducing system costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0020] Figure 1 A structural diagram of an embodiment of a dynamically configurable multi-data bus centralized switching device;

[0021] Figure 2 The present invention is a flow chart of an embodiment of a method for realizing a dynamically configurable multi-data bus centralized switching device. DETAILED DESCRIPTION

[0022] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0023] like Figure 1 As shown, the present application provides a dynamically configurable multi-data bus centralized switching device, including: a general industrial control computer; the general industrial control computer is provided with a switch quantity programmable control module, a programmable power supply module, a data bus interface communication module and data centralized switching software.

[0024] Among them, the switch quantity program control module is used for physical connection and status output / status acquisition of the corresponding switch contact interface with the tested equipment.

[0025] Specifically, the switch quantity program control module is a module of a programmable control relay installed or connected in a general industrial control computer, which is used to physically connect the corresponding switch contact interface (for example, active contacts and passive contacts) and output / acquire status with the tested equipment (for example, the central controller of the control system to be developed, etc.).

[0026] Programmable power supply module: used to provide power output with required voltage and current to the device under test.

[0027] Specifically, the programmable power supply module is a programmable power supply module installed or connected in a general industrial control computer, which is used to provide power output of required voltage and current to the tested equipment (for example: the central controller of the control system to be developed, etc.).

[0028] Data bus interface communication module: used for physical connection and data communication with the device under test at the corresponding data bus interface.

[0029] Specifically, the data bus interface communication module refers to various communication boards installed or connected in general industrial control computers, which are used for physical connection and data communication with the tested equipment (for example, the central controller of the control system to be developed, etc.) of the corresponding data bus interface (for example, RS422 / RS485, CAN, 1553B and real-time Ethernet, etc.).

[0030] Data centralized exchange software: used to provide a graphical interface, configure communication protocols and data interfaces.

[0031] Furthermore, the data centralized exchange software includes at least: a graphical interface, a communication protocol module and a data interface.

[0032] Specifically, the data centralized exchange software is used to accept user configuration of the data bus interface communication module, the switch quantity program control module and the program control power supply module, and execute centralized data exchange of multiple data buses. The data centralized exchange software of the present application can realize dynamic configuration of the protocol and is easy to expand.

[0033] The graphical interface is used to edit the communication protocol configuration file, generate virtual test signals, monitor the data in the configured data buffer, allocate electrical connection configuration, configure the control communication cycle, and operate the switch quantity program-controlled module and program-controlled power supply module. The electrical connection configuration includes at least the communication card channel, address, baud rate, start and end positions, and calibration method.

[0034] Communication protocol module: used to implement dynamic parsing and editing of communication protocol configuration files and generate routing tables; automatically and dynamically maintain data buffers in computer memory according to routing tables; collect, exchange and distribute data from data interfaces according to routing tables in each control communication cycle.

[0035] Data interface: used to implement driver configuration and communication process configuration of various bus boards; used to implement the opening, configuration, read and write operations of various physical bus interfaces.

[0036] Furthermore, the graphical interface includes at least: a protocol configuration module, a signal generator, an oscilloscope, an IO configuration module, a bus configuration module and a power configuration module.

[0037] Among them, the protocol configuration module is used to edit the communication protocol configuration file.

[0038] Signal generator: used to generate virtual test signals.

[0039] Oscilloscope: used to monitor the data in the configured data buffer.

[0040] IO configuration module: used to control the opening and closing of the switch quantity program control module and output the state change of the switch to the device under test.

[0041] Bus configuration module: used to operate the data bus interface communication module, set the communication parameters of each data bus interface, and perform data communication with the device under test.

[0042] Power configuration module: used to operate the power control module, control the voltage setting, current setting and opening and closing of the programmable power supply, and supply power to the device under test.

[0043] Further, the communication protocol module includes at least: a routing table and a data buffer;

[0044] The routing table includes a collection of configurations of all data interfaces and is used to automatically and dynamically maintain a data buffer in the computer memory.

[0045] The data buffer is a required data interface configuration object established according to the configuration type of the data interface defined in the routing table. The required data interface configuration objects are allocated with required attribute storage and data buffer memory space for buffering data.

[0046] Furthermore, the configuration of each data interface includes at least: attributes and data buffer; wherein the data buffer includes: data buffer of input interface and data buffer of output interface; the attributes include at least: interface type, channel number, transmission direction, data frame header list, verification method, input data length and output signal list.

[0047] Specifically, the transmission directions include: output and input.

[0048] Further, the API of the data interface includes at least: UART interface API, CAN interface API and 1553B interface API. The interface types of the data interface include at least: bus device and virtual device. Each data interface includes an input interface and an output interface.

[0049] Specifically, the bus device represents the interface type of the bus, such as RS422 / RS485, CAN, 1553B and real-time Ethernet; the virtual device includes: built-in software simulation signal generator and oscilloscope, etc.

[0050] Furthermore, as shown in Table 1, in order to facilitate typesetting, the communication protocol configuration file of the present application adds a line break inside the cell, which is not stored in the actual configuration file; when each cell is stored, the cells are separated by commas, which is compatible with the csv format.

[0051]

[0052]

[0053] Table 1 Format of the communication protocol configuration file

[0054] The first line of the communication protocol configuration file is the channel definition, and the format is "Interface type (bus type / virtual device): channel number CH#: transmission direction Transmit (input / output)".

[0055] The optional fields that follow include one or more data frame headers, checksum, etc.

[0056] If it is an input interface, it must be followed by the data length field Length (number of bytes);

[0057] If it is an output interface, it must contain a list of relay data sources for each output byte, specifically "Interface type: Channel number CH#: Byte index Byte".

[0058] like Figure 2 As shown, the present application provides a method for implementing a dynamically configurable multi-data bus centralized switching device, comprising the following steps:

[0059] S210: In each communication cycle, the dynamically configurable multi-data bus centralized switching device collects data from the input interface of each data interface, exchanges the collected data, and completes data collection.

[0060] Furthermore, the collected data is exchanged and the sub-steps of completing data collection are as follows:

[0061] S2101: Input the collected data content into the data buffer of the input interface according to the interface type of the input interface.

[0062] Specifically, when the interface type of the input interface is a bus device, the API of the corresponding communication board is called, and the collected data content is read in batches into the corresponding input data buffer through the driver; if the input interface type is a virtual device (for example: a signal generator built into the data concentration exchange software, where the signal generator is an analog signal generator), the test data generated inside the data concentration exchange software is directly placed in the input data buffer.

[0063] S2102: According to the data source position requested by the signal item to be exchanged in the output signal list, the corresponding data content is searched from the data buffer of the corresponding input interface, and the data content is centrally stored in the data buffer of the output interface to complete data collection.

[0064] Specifically, the output signal list attribute includes an output signal list and a signal list index.

[0065] Further, according to the data source position requested by the signal item to be exchanged in the output signal list, the corresponding data content is searched from the data buffer of the corresponding input interface, and the data content is centrally stored in the data buffer of the output interface. The sub-steps of completing data collection are as follows:

[0066] T1: Start data exchange, data interface configuration index = 0, execute T2.

[0067] Specifically, the data interface configuration index is obtained by configuring the data bus interface communication module through the data centralized exchange software.

[0068] T2: Determine the total number of data interface configurations according to the data interface configuration index. If the data interface configuration index is less than the total number of data interface configurations, execute T3; if the data interface configuration index is greater than or equal to the total number of data interface configurations, end.

[0069] Specifically, the total number of data interface configurations is obtained by configuring the data bus interface communication module through the data centralized exchange software.

[0070] T3: Determine the transmission direction. If the transmission direction is input, execute T4; if the transmission direction is not input, execute T5.

[0071] T4: The data interface configuration index increases by 1, and T2 is executed again.

[0072] T5: Get the current data interface configuration, signal list index = 0, execute T6.

[0073] T6: Determine the total number of signals based on the signal list index. If the signal list index is less than the total number of signals, execute T7; if the signal list index is greater than or equal to the total number of signals, execute T4.

[0074] T7: Get the current signal and execute T8.

[0075] T8: Acquire the signal data and determine whether the signal data is acquired successfully. If successful, execute T9. If failed, output an error message and end.

[0076] T9: Write the data content into the data buffer of the output interface and execute T10.

[0077] T10: Signal list index +1, execute T6.

[0078] Furthermore, the sub-steps of acquiring the signal data and determining whether the signal data is acquired successfully are as follows:

[0079] T81: Start acquiring signal data, data interface configuration index = 0, set the success flag to false, and execute T82.

[0080] T82: The total number of data interface configurations is determined according to the data interface configuration index. If the data interface configuration index is less than the total number of data interface configurations, T83 is executed; if the data interface configuration index is greater than or equal to the total number of data interface configurations, the process ends.

[0081] T83: Determine the transmission direction. If the transmission direction is output, execute T84; if the transmission direction is not input, execute T85.

[0082] T84: Data interface configuration index +1, and re-execute T82.

[0083] T85: Determine whether the type and channel number of the data interface match. If they do, execute T86; if they do not match, re-execute T84.

[0084] T86: Determine the input data length according to the byte index. If the byte index is less than the input data length, execute T87; if the byte index is greater than or equal to the input data length, end.

[0085] T87: Read and return the data at the byte index, set the success flag to true, and end.

[0086] S220: After the data collection is completed, if the interface type of the output interface is a bus device, the API of the corresponding communication board is called from the data bus interface communication module through the data centralized exchange software, and the data content is sent in batches to the physical device of the corresponding bus communication interface through the driver; if the interface type of the output interface is a virtual device, the data is presented on the graphical interface through the data centralized exchange software.

[0087] The beneficial effects achieved by this application are as follows:

[0088] (1) The data transmission, reception and use processes of various data buses are unified, realizing the configuration file-style definition and graphical interface-style operation of the communication protocol.

[0089] (2) It is convenient to dynamically adjust and modify the communication protocol during the test process without the need to redevelop the test code, which effectively improves the test efficiency. At the same time, it enables general simulation test equipment to quickly expand other data interfaces while only configuring a small number of communication board modules, effectively reducing system costs.

[0090] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the scope of protection of the present application is intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application. Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the protection scope of the present application and its equivalent technology, the present application is also intended to include these modifications and variations.

Claims

1. A dynamically configurable multi-data bus centralized switching device, characterized in that: include: General industrial control computer; the general industrial control computer is provided with a switch quantity program control module, a program control power supply module, a data bus interface communication module and data centralized exchange software; Among them, the switch quantity program control module is used for physical connection and state output / state acquisition of the corresponding switch contact interface with the tested device; Programmable power supply module: used to provide the power output of the required voltage and current to the device under test; Data bus interface communication module: used for physical connection and data communication with the device under test at the corresponding data bus interface; Data centralized exchange software: used to provide a graphical interface, configure communication protocols and data interfaces; The data centralized exchange software includes at least: a graphical interface, a communication protocol module and a data interface; The graphical interface is used to edit the communication protocol configuration file, generate virtual test signals, monitor the data in the configured data buffer, and allocate electrical connection configurations, configure the control communication cycle, and operate the switch quantity program-controlled module and the program-controlled power supply module. The electrical connection configuration includes at least the communication card channel, address, baud rate, start and stop positions, and calibration method. Communication protocol module: used to implement dynamic parsing and editing of communication protocol configuration files and generate routing tables; automatically and dynamically maintain data buffers in computer memory according to routing tables; collect, exchange and distribute data from data interfaces according to routing tables in each control communication cycle; Data interface: used to implement driver configuration and communication process configuration of various bus boards; used to implement the opening, configuration, read and write operations of various physical bus interfaces.

2. The dynamically configurable multi-data bus centralized switching device according to claim 1, characterized in that: The graphical interface at least includes: a protocol configuration module, a signal generator, an oscilloscope, an IO configuration module, a bus configuration module and a power configuration module; Among them, the protocol configuration module is used to edit the communication protocol configuration file; Signal generator: used to generate virtual test signals; Oscilloscope: used to monitor the data in the configured data buffer; IO configuration module: used to control the opening and closing of the switch quantity program control module and output the state change of the switch to the device under test; Bus configuration module: used to operate the data bus interface communication module, set the communication parameters of each data bus interface, and perform data communication with the device under test; Power configuration module: used to operate the power control module, control the voltage setting, current setting and opening and closing of the programmable power supply, and supply power to the device under test.

3. The dynamically configurable multi-data bus centralized switching device according to claim 2, characterized in that: The communication protocol module at least includes: a routing table and a data buffer; Wherein, the routing table includes a collection of configurations of all data interfaces, and is used to automatically and dynamically maintain a data buffer in a computer memory; The data buffer is a required data interface configuration object established according to the configuration type of the data interface defined in the routing table. The required data interface configuration objects are allocated with required attribute storage and data buffer memory space for buffering data.

4. The dynamically configurable multi-data bus centralized switching device according to claim 3, characterized in that: The configuration of each data interface includes at least: attributes and data buffer; wherein the data buffer includes: data buffer of input interface and data buffer of output interface; the attributes include at least: interface type, channel number, transmission direction, data frame header list, check mode, input data length and output signal list.

5. The dynamically configurable multi-data bus centralized switching device according to claim 4, characterized in that: The API of the data interface includes at least: UART interface API, CAN interface API and 1553B interface API; the interface types of the data interface include at least: bus device and virtual device; each data interface includes an input interface and an output interface.

6. A method for implementing a dynamically configurable multi-data bus centralized switching device, characterized in that: The steps include: In each communication cycle, the dynamically configurable multi-data bus centralized switching device according to any one of claims 1 to 5 collects data from the input interface of each data interface, performs data exchange on the collected data, and completes data collection; After the data collection is completed, if the interface type of the output interface is a bus device, the corresponding communication board API is called from the data bus interface communication module through the data centralized exchange software, and the data content is sent in batches to the physical device of the corresponding bus communication interface through the driver; if the interface type of the output interface is a virtual device, the data is presented on the graphical interface through the data centralized exchange software.

7. The method for implementing the dynamically configurable multi-data bus centralized switching device according to claim 6, characterized in that: The sub-steps of exchanging the collected data and completing data collection are as follows: Input the collected data content into the data buffer of the input interface according to the interface type of the input interface; According to the data source position requested by the signal item to be exchanged in the output signal list, the corresponding data content is searched from the data buffer of the corresponding input interface, and the data content is centrally stored in the data buffer of the output interface to complete the data collection.

8. The method for implementing the dynamically configurable multi-data bus centralized switching device according to claim 7, characterized in that: According to the data source position requested by the signal item to be exchanged in the output signal list, the corresponding data content is searched from the data buffer of the corresponding input interface, and the data content is centrally stored in the data buffer of the output interface. The sub-steps for completing data collection are as follows: T1: Start data exchange, data interface configuration index = 0, execute T2; T2: Determine the total number of data interface configurations according to the data interface configuration index. If the data interface configuration index is less than the total number of data interface configurations, execute T3; if the data interface configuration index is greater than or equal to the total number of data interface configurations, end; T3: Determine the transmission direction. If the transmission direction is input, execute T4; if the transmission direction is not input, execute T5; T4: Data interface configuration index +1, and re-execute T2; T5: Get the current data interface configuration, signal list index = 0, execute T6; T6: Determine the total number of signals according to the signal list index. If the signal list index is less than the total number of signals, execute T7; if the signal list index is greater than or equal to the total number of signals, execute T4; T7: Get the current signal and execute T8; T8: Acquire the signal data and determine whether the signal data is acquired successfully. If successful, execute T9. If failed, output an error message and end. T9: Write the data content into the data buffer of the output interface and execute T10; T10: Signal list index +1, execute T6.

9. The method for implementing the dynamically configurable multi-data bus centralized switching device according to claim 8, characterized in that: The sub-steps for acquiring signal data and determining whether the signal data is acquired successfully are as follows: T81: Start to obtain signal data, data interface configuration index = 0, set the success flag to false, and execute T82; T82: judging the total number of data interface configurations according to the data interface configuration index, if the data interface configuration index is less than the total number of data interface configurations, executing T83; if the data interface configuration index is greater than or equal to the total number of data interface configurations, ending; T83: Determine the transmission direction. If the transmission direction is output, execute T84; if the transmission direction is not input, execute T85; T84: Data interface configuration index +1, and re-execute T82; T85: Determine whether the type and channel number of the data interface match. If they do, execute T86; if they do not, execute T84 again. T86: Determine the input data length according to the byte index. If the byte index is less than the input data length, execute T87; if the byte index is greater than or equal to the input data length, end; T87: Read and return the data at the byte index, set the success flag to true, and end.

Citation Information

Patent Citations

  • Automatic test system for CAN network and ECU functions

    CN103728968A

  • Protocol converter instrument remote configuration method

    CN110225026A

  • Electronic integrated single-machine automation test system and method, and medium

    CN111123000A

  • Multi-channel protocol adaptation processing method, system and device

    CN114745448A

  • Streaming interconnect architecture for data processing engine array

    US10990552B1