A multi-bus real-time interactive system and interactive method

Through the timing trigger interrupt function of the CPCI bus chassis and motherboard, real-time data interaction between multiple buses is achieved, solving the problems of high real-time interaction between multiple buses in the existing technology, and achieving low-cost and efficient multi-buses Bus real-time interactive system.

CN114490494BActive Publication Date: 2024-11-08BEIJING AEROSPACE AUTOMATIC CONTROL RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111639945.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-11-08
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The real-time interaction scheme between existing multibuses is costly and difficult to develop, so real-time control of data interaction cannot be achieved.

Method used

Through the timing trigger interrupt function of the CPCI bus chassis and motherboard, the data interaction between the CPCI bus and multiple buses (such as 1553B bus, CAN bus, and parallel bus) is realized, and the timing module and interrupt service module in the user's operating system are used for Data processing and recording reduces equipment costs and development difficulties.

Benefits of technology

Real-time data interaction transmission between multiple buses is realized, and bus expansion is supported. Users can set timing cycles according to their needs, reducing equipment costs and development difficulties, and meeting the real-time requirements of data interaction between multiple buses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114490494B_ABST
    Figure CN114490494B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-bus real-time interaction system and interaction method. For working conditions with real-time requirements, the interrupt function of the CPCI bus is triggered by the timing function of the system clock. After entering the interrupt service, the CPCI bus interacts, transmits and processes data with multiple buses, such as a 1553B bus, a CAN bus or a parallel bus, thereby completing the data interaction within a timing cycle. The above process is repeated in each timing cycle, so that the real-time interactive transmission of data between multiple buses can be realized, meeting the real-time requirements of the interactive transmission of data between multiple buses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of real-time interaction technology, and in particular relates to a multi-bus real-time interaction system and an interaction method. Background Art

[0002] Each bus has its own communication protocol, but the bus itself does not have real-time control capabilities and cannot perform real-time control on its own data interaction. Currently, real-time interaction between multiple buses is implemented based on the upper and lower computers. The upper computer and the lower computer are two independent computers. The upper computer is equipped with a user interface, and the lower computer is equipped with a real-time operating system such as QNX or RT-Linux. The upper and lower computer solutions are costly and difficult to develop. Summary of the invention

[0003] The purpose of the present invention is to overcome the above-mentioned defects and provide a multi-bus real-time interactive system and interactive method. For working conditions with real-time requirements, the interrupt function of the CPCI bus is triggered by the timing function of the system clock. After entering the interrupt service, the CPCI bus interacts, transmits and processes data with multiple buses, such as a 1553B bus, a CAN bus or a parallel bus, thereby completing the data interaction within a timing cycle. The above process is repeated in each timing cycle, so that the real-time interactive transmission of data between multiple buses can be realized, meeting the real-time requirements of the interactive transmission of data between multiple buses.

[0004] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:

[0005] A multi-bus real-time interactive system comprises a CPCI bus chassis, and a main board and a bus communication board installed inside the CPCI bus chassis;

[0006] The CPCI bus chassis supplies power to the host board and the bus communication board. The CPCI host board and the bus communication board are inserted into the bus slots in the CPCI bus chassis to realize CPCI bus communication between the host board and the bus communication board.

[0007] The main board triggers the CPCI bus interruption according to the preset timing cycle, and performs reset triggering according to the user instruction after the CPCI bus interruption, sends configuration instructions or data to the bus communication board, receives data input by the bus communication board, and performs calculation processing on the data or performs data recording;

[0008] The bus communication board receives configuration instructions or data input by the main board through the CPCI bus, performs bus initialization and data conversion according to the configuration instructions, and outputs the converted data to the main board or to other external communication boards.

[0009] Furthermore, the mainboard is loaded with a user operating system, and the user operating system includes a timing module, an interrupt service module and a user function module;

[0010] The timing module is used to call the system clock of the main board as the system master clock of the entire interactive system, and trigger the CPCI bus interrupt according to the preset timing cycle;

[0011] The interrupt service module is provided with a trigger event corresponding to each user function module. After the CPCI bus is interrupted, the trigger event is set by a user instruction, and then the user function module corresponding to the trigger event is run;

[0012] The user function module includes a reset trigger module, a logic processing module, a data interaction module and a data recording module. The reset trigger module is used to enable the main board to suspend the user function module after the current interrupt cycle ends, and wait for the setting of the trigger event in the next interrupt cycle; the logic processing module is used to enable the main board to initialize the configuration of each bus communication board, and at the same time, the main board is used to perform calculations on the interactive data. The data interaction module is used to enable the main board to receive data input by the bus communication board or to enable the main board to output data sent by the bus communication board. The recording module is used to enable the main board to perform data recording.

[0013] Furthermore, an interrupt service function is provided in the interrupt service module, and a user instruction sets a trigger event through the interrupt service function.

[0014] Furthermore, there is a serial relationship between the reset trigger module and the logic processing module, between the reset trigger module and the data interaction module, and between the reset trigger module and the data recording module;

[0015] The logic processing module, the data interaction module and the data recording module are in a serial or parallel relationship.

[0016] Furthermore, the CPCI bus chassis is a standard 6U chassis supporting the CPCI bus, the bus communication board is a standard 6U board supporting the CPCI bus, and the mainboard is provided with a system clock.

[0017] Furthermore, there are three bus communication boards, namely a 1553B bus communication board, a CAN bus communication board and a parallel bus communication board.

[0018] Furthermore, the main board configures the 1553B bus communication board according to user instructions to realize the reception, transmission, bus data monitoring and recording of 1553B data, or the main board configures the CAN bus communication board according to user instructions to realize the reception, transmission and recording of CAN bus data, or the main board configures the parallel bus communication board according to user instructions to realize the reception, transmission and recording of parallel bus data.

[0019] Furthermore, the user operating system is implemented based on the RTX real-time operating system in the Windows operating environment.

[0020] A multi-bus real-time interaction method is implemented using the multi-bus real-time interaction system described above, and includes the following steps:

[0021] S1 presets the positioning cycle according to demand;

[0022] The timing module in the S2 user operating system calls the system clock of the main board as the system master clock of the entire interactive system, and triggers the CPCI bus interrupt according to the preset timing cycle;

[0023] After S3 CPCI bus interruption, the trigger event in the interrupt service module is set through user instructions, and then the user function module corresponding to the trigger event is run;

[0024] The logic processing module in the S4 user function module enables the main board to send initialization configuration instructions to the bus communication board, and performs calculations on the interactive data. The bus communication board receives the configuration instructions input by the main board through the CPCI bus, performs bus initialization and data conversion according to the configuration instructions, and outputs the converted data to the main board;

[0025] Or, the data interaction module in the user function module receives the data input by the bus communication board;

[0026] Or, the data interaction module in the user function module sends data to the bus communication board;

[0027] Or, the recording module in the user function module enables the main board to perform data recording;

[0028] The reset trigger module in the S5 user function module causes the host board to suspend the user function module after the current interrupt cycle ends, waiting for the setting of the trigger event in the next interrupt cycle;

[0029] S6 repeats steps S2 to S5 to achieve multi-bus real-time interaction.

[0030] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0031] (1) The present invention provides a multi-bus real-time interactive system, which realizes real-time interactive transmission of data between the CPCI bus and multiple buses respectively; and the system supports bus expansion, and can add other bus types or delete some buses to form a real-time interactive system according to user needs, so as to perform real-time data interaction between buses.

[0032] (2) In a multi-bus real-time interactive system of the present invention, the user can set the timing period according to actual needs, and can trigger the interrupt function of the CPCI bus at a fixed time. After entering the interrupt service, the CPCI bus interacts with multiple buses such as the 1553B bus, the CAN bus and the parallel bus for data exchange and user logic processing to complete the user's task.

[0033] (3) The multi-bus real-time interaction system of the present invention has low equipment cost, and only one motherboard (computer) is needed to realize the real-time interaction between multiple buses;

[0034] (4) In the multi-bus real-time interactive system of the present invention, developing real-time interaction between multiple buses based on the RTX real-time operating system under Windows can greatly reduce the development difficulty. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a composition diagram of the multi-bus real-time interactive system of the present invention;

[0036] Figure 2 This is the operation logic diagram of the multi-bus real-time interactive system of the present invention. DETAILED DESCRIPTION

[0037] The following detailed description of the present invention will make the features and advantages of the present invention more clear and explicit.

[0038] The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise noted.

[0039] The present invention proposes a real-time interactive system, in which data between multiple buses can be interactively transmitted in real time, meeting the working conditions with real-time requirements for data, so that tasks running on the real-time interactive system can be carried out smoothly, such as simulation test systems.

[0040] The interactive system of the present invention mainly includes a CPCI bus chassis, a mainboard, a 1553B bus communication board, a CAN bus communication board, and a parallel bus communication board. The CPCI bus chassis is a standard 6U chassis, has multiple CPCI bus slots, supports CPCI bus communication, and can power inserted boards; the mainboard structure is a standard 6U board, supports CPCI bus, has a clock timing function, sets the timing time according to actual needs, can trigger CPCI bus interrupts at regular intervals, and after entering the interrupt service, performs data interaction with other buses according to user instructions to complete real-time data interaction; the 1553B bus communication board, the CAN bus communication board, and the parallel bus communication board are all standard 6U boards, and all support CPCI bus, and realize communication with the mainboard through CPCI bus.

[0041] The user operating system in the interactive system is mounted on the main board and needs to be real-time. The user operating system calls the system clock of the main board as the system master clock of the entire interactive system; the main board counts time based on the system master clock, and the user sets the timing of the interactive system through the user operating system of the main board, which triggers the CPCI bus interrupt of the main board at a fixed time; the user sets the trigger event of the function function in each interrupt service, and the user function module starts running immediately after the trigger event is set; the user function module includes reset trigger, logic processing, data interaction, data recording and other functions, and the reset trigger is in a serial relationship with logic processing, data interaction and data recording, and the logic processing, data interaction and data recording are in a serial-parallel relationship. The role of the reset trigger is to suspend the user function module after the current interrupt service ends, wait for the next trigger event, and perform another cycle of interrupt service; logical processing is that the mainboard performs calculations to implement functions according to the user's intentions, that is, the mainboard sends configuration instructions to the bus communication board and performs calculations on the interactive data; data interaction is that the mainboard obtains the data required for logical processing. The mainboard communicates with the CAN bus, 1553B bus, and parallel bus through the CPCI bus to achieve real-time data interaction between the buses. The bus communication board receives the configuration instructions input by the mainboard through the CPCI bus to initialize the bus, and the mainboard receives the data input by the bus communication board or the mainboard outputs the data sent by the bus communication board; data logging is used to store data during the operation of the user program. The data is customized and stored according to user needs to improve the efficiency of data logging, save the system's hardware cost, and facilitate the user's later data analysis; repeating the above process, the interactive system can achieve real-time interaction between multiple buses.

[0042] Embodiment 1:

[0043] Figure 1This is a composition diagram of a multi-bus real-time interactive system. The system consists of a CPCI bus chassis, a mainboard, a 1553B bus communication board, a CAN bus communication board, and a parallel bus communication board. The data of each board needs to be processed and converted into CPCI bus data, and the boards communicate with each other through the CPCI bus.

[0044] CPCI bus chassis complies with CPCI standards and any chassis on the market that supports CPCI bus can be selected.

[0045] The mainboard is a blade-type 6U board, and ADLINK's cPCI-6880 model can be selected. This board uses an Intel dual-core processor and supports the master station function of the CPCI bus, Ethernet communication and other functions. Install the Windows XP operating system on the board, and embed the RTX real-time operating system at the same time, so that the motherboard can work in a real-time environment. The timing time can be set according to the needs. The board can trigger the CPCI bus interrupt function regularly to meet the real-time requirements of the multi-bus real-time interactive system; users can access and operate other boards in the interactive system through the master station function of the CPCI bus of the board, and realize data processing and interaction with other boards.

[0046] The CAN bus communication board can use ADLINK's cPCI-7841 model. This board supports CAN bus and CPCI bus. The CAN bus can be controlled through the CPCI bus's operation on the board registers, thereby realizing data interaction between CAN buses. Users can control the CAN bus board through the host board to receive, send, and record CAN bus data.

[0047] The 1553B bus communication board can use Alta's PCI-1553 model. This board supports the 1553B bus and the CPCI bus. The control of the 1553B bus is achieved through the operation of the board registers by the CPCI bus. This board is a multi-functional board and can be used as the BC, RT or MT of the 1553B bus through settings. Users access and operate the 1553B bus board through the CPCI bus of the host board to receive, send, monitor, record, etc. 1553B data.

[0048] The parallel bus communication board is a non-standard communication type. The parallel bus board selection needs to be developed according to the actual needs of the user. The developed board needs to support the parallel bus and CPCI bus, support the user to control the parallel bus through the CPCI bus to operate the board register to achieve data interaction between parallel buses; users can control the parallel bus board through the host board, receive and send parallel bus data, record and store communication data, etc.

[0049] Figure 2 This is the operation logic diagram of the multi-bus real-time interactive system of the present invention:

[0050] After the system is started, first set the timing cycle according to the actual needs of the user;

[0051] After configuring the system parameters, wait for the CPCI bus interrupt. The system will trigger the CPCI interrupt according to the timing cycle. After entering the interrupt, the reset trigger is used to block the program after the interrupt service ends and wait for the next interrupt to arrive; then perform logical processing; perform data exchange between the buses and determine whether data recording is required. If necessary, record it; if not, proceed to the next step; determine whether the user task is completed. If not, repeat steps (2)(3)(4); if completed, end.

[0052] The present invention has been described in detail above in conjunction with specific implementations and exemplary examples, but these descriptions cannot be understood as limiting the present invention. Those skilled in the art understand that, without departing from the spirit and scope of the present invention, a variety of equivalent substitutions, modifications or improvements may be made to the technical solution of the present invention and its implementation methods, all of which fall within the scope of the present invention. The scope of protection of the present invention shall be subject to the attached claims.

[0053] The contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.

Claims

1. A multi-bus real-time interactive system, characterized in that: It includes a CPCI bus chassis, and a mainboard and a bus communication board installed inside the CPCI bus chassis; The CPCI bus chassis supplies power to the host board and the bus communication board. The CPCI host board and the bus communication board are inserted into the bus slots in the CPCI bus chassis to realize CPCI bus communication between the host board and the bus communication board. The main board triggers the CPCI bus interruption according to the preset timing cycle, and performs reset triggering according to the user instruction after the CPCI bus interruption, sends configuration instructions or data to the bus communication board, receives data input by the bus communication board, and performs calculation processing on the data or performs data recording; The bus communication board receives the configuration instructions or data inputted by the host board through the CPCI bus, performs bus initialization and data conversion according to the configuration instructions, and outputs the converted data to the host board or to other external communication boards; The mainboard is loaded with a user operating system, which includes a timing module, an interrupt service module and a user function module; The timing module is used to call the system clock of the main board as the system master clock of the entire interactive system, and trigger the CPCI bus interrupt according to the preset timing cycle; The interrupt service module is provided with a trigger event corresponding to each user function module. After the CPCI bus is interrupted, the trigger event is set by a user instruction, and then the user function module corresponding to the trigger event is run; The user function module includes a reset trigger module, a logic processing module, a data interaction module and a data recording module. The reset trigger module is used to make the main board suspend the user function module after the current interrupt cycle ends, and wait for the setting of the trigger event in the next interrupt cycle; The logic processing module is used to enable the mainboard to initialize and configure each bus communication board, and to enable the mainboard to perform operations on the interactive data. The data interaction module is used to enable the mainboard to receive data input by the bus communication board or to enable the mainboard to output data sent by the bus communication board. The recording module is used to enable the mainboard to perform data recording.

2. A multi-bus real-time interactive system according to claim 1, characterized in that: The interrupt service module is provided with an interrupt service function, and a user instruction sets a trigger event through the interrupt service function.

3. A multi-bus real-time interactive system according to claim 1, characterized in that: There is a serial relationship between the reset trigger module and the logic processing module, between the reset trigger module and the data interaction module, and between the reset trigger module and the data recording module; The logic processing module, the data interaction module and the data recording module are in a serial or parallel relationship.

4. A multi-bus real-time interactive system according to claim 1, characterized in that: The CPCI bus chassis is a standard 6U chassis supporting the CPCI bus, the bus communication board is a standard 6U board supporting the CPCI bus, and the mainboard is provided with a system clock.

5. A multi-bus real-time interactive system according to claim 1, characterized in that: There are three bus communication boards, namely a 1553B bus communication board, a CAN bus communication board and a parallel bus communication board.

6. A multi-bus real-time interactive system according to claim 5, characterized in that: The main board configures the 1553B bus communication board according to the user's instructions to realize the reception, transmission, bus data monitoring and recording of 1553B data, or the main board configures the CAN bus communication board according to the user's instructions to realize the reception, transmission and recording of CAN bus data, or the main board configures the parallel bus communication board according to the user's instructions to realize the reception, transmission and recording of parallel bus data.

7. A multi-bus real-time interactive system according to claim 1, characterized in that: The user operating system is implemented under the Windows operating environment based on the RTX real-time operating system.

8. A multi-bus real-time interaction method, characterized in that: The multi-bus real-time interactive system according to any one of claims 1 to 7 is implemented, comprising the following steps: S1 presets the positioning cycle according to demand; The timing module in the S2 user operating system calls the system clock of the main board as the system master clock of the entire interactive system, and triggers the CPCI bus interrupt according to the preset timing cycle; After S3 CPCI bus interruption, the trigger event in the interrupt service module is set through user instructions, and then the user function module corresponding to the trigger event is run; The logic processing module in the S4 user function module enables the main board to send initialization configuration instructions to the bus communication board, and performs calculations on the interactive data. The bus communication board receives the configuration instructions input by the main board through the CPCI bus, performs bus initialization and data conversion according to the configuration instructions, and outputs the converted data to the main board; Or, the data interaction module in the user function module receives the data input by the bus communication board; Or, the data interaction module in the user function module sends data to the bus communication board; Or, the recording module in the user function module enables the main board to perform data recording; The reset trigger module in the S5 user function module causes the host board to suspend the user function module after the current interrupt cycle ends, waiting for the setting of the trigger event in the next interrupt cycle; S6 repeats steps S2 to S5 to achieve multi-bus real-time interaction.