A multi-channel 1553b controller and its data transmission method
By designing a multi-channel 1553B controller and a multi-channel polling scheduling module, the problem of the single control mode of the multi-channel 1553B bus in the existing technology is solved, and efficient data interaction and verification are achieved, improving the coordination performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TIANJIN JINHANG COMP TECH RES INST
- Filing Date
- 2023-06-30
- Publication Date
- 2026-04-10
AI Technical Summary
The existing 1553B bus requires external software scheduling when multiple channels are working simultaneously. The control method is singular and the coordination is poor, making it difficult to achieve efficient coordination.
Design a multi-channel 1553B controller, which includes multiple 1553B protocol transceiver modules configurable to BC or RT modes. It connects to a host computer through a multi-channel polling scheduling module to realize data interaction and verification, and supports a single host computer to control the transmission and reception of multiple channels.
It improves the coordination performance of 1553B protocol transceiver modules across multiple channels, supports multiple modes, enables self-loopback testing, and verifies data reliability.
Smart Images

Figure CN116827712B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer communication, in particular to a multi-channel 1553B controller and a data transmission method thereof. BACKGROUND
[0002] At present, MIL-STD-1553B protocol standard has become an internationally recognized bus standard and is widely used in many military platforms and non-military blank fields. China began to study 1553B bus protocol in the 1990s and promulgated the military standard GJB289A-97. 1553B bus realizes the connection of multiple remote terminals on the main cable through the connection mode of the coupler. The terminal types include three types, which are bus controller (BC), remote terminal (RT) and bus monitor (MT). At present, 1553B bus is usually realized by using a single controller to control a single 1553B chip, and the control mode is relatively single. When multiple channels work at the same time, external software needs to be used for scheduling, and the coordination is poor. SUMMARY
[0003] In view of the above defects or deficiencies in the prior art, the present application aims to provide a multi-channel 1553B controller and a data transmission method thereof.
[0004] In a first aspect, the present application provides a multi-channel 1553B controller, comprising:
[0005] A plurality of channels, each of the plurality of channels is provided with a 1553B protocol transceiver module, any of the 1553B protocol transceiver modules can be configured as a BC mode and set as a first transceiver module; at least one of the 1553B protocol transceiver modules can be configured as an RT mode and set as a second transceiver module; all of the 1553B protocol transceiver modules are connected through a 1553B bus, and the 1553B bus is connected with external equipment corresponding to the first transceiver module or the second transceiver module at a side away from the 1553B protocol transceiver modules;
[0006] A multi-channel polling scheduling module, the multi-channel polling scheduling module is connected with all of the 1553B protocol transceiver modules at a side away from the 1553B bus; the multi-channel polling scheduling module is connected with an upper computer at a side away from the 1553B protocol transceiver modules; the multi-channel polling scheduling module is configured to parse data from the upper computer or encapsulate data from the plurality of channels to form encapsulated data and send the encapsulated data to the upper computer;
[0007] The first transceiving module or the second transceiving module can interact with the 1553B bus, and when the first transceiving module or the second transceiving module receives data, the data is returned to the host computer through the multi-channel polling scheduling module for data verification.
[0008] According to the technical scheme provided in the embodiment of the application, the multi-channel polling scheduling module is connected with a bus control module away from the 1553B protocol transceiving module end, and the bus control module is connected with the host computer through a PCIE bus away from the multi-channel polling scheduling module end.
[0009] According to the technical scheme provided in the embodiment of the application, a PCIE cache module is arranged between the multi-channel polling scheduling module and the bus control module, the PCIE cache module comprises a first sending cache module and a first receiving cache module, the bus control module stores data in the first sending cache module and then sends the data to the multi-channel polling scheduling module, and the multi-channel polling scheduling module stores data from the 1553B protocol transceiving module in the first receiving cache module and then sends the data to the host computer.
[0010] According to the technical scheme provided in the embodiment of the application, each 1553B protocol transceiving module is implemented on an FPGA device.
[0011] According to the technical scheme provided in the embodiment of the application, each 1553B protocol transceiving module is connected with a coupler and interacts with the 1553B bus through the coupler.
[0012] According to the technical scheme provided in the embodiment of the application, a 1553B transceiver is arranged between each 1553B protocol transceiving module and the coupler, and the 1553B transceiver is used to complete data level conversion between output pins of the FPGA device and the coupler.
[0013] According to the technical scheme provided in the embodiment of the application, an on-chip RAM is further arranged on the FPGA device, data received from the 1553B transceiver is first cached on the on-chip RAM and waits to be extracted, and data issued by the multi-channel polling scheduling module is first subjected to data processing and then stored on the on-chip RAM.
[0014] In a second aspect, the application provides a data transmission method of the multi-channel 1553B controller, comprising the following steps:
[0015] receiving first data sent by the host computer;
[0016] parsing the first data to obtain a first channel number, a second channel number and first valid data;
[0017] sending the first effective data to the 1553B protocol transceiver module corresponding to the first channel number;
[0018] packaging the first effective data to obtain first available data;
[0019] encoding the first available data to form a Manchester code;
[0020] sending the Manchester code to the 1553B bus and to the external device corresponding to the first channel number.
[0021] According to the technical scheme provided by the embodiment of the application, the following steps are further included:
[0022] receiving at least one second data sent by an external device, wherein the 1553B bus is provided with at least one external device corresponding to each channel;
[0023] decoding each second data to obtain second effective data;
[0024] packaging each second effective data to obtain second available data;
[0025] sending at least one second available data to the multi-channel polling scheduling module to encapsulate to form encapsulated data;
[0026] sending the encapsulated data to the host computer.
[0027] According to the technical scheme provided by the embodiment of the application, after the Manchester code is sent to the 1553B bus, the following steps are further included:
[0028] sending the Manchester code to the second transceiver module corresponding to the second channel number;
[0029] analyzing the Manchester code to form third data;
[0030] sending the third data to the host computer through the multi-channel polling scheduling module.
[0031] In summary, the application provides a multi-channel 1553B controller, comprising multi-channel 1553B protocol transceiver modules configurable in BC mode or RT mode, all of which are connected through a 1553B bus and have a multi-channel polling scheduling module connected at the other end, which is connected to an upper computer away from the 1553B protocol end; in use, only BC mode or RT mode can be used, or BC mode and RT mode can be implemented simultaneously, data interaction on the 1553B bus is controlled by the upper computer, and the data can also be returned to the upper computer through the multi-channel polling scheduling module for data verification.
[0032] In the prior art, two 1553B protocol transceiver modules may need two controllers for transceiving control, while the application supports multiple modes, can connect multiple 1553B protocol transceiver modules to a single upper computer, and can realize transceiving control of multiple channels by a single upper computer, improving the coordination performance of multiple 1553B protocol transceiver modules. At the same time, self-loop test can be performed through a controller to verify the reliability of data. BRIEF DESCRIPTION OF DRAWINGS
[0033] Figure 1 A structure diagram of a multi-channel 1553B controller provided by the embodiment of the application is provided.
[0034] Figure 2 A flowchart of a data transmission method provided by the embodiment 2 of the application is provided.
[0035] 1, upper computer; 2, bus control module; 31, first receiving buffer module; 32, first sending buffer module; 4, multi-channel polling scheduling module; 5, 1553B protocol transceiver module; 6, 1553B transceiver; 7, system on chip; 71, on-chip RAM; 8, coupler; 9, 1553B bus. DETAILED DESCRIPTION
[0036] The application will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related application, and not to limit the application. In addition, it should be noted that only parts related to the application are shown in the drawings for ease of description.
[0037] It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other without conflict. The application will be described in detail below with reference to the drawings and embodiments.
[0038] As mentioned in the background, the application provides a multi-channel 1553B controller, comprising:
[0039] A plurality of channels, each of the plurality of channels is provided with a 1553B protocol transceiver module 5, any of the 1553B protocol transceiver module 5 can be configured as a BC mode, set as a first transceiver module; At least one of the 1553B protocol transceiver module 5 can be configured as an RT mode, set as a second transceiver module; All the 1553B protocol transceiver module 5 is connected through the 1553B bus 9, the 1553B bus 9 is connected with the external device corresponding to the first transceiver module or the second transceiver module away from the 1553B protocol transceiver module 5 end;
[0040] A plurality of channel polling scheduling modules 4, the plurality of channel polling scheduling modules 4 are connected with all the 1553B protocol transceiver module 5 away from the 1553B bus 9 end; The plurality of channel polling scheduling 4 modules are connected with the upper computer 1 away from the 1553B protocol transceiver module 5 end; The plurality of channel polling scheduling module 4 is configured to parse data from the upper computer 1, or encapsulate data from a plurality of channels to form encapsulated data and send to the upper computer 1;
[0041] The first transceiver module or the second transceiver module can interact through the 1553B bus 9, and when the first transceiver module or the second transceiver module receives data, the data is returned to the upper computer 1 through the plurality of channel polling scheduling module 4 for data verification.
[0042] Wherein, the 1553B protocol transceiver module 5 can be configured in two modes, bus controller (BC) mode and remote terminal (RT) mode, both modes have receiving and sending functions, namely BC sending, BC receiving, RT sending, RT receiving, each of the channels can only be configured in one of the modes. But only one of the plurality of channels can be configured as a BC mode. The data transmission rate on the 1553B bus 9 is 1Mbit / s, the waveform coding is Manchester coding, the method of odd parity is adopted, and the bus structure is double redundancy type. The plurality of channel polling scheduling module 4 can parse data from the upper computer 1 to obtain a channel number and a first valid data corresponding to the channel number, the channel number includes a first channel number and a second channel number, and the plurality of channel polling scheduling module 4 sends the first valid data to the 1553B protocol transceiver module 5 corresponding to the first channel number.
[0043] The 1553B protocol transceiving module 5 has the functions of data receiving, data sending, data coding and decoding and data packeting; the data receiving function is used to receive the Manchester code sent from the 1553B bus 9, the data coding and decoding function is used to convert the Manchester code into second effective data, the data packeting function is used to remove the packet header and packet tail in the second effective data to obtain second available data, and the data sending function is used to send the second available data to the multi-channel polling scheduling module 4. In addition, the 1553B protocol transceiving module 5 can also receive the first effective data analyzed by the multi-channel polling scheduling module 4 through the data receiving function, add the packet header and packet tail to the first effective data to form first available data through the data packeting function, convert the first available data into Manchester code through the data coding and decoding function, and send the Manchester code to the 1553B bus 9 through the data sending function.
[0044] When sending information from the first transceiving module to the second transceiving module, the host computer 1 sends first data to the multi-channel polling scheduling module 4, the multi-channel polling scheduling module 4 analyzes the first data to obtain a first channel number, a second channel number and first effective data, and sends them to the first transceiving module corresponding to the first channel number, the first transceiving module generates Manchester code and sends it to the 1553B bus 9, and sends the Manchester code to the external device corresponding to the second channel number and the second transceiving module; at the same time, the second transceiving module sends data back to the host computer 1 through the multi-channel polling scheduling module 4, and the data is verified on the host computer 1, so that the data reliability can be verified through loopback test without the help of other external devices.
[0045] The external device connected to the 1553B bus 9 corresponding to the first transceiving module is a first device, and the external device connected to the 1553B bus 9 corresponding to the second transceiving module is a second device. Since the RT mode is commanded and controlled by the BC mode and is passive, before the second device sends data to the first device or another second device, the first device sends a first instruction to the second device through the 1553B bus, and the second device requests data from the first device through the first instruction. After the second device responds to the first instruction, the second device sends second data to the first device or another second device through the 1553B bus 9, and the second data is sent to the first transceiving module or another second transceiving module through the 1553B bus 9. The second data is generated into the second available data by the first transceiving module or another second transceiving module, and then sent to the multi-channel polling scheduling module 4 and the host computer 1 for verification.
[0046] In the prior art, a 1553B controller can only be configured as a BC mode or an RT mode, and one controller corresponds to one host computer 1, and one system has only one function. In use, the application can only apply to the first transceiving module or the second transceiving module, that is, the multi-channel 1553B controller of the application can also realize the functions of BC or RT alone, so the application can support multiple modes, and multiple 1553B protocol transceiving modules can be connected to a single host computer 1, which can realize the transceiving control of a single host computer 1 to multiple channels and improve the coordination performance of multiple 1553B protocol transceiving modules 5.
[0047] In a preferred embodiment, the multi-channel polling scheduling module 4 is connected to a bus control module 2 at the end of the 1553B protocol transceiving module 5, and the bus control module 2 is connected to the host computer 1 through a PCIE bus at the end of the multi-channel polling scheduling module 4.
[0048] Optionally, the IP core of the bus control module 2 is a 7Series Integrated Block for PCIExpress, which is connected to the host computer 1 through a PCIE bus and interconnected with the outside through an AXI interface. The interface protocol adopts AXI4, the host computer 1 and the bus control module 2 interact in PIO read-write mode, the data bit width is 32 bits, the interrupt type is set to MSI interrupt, the input clock of the IP core is an external input differential clock of 100Mhz, and the output reference clock is a system clock of 250Mhz. The multi-channel polling scheduling module 4 is not limited to communicating with the host computer 1 through a PCIE bus, but can also be selected in the form of Ethernet and the like.
[0049] In a preferred embodiment, a PCIE cache module is provided between the multi-channel polling scheduling module 4 and the bus control module 2, the PCIE cache module comprising a first sending cache module 32 and a first receiving cache module 31, the bus control module 2 storing data in the first sending cache module 32 and sending the data to the multi-channel polling scheduling module 4, the multi-channel polling scheduling module 4 storing data from the 1553B protocol transceiver module 5 in the first receiving cache module 31 and sending the data to the host computer 1.
[0050] In the above process, the data is generated by the 1553B protocol transceiver module 5 as the second available data, when multiple channels need to upload data to the host computer 1, the multi-channel polling scheduling module 4 encapsulates multiple second available data to form encapsulated data, and sends the encapsulated data to the host computer 1; the encapsulated data comprises a frame header and third valid data, the frame header is a 64-bit data, and its format is shown in Table-1:
[0051] Table-1
[0052]
[0053] In the above process, the data is generated by the 1553B protocol transceiver module 5 as the second available data, when multiple channels need to upload data to the host computer 1, the multi-channel polling scheduling module 4 encapsulates multiple second available data to form encapsulated data, and sends the encapsulated data to the host computer 1; the encapsulated data comprises a frame header and third valid data, the frame header is a 64-bit data, and its format is shown in Table-1:
[0054] The first sending cache module 32 and the first receiving cache module 31 are both FIFO (First Input First Output) memories; the multi-channel polling scheduling module 4 first transmits the encapsulated data to the first receiving cache module 31, and when the number of data frames in the first receiving cache module 31 meets a preset value, the bus control module 2 sends an MSI interrupt reminder to the host computer 1, reminding the host computer 1 to take away the third valid data in the first receiving cache module 31. At the same time of interrupt triggering, the bus control module 2 writes interrupt information to a specified address, the interrupt information is the frame header information shown in Table-1, the host computer 1 has an interrupt service function, the interrupt service function reads the interrupt information in the specified address and analyzes the interrupt information to obtain the third valid byte number, transmission direction and other information, judges the number of data to be taken away, and clears the interrupt information after completely taking away.
[0055] In a preferred embodiment, each of the 1553B protocol transceiver modules 5 is implemented on an FPGA device.
[0056] The multi-channel 1553B controller includes a plurality of on-chip systems 7 corresponding to the channels, each of the on-chip systems 7 includes a circuit board, the circuit board is provided with an FPGA chip, and the FPGA chip is provided with the 1553B protocol transceiver module 5. The FPGA can better complete the receiving and transmitting tasks independently and in parallel between the channels, realize independent and flexible control under the premise of ensuring parallelism, and provide great convenience for the transplantation process.
[0057] In a preferred embodiment, each of the 1553B protocol transceiver modules 5 is connected with a coupler 8, and data interaction is performed with the 1553B bus 9 through the coupler 8.
[0058] Please refer to Figure 1 Each on-chip system 7 communicates with the 1553B bus 2 through the coupler 8, and realizes short circuit protection, DC isolation and impedance matching between the 1553 bus system 2 and the on-chip system 7.
[0059] In a preferred embodiment, a 1553B transceiver 6 is arranged between each of the 1553B protocol transceiver modules 5 and the coupler 8, and the 1553B transceiver 6 is used to complete data level conversion between the output pin of the FPGA device and the coupler 8.
[0060] Please refer to Figure 1 The 1553B protocol transceiver module 5 is arranged in the FPGA chip, and the voltage output by the FPGA chip is 3.3V, which is not the voltage of the 1553B bus 9. When uploading the data of the 1553B bus 9 to the host computer 1, the 1553B bus 9 sends the second data to the 1553B transceiver 6 through the coupler 8, converts the level of the second data to a level suitable for the output pin of the FPGA device through the 1553B transceiver 6, and then sends the second data to the 1553B protocol transceiver module 5; when the host computer 1 sends data to each channel, the 1553B protocol transceiver module 5 parses the first available data to form a Manchester code and sends it to the 1553B transceiver 6, converts the level to a level suitable for the coupler 8 through the 1553B transceiver 6, and then sends it to the 1553B bus 9 through the coupler 8.
[0061] In a preferred embodiment, the FPGA device is further provided with an on-chip RAM 71, and the data received by the 1553B transceiver 6 is first buffered on the on-chip RAM 71 and waits to be extracted; the data sent by the multi-channel polling scheduling module 4 is first subjected to data processing and then stored on the on-chip RAM 71.
[0062] Please refer to Figure 1 As shown in the figure, the on-chip system 7 is further provided with a second receiving buffer module and a second sending buffer module, both of which are FIFO (First Input First Output) memories, and the 1553B protocol transceiver module 5 is connected with the multi-channel polling scheduling module 4 through the second receiving buffer module and the second sending buffer module; due to the limited storage space of the FIFO memory, the on-chip system 7 is further provided with the on-chip RAM 71. When data is sent from the 1553B bus 9 to the host computer 1, each 1553B protocol transceiver module 5 stores the second data received by the 1553B transceiver 6 on each on-chip RAM 71, and then transmits it to the second receiving buffer module, the 1553B protocol transceiver module 5 extracts the second data in the second receiving buffer module, encodes and decodes it, packages it, forms the second available data, and sends it to the multi-channel polling scheduling module 4; the multi-channel polling scheduling module 4 encapsulates multiple second available data to form the encapsulated data, sends it to the first receiving buffer module 31, and the host computer 1 takes away the encapsulated data.
[0063] The state information of the second sending buffer module under each channel is aggregated into the state register of the multi-channel polling scheduling module 4, and the state register maps the state information of each second sending buffer module to the host computer 1 through a specified address. Before sending data to each channel by the host computer 1, the host computer 1 queries the state information of the second sending buffer module under the channel to be sent, judges whether the state information is "full", and if not, the host computer 1 writes the first data to the first sending buffer module 32 again. After receiving the first data, the first sending buffer module 32 sends the data to the multi-channel polling scheduling module 4, obtains the first valid data through analysis of the multi-channel polling scheduling module 4, judges whether the 1553B bus 9 is in a busy state at the current time, stores the first valid data in the on-chip RAM 71 if it is in a busy state, and sends it to the corresponding second receiving buffer module; when the 1553B bus 9 is in an idle state, the first valid data is sent to the 1553B protocol transceiver module 5, and then sent to the 1553B bus 9 after being packaged and analyzed.
[0064] Embodiment 2
[0065] Based on embodiment 1, the application provides a data transmission method of the multi-channel 1553B controller as described in embodiment 1, as shown in Figure 2 the figure, comprising the following steps:
[0066] S11, receiving the first data sent by the host computer 1;
[0067] S12, parsing the first data to obtain a first channel number, a second channel number and first valid data;
[0068] S13, sending the first valid data to the 1553B protocol transceiver module 5 corresponding to the first channel number;
[0069] S14, packaging the first valid data to obtain first available data;
[0070] S15, encoding the first available data to form a Manchester code;
[0071] S16, sending the Manchester code to the 1553B bus 9 and to the external device corresponding to the first channel number.
[0072] The application scenario of the data transmission method is that the 1553B protocol module 5 only uses the BC mode or the RT mode, and the multi-channel 1553B controller only functions as a BC or an RT. The data transmission method describes a process in which the host computer 1 sends data to a BC or at least one RT when the multi-channel 1553B controller only functions as a BC or an RT. Before the host computer 1 sends data to the external device, the host computer 1 queries the state information of the second sending buffer module corresponding to the channel to be sent. When the state information is not full, the host computer 1 writes the first data into the first sending buffer module 32. After receiving the first data, the first sending buffer module 32 sends the data to the multi-channel polling scheduling module 4. The first channel number, the second channel number, and the first valid data are obtained through analysis of the channel scheduling module 4, and the first valid data is stored in the on-chip RAM 71 corresponding to the first channel number and is sent to the second receiving buffer module. When the 1553B bus 9 is in an idle state, the first valid data is sent to the 1553B protocol transceiver module 5. The 1553B protocol transceiver module 5 adds a packet header and a packet tail to the first valid data to form first available data, encodes the first available data to form the Manchester code, sends the Manchester code to the 1553B transceiver 8, converts the Manchester code into a level suitable for the coupler 8, and sends the Manchester code to the 1553B bus 9 through the coupler 8. The data is then sent to the external device corresponding to the first channel number, and the data transmission is completed.
[0073] In a preferred embodiment, the data transmission method further comprises the following steps:
[0074] S21, receiving at least one second data sent by an external device, wherein the 1553B bus 9 is provided with at least one external device corresponding to each channel;
[0075] S22, decoding each second data to obtain second valid data;
[0076] S23, packaging each second valid data to obtain second available data;
[0077] S24, sending at least one second available data to the multi-channel polling scheduling module 4 to encapsulate the second available data to form encapsulated data;
[0078] S25, sending the encapsulated data to the host computer 1.
[0079] The data transmission method describes a data transmission method from the external device to the host computer 1 when the multi-channel 1553B controller is used as BC or RT function. The external device sends the second data to the 1553B bus 9, which is sent to the 1553B transceiver 6 corresponding to each external device through the coupler 8, and then sent to the on-chip RAM 71 after the level conversion by the 1553B transceiver 6, and then sent to the second receiving buffer module. The 1553B protocol transceiver module 5 decodes the second data to obtain the second valid data, removes the packet header and packet tail of the second valid data by packet grouping to form the second available data, and transmits the second available data to the multi-channel polling scheduling module 4. The multi-channel polling scheduling module 4 encapsulates at least one second available data to form the encapsulated data, and stores it in the first receiving buffer module 31. When the number of data in the first receiving buffer module 31 reaches the preset value, the bus control module 2 sends an interrupt information to the host computer 1, reminding the host computer 1 to take away the data in the first receiving buffer module 31, and completes the data uploading process.
[0080] In a preferred embodiment, the step of sending the Manchester code to the 1553B bus 9 further comprises the following steps:
[0081] S161, sending the Manchester code to the second transceiver module corresponding to the second channel number;
[0082] S162, analyzing the Manchester code to form third data;
[0083] S163, sending the third data to the host computer 1 through the multi-channel polling scheduling module 4.
[0084] Wherein, the process of the data transmission is the process of sending data to the second device, BC to RT. The bus control module 2 receives the first data sent by the host computer 1, and sends the first data to the multi-channel polling scheduling module 4 through the first sending buffer module 32, obtains the first channel number corresponding to the first transceiver module and the second channel number of the second transceiver module to be received data and the first valid data through the multi-channel polling scheduling module 4, sends the first valid data to the first transceiver module, forms Manchester coding through packaging and coding, and sends to the 1553B transceiver 6 for level conversion, and then sends to the 1553B bus 9 through the coupler 8, and then sends to the external device. The above completes steps S11-S16, but the data transmission method sends Manchester coding to the external device through the 1553B bus 9 at the same time, and also sends to the second transceiver module through the coupler 8 and the 1553B transceiver 6, completes the transmission of BC mode to RT mode data, at the same time, the second transceiver module also sends data back to the host computer 1 for data verification, realizes loopback test.
[0085] When sending data from the second device to the first device (RT to BC), the following steps are included:
[0086] The first transceiver module sends a first instruction to the second transceiver module through the 1553B bus 9;
[0087] The second transceiver module sends fourth data to the first device and the first transceiver module through the 1553B bus 9 in response to the first instruction;
[0088] The fourth data is parsed and packaged to obtain fifth data;
[0089] The fifth data is uploaded to the host computer 1 through the multi-channel polling scheduling module 4.
[0090] Wherein, since RT is commanded by BC, even if RT sends data to BC, it also sends instructions to BC after receiving the first instruction. Data is sent to the first device through the 1553B bus 9 at the same time, and data is also uploaded to the host computer 1, completing loopback test.
[0091] The above description is only the preferred embodiment of the present application and the explanation of the technical principles. It should be understood by those skilled in the art that the scope of the protection of the present application is not limited to the technical solutions formed by the specific combinations of the above technical features. It should also cover other technical solutions formed by the combinations of the above technical features or their equivalent features without departing from the concept of the present application. For example, the technical solutions formed by the mutual replacements of the above features and the technical features disclosed in the present application (but not limited to) with similar functions.
Claims
1. A multi-channel 1553B controller, characterized by, The application relates to a multi-channel 1553B bus test system, which comprises the following parts: a plurality of channels, each of which is provided with a 1553B protocol transceiver module (5), any of the 1553B protocol transceiver modules (5) can be configured as a BC mode and is set as a first transceiver module; at least one of the 1553B protocol transceiver modules (5) can be configured as an RT mode and is set as a second transceiver module; all the 1553B protocol transceiver modules (5) are connected through a 1553B bus (9), and the 1553B bus (9) is connected with external equipment corresponding to the first transceiver module or the second transceiver module at a side far away from the 1553B protocol transceiver modules (5); a multi-channel polling scheduling module (4) which is connected with all the 1553B protocol transceiver modules (5) at a side far away from the 1553B bus (9); the multi-channel polling scheduling module (4) is connected with an upper computer (1) at a side far away from the 1553B protocol transceiver modules (5); the multi-channel polling scheduling module (4) is configured to parse data from the upper computer (1) or to encapsulate data from the plurality of channels to form encapsulated data and send the encapsulated data to the upper computer (1); the first transceiver module or the second transceiver module can exchange data through the 1553B bus (9), and when the first transceiver module or the second transceiver module receives data, the data is returned to the upper computer (1) through the multi-channel polling scheduling module (4) for data verification, and the reliability of the data is verified through loopback test without the aid of other external equipment.
2. The multi-lane 1553B controller of claim 1, wherein, the multi-channel polling scheduling module (4) is connected with a bus control module (2) at a side far away from the 1553B protocol transceiver modules (5), and the bus control module (2) is connected with the upper computer (1) through a PCIE bus at a side far away from the multi-channel polling scheduling module (4).
3. The multi-lane 1553B controller of claim 2, wherein, a PCIE cache module is arranged between the multi-channel polling scheduling module (4) and the bus control module (2), the PCIE cache module comprises a first sending cache module (32) and a first receiving cache module (31), the bus control module (2) stores data in the first sending cache module (32) and then sends the data to the multi-channel polling scheduling module (4), and the multi-channel polling scheduling module (4) stores data from the 1553B protocol transceiver modules (5) in the first receiving cache module (31) and then sends the data to the upper computer (1).
4. The multi-lane 1553B controller of claim 1, wherein, each of the 1553B protocol transceiver modules (5) is realized on an FPGA device.
5. The multi-lane 1553B controller of claim 4, wherein, each of the 1553B protocol transceiver modules (5) is connected with a coupler (8) and exchanges data with the 1553B bus (9) through the coupler (8).
6. The multi-lane 1553B controller of claim 5, wherein, a 1553B transceiver (6) is arranged between each of the 1553B protocol transceiver modules (5) and the coupler (8), and the 1553B transceiver (6) is used for completing data level conversion between output pins of the FPGA device and the coupler (8).
7. The multi-lane 1553B controller of claim 6, wherein, The FPGA device is also provided with an on-chip RAM (71), and the data received from the 1553B transceiver (6) is buffered on the on-chip RAM (71) and waits to be extracted; the data issued by the multi-channel polling scheduling module (4) is stored on the on-chip RAM (71) after data processing.
8. A method of data transmission for a multi-channel 1553B controller according to any one of claims 1-7, characterized in that, The method comprises the following steps: Receiving the first data sent by the host computer (1); Parses the first data to obtain the first channel number, the second channel number and the first valid data; Send the first valid data to the 1553B protocol transceiver module (5) corresponding to the first channel number; Pack the first valid data to obtain the first available data; Encode the Manchester code to form the Manchester code; Send the Manchester code to the 1553B bus (9) and send it to the external device corresponding to the first channel number.
9. The data transmission method of claim 8, wherein, Also comprising the following steps: Receiving at least one second data sent by the external device, wherein the 1553B bus (9) is provided with at least one external device corresponding to each channel; Decoding each second data to obtain second valid data; Pack each second valid data to obtain second available data; Send at least one second available data to the multi-channel polling scheduling module (4) to form encapsulated data; send the encapsulated data to the host computer (1).
10. The data transmission method of claim 8, wherein, The Manchester code is sent to the 1553B bus, and the following steps are further included: Send the Manchester code to the second transceiver module corresponding to the second channel number; Parse the Manchester code to form third data; Through the multi-channel polling scheduling module (4), send the third data to the host computer (1).
Citation Information
Patent Citations
1553B bus monitor and bus system with same
CN101799795A
1553B dual-channel control system and control method thereof
CN115826446A