CN105511320A - Method for realizing communication control inside FC recorder - Google Patents
Method for realizing communication control inside FC recorder Download PDFInfo
- Publication number
- CN105511320A CN105511320A CN201510926241.3A CN201510926241A CN105511320A CN 105511320 A CN105511320 A CN 105511320A CN 201510926241 A CN201510926241 A CN 201510926241A CN 105511320 A CN105511320 A CN 105511320A
- Authority
- CN
- China
- Prior art keywords
- module
- command
- data acquisition
- acquisition module
- remote control
- 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
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Abstract
The invention relates to a method for realizing communication control inside an FC acquisition recorder. The method comprises the following steps: 1, according to the architecture of an FC acquisition recorder system, determining processing modules including a remote control module, a master control module, an FC processing module and a data processing module, and communication nodes between the modules; 2, according to bus connection modes between the processing modules, realizing basic communication; 3, according to control needs, determining commands for processing master nodes; 4, according to processing needs of the FC acquisition recorder, determining module processing command sets and command processing relations therebetween; and 5, according to the control needs, the master nodes initiating command operation so as to realize overall control of the FC acquisition recorder system. The realization method of a communication process, provided by the invention, solves the problems of conflicts between command communication and instability.
Description
Technical field
The invention belongs to computer software technology, particularly relate to the implementation method that a kind of FC register intercommunication controls.
Background technology
Optical-fibre channel is with its high bandwidth, and low delay, the feature such as highly reliable becomes the core network of avionics system of new generation.Need in application to carry out acquisition and recording to optical-fibre channel data.In order to the data reliably, fast in acquisition and recording optical-fibre channel, FC acquisition and recording device arises at the historic moment, the intercommunication control method of FC acquisition and recording device is the key instructing FC acquisition and recording device intercommunication software development, but still finds no the method intercommunication of FC register being realized to control of effect at present.
Summary of the invention
The present invention solves the above-mentioned technical matters existed in background technology, and provides a kind of implementation method instructing the FC register intercommunication of FC acquisition and recording device intercommunication software development to control.
Technical scheme of the present invention is: the present invention is the implementation method that a kind of FC register intercommunication controls, and its special character is: the method comprises the following steps:
1) the communicating of remote control module and main controller module;
1.1) need to have determined whether remote control module according to current control;
1.2) when there is remote control module, then remote control module controls communications command transmission as host node;
1.3) when there is not remote control module, then master controller is as host node, is transmitted by software control communications command;
2) the communicating of main controller module and FC data acquisition module;
2.1) between main controller module and FC data acquisition module, there is a segment information interactive areas, two ends module shares the identical address of a slice;
2.2) order writes by main controller module, and order reads by FC data acquisition module;
2.3) after the block command of FC data acquisition module performs and terminates, then command execution results write, master controller is read-out command execution result therefrom;
2.4), within cycle regular hour, when main controller module does not receive the command execution results that FC data acquisition module returns, then think that devices communicating is abnormal, equipment failure.
3) the communicating of FC data acquisition module and data processing module;
3.1) FC data acquisition module first sends command operation code, data processing module wait-receiving mode;
3.2) after data processing module receives command operation code, operational code is returned to FC data acquisition module responsively;
3.3) after FC data acquisition module is waited for and received data processing module response, then transmission command operand is continued, wait command execution result;
3.4) data processing module receives order, and complete operation, returns command execution results.
Above-mentioned steps 1) before, also comprise step 0) Base communication checking, determine that RS422 communicates the correctness communicated with PCI; Be specially:
0.1) when determining that RS422 communicates, data Date is sent by transmitting terminal, receiving end wait-receiving mode;
0.2) after receiving end receives data, judge whether, with to send data Date identical, if identical, then data Date sent back to transmitting terminal again, if difference, report an error, Base communication is abnormal.
Above-mentioned steps 1.2) concrete steps as follows:
1.2.1) when there is remote control module, initiate command operation by the remote control module determined, main controller module receives command operation code and carries out command process, then to FC data acquisition module transmit operation order;
1.2.2) when say the word be operational order to FC data acquisition module time, by FC data acquisition module processing command and return command result;
1.2.3) when say the word be operational order to data processing module time, then order is handed down to data processing module by FC data acquisition module, by data processing module processing command and return command result.
Above-mentioned steps 2.3) after also comprise step 2.4), within cycle regular hour, when main controller module does not receive the command execution results that FC data acquisition module returns, then think that devices communicating is abnormal, equipment failure.
The implementation method that FC register intercommunication provided by the invention controls is by controlling remote control module, main controller module, communication between FC data acquisition module and data processing module, solve conflict and unstable problem between order and data communication, instruct FC acquisition and recording device intercommunication software development.
Accompanying drawing explanation
Fig. 1 is communication process block diagram of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention will be further described:
See Fig. 1, the invention provides the implementation method that a kind of FC register intercommunication controls, determine each processing module by FC acquisition and recording device system architecture, when by software control FC acquisition and recording device, each processing module comprises main controller module, FC data acquisition module and data processing module; When by remote control module control FC acquisition and recording device, each processing module comprises remote control module, main controller module, FC data acquisition module and data processing module.
The invention provides the implementation method that a kind of FC register intercommunication controls, comprise the following steps,
0) Base communication checking, determines that RS422 communicates the correctness communicated with PCI;
0.1) when determining that RS422 communicates, data Date is sent by transmitting terminal, receiving end wait-receiving mode,
0.2) after receiving end receives data, judge whether, with to send data Date identical, if identical, then data Date sent back to transmitting terminal again, if difference, report an error, Base communication is abnormal.
1) the communicating of remote control module and main controller module;
1.1) need to have determined whether remote control module according to current control;
1.2) when there is remote control module, then remote control module controls communications command transmission as host node;
1.2.1) when there is remote control module, initiate command operation by the remote control module determined, main controller module receives command operation code and carries out command process, then to FC data acquisition module transmit operation order;
1.2.2) when say the word be operational order to FC data acquisition module time, by FC data acquisition module processing command and return command result;
1.2.3) when say the word be operational order to data processing module time, then order is handed down to data processing module by FC data acquisition module, by data processing module processing command and return command result;
1.3) when there is not remote control module, then master controller is as host node, is transmitted by software control communications command;
2) the communicating of main controller module and FC data acquisition module;
2.1) between main controller module and FC data acquisition module, there is a segment information interactive areas, two ends module shares the identical address of a slice;
2.2) order writes by main controller module, and order reads by FC data acquisition module;
2.3) after the block command of FC data acquisition module performs and terminates, then command execution results write, master controller is read-out command execution result therefrom;
3) the communicating of FC data acquisition module and data processing module;
3.1) FC data acquisition module first sends command operation code, data processing module wait-receiving mode;
3.2) after data processing module receives command operation code, operational code is returned to FC data acquisition module responsively;
3.3) after FC data acquisition module is waited for and received data processing module response, then transmission command operand is continued, wait command execution result;
3.4) data processing module receives order, and complete operation, returns command execution results.
In reality, communicated between remote control module with main controller module by RS422, communicated between main controller module with FC data acquisition module by pci interface, FC data acquisition module is communicated by RS422 with between data processing module.
The method flow of a specific embodiment of the present invention is as follows:
1) the communicating of remote control module and main controller module
When remote control module exists, by remote control module as host node, initiate command operation.RS422 is adopted to communicate between remote control module with main controller module.
Remote control module first sends command operation code, main controller module wait-receiving mode; After main controller module receives command operation code, operational code is returned to remote control module responsively; After remote control module is waited for and received main controller module response, then continue transmission command operand, wait command execution result; Main controller module receives order, and complete operation, returns command execution results.
In communication process, when main controller module needs active reporting equipment state, point three kinds of situation process:
A., when remote control module is without order, equipment state is directly transferred to remote control module by main controller module;
B. when remote control module waits for operational code response, equipment state is transferred to remote control module by main controller module, and remote control module first processes the equipment state of active reporting, then continues to wait for operational code response;
C., during remote control module wait command execution result, main controller module has first processed this order, after result is returned, then reporting equipment state.
2) the communicating of main controller module and FC data acquisition module
Pci interface is adopted to communicate between main controller module with FC data acquisition module, a segment information interactive areas is there is between main controller module and FC data acquisition module, two ends module shares the identical address of a slice, order writes by main controller module, order reads by FC data acquisition module, after the block command of FC data acquisition module performs and terminates, then command execution results write, master controller is read-out command execution result therefrom.
3) the communicating of FC data acquisition module and data processing module
FC data acquisition module communicates with adopting RS422 between data processing module.
FC data acquisition module first sends command operation code, data processing module wait-receiving mode; After data processing module receives command operation code, operational code is returned to FC data acquisition module responsively; After FC data acquisition module is waited for and received data processing module response, then continue transmission command operand, wait command execution result; Data processing module receives order, and complete operation, returns command execution results.
In communication process, when data processing module needs active reporting equipment state, point three kinds of situation process:
When a.FC data acquisition module is without order, equipment state is directly transferred to FC data acquisition module by data processing module;
When b.FC data acquisition module waits for operational code response, equipment state is transferred to FC data acquisition module by data processing module, and FC data acquisition module first processes the equipment state of active reporting, then continues to wait for operational code response;
During c.FC data acquisition module wait command execution result, data processing module has first processed this order, after result is returned, then reporting equipment state.
Last it is noted that above example is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although explain invention has been with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of each case technology scheme of the present invention.
Claims (5)
1. an implementation method for FC register intercommunication control, is characterized in that: the method comprises the following steps:
1) the communicating of remote control module and main controller module;
1.1) need to have determined whether remote control module according to current control;
1.2) when there is remote control module, then remote control module controls communications command transmission as host node;
1.3) when there is not remote control module, then master controller is as host node, is transmitted by software control communications command;
2) the communicating of main controller module and FC data acquisition module;
2.1) between main controller module and FC data acquisition module, there is a segment information interactive areas, two ends module shares the identical address of a slice;
2.2) order writes by main controller module, and order reads by FC data acquisition module;
2.3) after the block command of FC data acquisition module performs and terminates, then command execution results write, master controller is read-out command execution result therefrom;
3) the communicating of FC data acquisition module and data processing module;
3.1) FC data acquisition module first sends command operation code, data processing module wait-receiving mode;
3.2) after data processing module receives command operation code, operational code is returned to FC data acquisition module responsively;
3.3) after FC data acquisition module is waited for and received data processing module response, then transmission command operand is continued, wait command execution result;
3.4) data processing module receives order, and complete operation, returns command execution results.
2. the implementation method that controls of FC register intercommunication according to claim 1, is characterized in that: described step 1) before, also comprise step 0) Base communication checking, determine that RS422 communicates the correctness communicated with PCI; Be specially:
0.1) when determining that RS422 communicates, data Date is sent by transmitting terminal, receiving end wait-receiving mode;
0.2) after receiving end receives data, judge whether, with to send data Date identical, if identical, then data Date sent back to transmitting terminal again, if difference, report an error, Base communication is abnormal.
3. the implementation method that controls of FC register intercommunication according to claim 2, is characterized in that: described step 1.2) concrete steps as follows:
1.2.1) when there is remote control module, initiate command operation by the remote control module determined, main controller module receives command operation code and carries out command process, then to FC data acquisition module transmit operation order;
1.2.2) when say the word be operational order to FC data acquisition module time, by FC data acquisition module processing command and return command result;
1.2.3) when say the word be operational order to data processing module time, then order is handed down to data processing module by FC data acquisition module, by data processing module processing command and return command result.
4. the implementation method of FC register intercommunication control according to claim 3, it is characterized in that: described step 2.3) also comprise step 2.4 afterwards), within cycle regular hour, when main controller module does not receive the command execution results that FC data acquisition module returns, then think that devices communicating is abnormal, equipment failure.
5. the implementation method that the FC register intercommunication according to claim 1 or 2 or 3 or 4 controls, it is characterized in that: described remote control module is communicated by RS422 with between main controller module, communicated by pci interface between main controller module with FC data acquisition module, FC data acquisition module is communicated by RS422 with between data processing module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926241.3A CN105511320A (en) | 2015-12-11 | 2015-12-11 | Method for realizing communication control inside FC recorder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926241.3A CN105511320A (en) | 2015-12-11 | 2015-12-11 | Method for realizing communication control inside FC recorder |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105511320A true CN105511320A (en) | 2016-04-20 |
Family
ID=55719390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510926241.3A Pending CN105511320A (en) | 2015-12-11 | 2015-12-11 | Method for realizing communication control inside FC recorder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105511320A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1799092A (en) * | 2003-06-05 | 2006-07-05 | 皇家飞利浦电子股份有限公司 | Recording device with loading means status indication and method for recording using the loading means status |
WO2007020274A2 (en) * | 2005-08-19 | 2007-02-22 | International Business Machines Corporation | System and method for communicating instructions and data between a processor and external devices |
-
2015
- 2015-12-11 CN CN201510926241.3A patent/CN105511320A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1799092A (en) * | 2003-06-05 | 2006-07-05 | 皇家飞利浦电子股份有限公司 | Recording device with loading means status indication and method for recording using the loading means status |
WO2007020274A2 (en) * | 2005-08-19 | 2007-02-22 | International Business Machines Corporation | System and method for communicating instructions and data between a processor and external devices |
Non-Patent Citations (4)
Title |
---|
俸文炯: "基于FPGA的TFT-LCD视频驱动系统设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
李攀,田泽,蔡叶芳,杨海波: "基于FPGA的双通道FC数据采集卡设计", 《计算机技术与发展 CNKI网络优先出版》 * |
邓轲,田泽,郭亮,王泉: "机载光纤通道采集记录仪的设计及实现", 《计算机技术与发展 CNKI网络优先出版》 * |
黎小玉,田泽,刘娟,马城城: "FC数据采集记录器软件设计与实现", 《计算机技术与发展 CNKI网络优先出版》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070006020A1 (en) | Inter-host data transfer method, program, and system | |
US8032793B2 (en) | Method of controlling information processing system, information processing system, direct memory access control device and program | |
KR100958685B1 (en) | Dma controller, node, data transfer control method, and computer readable recording medium for recording program | |
CN106959935B (en) | Method compatible with I2C communication and IPMB communication | |
JP6431197B2 (en) | Snapshot processing methods and associated devices | |
CN107528747B (en) | Method and device for diagnosing communication state of master station and slave station and computer readable storage medium | |
JP2007251947A (en) | Multi-master, chaind two-wire serial bus | |
CN107947906B (en) | Slave device | |
US9116881B2 (en) | Routing switch apparatus, network switch system, and routing switching method | |
JP5112246B2 (en) | Storage system and communication method | |
TW515947B (en) | Test method of 1394 controller | |
CN106850554B (en) | Method and device for dual-system directional connection | |
CN104484205A (en) | IO (Input/Output) equipment firmware upgrading device and IO equipment firmware upgrading method | |
CN109885420B (en) | PCIe link fault analysis method, BMC and storage medium | |
CN111857546A (en) | Method, network adapter and computer program product for processing data | |
CN103885910A (en) | Method and system for multiple devices for IIC communication in main mode | |
CN105511320A (en) | Method for realizing communication control inside FC recorder | |
CN105406989A (en) | Message processing method, network card and system, information updating method and host | |
US9385968B2 (en) | Methods and devices for connecting to multiple interfaces | |
CN109753461B (en) | DMA device and data transmission method | |
CN113572629A (en) | Message transmission method, terminal and storage medium | |
CN112241279A (en) | Self-adaptive electronic control unit software upgrading method and system and automobile | |
KR101529613B1 (en) | Test-present Methode for Vehicle Diagnosis System | |
CN112988202B (en) | System and method for upgrading FC (fiber channel) module | |
CN114338265B (en) | Program downloading system and method based on TTP/C bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160420 |
|
RJ01 | Rejection of invention patent application after publication |