CN110233824A - A kind of system simulation method - Google Patents
A kind of system simulation method Download PDFInfo
- Publication number
- CN110233824A CN110233824A CN201910374635.0A CN201910374635A CN110233824A CN 110233824 A CN110233824 A CN 110233824A CN 201910374635 A CN201910374635 A CN 201910374635A CN 110233824 A CN110233824 A CN 110233824A
- Authority
- CN
- China
- Prior art keywords
- data
- simulation
- controlled device
- afdx
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Evolutionary Computation (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Networks & Wireless Communication (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a kind of system simulation method, and the method is applied in data transmission terminal, which comprises data transmission terminal is in server-side upper application layer, by loading configuration function, AFDX PORT COM allocation list is generated, then creates sample port, completes the creation of AFDX PORT COM;Using interface for network programming Socket socket, server-side udp port is established;The data of long-range controlled device are received by AFDX PORT COM;The long-range controlled device data are sent to Simulation Control end by the server-side udp port.
Description
Technical field
The invention belongs to airborne teledata acquisition and transmission technique fields, are related to a kind of system simulation method.
Background technique
AFDX is waited in Air Passenger A380 and 400M, Boeing 787 and is succeeded on aircrafts as one of Avionics data bus technology
Using, be internationally recognized aircraft first choice communication network of new generation, be widely used at present novel airborne remote data acquisition with
The research of Transmission system.
It is very must that being equipped in avionics system, which has the remote data concentrator of remote data acquisition and transmission technology,
It wants.Multiplex roles, high-speed, mobile remote data concentrator will certainly bring a large amount of remote data transmissions, background service
Device usually needs the teledata being collected into these dynamically to be quantized, graphical simulation is analyzed.In Practical Project, lead to
The analog simulation of controlled device in control subsystem is often realized by the static mode of pure software, but this emulation mode is real-time
Property it is poor, being connected with practical control subsystem, i.e., without in real time, counted automatically by practical interactive interface
According to transmission, this has a certain distance, the larger difference that simulation analysis result is also deposited with running process.
Summary of the invention
The purpose of the present invention is to propose to a kind of system simulation platform based on AFDX network and MATLAB, according to teledata
Concentrator interface function builds AFDX network and MATLAB simulation communication platform, realizes long-range controlled device and background server
Between data exchange, dynamic simulation and analysis.
In a first aspect, the application provides a kind of system simulation method, the method is applied in data transmission terminal, the method
Include:
Data transmission terminal, by loading configuration function, generates the configuration of AFDX PORT COM in server-side upper application layer
Table, then sample port is created, complete the creation of AFDX PORT COM;
Using interface for network programming Socket socket, server-side udp port is established;
The data of long-range controlled device are received by AFDX PORT COM;
The long-range controlled device data are sent to Simulation Control end by the server-side udp port.
Optionally, described to utilize interface for network programming Socket socket, server-side udp port is established, is specifically included:
Data transmission terminal first carries out Socket initialization in upper application layer;
Web socket is established, Socket and upper PC machine IP, udp port are carried out bindings, while also constructed
Driver.
Optionally, described that the long-range controlled device data are sent to by Simulation Control by the server-side udp port
End, specifically includes:
When uplink needs to communicate, the server-side udp port receives the long-range controlled of AFDX PORT COM acquisition
Object data, and it is sent to Simulation Control end.
Optionally, the method also includes: the data transmission terminal utilizes server-side when downlink needs to communicate
Udp port receives the data that the Simulation Control end is sent, then is sent to long-range controlled device by the AFDX PORT COM.
Optionally, data transmission terminal includes AFDX PORT COM and server-side udp port.
Second aspect, the application provide a kind of system simulation method, and the method is applied in Simulation Control end, the method
Include:
Simulation Control end creates one and the consistent client UDP of server-side udp port in AFDX communication using MATLAB
Transmission/reception module;
Client UDP transmission/reception module receives the long-range controlled device data that data transmission terminal is sent;
Modeling and simulation analysis is carried out to the long-range controlled device data, and obtains simulation result.
Optionally, described that modeling and simulation analysis is carried out to the long-range controlled device data, it specifically includes:
Classify to long-range controlled device data, according to its type difference, selects corresponding SIMULINK dynamic link
Block diagram in library models interface;
Establish graphic user interface and corresponding visual simulating model, carry out the numerical operations of data, parsing, extraction and
Graphic plotting, completes the modeling and simulation analysis of data, and obtains simulation result.
Optionally, the method also includes:
Simulation Control end is according to simulation result, and using client UDP transmission/reception module, Xiang Yuancheng controlled device is sent
Control instruction, to control the operation of long-range controlled device.
Optionally, the Simulation Control end is consistent with server-side udp port in AFDX communication using MATLAB creation one
Client UDP transmission/reception module construct simulation study and system control while according to long-range controlled device data type
Platform specifically includes:
The Simulation Control end utilizes the SIMULINK dynamic link library under MATLAB the integration environment, creates one and AFDX
The consistent client UDP transmission/reception module of server-side udp port in communication, while according to long-range controlled device data type,
Construct simulation study and system control panel.
In conclusion what the invention proposes a kind of based on AFDX network and MATLAB is Design of Simulation Platform framework, with
Based on UDP communication protocol, by AFDX technology and MATLAB emulation interface platform, it is (long-range to realize remote data concentrator
Controlled device) it is dynamically interacted in real time with data between background server, processing and graphical simulation platform, thus effectively
Researching and analysing for remote collection data is completed, provides timely and effectively digitization support for front and back strategic decision.The present invention
The system simulation platform based on AFDX network and MATLAB proposed has the advantages that emulation link complexity is low, reliable
It is high;Emulation platform real time implementation, automation and continuity;Simulation model has open sexual function, constantly can improve and expand,
Convenient for the continuity of research work.
Detailed description of the invention:
Fig. 1 is the downstream driver control platform provided in an embodiment of the present invention based on AFDX network and MATLAB;
Fig. 2 is the upstream data analysis platform provided in an embodiment of the present invention based on AFDX network and MATLAB.
Specific embodiment
Embodiment one
The purpose of the present invention is to propose to a kind of system simulation platform based on AFDX network and MATLAB, according to teledata
Concentrator interface function builds AFDX network and MATLAB emulation communication platform, realizes long-range controlled device and background server
Data exchange, dynamic simulation and analysis between (upper PC machine).
Technical solution of the present invention:
1, AFDX communication system is constructed:
AFDX communication system is the interface unit between AFDX network and avionics system, has the function for sending and receiving data
Can, can carry out virtual link (VL) isolation, transmitting terminal traffic shaping, receiving end redundant data management, receiving end VL label identify,
The operation such as integrity detection.AFDX network end system is attached by AFDX interchanger, is provided at a high speed, reliably for each host
Data communication.
End system is very important a part in AFDX communication, it plays bridge between aviation subsystem and exchange network
Beam action.It is responsible for the data flow for needing to send by aviation subsystem and carries out shaping, then dispatches and calculate according to certain end system
The complete data frame of shaping is sent to purpose terminal through corresponding VL by method, and there are one important functions for it: Redundancy Management, its work
With the reliability for being guarantee transmission.AFDX end system is from top to bottom by application layer, transport layer, network layer and MAC layer
Composition.
According to ARINC653 aviation electronics application software standard interface in the present invention, AFDX end system selects sample port.
After upper PC machine installation AFDX end system board, VC++ and MATLAB/SIMULINK environment.In VC++ exploitation environment, design
Server-side upper level applications are developed, load configuration, creation port and port transmission/reception are led to, realize upper PC machine and long-range
AFDX communication link between controlled device.
2, it sets up AFDX and communicates upper layer application server-side udp port
In server-side upper level applications, socket () is called to establish web socket, and by Socket and server-side
IP and udp port are bound, and server-side UDP send/receive operation is completed, and set up AFDX network and MATLAB/SIMULINK
Server-side udp port between emulation platform.
3, MATLAB platform client udp port is established
In MATLAB/SIMULINK exploitation environment, client UDP transmission/reception module, address, port are created
Being arranged will be arranged unanimously with the IP address of server-side udp port, port, this is just that client UDP transmission/reception module specifies
The address to be communicated completes the relevant configuration of client UDP transmission/reception module, also just establish AFDX network with
Client UDP ports between MATLAB/SIMULINK emulation platform.
3, emulation platform operation and extension are realized
The type of user's long-range controlled device data according to received by client UDP ports, in MATLAB/SIMULINK
The middle corresponding visualization mathematical model of foundation carries out dynamic simulation analysis research in real time to data are received, while can also pass through
Emulation platform proposed by the present invention carries out instruction control to long-range controlled device, so that long-range controlled device is according to scheduled program
Operation, realize the acquisition of entire airborne teledata and Transmission system downstream driver control platform intelligentized control method and upstream data
The real-time continuous automation dynamic simulation of analysis platform.
It, can according to different model, different application systems and ground checkout equipment etc. to the technical need of AFDX network communication
Neatly emulation platform proposed by the present invention is expanded or cut, in order to the continuity of research work.
The present invention has the advantage that effect:
System simulation platform proposed by the present invention based on AFDX network and MATLAB, has the advantages that
Emulation link complexity is low, reliable height;
Emulation platform real time implementation, automation and continuity;
Simulation model has open sexual function, constantly can improve and expand, convenient for the continuity of research work.
Embodiment two
Specific implementation method of the invention is as follows:
1, raw by loading configuration function initCfg () in server-side upper layer application journey in VC++ exploitation environment
At AFDX PORT COM allocation list, afdxCreateSPortPC () creation sample port is recalled, input parameter is port numbers,
Output parameter is port-mark, completes the creation of AFDX PORT COM;
2, the interface for network programming Socket socket provided using Windows, establishes server-side udp port.It is specific
Application method is: in upper level applications, first carrying out Socket initialization, calls socket () to establish after initializing successfully
Web socket then calls bind () that Socket and server ip, udp port are carried out bindings, while also to be constructed
Driver establishes the connection of both sides with this;When wanting uplink to need to communicate, server-side udp port receives AFDX communication
The long-range controlled device data that port obtains, and it is sent to Simulation Control end.Conversely, when downlink needs to communicate, emulation
After control terminal has sent dependent instruction, server-side udp port receives the dependent instruction that Simulation Control end is sent, then logical by AFDX
News port is sent to long-range controlled device.This completes the network communications between long-range controlled device and Simulation Control end;
3, in Simulation Control end client SIMULINK exploitation environment, creation one is with ethernet ip in AFDX communication
Consistent client UDP transmission/reception module is arranged (although can create one using related command in MATLAB in location, port
UDP communication module carries out the reception and display of data, but compared with UDP communication module in SIMULINK, implements more numerous
Lock, therefore selection is realized with the latter in the design);
4, in upstream data analysis platform, to the long-range controlled device number received in client UDP transmission/reception module
According to classifying, according to its type difference, all kinds of block diagrams selected in SIMULINK dynamic link library model interface, establish figure
Shape user interface and corresponding visual simulating model carry out numerical operation, parsing, extraction and the graphic plotting of data, complete
The modeling and simulation of data is analyzed;Simulation Control end client UDP is utilized according to simulation result in downstream driver control platform
Transmission/reception module sends relevant control instruction to long-range controlled device, controls the operation of long-range controlled device, makes long-range
Controlled device is run according to the preset program in Simulation Control end, is realized to the acquisition of entire airborne teledata and Transmission system
Progress automatically and continuously runs emulation and research.
Claims (9)
1. a kind of system simulation method, which is characterized in that the method is applied in data transmission terminal, which comprises
Data transmission terminal, by load configuration function, generates AFDX PORT COM allocation list in server-side upper application layer, then
Sample port is created, the creation of AFDX PORT COM is completed;
Using interface for network programming Socket socket, server-side udp port is established;
The data of long-range controlled device are received by AFDX PORT COM;
The long-range controlled device data are sent to Simulation Control end by the server-side udp port.
2. being built the method according to claim 1, wherein described utilize interface for network programming Socket socket
Vertical server-side udp port, specifically includes:
Data transmission terminal first carries out Socket initialization in upper application layer;
Web socket is established, Socket and upper PC machine IP, udp port are carried out bindings, while also to construct driving
Program.
3. the method according to claim 1, wherein it is described by the server-side udp port by the data
It is sent to Simulation Control end, is specifically included:
When uplink needs to communicate, the server-side udp port receives the long-range controlled device that AFDX PORT COM obtains
Data, and it is sent to Simulation Control end.
4. the method according to claim 1, wherein the method also includes: the data transmission terminal is instantly
When line link needs to communicate, the data that the Simulation Control end is sent are received using server-side udp port, then pass through the AFDX
PORT COM is sent to long-range controlled device.
5. the method according to claim 1, wherein the data transmission terminal includes AFDX PORT COM and service
Hold udp port.
6. a kind of system simulation method, which is characterized in that the method is applied at Simulation Control end, which comprises
Simulation Control end using MATLAB create one with the consistent client UDP of server-side udp port in AFDX communication send/
Receiving module;
Client UDP transmission/reception module receives the long-range controlled device data that data transmission terminal is sent;
Modeling and simulation analysis is carried out to the long-range controlled device data, and obtains simulation result.
7. according to the method described in claim 6, it is characterized in that, it is described to the long-range controlled device data carry out modeling and
Simulation analysis specifically includes:
Classify to long-range controlled device data, according to its type difference, selects in corresponding SIMULINK dynamic link library
Block diagram model interface;
Graphic user interface and corresponding visual simulating model are established, numerical operation, parsing, extraction and the figure of data are carried out
It draws, completes the modeling and simulation analysis of data, and obtain simulation result.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
Simulation Control end is according to simulation result, and using client UDP transmission/reception module, Xiang Yuancheng controlled device sends control
Instruction, to control the operation of long-range controlled device.
9. according to the method described in claim 6, it is characterized in that, the Simulation Control end using MATLAB create one with
The consistent client UDP transmission/reception module of server-side udp port in AFDX communication, while according to long-range controlled device data
Type constructs simulation study and system control panel, specifically includes:
The Simulation Control end utilizes the SIMULINK dynamic link library under MATLAB the integration environment, and creation one communicates with AFDX
The middle consistent client UDP transmission/reception module of server-side udp port, while according to long-range controlled device data, building emulation
Research and system control panel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910374635.0A CN110233824A (en) | 2019-05-09 | 2019-05-09 | A kind of system simulation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910374635.0A CN110233824A (en) | 2019-05-09 | 2019-05-09 | A kind of system simulation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110233824A true CN110233824A (en) | 2019-09-13 |
Family
ID=67861101
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910374635.0A Pending CN110233824A (en) | 2019-05-09 | 2019-05-09 | A kind of system simulation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110233824A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212061A (en) * | 2019-12-31 | 2020-05-29 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | AFDX (avionics full Duplex switched Ethernet) -based socket implementation method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102209000A (en) * | 2011-07-05 | 2011-10-05 | 北京航空航天大学 | Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions |
CN103139061A (en) * | 2011-11-23 | 2013-06-05 | 中国航空工业集团公司第六三一研究所 | Method for aviation dedicated full-duplex exchange type Ethernet terminal system |
CN104580148A (en) * | 2014-12-01 | 2015-04-29 | 国家电网公司 | Method for simple data interaction between electric power region I and electric power III by using reserve 1bit data of forward direction isolating device |
CN104615010A (en) * | 2014-12-26 | 2015-05-13 | 成都飞机工业(集团)有限责任公司 | FlightGear and VC hybrid system developing method based on network communication |
CN106161117A (en) * | 2016-09-29 | 2016-11-23 | 北京润科通用技术有限公司 | The analogue system of a kind of AFDX network and emulation mode |
CN107947987A (en) * | 2017-11-27 | 2018-04-20 | 中国航空无线电电子研究所 | A kind of emulation mode using ICP/IP protocol simulation FC AE ASM agreements |
CN109598040A (en) * | 2018-11-22 | 2019-04-09 | 浙江工业大学 | The associative simulation interface method that NS3 and MATLAB based on Transmission Control Protocol are integrated |
-
2019
- 2019-05-09 CN CN201910374635.0A patent/CN110233824A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102209000A (en) * | 2011-07-05 | 2011-10-05 | 北京航空航天大学 | Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions |
CN103139061A (en) * | 2011-11-23 | 2013-06-05 | 中国航空工业集团公司第六三一研究所 | Method for aviation dedicated full-duplex exchange type Ethernet terminal system |
CN104580148A (en) * | 2014-12-01 | 2015-04-29 | 国家电网公司 | Method for simple data interaction between electric power region I and electric power III by using reserve 1bit data of forward direction isolating device |
CN104615010A (en) * | 2014-12-26 | 2015-05-13 | 成都飞机工业(集团)有限责任公司 | FlightGear and VC hybrid system developing method based on network communication |
CN106161117A (en) * | 2016-09-29 | 2016-11-23 | 北京润科通用技术有限公司 | The analogue system of a kind of AFDX network and emulation mode |
CN107947987A (en) * | 2017-11-27 | 2018-04-20 | 中国航空无线电电子研究所 | A kind of emulation mode using ICP/IP protocol simulation FC AE ASM agreements |
CN109598040A (en) * | 2018-11-22 | 2019-04-09 | 浙江工业大学 | The associative simulation interface method that NS3 and MATLAB based on Transmission Control Protocol are integrated |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212061A (en) * | 2019-12-31 | 2020-05-29 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | AFDX (avionics full Duplex switched Ethernet) -based socket implementation method |
CN111212061B (en) * | 2019-12-31 | 2021-11-23 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | AFDX (avionics full Duplex switched Ethernet) -based socket implementation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105549497B (en) | Support more rotor unmanned aircraft control systems of PC controls | |
CN206115770U (en) | Aircraft flight analogue test device | |
CN103116287A (en) | Avionics equipment running environment dynamic simulating device and method | |
CN106294155B (en) | A kind of distribution I/O Simulation Controls test method, system and simulation computer | |
CN101894192A (en) | Simulation and Demonstration System and Simulation and Demonstration Method for AFDX Network Design and Verification | |
CN105487409B (en) | Unmanned plane spatial domain integrated flight security management and control demonstration and verification platform | |
CN101645813A (en) | Distributed semi-physical network simulation system and controlling method of semi-physical port thereof | |
CN206541135U (en) | A kind of unmanned plane Real-time Flight Simulation System | |
CN112937914B (en) | Ground simulation instruction processing method for aircraft complete machine test | |
CN109657379B (en) | Simulation verification platform for airplane model | |
CN113467275A (en) | Unmanned aerial vehicle cluster flight simulation system based on real object airborne equipment | |
CN108919831A (en) | A method of can be realized in a browser simulation unmanned plane during flying scene in real time | |
CN105824726A (en) | Remote automatic test system and method of mobile terminals | |
CN102708232A (en) | Processing method and device for distributed simulation data | |
CN107846304A (en) | A kind of automation engine of mixing cloud service architecture centralized management | |
CN102223308A (en) | Network area traffic compressing and distributing system based on virtual link exchange | |
CN106991001A (en) | Radionavigation recognizes simulation system | |
CN110233824A (en) | A kind of system simulation method | |
CN104977884A (en) | Simulation testboard for network control system of multiple unit train | |
CN116224835A (en) | A design method of UAV information attack hardware-in-the-loop test architecture | |
CN107508711A (en) | A kind of emulation test system based on FC AE ASM protocol communications | |
CN110674584A (en) | Multi-aircraft combined simulation system | |
CN111221265B (en) | A bus information extraction device and hardware-in-the-loop simulation method for a rudder system in the loop | |
CN210592490U (en) | Maintenance test system for airplane comprehensive control display assembly | |
CN108011766A (en) | A kind of system architecture and distribution relation automatic switching control equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190913 |
|
RJ01 | Rejection of invention patent application after publication |