A kind of device and method by 1553B bus management ethernet terminal
Technical field
The invention belongs to spatial network technical fields more particularly to a kind of by 1553B bus management ethernet terminal
Device and method.
Background technique
With the continuous development of space application, ethernet technology is gradually applied to space environment, simultaneously because with
Too net is not particularly reliable Some features, and the transmission of the significant datas such as remote measuring and controlling is still using MIL-STD-1553B
Bus protocol, it is therefore desirable to design can communicate with ethernet terminal but also with the device that 1553B bus control unit is communicated,
Simultaneously in order to meet space application demand, the design that can satisfy space reliability requirement is carried out.
Summary of the invention
It is of the invention in view of the above-mentioned problems of the prior art, providing a kind of whole by 1553B bus management Ethernet
Device of the device space at end by 1553B bus management ethernet terminal, may be implemented 1553B bus control unit to ether
The management of network termination, high reliablity.
In order to solve the above technical problems, the present invention is achieved through the following technical solutions: one kind passing through 1553B bus management
The device of ethernet terminal, one end connect ethernet terminal, and the other end connects 1553B bus control unit, total for receiving 1553B
The telecommand of lane controller is forwarded to corresponding ethernet terminal,
The device includes at least two mutually redundant 1553B bus interface, first processor, second processor and at least
Two mutually redundant Ethernet interfaces,
The 1553B bus control unit sends telecommand to the first processor by the 1553B bus interface;
The first processor has MIL-STD-1553B protocol processes function, belongs to and may be directly applied to space environment
Highly reliable processor, received from 1553B bus network and carry out MIL-STD-1553B agreement solution after the telecommand
Analysis, and framing again is carried out to the telecommand after parsing according to the mapping relations of physical address and telecommand, then it will weigh
Telecommand after new framing is sent to the second processor;
The second processor has ethernet physical layer, link layer, network layer protocol processing capacity, can handle up to
The network data rate of 1Gbps, process performance is good, but can be not applied directly to space environment and need in highly reliable processing,
It after it receives the telecommand from the first processor, is parsed, according to the content search telecommand after parsing
With the IP address of ethernet terminal or the mapping table of physical address, and determine ethernet terminal, then will be distant after parsing
Control instruction add again be sent to by the Ethernet interface after physical address, IP address, port numbers and synchronous head it is corresponding
Ethernet terminal.
The Ethernet interface using crossing redundancy design, when a certain Ethernet interface can not normal communication when, cut automatically
Other normal Ethernet interfaces are shifted to, switching time is no more than 100ms.
The second processor between udp protocol and ethernet terminal by being communicated, when the second processor is given
After ethernet terminal sends data, if ethernet terminal is unresponsive in 200ms, the second processor gives Ethernet again
Terminal transmission data.
The number that the second processor transmits data again is no more than 4 times.
The 1553B bus interface is designed using crossing redundancy, when a certain 1553B bus interface failure, is voluntarily switched
To other normal 1553B bus interface.
The device is also used to receive the telemetry of ethernet terminal, and uses MIL-STD- at set time intervals
1553B bus protocol is transmitted to 1553B bus control unit.In order to allow terminal that can distinguish the telemetering meaning of each numerical value representative,
Therefore it needs to carry out framing again according to the data frame format of the negotiation with terminal;Since space Ethernet is high speed network,
1553B bus network belongs to slow network, and the processor performance for handling 1553B bus is lower, in order to match two kinds of networks
The rate of communication, the mode that devising adjustment transmission data frame period can set carry out the rate-matched of two kinds of heterogeneous networks.
The IP address or physical address of telecommand and ethernet terminal that 1553B bus control unit issues have one-to-one
Or one-to-many mapping relations, the telemetry of ethernet terminal and the IP address of ethernet terminal or physical address also have one
To one or one-to-many mapping relations, all mapping relations can be in such a way that 1553B bus control unit injects data
It is modified.
Routing forwarding can be carried out by the present apparatus by the data of 1553B bus transfer to the present apparatus to set to ethernet terminal
It is standby, realize ethernet terminal and 1553B bus apparatus direct communication, the agreement that the data of forwarding need to define according to the present apparatus into
Row framing.
The present invention also provides a kind of methods by 1553B bus management ethernet terminal, are realized by above-mentioned apparatus, the party
Method the following steps are included:
S1,1553B bus control unit generate telecommand, and carry out MIL-STD-1553B agreement framing, judge a certain
Whether 1553B bus interface is working properly, if it is, telecommand is sent at first by the 1553B bus interface
Otherwise telecommand is sent to first processor by other normal 1553B bus interface by reason device;
S2, the first processor carry out MIL-STD-1553B protocol analysis to the telecommand received, if parsing
Normally, then customized frame is organized to the telecommand after parsing according to physical address and the mapping relations of instruction again, then
The telecommand after customized frame will be organized again, second processor is sent to by LVDS high-speed parallel port, otherwise, return to S1;
After S3, the second processor receive the data from the first processor, customized frame parsing, root are carried out
According to the IP address of content search telecommand and ethernet terminal after parsing or the mapping table of physical address, ether is found
Network termination passes through after the data after the parsing of customized frame are then added physical address, IP address, port numbers and synchronous head again
Ethernet interface is sent to ethernet terminal;
S4, judge whether ethernet terminal has response in 200ms, if it is, otherwise the process of end continues to judge
Whether the number of transmissions again of second processor is less than 4 times, if it is, the second processor transmits data to ether again
Otherwise network termination terminates process.
The step S3 further include: whether a certain Ethernet interface of the second processor diagnosis is working properly, if so,
Ethernet terminal is then sent data to by the Ethernet interface, otherwise, automatically switch to other normal Ethernet interfaces into
The transmission of row data.
Compared with prior art, the invention has the following advantages that
(1) present apparatus uses at least two Ethernet interfaces and at least two 1553B bus interface, and when failure can cut automatically
It changes, improves the reliability of equipment.
(2) multiple acknowledgement mechanism is used, ethernet terminal this transmission of unresponsive then task in 200ms fails, and second
Processor opens retransmission mechanism, prevents instruction from losing, and number of retransmissions is no more than 4 times, prevents undying response.
(3) present apparatus uses two processors, is each responsible for the processing of different data, reduces the negative of each processor
Load, improves the efficiency of data processing.
(4) present apparatus meets the communicating requirement of space Ethernet Yu 1553B bus network, realizes 1553B bus control unit
To the control function of ethernet terminal, improve data transfer efficiency.
Detailed description of the invention
Fig. 1 is the structural block diagram of the present apparatus;
Fig. 2 is the flow chart of the application method;
Fig. 3 is customized frame structure of the invention.
Specific embodiment
It elaborates below to the embodiment of the present invention, the present embodiment carries out under the premise of the technical scheme of the present invention
Implement, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to following implementation
Example.
As shown in Figure 1, a kind of device by 1553B bus management ethernet terminal provided in an embodiment of the present invention, one
End connection ethernet terminal, the other end connects 1553B bus control unit, for receiving the telecommand of 1553B bus control unit
It is forwarded to corresponding ethernet terminal or the telemetry for receiving ethernet terminal, and is transmitted to 1553B bus marco
Device, the device include at least two mutually redundant 1553B bus interface, first processor, second processor and at least two
Mutually redundant Ethernet interface,
When the telecommand that the present apparatus is used to receive 1553B bus control unit is forwarded to corresponding ethernet terminal,
1553B bus control unit carries out telecommand to be sent to the by 1553B bus interface after MIL-STD-1553B agreement framing
One processor;First processor receives and carries out MIL-STD-1553B protocol analysis after telecommand, and according to physical address with
The mapping relations of telecommand are organized customized frame to the telecommand after parsing again, then by the remote control after framing again
Instruction is sent to second processor;After second processor receives the telecommand from first processor, customized frame is carried out
Parsing, according to the IP address of content search telecommand and ethernet terminal after parsing or the mapping relations of physical address
Then telecommand after parsing is added physical address, IP address, port numbers and same by table, and determine ethernet terminal again
It walks and corresponding ethernet terminal is sent to by Ethernet interface after first-class information.The present apparatus uses two processors, bears respectively
The processing for blaming different data, reduces the burden of each processor, improves the efficiency of data processing.
When reverse data transmission, the telemetry intelligence (TELINT) of each ethernet terminal received is carried out framing again by the present apparatus,
And 1553B bus control unit is sent to using MIL-STD-1553B bus protocol according to certain time interval.In order to allow terminal
It can distinguish the telemetering meaning that each numerical value represents, it is therefore desirable to carry out group again according to the data frame format of the negotiation with terminal
Frame;Since space Ethernet is high speed network, 1553B bus network belongs to slow network, and handles the processing of 1553B bus
Device performance is lower, in order to match the rate of two kinds of network communications, devise adjustment send the mode that can set of data frame period into
The rate-matched of two kinds of heterogeneous networks of row.
The case where individual interface once breaks down problem in order to prevent, and the present apparatus is caused not to be available, the present invention to
Too network interface is designed using crossing redundancy, when a certain Ethernet interface can not normal communication when, it is normal to automatically switch to other
Ethernet interface, switching time are no more than 100ms.Switching time is short, in a certain interface fault, does not influence completely normally logical
Letter.Same reason, to 1553B bus interface also using same design.
Further, second processor between udp protocol and ethernet terminal by being communicated, when second processor is given
After ethernet terminal sends data, if ethernet terminal is unresponsive in 200ms, second processor gives ethernet terminal again
Data are transmitted, to prevent the loss of data.
The response being without end in order to prevent, the number that second processor transmits data again are no more than 4 times.
The IP address or physical address of telecommand and ethernet terminal that 1553B bus control unit issues have one-to-one
Or one-to-many mapping relations, the telemetry of ethernet terminal and the IP address of ethernet terminal or physical address also have one
To one or one-to-many mapping relations, all mapping relations can be in such a way that 1553B bus control unit injects data
It is modified, flexibility ratio is high, and versatility is good.
The data that 1553B bus transfer is come directly carry out routing forwarding to ethernet end device, realize ethernet terminal
With 1553B bus apparatus direct communication, the agreement that the data of forwarding need to define according to the present apparatus carries out framing.
As shown in Fig. 2, the embodiment of the present invention also provides a kind of method by 1553B bus management ethernet terminal, by
Device realization shown in FIG. 1, method includes the following steps:
S1,1553B bus control unit generate telecommand, and carry out MIL-STD-1553B agreement framing, judge a certain
Whether 1553B bus interface is working properly, if it is, telecommand is sent at first by the 1553B bus interface
Otherwise telecommand is sent to first processor by other normal 1553B bus interface by reason device;
S2, first processor carry out MIL-STD-1553B protocol analysis to the telecommand received, if parsing is just
Often, then customized frame is organized to the telecommand after parsing according to physical address and the mapping relations of instruction again, then will
Again the telecommand after organizing customized frame is sent to second processor by LVDS high-speed parallel port, otherwise, returns to S1;
After S3, second processor receive the data from first processor, customized frame parsing is carried out, after parsing
Content search telecommand and ethernet terminal IP address or physical address mapping table, find ethernet terminal,
Then pass through Ethernet after the data after the parsing of customized frame being added physical address, IP address, port numbers and synchronous head again
Interface is sent to ethernet terminal;
Step S3 further include: whether second processor diagnoses a certain Ethernet interface working properly, if it is, by should
Ethernet interface sends data to ethernet terminal, otherwise, automatically switches to other normal Ethernet interfaces and carries out data biography
It is defeated.
S3, judge whether ethernet terminal has response in 200ms, if it is, otherwise the process of end continues to judge
Whether the number of transmissions again of second processor is less than 4 times, if it is, second processor transmits data to Ethernet end again
Otherwise end terminates process.
Similarly, present apparatus realization can be anti-from the above to the transmission of the data of 1553B bus control unit from ethernet terminal
It pushes away, details are not described herein.Fig. 3 show the frame structure in data communication process of the present invention.Be also first processor of the present invention with
The customized frame structure of second processor can effectively ensure that the reliable of data for the intermediate conveyor agreement of heterogeneous network communication
Property, specific frame structure is as follows: synchronous header field (4B) starts for monitoring data frame, and length field (1B) is used to indicate notebook data frame
Effective length, frame type field (1B) are used to indicate content type, including remote control, telemetering, general data of notebook data frame etc., purpose
Device Domain (4B) is used to indicate this frame data is whose is transferred to, and can fill in into target ip address, can also fill out here
Write the content similar to IP address.Load data domain is used to store the valid data of transmission.Verification and domain (2B) are used for this newspaper
Data are verified, it is ensured that data correctness.
In conclusion the device provided in an embodiment of the present invention by 1553B bus management ethernet terminal, meets sky
Between Ethernet and 1553B bus network communicating requirement, realize 1553B bus control unit to the control function of ethernet terminal, mention
High data transmission efficiency.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can store in a kind of computer readable storage medium, on
Stating the storage medium mentioned can be read-only memory, disk or CD etc..
Although the present invention has been disclosed as a preferred embodiment, however, it is not to limit the invention, any affiliated technology
Has usually intellectual in field, without departing from the spirit and scope of the present invention, when that can be used for a variety of modifications and variations, therefore
The scope of protection of the present invention is defined by those of the claims.