Optical fiber communication data transmitting and receiving processing method and system for line differential protection device
By creating and configuring multiple functional blocks in the online differential protection device, the problem of poor flexibility in sending, receiving and processing of optical fiber communication data in the prior art is solved, and the flexible configuration and processing of data is realized, and product development efficiency is improved.
Patent Information
- Application Number
- CN202310983394.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2025-02-14
AI Technical Summary
The existing line differential protection devices have poor flexibility, complicated modification and processing in fiber optic communication data transmission and reception, making it difficult for product designers to understand the processing logic intuitively.
By creating fiber optic communication initialization function blocks, synchronous second pulse initialization function blocks, synchronous second pulse adjustment function blocks, fiber optic communication reception processing function blocks, fiber optic communication transmission processing function blocks, and sampling timer processing function blocks, and according to the fiber optic communication data transmission and reception process Configure the functional blocks to realize the configuration and processing of sending and receiving data.
It realizes the flexible configuration and processing of optical fiber communication data of line differential protection devices, improves product development efficiency, and enables product designers to intuitively understand the processing flow of each interrupt task.
Smart Images

Figure CN119449164A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method and system for processing optical fiber communication data transmission and reception of a line differential protection device, belonging to the technical field of optical fiber communication of relay protection devices. Background Art
[0002] The longitudinal differential protection of the transmission line is a protection formed by comparing the magnitude and phase of the current at the beginning and end of the protected line. Due to the long distance, high voltage level and complex electromagnetic environment of the transmission line, optical fiber communication is generally used to transmit data at both ends of the line. Optical fiber communication has the advantages of high transmission rate and strong anti-interference ability. The transmission line differential protection device determines the system operation status according to the magnitude and phase of the current at the beginning and end of the line, and then realizes the protection function of the transmission line. The differential protection device needs to send the analog and switch data of this end to the other end, and also needs to receive the communication data sent by the other end.
[0003] The configuration of the optical fiber communication transceiver data in the existing line differential protection device is completed in the optical fiber communication data configuration table of the VLD tool. The configuration data is generated into the target program of the protection device after compilation. If the content of the transceiver data is modified, the application program needs to be recompiled, which will cause the CRC of the target program of the protection device to change, and the application flexibility is poor. The processing logic of the optical fiber communication transceiver data in the existing line differential protection device is all in the platform or application engine. Product designers cannot intuitively understand the processing logic of each link, and program modification and upgrade are extremely inconvenient. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for processing optical fiber communication data reception and transmission of a line differential protection device, so as to solve the problems of poor flexibility, complicated modification and processing in the current optical fiber communication process.
[0005] In order to solve the above technical problems, the present invention provides a method for processing optical fiber communication data transmission and reception of a line differential protection device, and the processing method comprises the following steps:
[0006] 1) Create various function blocks, including optical fiber communication initialization function block, synchronous second pulse initialization function block, synchronous second pulse adjustment function block, optical fiber communication receiving and processing function block, optical fiber communication sending and processing function block, and sampling timer processing function block; wherein the optical fiber communication initialization function block is used to configure optical fiber communication sending and receiving data information, and create interrupt processing tasks and mutex locks; the synchronous second pulse initialization function block is used to create interrupt processing tasks and obtain relevant PPS register addresses; the synchronous second pulse adjustment function block is used to calculate AD sampling data information, and read and record synchronous second pulse related data information; the optical fiber communication receiving and processing function block is used to configure optical fiber channel information, perform initialization processing, and receive information sent by the opposite end for processing; the optical fiber communication sending processing function block is used to record the data information of the sampling timer; the sampling timer processing function block is used to frame the data to be sent, submit it for sending and record the occurrence information;
[0007] 2) Configure the functional blocks according to the optical fiber communication data receiving and sending process to realize the configuration and processing of the receiving and sending data.
[0008] The present invention creates an optical fiber communication initialization function block, a synchronous second pulse initialization function block, a synchronous second pulse adjustment function block, an optical fiber communication receiving and processing function block, an optical fiber communication sending and processing function block, and a sampling timer processing function block, and configures the function blocks according to the optical fiber communication data receiving and sending process to realize the configuration of receiving and sending data and the processing of receiving and sending data. The present invention realizes the configuration and processing of the optical fiber communication data of the line differential protection device by logically configuring the function blocks, which is convenient for intuitively understanding the processing processes of each interruption task, and is convenient for product developers to intuitively and flexibly configure the receiving and sending data and data processing logic of each optical fiber channel, thereby improving product development efficiency.
[0009] Furthermore, the configuration of the optical fiber communication data reception and transmission is implemented through a custom reference table of the optical fiber communication initialization function block.
[0010] The custom reference table can describe the information of sending and receiving data in optical fiber communication in detail and clearly.
[0011] Furthermore, the processing of the optical fiber communication data reception and transmission is handled by triggering an interrupt processing task; the interrupt processing task includes a timer sampling interrupt processing task, an optical fiber receiving interrupt processing task and a synchronous second pulse interrupt processing task, the timer sampling interrupt processing task is used to collect timer data for framing and sending, the optical fiber receiving interrupt processing task is used to receive data information and process it, and the synchronous second pulse interrupt processing task is used to read and record synchronous second pulse related data information.
[0012] Designing the interrupt processing logic as tasks allows product designers to flexibly design application processing function blocks based on actual needs, supports flexible configuration of the logic in the interrupt processing tasks, and facilitates intuitive understanding of the processing flow of each interrupt task.
[0013] Furthermore, the timer sampling interrupt processing task is configured and implemented through the optical fiber communication initialization function block, the optical fiber communication sending processing function block and the sampling timer processing function block; the optical fiber reception interrupt processing task is configured and implemented through the optical fiber communication initialization function block and the optical fiber communication reception processing function block; the synchronous second pulse interrupt processing task is configured and implemented through the synchronous second pulse initialization function block and the synchronous second pulse adjustment function block.
[0014] Different interrupt processing tasks are configured and processed by different function blocks, which facilitates flexible configuration of the logic in the interrupt processing tasks and improves product development efficiency.
[0015] Furthermore, each interrupt processing task is triggered by a semaphore activation in the application after the hardware interrupt triggering processing is completed.
[0016] The invention discloses an optical fiber communication data transceiving and processing system for a line differential protection device. The system comprises an optical fiber communication initialization function block, a synchronous second pulse initialization function block, a synchronous second pulse adjustment function block, an optical fiber communication receiving and processing function block, an optical fiber communication sending and processing function block and a sampling timer processing function block. Each module is configured according to the optical fiber communication data transceiving and processing process to realize the configuration of the transceiving and receiving data and the processing of the transceiving and receiving data. The optical fiber communication initialization function block is used to configure the optical fiber communication sending and receiving data information, and to create an interrupt processing task and a mutex lock. The synchronous second pulse initialization function block is used to create an interrupt processing task and obtain the relevant PPS register address. The synchronous second pulse adjustment function block is used to calculate AD sampling data information, and read and record the synchronous second pulse related data information. The optical fiber communication receiving and processing function block is used to configure the optical fiber channel information, perform initialization processing, and receive the information sent by the opposite end for processing. The optical fiber communication sending and processing function block is used to record the data information of the sampling timer. The sampling timer processing function block is used to frame the data to be sent, submit it for sending and record the occurrence information.
[0017] The present invention creates an optical fiber communication initialization function block, a synchronous second pulse initialization function block, a synchronous second pulse adjustment function block, an optical fiber communication receiving and processing function block, an optical fiber communication sending and processing function block, and a sampling timer processing function block, and configures the function blocks according to the optical fiber communication data receiving and sending process to realize the configuration of receiving and sending data and the processing of receiving and sending data. The present invention realizes the configuration and processing of the optical fiber communication data of the line differential protection device by logically configuring the function blocks, which is convenient for intuitively understanding the processing processes of each interruption task, and is convenient for product developers to intuitively and flexibly configure the receiving and sending data and data processing logic of each optical fiber channel, thereby improving product development efficiency.
[0018] Furthermore, the configuration of the optical fiber communication data reception and transmission is implemented through a custom reference table of the optical fiber communication initialization function block.
[0019] The custom reference table can describe the information of sending and receiving data in optical fiber communication in detail and clearly.
[0020] Furthermore, the processing of the optical fiber communication data reception and transmission is handled by triggering an interrupt processing task; the interrupt processing task includes a timer sampling interrupt processing task, an optical fiber receiving interrupt processing task and a synchronous second pulse interrupt processing task, the timer sampling interrupt processing task is used to collect timer data for framing and sending, the optical fiber receiving interrupt processing task is used to receive data information and process it, and the synchronous second pulse interrupt processing task is used to read and record synchronous second pulse related data information.
[0021] Designing the interrupt processing logic as tasks allows product designers to flexibly design application processing function blocks based on actual needs, supports flexible configuration of the logic in the interrupt processing tasks, and facilitates intuitive understanding of the processing flow of each interrupt task.
[0022] Furthermore, the timer sampling interrupt processing task is configured and implemented through the optical fiber communication initialization function block, the optical fiber communication sending processing function block and the sampling timer processing function block; the optical fiber reception interrupt processing task is configured and implemented through the optical fiber communication initialization function block and the optical fiber communication reception processing function block; the synchronous second pulse interrupt processing task is configured and implemented through the synchronous second pulse initialization function block and the synchronous second pulse adjustment function block.
[0023] Different interrupt processing tasks are configured and processed by different function blocks, which facilitates flexible configuration of the logic in the interrupt processing tasks and improves product development efficiency.
[0024] Furthermore, each interrupt processing task is triggered by a semaphore activation in the application after the hardware interrupt triggering processing is completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1It is a schematic diagram of the realization of the optical fiber communication data receiving and sending processing system of the line differential protection device of the present invention;
[0026] Figure 2 OPTINI is a schematic diagram of the logical configuration of the functional block in the embodiment of the present invention;
[0027] Figure 3 Schematic diagram of the logical configuration of the PPSINT function block in an embodiment of the present invention;
[0028] Figure 4 Schematic diagram of the logical configuration of OPTPPS function blocks in an embodiment of the present invention;
[0029] Figure 5 is a flowchart of the OPTPPS function block processing in an embodiment of the present invention;
[0030] Figure 6 1 is a schematic diagram of a sampling timer interrupt processing task configuration in an embodiment of the present invention;
[0031] Figure 7 It is a schematic diagram of the configuration of the optical fiber receiving interruption processing task in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.
[0033] Embodiment of optical fiber communication data transceiver processing system for line differential protection device
[0034] The present invention comprises an optical fiber communication initialization function block OPTINI, a synchronous second pulse initialization function block PPSINT, a synchronous second pulse adjustment function block OPTPPS, an optical fiber communication reception processing function block OPTRXD, an optical fiber communication transmission processing function block OPTTXD and a sampling timer processing function block OPTSMP; the optical fiber communication initialization function block OPTINI is used to configure optical fiber communication transmission data and reception data information, and to create a timer sampling interrupt, an optical fiber reception interrupt processing task and a mutex lock, and each module is configured according to the optical fiber communication data transmission and reception process to realize the configuration of transmission and reception data and the processing of transmission and reception data; the synchronous second pulse initialization function block PPSINT is used to create a synchronization Second pulse interrupt processing task; the synchronous second pulse adjustment function block OPTPPS is used to calculate the AD sampling data information in the synchronous second pulse interrupt processing task, and read and record the synchronous second pulse related data information; the optical fiber communication receiving processing function block OPTRXD is used to configure the optical fiber channel information in the optical front receiving interrupt processing task, perform initialization processing, and receive the information sent by the other end for processing; the optical fiber communication sending processing function block OPTTXD is used to record the data information of the sampling timer in the timer sampling interrupt processing task; the sampling timer processing function block OPTSMP is used to frame the data to be sent in the timer sampling interrupt processing task, submit it for sending and record the occurrence information.
[0035] Interruptions related to line protection optical fiber communication include: sampling timer interruption, optical fiber reception interruption, and synchronous second pulse interruption.
[0036] After the hardware interrupt is triggered, the low-level interrupt in the driver module is activated first. After the low-level interrupt is processed, the high-level interrupt is triggered and the interrupt semaphore is activated. The interrupt processing in the application is designed as a task with a higher priority. When there is no interrupt, it is in a suspended state, waiting for the corresponding interrupt semaphore. When the semaphore is activated, the task is awakened and begins to execute the interrupt processing logic in the application. The interrupt processing logic in the application is configured by multiple function blocks. The function block described in the present invention is a function module used for logical configuration. Its definition includes data such as input, output, fixed value parameters, values, reference tables, etc., and also includes processing logic such as initialization functions and running functions. The implementation principle of this system is as follows Figure 1 As shown, the following is explained with reference to specific examples.
[0037] The fiber optic communication initialization function block OPTINI has the following main functions: configuring the fiber optic communication sending and receiving data information, which is implemented using the function block's custom reference table; supporting the configuration of up to 8 fiber optic channels' sending and receiving data information; parsing the configuration data information in the sending and receiving data reference tables, caching them by fiber optic channels for use by other function blocks; creating a fiber optic receiving interrupt processing task, which is used to schedule the execution of the function blocks in the fiber optic receiving interrupt processing task for corresponding logical processing after the fiber optic receiving interrupt is triggered; creating a sampling timer interrupt processing task, which is used to schedule the function blocks in the sampling timer interrupt processing task for corresponding logical processing after the sampling timer interrupt is triggered; creating a unified fiber optic communication mutex lock for data protection of global shared information to ensure data operation security. The OPTINI function block logic configuration diagram is shown below: Figure 2 As shown, opt_flg is the optical fiber communication initialization completion flag, BOOL type, and its value TRUE indicates successful initialization; opt_cfg is the optical fiber communication configuration parameter information, OPT_CFG structure type, including the number of optical fiber channels, the receiving and sending data of each channel and other configuration information; opt_mutex is the optical fiber communication mutual exclusion signal lock, which is used for data mutual exclusion and protection.
[0038] Fiber optic communication data configuration method: When fiber optic communication data is sent, it is necessary to take local variable data for framing and send; when fiber optic communication data is received, it is necessary to deframe the message sent by the opposite end, and after deframing, store the data in the corresponding local receiving variable. The received data and the sent data correspond to different symbol variables, so when configuring fiber optic communication data, it is necessary to configure the sent data and the received data separately. At the same time, in order to be compatible with the requirement of using multiple fiber optic channels for multi-terminal differential protection, the fiber optic channel number configuration field is added to distinguish them when configuring the receiving and sending data.
[0039] The optical fiber communication data configuration information and field descriptions are shown in the following table:
[0040]
[0041] Example of fiber optic communication send / receive configuration data:
[0042]
[0043]
[0044] After the configuration of the optical fiber communication data sending and data receiving information is completed, the configuration information can be exported and generated into a configuration file using a tool, which can be downloaded to the device to take effect. The advantage of this method is that product designers can flexibly configure the optical fiber communication data transmission and reception according to engineering and product requirements without affecting the verification code information of the device program, which is conducive to improving the stability of the program and reducing the workload of testing and program release.
[0045] When the device is powered on and initialized, it parses the sending data and receiving data configuration information of each optical fiber channel from the configuration file, and stores the analog channel data configuration information and application data configuration information separately for use by other functional modules.
[0046] The synchronous second pulse initialization function block PPSINT has the following main functions: creating a synchronous second pulse interrupt processing task. After the PPS interrupt is triggered, the function blocks in the PPS interrupt processing task are scheduled to perform corresponding logic processing; obtaining the address of PPS related registers, including the PPS interrupt timestamp read register, the PPS pulse width adjustment write register, the PPS pulse synchronization flag read register, etc., for use by other function blocks. The logical configuration diagram of the PPSINT function block is shown in the figure below: Figure 3 As shown, pps_regs is the register information related to the synchronous second pulse PPS, including a pulse width adjustment register, an interrupt timestamp register, a synchronization flag register, etc.
[0047] The synchronous second pulse adjustment function block OPTPPS runs in the PPS interrupt processing task. Its main functions are: in the initialization phase, it calculates the AD sampling basic interval, the number of ticks per second, the number of sampling timer interrupts per second, and other information for use in the operation phase and other function blocks; in the operation phase, it reads and records the PPS interrupt timestamp, counts the uniformity of the PPS pulse interval, sets the pulse width adjustment value, and calculates the relationship between the PPS interrupt timestamp and the sampling timer timestamp, determines the adjustment direction and adjustment flag, and is used to adjust the sampling period and sampling sequence number in the sampling timer interrupt. The logical configuration diagram of the OPTPPS function block is shown below. Figure 4 As shown in the figure, opt_mutex is the optical fiber communication mutual exclusion signal lock, which is used for data mutual exclusion and protection; pps_regs is the register information related to the synchronous second pulse PPS, including the pulse width adjustment register, the interrupt timestamp register, the synchronization flag register, etc.; smp_inf is the sampling timer optical fiber sending information; PPSAdj is the PPS pulse width adjustment value; AdjStepSet is the adjustment step; pps_inf is the PPS pulse information; the processing flow of the OPTPPS function block in the PPS interrupt processing task is as follows Figure 5 shown.
[0048] The sampling timer processing function block OPTSMP and the optical fiber communication transmission processing function block OPTTXD, these two function blocks run in the sampling timer interrupt processing task. The OPTSMP function block completes the functions of recording the sampling timer timestamp, calculating and adjusting the transmission sequence number, adjusting the sampling data offset, calculating and adjusting the sampling period, calculating and setting the sampling sequence number, etc.; OPTTXD completes the framing of the sampling data and application data to be sent by each optical fiber channel, submits it to the driver and FPGA for transmission, and records the transmission information, etc. The sampling timer interrupt processing task configuration diagram is shown in the figure below. Figure 6 As shown, opt_mutex in the OPTSMP function block is the optical fiber communication mutual exclusion signal lock, which is used for data mutual exclusion and protection; pps_inf is the PPS pulse information; smp_inf is the sampling timer optical fiber sending information; opt_cfg in the OPTTXD function block is the optical fiber communication configuration parameter information; smp_inf is the sampling timer optical fiber sending information; rmsg_inf is the optical fiber receiving message information; apdata_tx is the application data framing message information in the optical fiber sending configuration; tmsg_inf is the optical fiber sending information; opt_cfg in the OPTAPDATATX function block is the optical fiber communication configuration parameter information; apdata is the application data framing message information in the optical fiber sending configuration.
[0049] The optical fiber communication receiving processing function block OPTRXD runs in the optical fiber receiving interrupt processing task. Its main functions are: in the initialization stage, according to the input configuration of the number of optical fiber channels, apply for the receiving message information cache space of each optical fiber channel, and perform related initialization processing; in the operation stage, this function block is scheduled after the optical fiber receiving interruption, and reads the communication message sent by the other end from the optical fiber driver for processing, including checking the legitimacy of the message, parsing the message, and storing it in the message cache area for processing by the application function block. The configuration diagram of the optical fiber receiving interrupt processing task is shown in the figure below. Figure 7 As shown, opt_cfg is the optical fiber communication configuration parameter information; smp_inf is the sampling timer optical fiber sending information; tmsg_inf is the optical fiber sending information; rmsg_inf is the optical fiber receiving message information.
[0050] Embodiment of a method for processing optical fiber communication data transmission and reception in a line differential protection device
[0051] The present invention creates an optical fiber communication initialization function block OPTINI, a synchronous second pulse initialization function block PPSINT, a synchronous second pulse adjustment function block OPTPPS, an optical fiber communication reception processing function block OPTRXD, an optical fiber communication transmission processing function block OPTTXD, and a sampling timer processing function block OPTSMP, and configures the function blocks according to the optical fiber communication data transmission and reception process to realize the configuration of the transmission and reception data and the processing of the transmission and reception data. The timer sampling interrupt processing task is configured and implemented through the optical fiber communication initialization function block OPTINI, the optical fiber communication transmission processing function block OPTTXD, and the sampling timer processing function block OPTSMP; the optical fiber reception interrupt processing task is configured and implemented through the optical fiber communication initialization function block OPTINI and the optical fiber communication reception processing function block OPTRXD; the synchronous second pulse interrupt processing task is configured and implemented through the synchronous second pulse initialization function block PPSINT and the synchronous second pulse adjustment function block OPTPPS. The specific implementation method of the processing method has been described in detail in the embodiment of the optical fiber communication data transmission and reception processing system of the line differential protection device, and will not be repeated here.
Claims
1. A method for processing optical fiber communication data transmission and reception in a line differential protection device, characterized in that: The processing method comprises the following steps: 1) Create various function blocks, including optical fiber communication initialization function block, synchronous second pulse initialization function block, synchronous second pulse adjustment function block, optical fiber communication receiving and processing function block, optical fiber communication sending and processing function block, and sampling timer processing function block; wherein the optical fiber communication initialization function block is used to configure optical fiber communication sending and receiving data information, and create interrupt processing tasks and mutex locks; the synchronous second pulse initialization function block is used to create interrupt processing tasks and obtain relevant PPS register addresses; the synchronous second pulse adjustment function block is used to calculate AD sampling data information, and read and record synchronous second pulse related data information; the optical fiber communication receiving and processing function block is used to configure optical fiber channel information, perform initialization processing, and receive information sent by the opposite end for processing; the optical fiber communication sending processing function block is used to record the data information of the sampling timer; the sampling timer processing function block is used to frame the data to be sent, submit it for sending and record the occurrence information; 2) Configure the functional blocks according to the optical fiber communication data receiving and sending process to realize the configuration and processing of the receiving and sending data.
2. The optical fiber communication data receiving and sending processing method of the line differential protection device according to claim 1 is characterized in that: The configuration of the optical fiber communication data reception and transmission is realized through a custom reference table of the optical fiber communication initialization function block.
3. The optical fiber communication data receiving and sending processing method of the line differential protection device according to claim 1 is characterized in that: The processing of optical fiber communication data reception and transmission is handled by triggering an interrupt processing task; the interrupt processing task includes a timer sampling interrupt processing task, an optical fiber receiving interrupt processing task and a synchronous second pulse interrupt processing task. The timer sampling interrupt processing task is used to collect timer data for framing and sending, the optical fiber receiving interrupt processing task is used to receive data information and process it, and the synchronous second pulse interrupt processing task is used to read and record synchronous second pulse related data information.
4. The optical fiber communication data transmission and reception processing method of the line differential protection device according to claim 3, characterized in that: The timer sampling interrupt processing task is configured and implemented through the optical fiber communication initialization function block, the optical fiber communication sending processing function block and the sampling timer processing function block; the optical fiber receiving interrupt processing task is configured and implemented through the optical fiber communication initialization function block and the optical fiber communication receiving processing function block; the synchronous second pulse interrupt processing task is configured and implemented through the synchronous second pulse initialization function block and the synchronous second pulse adjustment function block.
5. The optical fiber communication data transceiving and processing method for a line differential protection device according to claim 3, characterized in that: After the hardware interrupt trigger processing is completed, each interrupt processing task is triggered by the activation of the semaphore in the application.
6. A line differential protection device optical fiber communication data transceiver processing system, characterized in that: The system includes an optical fiber communication initialization function block, a synchronous second pulse initialization function block, a synchronous second pulse adjustment function block, an optical fiber communication receiving and processing function block, an optical fiber communication sending and processing function block, and a sampling timer processing function block. Each module is configured according to the optical fiber communication data receiving and sending process to realize the configuration of receiving and sending data and the processing of receiving and sending data. The fiber optic communication initialization function block is used to configure the fiber optic communication to send and receive data information, and to create interrupt processing tasks and mutex locks; The synchronous second pulse initialization function block is used to create an interrupt processing task and obtain the relevant PPS register address; the synchronous second pulse adjustment function block is used to calculate the AD sampling data information, and read and record the synchronous second pulse related data information; the optical fiber communication receiving and processing function block is used to configure the optical fiber channel information, perform initialization processing, and receive the information sent by the other end for processing; the optical fiber communication sending processing function block is used to record the data information of the sampling timer; the sampling timer processing function block is used to frame the data to be sent, submit it for sending and record the occurrence information.
7. The optical fiber communication data transceiver processing system for line differential protection device according to claim 6, characterized in that: The configuration of the optical fiber communication data reception and transmission is realized through a custom reference table of the optical fiber communication initialization function block.
8. The optical fiber communication data transceiver processing system for line differential protection device according to claim 6, characterized in that: The processing of optical fiber communication data reception and transmission is handled by triggering an interrupt processing task; the interrupt processing task includes a timer sampling interrupt processing task, an optical fiber receiving interrupt processing task and a synchronous second pulse interrupt processing task. The timer sampling interrupt processing task is used to collect timer data for framing and sending, the optical fiber receiving interrupt processing task is used to receive data information and process it, and the synchronous second pulse interrupt processing task is used to read and record synchronous second pulse related data information.
9. The optical fiber communication data transceiver processing system for line differential protection device according to claim 8, characterized in that: The timer sampling interrupt processing task is configured and implemented through the optical fiber communication initialization function block, the optical fiber communication sending processing function block and the sampling timer processing function block; the optical fiber receiving interrupt processing task is configured and implemented through the optical fiber communication initialization function block and the optical fiber communication receiving processing function block; the synchronous second pulse interrupt processing task is configured and implemented through the synchronous second pulse initialization function block and the synchronous second pulse adjustment function block.
10. The optical fiber communication data transceiver processing system for line differential protection device according to claim 8, characterized in that: After the hardware interrupt trigger processing is completed, each interrupt processing task is triggered by the activation of the semaphore in the application.