CN113721506A - Marine photoelectric signal acquisition unit based on EPA technology - Google Patents
Marine photoelectric signal acquisition unit based on EPA technology Download PDFInfo
- Publication number
- CN113721506A CN113721506A CN202110945781.1A CN202110945781A CN113721506A CN 113721506 A CN113721506 A CN 113721506A CN 202110945781 A CN202110945781 A CN 202110945781A CN 113721506 A CN113721506 A CN 113721506A
- Authority
- CN
- China
- Prior art keywords
- epa
- coprocessor
- protocol stack
- communication protocol
- signal acquisition
- 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
- 238000005516 engineering process Methods 0.000 title claims abstract description 16
- 238000004891 communication Methods 0.000 claims abstract description 54
- 230000001360 synchronised effect Effects 0.000 claims abstract description 37
- 239000013307 optical fiber Substances 0.000 claims abstract description 19
- 230000003993 interaction Effects 0.000 claims abstract description 4
- 238000005070 sampling Methods 0.000 claims description 37
- 230000000630 rising effect Effects 0.000 claims description 6
- 238000000034 method Methods 0.000 claims description 5
- 239000000835 fiber Substances 0.000 claims 2
- 230000005693 optoelectronics Effects 0.000 claims 2
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 230000006855 networking Effects 0.000 abstract description 4
- 238000007405 data analysis Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
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
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Optical Communication System (AREA)
Abstract
The invention relates to a ship photoelectric signal acquisition unit based on EPA technology, which carries out information interaction with a plurality of optical fiber current transformers through a point-to-point optical fiber communication interface of a coprocessor; the EPA communication protocol stack is accessed to an EPA real-time Ethernet communication network and used for sending acquired current information to the network, and the EPA communication protocol stack receives a time synchronization message sent by a main clock device in the EPA network and acquires a synchronous clock of a marine photoelectric signal acquisition unit; the communication among an EPA communication protocol stack in the marine photoelectric signal acquisition unit, the main controller and the coprocessor is established through a parallel bus; the main controller controls the EPA communication protocol stack and the internal register of the coprocessor to realize the control of the EPA communication protocol stack and the internal register of the coprocessor and the information acquisition. The transmission rate of data among the devices can be improved, and networking transmission of a plurality of acquisition units can be realized; under the condition of not increasing extra clock wiring, the data acquisition synchronization of a plurality of photoelectric signal acquisition units can be realized.
Description
Technical Field
The invention relates to an information acquisition technology, in particular to a marine photoelectric signal acquisition unit based on an EPA technology.
Background
The photoelectric signal acquisition unit is used as a field layer synchronous acquisition device of a ship direct-current power system, can synchronously acquire current signals of a plurality of ship optical fiber electronic transformers, and combines a plurality of paths of current signals and then sends the combined signals to a ship comprehensive protection device to execute a protection function. An optical fiber point-to-point communication scheme is adopted between the existing photoelectric signal acquisition unit and the comprehensive protection device. With the increase of the scale and capacity of a ship power station and the increasing complexity of a power grid structure, a novel ship power system protection strategy, such as self-adaptive protection and intelligent station domain protection, is gradually proposed, and the technical scheme of the existing photoelectric signal acquisition unit is difficult to meet the requirements of new application in the aspects of data transmission bandwidth, reliability, instantaneity and networking flexibility.
Disclosure of Invention
Aiming at the problem that the marine field acquisition requirement is improved along with the improvement of the system control performance, the EPA technology-based marine photoelectric signal acquisition unit is provided, the networking and data transmission between a plurality of photoelectric signal acquisition units and a comprehensive protection device are realized through an EPA real-time Ethernet, and the data acquisition synchronization of the plurality of photoelectric signal acquisition units is realized by utilizing a clock synchronization mechanism of the EPA.
The technical scheme of the invention is as follows: a ship photoelectric signal acquisition unit based on EPA technology comprises an EPA communication protocol stack, a main controller and a coprocessor;
the marine photoelectric signal acquisition unit performs information interaction with a plurality of optical fiber current transformers through the point-to-point optical fiber communication interface of the coprocessor;
the method comprises the following steps that a marine photoelectric signal acquisition unit is accessed to an EPA real-time Ethernet communication network through an EPA communication protocol stack and sends acquired current information to the network, the EPA communication protocol stack receives a time synchronization message sent by a main clock device in the EPA network, time synchronization of an EPA node of the marine photoelectric signal acquisition unit is completed, a PPS clock signal is generated and sent to a coprocessor to achieve synchronous acquisition;
the communication among an EPA communication protocol stack in the marine photoelectric signal acquisition unit, the main controller and the coprocessor is established through a parallel bus; the main controller sends a read/write control signal to the EPA communication protocol stack and the coprocessor, and the main controller realizes the control and information acquisition of the EPA communication protocol stack and the coprocessor by controlling internal registers of the EPA communication protocol stack and the coprocessor.
Preferably, when receiving a new control message from the EPA network, the EPA communication protocol stack sends an EPA interrupt signal to the main controller; and after the coprocessor finishes primary photoelectric signal acquisition, sending a coprocessor interrupt signal to the main controller.
Preferably, the coprocessor receives a PPS clock signal sent by an EPA communication protocol stack every second, corrects the sending period of the synchronization pulse, and controls the sending of the synchronization pulse; receiving a current message sent by the optical fiber current transformer, and analyzing current information according to a format; storing the analyzed current information into a corresponding address; an interrupt signal is sent to the host controller.
Preferably, the coprocessor sends a synchronous sampling pulse to each optical fiber current transformer, and the optical fiber current transformers sample at the rising edge moment and reply and send sampling data messages at the falling edge moment of the sampling pulse.
Preferably, the specific method for adjusting the time interval of sending the synchronous sampling pulse by the coprocessor according to the PPS second pulse-to-time signal input by the EPA communication protocol stack is as follows:
taking a main clock of the coprocessor as a timing reference, wherein a count value of the main clock between two adjacent PPS second pulses is called a second width, and a count value of the main clock between two adjacent synchronous sampling pulses is called a synchronous sampling pulse width; setting the width of the previous Second as Second _ t1, the width of the current Second as Second _ t2, the count value of the main clock between the current adjacent PPS Second pulses as PPS _ cnt, the width of the synchronous sampling pulse as Sample _ t and the synchronous sampling frequency as F; and adjusting the synchronous sampling pulse width at the time of receiving the rising edge of the PPS second pulse each time, and adjusting the time error to be uniformly distributed in all synchronous sampling pulses of the next second, wherein the Sample _ t is calculated as follows:
a)Second_t2=PPS_cnt
b)Sample_t=(2×Second_t2-Second_t1)/F
c)Second_t1=Second_t2。
the invention has the beneficial effects that: according to the ship photoelectric signal acquisition unit based on the EPA technology, the communication between the ship photoelectric signal acquisition unit and the ship comprehensive protection device is realized by adopting the EPA communication interface, the transmission rate of data between the devices can be improved, and the networking transmission of a plurality of devices can be realized; based on the time setting technology of the EPA network, under the condition of not increasing extra clock wiring, the data acquisition synchronization of a plurality of photoelectric signal acquisition units can be realized.
Drawings
FIG. 1 is a schematic structural diagram of a marine photoelectric signal acquisition unit based on EPA technology;
FIG. 2 is a flow chart of the coprocessor of the present invention;
FIG. 3 is a flow chart of a main processor of the present invention;
FIG. 4 is a flow chart of host processor interrupt according to the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
Fig. 1 is a schematic structural diagram of a marine photoelectric signal acquisition unit based on the EPA technology, which includes an EPA communication protocol stack, a main controller, and a coprocessor.
The marine photoelectric signal acquisition unit is the acquisition front end of the marine comprehensive protection device and provides current information required by the protection of a marine electric power system for the marine comprehensive protection device, so that the requirements on data synchronism and real-time performance are high. The prior art scheme has no time setting network interface, and can only ensure the data acquisition synchronization of a single marine photoelectric signal acquisition unit. The invention realizes the data acquisition synchronization of a plurality of marine photoelectric signal acquisition units by using the time synchronization information of the EPA network.
The marine photoelectric signal acquisition unit performs information interaction with the optical fiber current transformer through the point-to-point optical fiber communication interface of the coprocessor. Each optical fiber current transformer can collect current of one path, and the unit can be connected with 4 optical fiber current transformers. The coprocessor sends synchronous sampling pulses to each optical fiber current transformer, and the optical fiber current transformers sample at the rising edge moment and reply and send sampling data messages at the falling edge moment of the sampling pulses.
The marine photoelectric signal acquisition unit is accessed to an EPA real-time Ethernet communication network through an EPA communication protocol stack and sends acquired 4-path current information to the EPA network. The EPA communication protocol stack receives the time synchronization message sent by the main clock equipment in the EPA network, completes the time synchronization of the EPA node, generates a PPS clock signal and sends the PPS clock signal to the coprocessor to realize synchronous acquisition.
The marine photoelectric signal acquisition unit coordinates and controls the EPA communication protocol stack and the coprocessor through the main controller to finish the transmission of acquired data. The main controller, the EPA communication protocol stack and the coprocessor establish communication through a parallel bus, namely a data bus 16bit and an address bus 13 bit. The main controller sends a read/write control signal to the EPA communication protocol stack and the coprocessor, and realizes the control and information acquisition of the EPA communication protocol stack and the coprocessor by controlling internal registers of the EPA communication protocol stack and the coprocessor. When the EPA communication protocol stack receives a new control message from the EPA network, an EPA interrupt signal is sent to the main controller. And after the coprocessor finishes primary photoelectric signal acquisition, sending a coprocessor interrupt signal to the main controller.
The coprocessor adopts an EP4CE22F17I7 type FPGA chip, and the control flow is shown in figure 2. The FPGA adopts modular programming, and all module software is executed in parallel. Firstly, resetting and initializing each module software after power-on, wherein a main program is divided into two parts: data analysis and synchronous sampling. The data analysis is to receive the current messages sent by each optical fiber current transformer, analyze the current information according to the format, store the analyzed current information into the corresponding address, and send an interrupt signal to the main controller; synchronous sampling is to receive PPS clock signal sent by EPA communication protocol stack every second, correct synchronous sampling pulse sending period of coprocessor and control sending of synchronous sampling pulse. The specific control scheme is as follows:
data analysis: first, the current value (32-bit data representation) is parsed according to the data message format of table 1. And storing the collected 1-4 paths of current values in a data cache region of a coprocessor, wherein the storage address is 0x 0010-0 x0016, the data bit width is 16 bits, each path of current value occupies 2 addresses, and the current values are stored in a small-end mode (the low bits of the data are stored in the low address of the memory, and the high bits of the data are stored in the high address of the memory).
TABLE 1
Synchronous sampling: synchronous acquisition depends on the synchronism of sampling pulses, and the requirement of the comprehensive protection device for the ship on the data synchronism is generally that the error is within 10 mu s. Each path of synchronous sampling pulse output by the single marine photoelectric signal acquisition unit is controlled by the coprocessor and is triggered in parallel on software, and the error is not more than 1 mu s. The synchronous scheme of the plurality of marine photoelectric signal acquisition units is as follows:
and adjusting the time interval of sending synchronous sampling pulses by the coprocessor according to the PPS second pulse time-setting signal input by the EPA communication protocol stack. Taking the main clock of the coprocessor as a timing reference, the count value of the main clock between two adjacent PPS second pulses is called second width, and the count value of the main clock between two adjacent synchronous sampling pulses is called synchronous sampling pulse width. Let the previous Second width be Second _ t1, the current Second width be Second _ t2, the count value of the master clock between the current adjacent PPS Second pulses be PPS _ cnt, the synchronous sampling pulse width be Sample _ t, and the synchronous sampling frequency be F. And adjusting the synchronous sampling pulse width at the time of receiving the rising edge of the PPS second pulse each time, and adjusting the time error to be uniformly distributed in all synchronous sampling pulses of the next second, wherein the Sample _ t is calculated as follows:
a)Second_t2=PPS_cnt
b)Sample_t=(2×Second_t2-Second_t1)/F
c)Second_t1=Second_t2。
the main controller adopts an STM32H753XIH6 type ARM chip, and the overall control flow is shown in FIG. 3. The main program firstly initializes the hardware of the main controller; executing reset operation on the coprocessor; reading the current state of an EPA communication protocol stack, if the state is normal, indicating that the EPA network is successfully established, if the state is normal, entering a main circulation function, and if the state is abnormal, controlling an indicator light to give an alarm. And detecting an interrupt signal of the coprocessor in the main cycle, and executing an interrupt response program after receiving the interrupt signal. As shown in fig. 4, the interrupt response program reads the 4-way current value of the coprocessor buffer area through the parallel bus, and sends a data packet according to the EPA communication protocol stack sending message format; and controlling an EPA communication protocol stack to send a message through a parallel bus.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (5)
1. A ship photoelectric signal acquisition unit based on EPA technology is characterized by comprising an EPA communication protocol stack, a main controller and a coprocessor;
the marine photoelectric signal acquisition unit performs information interaction with a plurality of optical fiber current transformers through the point-to-point optical fiber communication interface of the coprocessor;
the method comprises the following steps that a marine photoelectric signal acquisition unit is accessed to an EPA real-time Ethernet communication network through an EPA communication protocol stack and sends acquired current information to the network, the EPA communication protocol stack receives a time synchronization message sent by a main clock device in the EPA network, time synchronization of an EPA node of the marine photoelectric signal acquisition unit is completed, a PPS clock signal is generated and sent to a coprocessor to achieve synchronous acquisition;
the communication among an EPA communication protocol stack in the marine photoelectric signal acquisition unit, the main controller and the coprocessor is established through a parallel bus; the main controller sends a read/write control signal to the EPA communication protocol stack and the coprocessor, and the main controller realizes the control and information acquisition of the EPA communication protocol stack and the coprocessor by controlling internal registers of the EPA communication protocol stack and the coprocessor.
2. The EPA technology based marine photoelectric signal acquisition unit as claimed in claim 1, wherein the EPA communication protocol stack sends an EPA interrupt signal to the main controller when receiving a new control message from an EPA network; and after the coprocessor finishes primary photoelectric signal acquisition, sending a coprocessor interrupt signal to the main controller.
3. The EPA technology-based marine photoelectric signal acquisition unit as claimed in claim 1 or 2, wherein the coprocessor receives PPS clock signals sent by an EPA communication protocol stack every second, corrects the sending period of the synchronization pulse, and controls the sending of the synchronization pulse; receiving a current message sent by the optical fiber current transformer, and analyzing current information according to a format; storing the analyzed current information into a corresponding address; an interrupt signal is sent to the host controller.
4. The EPA-technology-based marine optoelectronic signal acquisition unit of claim 3, wherein the coprocessor sends synchronous sampling pulses to each fiber current transformer, and the fiber current transformers sample at the rising edge moment and reply to send sampling data messages at the falling edge moment of the sampling pulses.
5. The EPA technology-based marine optoelectronic signal acquisition unit as claimed in claim 3, wherein the specific method for adjusting the time interval of synchronous sampling pulse sent by the coprocessor according to the PPS second pulse time-setting signal input by the EPA communication protocol stack is as follows:
taking a main clock of the coprocessor as a timing reference, wherein a count value of the main clock between two adjacent PPS second pulses is called a second width, and a count value of the main clock between two adjacent synchronous sampling pulses is called a synchronous sampling pulse width; setting the width of the previous Second as Second _ t1, the width of the current Second as Second _ t2, the count value of the main clock between the current adjacent PPS Second pulses as PPS _ cnt, the width of the synchronous sampling pulse as Sample _ t and the synchronous sampling frequency as F; and adjusting the synchronous sampling pulse width at the time of receiving the rising edge of the PPS second pulse each time, and adjusting the time error to be uniformly distributed in all synchronous sampling pulses of the next second, wherein the Sample _ t is calculated as follows:
a)Second_t2=PPS_cnt
b)Sample_t=(2×Second_t2-Second_t1)/F
c)Second_t1=Second_t2。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110945781.1A CN113721506A (en) | 2021-08-17 | 2021-08-17 | Marine photoelectric signal acquisition unit based on EPA technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110945781.1A CN113721506A (en) | 2021-08-17 | 2021-08-17 | Marine photoelectric signal acquisition unit based on EPA technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113721506A true CN113721506A (en) | 2021-11-30 |
Family
ID=78676179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110945781.1A Pending CN113721506A (en) | 2021-08-17 | 2021-08-17 | Marine photoelectric signal acquisition unit based on EPA technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113721506A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2189623C2 (en) * | 2000-06-27 | 2002-09-20 | Тюрин Сергей Феофентович | System for program control of manufacturing equipment |
CN202260635U (en) * | 2011-10-11 | 2012-05-30 | 江苏省邮电规划设计院有限责任公司 | Communication digital substation signal combining unit |
CN103364067A (en) * | 2012-04-01 | 2013-10-23 | 中国科学院声学研究所 | Underwater sound array system without cable connection in deepwater and synchronous acquisition method |
CN107229240A (en) * | 2017-06-13 | 2017-10-03 | 华南理工大学 | A kind of multi-axis synchronized control apparatus and method based on EtherCAT |
CN209297298U (en) * | 2018-11-26 | 2019-08-23 | 南方电网科学研究院有限责任公司 | A kind of combining unit |
-
2021
- 2021-08-17 CN CN202110945781.1A patent/CN113721506A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2189623C2 (en) * | 2000-06-27 | 2002-09-20 | Тюрин Сергей Феофентович | System for program control of manufacturing equipment |
CN202260635U (en) * | 2011-10-11 | 2012-05-30 | 江苏省邮电规划设计院有限责任公司 | Communication digital substation signal combining unit |
CN103364067A (en) * | 2012-04-01 | 2013-10-23 | 中国科学院声学研究所 | Underwater sound array system without cable connection in deepwater and synchronous acquisition method |
CN107229240A (en) * | 2017-06-13 | 2017-10-03 | 华南理工大学 | A kind of multi-axis synchronized control apparatus and method based on EtherCAT |
CN209297298U (en) * | 2018-11-26 | 2019-08-23 | 南方电网科学研究院有限责任公司 | A kind of combining unit |
Non-Patent Citations (1)
Title |
---|
梁涛;张浩;孙鹤旭;林涛;: "电动执行器EPA高速通信模块的开发", 微特电机, no. 06 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110213143B (en) | 1553B bus IP core and monitoring system | |
CN110471872B (en) | System and method for realizing M-LVDS bus data interaction based on ZYNQ chip | |
US20140068134A1 (en) | Data transmission apparatus, system, and method | |
CN103209137B (en) | Configurable high precision time interval frame issues Ethernet interface control system | |
CN102438010B (en) | For the method and apparatus of streaming data profiling | |
JP6340481B2 (en) | Data caching method, apparatus and storage medium | |
CN113190291B (en) | Configurable protocol conversion system and method based on network-on-chip data acquisition | |
CN102253913A (en) | Device for carrying out state acquisition and output control on multi-board-card port | |
EP2064628B1 (en) | A method for time-stamping messages | |
CN114817114B (en) | MIPI interface, control method, device and medium thereof | |
CN116089343A (en) | AXI-based data storage method, device, storage medium and equipment | |
CN110073311A (en) | Clock gating, which enables, to be generated | |
CN103107862A (en) | Logic device and management data input/output (MDIO) data transmission method thereof | |
CN111049718B (en) | CAN bus simulation monitoring method | |
CN110830137B (en) | Multi-node time synchronization control system based on SRIO and synchronization control method thereof | |
CN113721506A (en) | Marine photoelectric signal acquisition unit based on EPA technology | |
Gutiérrez et al. | The ALICE TPC readout control unit | |
CN110519016B (en) | Three-in-one network data sending method based on real-time priority dynamic adjustment | |
CN109151316B (en) | Multi-industry camera data scheduling device based on FPGA | |
CN110572308A (en) | Distributed high-real-time ring network communication system | |
CN106209691B (en) | A kind of network port mirror method having independent mac source address | |
CN111158339B (en) | CAN bus simulation monitoring system | |
CN104735824B (en) | Data handling system | |
CN110569162A (en) | Automatic testing method and device for FPGA in communication field | |
CN113341198B (en) | Power line wave recording method and system based on metering chip register |
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 |