[go: up one dir, main page]

CN104239250A - PCI (Programmable Communication Interface) bus data synchronization method based on RTX (Real Time eXpert) real-time extending subsystem - Google Patents

PCI (Programmable Communication Interface) bus data synchronization method based on RTX (Real Time eXpert) real-time extending subsystem Download PDF

Info

Publication number
CN104239250A
CN104239250A CN201410484793.9A CN201410484793A CN104239250A CN 104239250 A CN104239250 A CN 104239250A CN 201410484793 A CN201410484793 A CN 201410484793A CN 104239250 A CN104239250 A CN 104239250A
Authority
CN
China
Prior art keywords
data
real
time extension
rtx
extension subsystem
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.)
Granted
Application number
CN201410484793.9A
Other languages
Chinese (zh)
Other versions
CN104239250B (en
Inventor
朱健康
赵九龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Changfeng Space Electronics Technology Co Ltd
Original Assignee
Nanjing Changfeng Space Electronics Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing Changfeng Space Electronics Technology Co Ltd filed Critical Nanjing Changfeng Space Electronics Technology Co Ltd
Priority to CN201410484793.9A priority Critical patent/CN104239250B/en
Publication of CN104239250A publication Critical patent/CN104239250A/en
Application granted granted Critical
Publication of CN104239250B publication Critical patent/CN104239250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Bus Control (AREA)

Abstract

The invention discloses a PCI (Programmable Communication Interface) bus data synchronization method based on an RTX (Real Time eXpert) real-time extending subsystem. The PCI bus data synchronization comprises the following steps of (1) mounting an XP system on an upper computer and mounting the RTX real-time extending subsystem on a lower computer; (2) developing a drive of PCI equipment in RTX; (3) establishing a software interrupt mechanism in the RTX; and (4) realizing data synchronous communication according to the established software interrupt mechanism. According to the PCI bus data synchronization method, the XP system is mounted on the lower computer and the RTX real-time extending subsystem is mounted on the lower computer; functions of the upper computer and the lower computer on the XP system are realized; data acquisition and data transmitting functions are realized in real time by the lower computer; the speeds of a data transmitting party and a data receiving party are matched, the development cost of the system is low and the system is convenient to maintain; the application prospect is good.

Description

Based on the pci bus method of data synchronization of RTX real-time extension subsystem
Technical field
The present invention relates to a kind of pci bus method of data synchronization based on RTX real-time extension subsystem, belong to data communication technology field.
Background technology
In the transmission of pci bus data, the general speed mismatch problem adopting interruption synchronously to solve data input and data output both sides.The application higher to requirement of real-time, the general real time operating system that adopts realizes interrupting synchronously; For the system that needs data acquisition and control to send, just need a upper computer control system and slave computer real time operating system two parts, slave computer real time operating system is responsible for from bottom image data and is forwarded control data to bottom.Therefore, in reality, the system of these functional requirements of demand fulfillment needs design.
At present, host computer adopts non real-time system, be generally XP system, slave computer adopts real-time system, as Vxworks operating system, although this mode can realize slave computer real-time data collection and respond the control command of host computer, namely can content with funtion requirement, but shortcoming is needs two operating systems, development platform is different, and the developer of needs is also different, causes system cost high like this, the appearance of the problems such as inconvenience is safeguarded in system development, is not easy to the exploitation of pci bus data transmission system.
Summary of the invention
The object of the invention is to overcome in traditional pci bus data transmission, host computer, slave computer need two operating systems, and development platform is different, and the developer of needs is also different, causes the problem of system cost high maintenance inconvenience.Pci bus method of data synchronization based on RTX real-time extension subsystem of the present invention, RTX real-time extension subsystem is installed under slave computer is installed XP system, XP system meets the function of both upper and lower machines simultaneously, slave computer realizes the function of real-time data acquisition and data transmission, the rate-matched of data input and data output both sides, system development costs is low, maintains easily, and has a good application prospect.
In order to achieve the above object, the technical solution adopted in the present invention is:
Based on a pci bus method of data synchronization for RTX real-time extension subsystem, it is characterized in that: comprise the following steps,
Step (1), installs XP operating system, slave computer installation RTX real-time extension subsystem by host computer;
Step (2), by developing the driving of PCI equipment in RTX real-time extension subsystem, to carry out the real-time Data Transmission in pci bus, data transmission adopts DMA pattern;
Step (3), sets up soft interrupt mechanism in the driving of the PCI equipment in RTX real-time extension subsystem;
Step (4), the XP operating system of host computer and the RTX real-time extension subsystem of slave computer, set up soft interrupt mechanism according to what set up, realize data syn-chronization communication.
The aforesaid pci bus method of data synchronization based on RTX real-time extension subsystem, is characterized in that: the method that step (3) sets up soft interrupt mechanism is,
(1) under RTX real-time extension subsystem, the assignment of real-time query bottom hardware is 1 look-at-me;
(2) being 1 look-at-me when inquiring assignment, starting to send or receive data;
(3) transmission or reception data complete, and be 0, repeat this look-at-me assignment (1);
The aforesaid pci bus method of data synchronization based on RTX real-time extension subsystem, it is characterized in that: step (4), the XP operating system of host computer and the RTX real-time extension subsystem of slave computer, soft interrupt mechanism is set up according to what set up, realize data syn-chronization communication, comprise host computer data to send and data receiver
Host computer data are sent as, and the XP operating system setting data of host computer copies to the RTX real-time extension subsystem of slave computer by shared drive mode, RTX real-time extension subsystem is sent to bottom hardware in real time by pci bus;
Host computer data receiver is, the RTX real-time extension subsystem of slave computer is by pci bus Real-time Collection bottom hardware data, Real-time Collection bottom hardware data Replica is carried out, by the XP system of Real-time Collection bottom hardware data upload to host computer by the XP of event triggered fashion notice host computer.
The aforesaid pci bus method of data synchronization based on RTX real-time extension subsystem, is characterized in that: the step that host computer data send, and comprises
(1) the XP Operation system setting sampling rate of host computer, produces I, Q intermediate frequency data to be sent;
(2) I, Q intermediate frequency data will produced, is converted to the data without sign of 32 bit formats;
(3) unsigned number is copied to shared section key, the RTX real-time extension subsystem of trigger event notice slave computer, data produce complete;
(4) RTX real-time extension subsystem receives event message, reads data without sign from shared section key;
(5) whether the weaken rock of RTX real-time extension subsystem inquiry pci bus arrives;
(6) if the weaken rock of pci bus arrives, then start DMA pattern and send, send the bottom hardware of data without sign to slave computer; If the weaken rock of pci bus does not arrive, repeat (5);
The aforesaid pci bus method of data synchronization based on RTX real-time extension subsystem, is characterized in that: the step of host computer data receiver, comprises
(1) the XP system of host computer occurs to receive data command to RTX real-time extension subsystem;
(2) RTX real-time extension subsystem opens shared drive, receives reception data command;
(3) weaken rock of RTX real-time extension subsystem inquiry pci bus;
(4) if the weaken rock of pci bus arrives, then start DMA pattern and receive, copy the bottom hardware of slave computer data to be occurred to shared drive; If the weaken rock of pci bus does not arrive, repeat (3);
(5) RTX real-time extension subsystem trigger event, the XP system data of notice host computer receives;
(6) the XP system of position machine reads shared drive data, and shows data.
The invention has the beneficial effects as follows: the pci bus method of data synchronization based on RTX real-time extension subsystem of the present invention, RTX real-time extension subsystem is installed under slave computer is installed XP system, XP system meets the function of both upper and lower machines simultaneously, slave computer realizes the function of real-time data acquisition and data transmission, the rate-matched of data input and data output both sides, system development costs is low, maintains easily, and has a good application prospect.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the pci bus method of data synchronization based on RTX real-time extension subsystem of the present invention.
Fig. 2 is the process flow diagram setting up soft interrupt mechanism of the present invention.
Fig. 3 is the process flow diagram that one embodiment of the invention host computer sends data.
Fig. 4 is the process flow diagram 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 only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
As shown in Figure 1, based on the pci bus method of data synchronization of RTX real-time extension subsystem, comprise the following steps,
Step (1), host computer is installed XP operating system, slave computer installation RTX real-time extension subsystem, RTX real-time extension subsystem replaces traditional Vxworks operating system, consistent with XP operating system development environment, convenient for maintaining;
Step (2), under RTX real-time extension Subsystem environment, the bridge carrying out data interaction with the bottom hardware of slave computer is PCI9056 bridge, needs the driving of developing PCI equipment, to carry out the real-time Data Transmission in pci bus, data transmission adopts DMA pattern;
Step (3), sets up soft interrupt mechanism in the driving of the PCI equipment in RTX real-time extension subsystem, solves the problem of XP system and the conflict of RTX real-time extension subsystem interrupt resources, sets up the method for soft interrupt mechanism, as shown in Figure 2, comprise the following steps,
(1) under RTX real-time extension subsystem, the assignment of real-time query bottom hardware is 1 look-at-me;
(2) being 1 look-at-me when inquiring assignment, starting to send or receive data;
(3) transmission or reception data complete, and be 0, repeat this look-at-me assignment (1);
Step (4), the XP operating system of host computer and the RTX real-time extension subsystem of slave computer, set up soft interrupt mechanism according to what set up, realize data syn-chronization communication, comprises host computer data and send and data receiver,
Host computer data are sent as, and the XP operating system setting data of host computer copies to the RTX real-time extension subsystem of slave computer by shared drive mode, RTX real-time extension subsystem is sent to bottom hardware in real time by pci bus;
Host computer data receiver is, the RTX real-time extension subsystem of slave computer is by pci bus Real-time Collection bottom hardware data, Real-time Collection bottom hardware data Replica is carried out, by the XP system of Real-time Collection bottom hardware data upload to host computer by the XP of event triggered fashion notice host computer.
Wherein, the step that host computer data send, comprises
(1) the XP Operation system setting sampling rate of host computer, produces I, Q intermediate frequency data to be sent;
(2) I, Q intermediate frequency data will produced, is converted to the data without sign of 32 bit formats;
(3) unsigned number is copied to shared section key, the RTX real-time extension subsystem of trigger event notice slave computer, data produce complete;
(4) RTX real-time extension subsystem receives event message, reads data without sign from shared section key;
(5) whether the weaken rock of RTX real-time extension subsystem inquiry pci bus arrives;
(6) if the weaken rock of pci bus arrives, then start DMA pattern and send, send the bottom hardware of data without sign to slave computer; If the weaken rock of pci bus does not arrive, repeat (5);
The step of host computer data receiver, comprises
(1) the XP system of host computer occurs to receive data command to RTX real-time extension subsystem;
(2) RTX real-time extension subsystem opens shared drive, receives reception data command;
(3) weaken rock of RTX real-time extension subsystem inquiry pci bus;
(4) if the weaken rock of pci bus arrives, then start DMA pattern and receive, copy the bottom hardware of slave computer data to be occurred to shared drive; If the weaken rock of pci bus does not arrive, repeat (3);
(5) RTX real-time extension subsystem trigger event, the XP system data of notice host computer receives;
(6) the XP system of position machine reads shared drive data, and shows data.
The present invention is to produce the CWIF continuous wave intermediate frequency data instance of 750MHz, realize the transmission of host computer data, receiving course, the bottom hardware of slave computer is the programmable logic device (PLD) can carrying out digital processing, adopts the V5 SX95T fpga chip of a slice Xilinx company in the present embodiment
Host computer data transmission procedure, as shown in Figure 3, concrete steps are as follows:
(1) arranging sampling rate under the XP system of host computer is 11.71845, produces I, Q intermediate frequency data of 750M;
(2) I, Q intermediate frequency data spelling of generation is become the data without sign of 32bit form;
(3) data without sign is copied to shared section key, trigger event, the RTX real-time extension subsystem data of notice slave computer produces complete;
(4) RTX real-time extension subsystem receives event message, reads data from shared section key;
(5) inquire about PCI weaken rock whether to arrive;
(6) PCI interrupts arriving, then start DMA pattern and send, send data to FPGA; If do not arrive repeat step (5);
To receive the CWIF continuous wave intermediate frequency data instance of 750MHz, realize the DRP data reception process of host computer, bottom hardware is the programmable logic device (PLD) can carrying out digital processing, adopts the V5 SX95T fpga chip of a slice Xilinx company in the present embodiment,
Host computer DRP data reception process, as shown in Figure 4, concrete steps are as follows:
(1) XP Operation system setting starts reception data;
(2) RTX real-time extension subsystem opens shared drive, receives reception data command;
(3) whether RTX real-time extension subsystem inquiry PCI weaken rock arrives;
(4) PCI weaken rock arrives, then start DMA pattern and receive, copy intermediate frequency data to shared drive; Otherwise, repeat (3);
(5) RTX real-time extension subsystem trigger event, notice XP system data receives;
(6) XP system reads shared drive data, partition data display waveform.
In sum, pci bus method of data synchronization based on RTX real-time extension subsystem of the present invention, RTX real-time extension subsystem is installed under slave computer is installed XP system, XP system meets the function of both upper and lower machines simultaneously, slave computer realizes the function of real-time data acquisition and data transmission, the rate-matched of data input and data output both sides, and system development costs is low, maintain easily, have a good application prospect.
More than show and describe ultimate principle of the present invention, principal character and advantage.The technician of the industry should understand; the present invention is not restricted to the described embodiments; what describe in above-described embodiment and instructions just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.Application claims protection domain is defined by appending claims and equivalent thereof.

Claims (5)

1., based on the pci bus method of data synchronization of RTX real-time extension subsystem, it is characterized in that: comprise the following steps,
Step (1), installs XP operating system, slave computer installation RTX real-time extension subsystem by host computer;
Step (2), by developing the driving of PCI equipment in RTX real-time extension subsystem, to carry out the real-time Data Transmission in pci bus, data transmission adopts DMA pattern;
Step (3), sets up soft interrupt mechanism in the driving of the PCI equipment in RTX real-time extension subsystem;
Step (4), the XP operating system of host computer and the RTX real-time extension subsystem of slave computer, set up soft interrupt mechanism according to what set up, realize data syn-chronization communication.
2. the pci bus method of data synchronization based on RTX real-time extension subsystem according to claim 1, is characterized in that: the method that step (3) sets up soft interrupt mechanism is,
(1) under RTX real-time extension subsystem, the assignment of real-time query bottom hardware is 1 look-at-me;
(2) being 1 look-at-me when inquiring assignment, starting to send or receive data;
(3) transmission or reception data complete, and be 0, repeat this look-at-me assignment (1).
3. the pci bus method of data synchronization based on RTX real-time extension subsystem according to claim 1, it is characterized in that: step (4), the XP operating system of host computer and the RTX real-time extension subsystem of slave computer, soft interrupt mechanism is set up according to what set up, realize data syn-chronization communication, comprise host computer data to send and data receiver
Host computer data are sent as, and the XP operating system setting data of host computer copies to the RTX real-time extension subsystem of slave computer by shared drive mode, RTX real-time extension subsystem is sent to bottom hardware in real time by pci bus;
Host computer data receiver is, the RTX real-time extension subsystem of slave computer is by pci bus Real-time Collection bottom hardware data, Real-time Collection bottom hardware data Replica is carried out, by the XP system of Real-time Collection bottom hardware data upload to host computer by the XP of event triggered fashion notice host computer.
4. the pci bus method of data synchronization based on RTX real-time extension subsystem according to claim 3, is characterized in that: the step that host computer data send, and comprises
(1) the XP Operation system setting sampling rate of host computer, produces I, Q intermediate frequency data to be sent;
(2) I, Q intermediate frequency data will produced, is converted to the data without sign of 32 bit formats;
(3) unsigned number is copied to shared section key, the RTX real-time extension subsystem of trigger event notice slave computer, data produce complete;
(4) RTX real-time extension subsystem receives event message, reads data without sign from shared section key;
(5) whether the weaken rock of RTX real-time extension subsystem inquiry pci bus arrives;
(6) if the weaken rock of pci bus arrives, then start DMA pattern and send, send the bottom hardware of data without sign to slave computer; If the weaken rock of pci bus does not arrive, repeat (5).
5. the pci bus method of data synchronization based on RTX real-time extension subsystem according to claim 3, is characterized in that: the step of host computer data receiver, comprises
(1) the XP system of host computer occurs to receive data command to RTX real-time extension subsystem;
(2) RTX real-time extension subsystem opens shared drive, receives reception data command;
(3) weaken rock of RTX real-time extension subsystem inquiry pci bus;
(4) if the weaken rock of pci bus arrives, then start DMA pattern and receive, copy the bottom hardware of slave computer data to be occurred to shared drive; If the weaken rock of pci bus does not arrive, repeat (3);
(5) RTX real-time extension subsystem trigger event, the XP system data of notice host computer receives;
(6) the XP system of position machine reads shared drive data, and shows data.
CN201410484793.9A 2014-09-22 2014-09-22 Pci bus method of data synchronization based on RTX real-time extension subsystems Active CN104239250B (en)

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 true CN104239250A (en) 2014-12-24
CN104239250B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294235A (en) * 2015-06-01 2017-01-04 中国科学院上海高等研究院 A kind of synchronous method of real-time virtual radio data based on poll/interruption
CN108241101A (en) * 2018-02-06 2018-07-03 中国航天空气动力技术研究院 Aircraft Ground Automatic Test System Based on Real-time Serial Communication
CN113726226A (en) * 2021-08-03 2021-11-30 九江精密测试技术研究所 Combined control system of combined rotary table
CN113986909A (en) * 2021-12-24 2022-01-28 畅捷通信息技术股份有限公司 Real-time data synchronization method, system and medium for reversely recording synchronization state
CN114490494A (en) * 2021-12-29 2022-05-13 北京航天自动控制研究所 A multi-bus real-time interactive system and interactive method

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294235A (en) * 2015-06-01 2017-01-04 中国科学院上海高等研究院 A kind of synchronous method of real-time virtual radio data based on poll/interruption
CN108241101A (en) * 2018-02-06 2018-07-03 中国航天空气动力技术研究院 Aircraft Ground Automatic Test System Based on Real-time Serial Communication
CN113726226A (en) * 2021-08-03 2021-11-30 九江精密测试技术研究所 Combined control system of combined rotary table
CN113726226B (en) * 2021-08-03 2024-05-17 九江精密测试技术研究所 Combined control system of combined turntable
CN113986909A (en) * 2021-12-24 2022-01-28 畅捷通信息技术股份有限公司 Real-time data synchronization method, system and medium for reversely recording synchronization state
CN114490494A (en) * 2021-12-29 2022-05-13 北京航天自动控制研究所 A multi-bus real-time interactive system and interactive method

Also Published As

Publication number Publication date
CN104239250B (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN104239250A (en) PCI (Programmable Communication Interface) bus data synchronization method based on RTX (Real Time eXpert) real-time extending subsystem
CN102819512B (en) A kind of full-duplex communication device based on SPI and method thereof
CN105183690B (en) A kind of double-buffered data transmission method based on spi bus communication protocol
EP2928108A1 (en) System, method and apparatus for multi-lane auto-negotiation over reduced lane media
CN105611396A (en) Electronic interactive system and setting method thereof
CN101847135B (en) Series-connected communication system and communication method thereof
CN105578585A (en) A method, device and communication device for determining link delay
CN101937416A (en) PS2 (Personal System 2) protocol logic analyzer realized based on FPGA (Field Programmable Gate Array)
CN110098989A (en) A kind of multichannel CAN analogue system and test method based on CANFD bus
CN108027744A (en) Data transmission method and mobile terminal
CN106649184B (en) Asynchronous communication serial ports suitable for electronic equipment on satellite instructs rapid answer method
CN202472619U (en) Common-frequency multi-pen electronic whiteboard
CN102799402A (en) Extended interaction system based on portable smart device
CN204376929U (en) Based on many asynchronous datas mouth concurrent testing card of industry ethernet
CN204597988U (en) The AFDX terminal test equipment of Based PC PCI interface
CN101097507A (en) System and method for transmitting and displaying image and cursor image
CN102346959A (en) Remote acquisition system of analog signals
CN203433340U (en) Shield machine control system based on double industrial personal computers
CN102841875A (en) Host computer with intelligent bus interface and security system
Malsbury Modular, open-source software transceiver for PHY/MAC research
CN103840934A (en) Overhead transmission method and device based on clock automatic recovery
CN106375077A (en) Method of SI4463 chip for realizing data transmission by adopting GPIO mode
CN103686170B (en) Short-distance multi-channel video transmission method and device
CN202652394U (en) Data conversion device
CN107453832B (en) A kind of pcm interface master slave mode adaptive approach, programmable logic device and 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