CN104239250B - Pci bus method of data synchronization based on RTX real-time extension subsystems - Google Patents
Pci bus method of data synchronization based on RTX real-time extension subsystems Download PDFInfo
- Publication number
- CN104239250B CN104239250B CN201410484793.9A CN201410484793A CN104239250B CN 104239250 B CN104239250 B CN 104239250B CN 201410484793 A CN201410484793 A CN 201410484793A CN 104239250 B CN104239250 B CN 104239250B
- Authority
- CN
- China
- Prior art keywords
- data
- real
- host computer
- rtx
- time
- 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.)
- Active
Links
Landscapes
- Bus Control (AREA)
Abstract
The invention discloses a kind of pci bus method of data synchronization based on RTX real-time extension subsystems, comprise the following steps, 1)Host computer is installed into XP systems, slave computer RTX real-time extension subsystems are installed;2)The driving of device PCI is developed in RTX;3)Soft interrupt mechanism is set up in RTX;4)Soft interrupt mechanism is set up according to foundation, realizes that data syn-chronization communicates.The present invention installs on slave computer and RTX real-time extension subsystems is installed under XP systems, meet the function of both upper and lower machines simultaneously in XP systems, slave computer realizes the function that real-time data acquisition and data are sent, data send and receive the rate-matched of both sides, system development costs are low, maintain easily, have a good application prospect.
Description
Technical field
The present invention relates to a kind of pci bus method of data synchronization based on RTX real-time extension subsystems, belong to data communication
Technical field.
Background technology
It is general that the speed of both sides is synchronously sent and received not to solve data using interruption in pci bus data transfer
Matching problem.The application field higher to requirement of real-time is general to realize that interruption is synchronous using real time operating system;For one
The individual system for needing data acquisition and control to send, just needs a upper computer control system and slave computer real time operating system two
Part, slave computer real time operating system is responsible for from bottom gathered data and forwards control data to bottom.Therefore, need in practice
Meet the system needs design of these functional requirements.
At present, host computer uses non real-time system, generally XP systems, and slave computer uses real-time system, such as Vxworks behaviour
Make system, although this mode can realize slave computer real-time data collection and respond the control command of host computer, you can with full
Sufficient functional requirement, but have the disadvantage two operating systems of needs, development platform it is different, it is necessary to developer it is also different, this
Sample causes system cost high, the appearance for the problems such as system development safeguards inconvenient, is not easy to opening for pci bus data transmission system
Hair.
The content of the invention
The invention aims to overcome in traditional pci bus data transfer, host computer, slave computer need two behaviour
Make system, development platform it is different, it is necessary to developer it is also different, cause the problem of system cost high maintenance is inconvenient.
The pci bus method of data synchronization based on RTX real-time extension subsystems of the present invention, installs under XP systems on slave computer and installs
RTX real-time extension subsystems, meet the function of both upper and lower machines simultaneously in XP systems, and slave computer realizes that real time data is adopted
The function that collection and data are sent, data send and receive the rate-matched of both sides, and system development costs are low, maintain easily, and have
Good application prospect.
In order to achieve the above object, the technical solution adopted in the present invention is:
A kind of pci bus method of data synchronization based on RTX real-time extension subsystems, it is characterised in that:Including following step
Suddenly,
Step(1), host computer is installed into XP operating systems, slave computer RTX real-time extension subsystems is installed;
Step(2), the driving of device PCI will be developed in RTX real-time extension subsystems, to carry out the reality in pci bus
When data transfer, data transfer uses DMA mode;
Step(3), soft interrupt mechanism is set up in the driving of the device PCI in RTX real-time extension subsystems;
Step(4), the XP operating systems of host computer and the RTX real-time extension subsystems of slave computer, according to the foundation of foundation
Soft interrupt mechanism, realizes that data syn-chronization communicates.
The foregoing pci bus method of data synchronization based on RTX real-time extension subsystems, it is characterised in that:Step(3)Build
The method of vertical soft interrupt mechanism is,
(1)Real-time query bottom hardware is entered as 1 interrupt signal under RTX real-time extension subsystems;
(2)1 interrupt signal is entered as when inquiring, starts to send or receive data;
(3)Send or receive data to complete, this interrupt signal is entered as 0, repeated(1);
The foregoing pci bus method of data synchronization based on RTX real-time extension subsystems, it is characterised in that:Step(4),
The XP operating systems of host computer and the RTX real-time extension subsystems of slave computer, set up soft interrupt mechanism according to foundation, realize number
Sent and data receiver according to synchronous communication, including host computer data,
Host computer data are sent, and the XP operating systems of host computer set data to copy to bottom by shared drive mode
The RTX real-time extension subsystems of machine, RTX real-time extension subsystems are sent to bottom hardware in real time by pci bus;
Host computer data receiver is that the RTX real-time extension subsystems of slave computer gather bottom hardware in real time by pci bus
Data, notify the XP of host computer to carry out collection bottom hardware data duplication in real time, bottom will be gathered in real time by event triggered fashion
Layer hardware data uploads to the XP systems of host computer.
The foregoing pci bus method of data synchronization based on RTX real-time extension subsystems, it is characterised in that:Host computer number
The step of according to sending, including
(1)The XP systems of host computer set sample rate, produce I, Q intermediate frequency data to be sent;
(2)By I, Q intermediate frequency data of generation, the data without sign of 32 bit formats is converted to;
(3)Unsigned number is copied into shared section key, trigger event notifies the RTX real-time extension subsystems of slave computer,
Data are produced and finished;
(4)RTX real-time extension subsystems receive event message, and data without sign is read from shared section key;
(5)Whether the traps of RTX real-time extensions subsystem inquiry pci bus arrive;
(6)If the traps of pci bus arrive, start DMA mode and send, send data without sign to the bottom of slave computer
Layer hardware;If the traps of pci bus do not arrive, repeat(5);
The foregoing pci bus method of data synchronization based on RTX real-time extension subsystems, it is characterised in that:Host computer number
The step of according to receiving, including
(1)The XP systems of host computer occur reception data command and give RTX real-time extension subsystems;
(2)RTX real-time extensions subsystem opens shared drive, receives reception data command;
(3)RTX real-time extensions subsystem inquires about the traps of pci bus;
(4)If the traps of pci bus arrive, start DMA mode and receive, the bottom hardware for replicating slave computer waits occur
Data to shared drive;If the traps of pci bus do not arrive, repeat(3);
(5)RTX real-time extension subsystem trigger events, notify the XP system datas of host computer to receive;
(6)The XP systems of position machine read shared drive data, and display data.
The beneficial effects of the invention are as follows:The pci bus data syn-chronization side based on RTX real-time extension subsystems of the present invention
Method, installs on slave computer and RTX real-time extension subsystems is installed under XP systems, upper and lower machine two is met simultaneously in XP systems
The function of person, slave computer realizes the function that real-time data acquisition and data are sent, and data send and receive the speed of both sides
Match somebody with somebody, system development costs are low, maintain easily, have a good application prospect.
Brief description of the drawings
Fig. 1 is the flow chart of the pci bus method of data synchronization based on RTX real-time extension subsystems of the present invention.
Fig. 2 is the flow chart for setting up soft interrupt mechanism of the present invention.
Fig. 3 is the flow chart that one embodiment of the invention host computer sends data.
Fig. 4 is the flow chart that one embodiment of the invention host computer receives data.
Embodiment
Below in conjunction with Figure of description, the invention will be further described.Following examples are only used for clearly
Illustrate technical scheme, and can not be limited the scope of the invention with this.
As shown in figure 1, the pci bus method of data synchronization based on RTX real-time extension subsystems, comprises the following steps,
Step(1), host computer is installed into XP operating systems, slave computer RTX real-time extension subsystems is installed, RTX expands in real time
Open up subsystem and replace traditional Vxworks operating systems, convenient maintenance consistent with XP operating system development environments;
Step(2), under RTX real-time extension Subsystem environments, the bridge of data interaction is carried out with the bottom hardware of slave computer
It is PCI9056 bridges, it is necessary to develop the driving of device PCI, to carry out the real-time Data Transmission in pci bus, data transfer is adopted
Use DMA mode;
Step(3), soft interrupt mechanism is set up in the driving of the device PCI in RTX real-time extension subsystems, XP systems are solved
System and RTX real-time extension subsystem interrupt resources are the problem of conflict, the method for setting up soft interrupt mechanism, as shown in Fig. 2 including with
Lower step,
(1)Real-time query bottom hardware is entered as 1 interrupt signal under RTX real-time extension subsystems;
(2)1 interrupt signal is entered as when inquiring, starts to send or receive data;
(3)Send or receive data to complete, this interrupt signal is entered as 0, repeated(1);
Step(4), the XP operating systems of host computer and the RTX real-time extension subsystems of slave computer, according to the foundation of foundation
Soft interrupt mechanism, realizes that data syn-chronization communicates, including host computer data are sent and data receiver,
Host computer data are sent, and the XP operating systems of host computer set data to copy to bottom by shared drive mode
The RTX real-time extension subsystems of machine, RTX real-time extension subsystems are sent to bottom hardware in real time by pci bus;
Host computer data receiver is that the RTX real-time extension subsystems of slave computer gather bottom hardware in real time by pci bus
Data, notify the XP of host computer to carry out collection bottom hardware data duplication in real time, bottom will be gathered in real time by event triggered fashion
Layer hardware data uploads to the XP systems of host computer.
Wherein, the step of host computer data are sent, including
(1)The XP systems of host computer set sample rate, produce I, Q intermediate frequency data to be sent;
(2)By I, Q intermediate frequency data of generation, the data without sign of 32 bit formats is converted to;
(3)Unsigned number is copied into shared section key, trigger event notifies the RTX real-time extension subsystems of slave computer,
Data are produced and finished;
(4)RTX real-time extension subsystems receive event message, and data without sign is read from shared section key;
(5)Whether the traps of RTX real-time extensions subsystem inquiry pci bus arrive;
(6)If the traps of pci bus arrive, start DMA mode and send, send data without sign to the bottom of slave computer
Layer hardware;If the traps of pci bus do not arrive, repeat(5);
The step of host computer data receiver, including
(1)The XP systems of host computer occur reception data command and give RTX real-time extension subsystems;
(2)RTX real-time extensions subsystem opens shared drive, receives reception data command;
(3)RTX real-time extensions subsystem inquires about the traps of pci bus;
(4)If the traps of pci bus arrive, start DMA mode and receive, the bottom hardware for replicating slave computer waits occur
Data to shared drive;If the traps of pci bus do not arrive, repeat(3);
(5)RTX real-time extension subsystem trigger events, notify the XP system datas of host computer to receive;
(6)The XP systems of position machine read shared drive data, and display data.
The present invention realizes the transmission of host computer data, reception process to produce 750MHz CWIF continuous wave intermediate frequency data instance, under
The bottom hardware of position machine is can to carry out using a piece of Xilinx companies in the PLD of digital processing, the present embodiment
V5 SX95T fpga chips,
Host computer data transmission procedure, as shown in figure 3, comprising the following steps that:
(1)It is 11.71845 that sample rate is set under the XP systems of host computer, produces 750M I, Q intermediate frequency data;
(2)By I, Q intermediate frequency data spelling of generation into 32bit forms data without sign;
(3)Data without sign is copied into shared section key, trigger event notifies the RTX real-time extension subsystems of slave computer
System data, which are produced, to be finished;
(4)RTX real-time extension subsystems receive event message, and data are read from shared section key;
(5)Whether inquiry PCI traps arrive;
(6)PCI, which is interrupted, to arrive, then starts DMA mode and send, send data to FPGA;If no arrival repeat step(5);
To receive 750MHz CWIF continuous wave intermediate frequency data instance, the DRP data reception process of host computer is realized, bottom hardware is
The V5 SX95T FPGA cores of a piece of Xilinx companies can be carried out using in the PLD of digital processing, the present embodiment
Piece,
Host computer DRP data reception process, as shown in figure 4, comprising the following steps that:
(1)XP systems, which set to start, receives data;
(2)RTX real-time extensions subsystem opens shared drive, receives reception data command;
(3)Whether RTX real-time extensions subsystem inquiry PCI traps arrive;
(4)PCI traps arrive, then start DMA mode and receive, and replicate intermediate frequency data to shared drive;Otherwise, repeat
(3);
(5)RTX real-time extension subsystem trigger events, notify XP system datas to receive;
(6)XP systems read shared drive data, partition data display waveform.
In summary, the pci bus method of data synchronization of the invention based on RTX real-time extension subsystems, in slave computer
RTX real-time extension subsystems are installed under upper installation XP systems, the function of both upper and lower machines is met simultaneously in XP systems, under
Position machine realizes the function that real-time data acquisition and data are sent, and data send and receive the rate-matched of both sides, system development into
This is low, maintains easily, has a good application prospect.
General principle, principal character and the advantage of the present invention has been shown and described above.The technical staff of the industry should
Understand, the present invention is not limited to the above embodiments, the original for simply illustrating the present invention described in above-described embodiment and specification
Reason, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes and improvements
It all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appended claims and its equivalent circle
It is fixed.
Claims (1)
1. the pci bus method of data synchronization based on RTX real-time extension subsystems, it is characterised in that:Comprise the following steps,
Step(1), host computer is installed into XP operating systems, slave computer RTX real-time extension subsystems is installed;
Step(2), the driving of device PCI will be developed in RTX real-time extension subsystems, to carry out the real-time number in pci bus
According to transmission, data transfer uses DMA mode;
Step(3), soft interrupt mechanism is set up in the driving of the device PCI in RTX real-time extension subsystems;
Step(4), the XP operating systems of host computer and the RTX real-time extension subsystems of slave computer, according to the traps machine of foundation
System, realizes that data syn-chronization communicates,
The step(3)The method for setting up soft interrupt mechanism is,
(1)Real-time query bottom hardware is entered as 1 interrupt signal under RTX real-time extension subsystems;
(2)1 interrupt signal is entered as when inquiring, starts to send or receive data;
(3)Send or receive data to complete, this interrupt signal is entered as 0, repeated(1);
The step(4), the XP operating systems of host computer and the RTX real-time extension subsystems of slave computer, according to foundation it is soft in
Off line system, realizes that data syn-chronization communicates, including host computer data are sent and data receiver,
Host computer data are sent, and the XP operating systems of host computer set data to copy to slave computer by shared drive mode
RTX real-time extension subsystems, RTX real-time extension subsystems are sent to bottom hardware in real time by pci bus;
Host computer data receiver is that the RTX real-time extensions subsystem of slave computer gathers bottom hardware number by pci bus in real time
According to the XP progress for notifying host computer by event triggered fashion gathers bottom hardware data duplication in real time, and bottom will be gathered in real time
Hardware data uploads to the XP systems of host computer;
The step of host computer data are sent, including
(1)The XP systems of host computer set sample rate, produce I, Q intermediate frequency data to be sent;
(2)By I, Q intermediate frequency data of generation, the data without sign of 32 bit formats is converted to;
(3)Unsigned number is copied into shared section key, trigger event notifies the RTX real-time extension subsystems of slave computer, data
Generation is finished;
(4)RTX real-time extension subsystems receive event message, and data without sign is read from shared section key;
(5)Whether the traps of RTX real-time extensions subsystem inquiry pci bus arrive;
(6)If the traps of pci bus arrive, start DMA mode and send, the bottom for sending data without sign to slave computer is hard
Part;If the traps of pci bus do not arrive, repeat(5);
The step of host computer data receiver, including
(1)The XP systems of host computer occur reception data command and give RTX real-time extension subsystems;
(2)RTX real-time extensions subsystem opens shared drive, receives reception data command;
(3)RTX real-time extensions subsystem inquires about the traps of pci bus;
(4)If the traps of pci bus arrive, start DMA mode and receive, replicate the bottom hardware of slave computer number to be occurred
According to shared drive;If the traps of pci bus do not arrive, repeat(3);
(5)RTX real-time extension subsystem trigger events, notify the XP system datas of host computer to receive;
(6)The XP systems of host computer read shared drive data, and display data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410484793.9A CN104239250B (en) | 2014-09-22 | 2014-09-22 | Pci bus method of data synchronization based on RTX real-time extension subsystems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410484793.9A CN104239250B (en) | 2014-09-22 | 2014-09-22 | Pci bus method of data synchronization based on RTX real-time extension subsystems |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104239250A CN104239250A (en) | 2014-12-24 |
CN104239250B true CN104239250B (en) | 2017-08-08 |
Family
ID=52227357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410484793.9A Active CN104239250B (en) | 2014-09-22 | 2014-09-22 | Pci bus method of data synchronization based on RTX real-time extension subsystems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104239250B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294235B (en) * | 2015-06-01 | 2019-02-01 | 中国科学院上海高等研究院 | A kind of synchronous method based on poll/interruption real-time virtual radio data |
CN108241101A (en) * | 2018-02-06 | 2018-07-03 | 中国航天空气动力技术研究院 | Aircraft ground Auto-Test System based on Real Time Serial Communication |
CN113726226B (en) * | 2021-08-03 | 2024-05-17 | 九江精密测试技术研究所 | Combined control system of combined turntable |
CN113986909B (en) * | 2021-12-24 | 2022-04-22 | 畅捷通信息技术股份有限公司 | Real-time data synchronization method, system and medium for reversely recording synchronization state |
CN114490494A (en) * | 2021-12-29 | 2022-05-13 | 北京航天自动控制研究所 | Multi-bus real-time interaction system and interaction method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101158718A (en) * | 2007-11-16 | 2008-04-09 | 上海伽利略导航有限公司 | Global position system real-time software receiving machine and real-time processing method thereof |
US8180973B1 (en) * | 2009-12-23 | 2012-05-15 | Emc Corporation | Servicing interrupts and scheduling code thread execution in a multi-CPU network file server |
CN103077140A (en) * | 2013-02-05 | 2013-05-01 | 北京配天大富精密机械有限公司 | Communication method and communication device for motion control card of robot and host |
CN103616884A (en) * | 2013-11-06 | 2014-03-05 | 北京控制工程研究所 | Millisecond-level satellite attitude orbit control real-time testing method |
-
2014
- 2014-09-22 CN CN201410484793.9A patent/CN104239250B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101158718A (en) * | 2007-11-16 | 2008-04-09 | 上海伽利略导航有限公司 | Global position system real-time software receiving machine and real-time processing method thereof |
US8180973B1 (en) * | 2009-12-23 | 2012-05-15 | Emc Corporation | Servicing interrupts and scheduling code thread execution in a multi-CPU network file server |
CN103077140A (en) * | 2013-02-05 | 2013-05-01 | 北京配天大富精密机械有限公司 | Communication method and communication device for motion control card of robot and host |
CN103616884A (en) * | 2013-11-06 | 2014-03-05 | 北京控制工程研究所 | Millisecond-level satellite attitude orbit control real-time testing method |
Also Published As
Publication number | Publication date |
---|---|
CN104239250A (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104239250B (en) | Pci bus method of data synchronization based on RTX real-time extension subsystems | |
CN109739618B (en) | Virtual machine migration method and device | |
CN103250395B (en) | Asynchronous virtual machine clone method and device | |
CN103516802A (en) | Method and device for achieving seamless transference of across heterogeneous virtual switch | |
CN104714918B (en) | The reception of high speed FC bus datas and way to play for time under hosted environment | |
CN103763173A (en) | Data transmission method and computing node | |
CN109634444A (en) | A kind of KVM remote mouse synchronisation control means and system | |
CN103995567A (en) | Double-system intelligent interaction all-in-one machine and double-system switching method thereof | |
CN103678007B (en) | A kind of batch dispositions method of software and system | |
JP6249665B2 (en) | Simulation device, simulation method, and program | |
CN103926841A (en) | Real-time semi-physical simulation computer control system based on RTX+RFM | |
CN106789218B (en) | Event-based link conflict real-time simulation method | |
CN102833341A (en) | System for processing data exchange between medical systems | |
CN104574541B (en) | Method and system for synchronizing time sequence of RSUs and multiple antennae | |
CN108983036B (en) | Traveling wave distance measurement system based on electronic transformer | |
CN106649184B (en) | Asynchronous communication serial ports suitable for electronic equipment on satellite instructs rapid answer method | |
CN111208965B (en) | Spliced display system and display method thereof | |
CN206312090U (en) | KVM controller | |
CN111211855B (en) | Mixed clock synchronization method for distributed processing system | |
CN106494466B (en) | The data apparatus for changing and its data costume changing method of train operation monitoring | |
CN108491347A (en) | Communication means and electronic equipment | |
CN104656604B (en) | A kind of utilization MODBUS communication protocols realize the safety and stability control device of electric network and its method of man-machine interaction | |
CN106294235B (en) | A kind of synchronous method based on poll/interruption real-time virtual radio data | |
CN105515709A (en) | Time synchronization device based on domestic FPGA and uclinux operating system | |
CN101916206A (en) | Method and device for modeling signal system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |