A method for constructing a multi-channel synchronous transmission framework based on IEC104 protocol
By adopting a multi-channel synchronous transmission framework based on the IEC104 protocol in the power distribution terminal, and using the SOCKET channel and synchronization mechanism, the problems of low single-channel transmission efficiency and vulnerability to interference in traditional power distribution terminals are solved, and the modern power distribution system is realized. Fixed-value remote management and real-time synchronization improve data transmission efficiency and anti-interference capabilities.
Patent Information
- Application Number
- CN202411116700.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-15
AI Technical Summary
The single-channel transmission method of traditional power distribution terminals is inefficient and susceptible to interference, and cannot meet the needs of modern power distribution systems for fixed-value remote management and real-time synchronization.
The multi-channel synchronous transmission framework construction method based on the IEC104 protocol realizes parallel transmission by establishing a SOCKET channel between the management unit and the bay unit, and adopts the general call synchronization and mutation synchronization mechanisms to ensure real-time synchronization of fixed value parameters.
It improves data transmission efficiency and anti-interference ability, meets the needs of modern power distribution systems for remote management of fixed values, ensures real-time synchronization of fixed value parameters, and avoids risks caused by inconsistent settings.
Smart Images

Figure CN118631912B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power distribution terminal communication, and in particular to a method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol. Background Art
[0002] With the development of the power system and the increasing demand for power reliability in society, the operation and maintenance of distribution networks have become increasingly complex. In order to meet these challenges, power supply companies in various regions have gradually promoted the digital and intelligent transformation of distribution networks to improve the operating efficiency, reliability and safety of distribution networks. The construction of digital basic data is an important foundation for achieving this transformation. Through accurate and real-time data collection and transmission, power supply companies can better monitor and manage the operating status of distribution terminals, thereby making more timely and effective decisions.
[0003] The prior art has the following deficiencies:
[0004] 1. Traditional distribution terminals usually only realize three remote communications, namely remote signaling, remote measurement and remote control. With the increasing demand for digitalization and intelligence of distribution networks, traditional three remote communications can no longer meet the requirements of modern distribution systems;
[0005] 2. Traditional power distribution terminals usually adopt a single-channel transmission method, which not only has low data transmission efficiency, but is also easily interfered during the transmission process, which can easily lead to delays and inconsistencies in the constant value synchronization between units.
[0006] Based on this, the present invention proposes a method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol. By introducing the remote adjustment function, the needs of modern distribution systems for remote management of set values are met, and parallel transmission is realized through multiple SOCKET channels, which improves the efficiency and anti-interference ability of data transmission. Finally, through the general call synchronization and mutation synchronization mechanism, the real-time synchronization of the set value parameters is ensured, effectively avoiding the risks caused by inconsistent set values. Summary of the invention
[0007] The purpose of the present invention is to provide a method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol to solve the shortcomings of the background technology.
[0008] In order to achieve the above object, the present invention provides the following technical solution: a method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol, the construction method comprising the following steps:
[0009] S1: Configure communication parameters and remote reference point table
[0010] The construction system configures the remote reference point table, management unit communication parameters and each bay unit communication parameters through maintenance tools;
[0011] S2: Establishing a SOCKET channel
[0012] A SOCKET channel is established between the management unit and each interval unit, with the management unit acting as the client and the interval unit acting as the server;
[0013] S3: Establishing IEC104 protocol link
[0014] The management unit initiates an IEC104 link request to each bay unit on the SOCKET channel, and the bay unit completes the IEC104 protocol link establishment after responding to the link request of the management unit;
[0015] S4: Synchronous remote parameter setting
[0016] After the management unit makes a general call to synchronize the remote parameter values of each interval unit, the interval unit suddenly changes the synchronized remote parameter values, and the master station sends a preset value message through the IEC104 protocol. The management unit parses the preset value message to generate a preset remote parameter value frame and then forwards it to the corresponding interval unit. The interval unit evaluates whether the preset remote parameter value frame meets the standard. If it meets the standard, the master station sends a solidified remote parameter value frame or cancels the remote parameter value frame broadcast by the management unit to each interval unit. After receiving the reply from the interval unit, the management unit again performs a general call to synchronize the value of the interval unit to complete the construction of the transmission framework.
[0017] In a preferred embodiment, in step S4, the management unit generally calls and synchronizes the remote parameter settings of each interval unit, including the following steps:
[0018] The management unit sends all remote parameter setting frames to each interval unit through the SOCKET channel, with the type identifier being 0xCA and the transmission reason being 0x06. The management unit receives the remote parameter setting frames replied by each interval unit, and parses the remote parameter setting frames through the remote parameter point table to obtain the remote parameter setting.
[0019] In a preferred embodiment, in step S4, the interval unit suddenly changes the synchronous remote parameter setting value, including the following steps:
[0020] When the interval unit modifies the remote parameter setting through the maintenance tool, the modified setting data is transmitted to the SOCKET channel established with the management unit. The SOCKET channel uses the IEC104 protocol, with the custom type identifier 0xE8 and the transmission reason 0x03, plus the remote parameter setting information, to form a remote parameter setting change frame and send it to the management unit. The management unit parses the remote parameter setting data to the corresponding setting through the remote parameter point table.
[0021] In a preferred embodiment, in step S4, the master station sends a preset value message through the IEC104 protocol, and the management unit parses the preset value message to generate a preset remote parameter value frame and then forwards it to the corresponding interval unit, including the following steps:
[0022] The master station sends preset set value messages to the management unit through the IEC104 protocol. The management unit first parses the remote parameter point table to find out which interval units the master station presets the remote parameter set values for, and then regenerates the preset remote parameter set value frames according to the IEC104 protocol and forwards them to the corresponding interval units.
[0023] In a preferred embodiment, in step S4, the interval unit evaluates whether the preset remote parameter setting frame meets the standard. After the standard is met, the master station sends a fixed remote parameter setting frame or cancels the remote parameter setting frame broadcast by the management unit to each interval unit, including the following steps:
[0024] After receiving the preset remote parameter setting frame, the interval unit evaluates whether the preset remote parameter setting frame meets the standard. If the preset remote parameter setting frame does not meet the standard, the management unit regenerates the preset remote parameter setting frame and sends it to the interval unit again. If the preset remote parameter setting frame meets the standard, the master station sends a fixed remote parameter setting frame or a cancel remote parameter setting frame to the management unit. The management unit receives the fixed remote parameter setting frame or the cancel remote parameter setting frame and forwards it to each interval unit in a broadcast manner. The interval unit that receives the preset remote parameter setting frame receives the fixed remote parameter setting frame or the cancel remote parameter setting frame again, then fixes or cancels the preset remote parameter setting frame and replies to the management unit. The interval unit that has not received the preset remote parameter setting frame before receives the fixed remote parameter setting frame or the cancel remote parameter setting frame again, then does not reply to the management unit. When the management unit receives a reply from any interval unit, it performs a general call synchronization setting operation on the interval unit again.
[0025] In a preferred embodiment, after receiving the preset remote parameter setting frame, the interval unit evaluates whether the preset remote parameter setting frame meets the standard, including the following steps:
[0026] After receiving the preset remote parameter setting frame, the interval unit detects the preset remote parameter setting frame through the maintenance tool, and obtains the Boolean value matching assignment, the relative position ratio of the setting point number, and the floating coefficient of the value range of the preset remote parameter setting frame;
[0027] The relative position ratio of the fixed-value point number and the floating coefficient of the value range are normalized to map the relative position ratio of the fixed-value point number and the value range of the floating coefficient to [0,1], and the normalized value of the relative position ratio of the fixed-value point number and the normalized value of the floating coefficient of the value range are obtained. The normalized value of the relative position ratio of the fixed-value point number is subtracted from the normalized value of the floating coefficient of the value range to obtain the data difference. The standard index is obtained by multiplying the data difference by the Boolean value matching assignment. The larger the standard index is, the more the preset remote parameter fixed value frame meets the expected requirements. The obtained standard index is compared with the preset index threshold. The index threshold is used to determine whether the preset remote parameter fixed value frame meets the standard. If the standard index is greater than or equal to the index threshold, it is determined that the preset remote parameter fixed value frame meets the standard. If the standard index is less than the index threshold, it is determined that the preset remote parameter fixed value frame does not meet the standard.
[0028] In a preferred embodiment, the calculation logic of the floating coefficient of the value range is: obtain the number of fixed value points in the preset remote parameter fixed value frame, and calculate the value deviation of each fixed value point, obtain the difference by subtracting the standard value of the fixed value point from the actual value of the fixed value point, take the absolute value of the difference as the value deviation, and calculate the average deviation and the discrete amplitude of the deviation according to the value deviation of all fixed value points in the preset remote parameter fixed value frame. The expression is: , where is the mean deviation, is the discrete amplitude of the deviation, is the number of set value points in the preset remote parameter set value frame. For the The value deviation of each fixed value point generates a floating coefficient of the value range based on the average deviation and the discrete amplitude of the deviation;
[0029] If the average deviation is less than or equal to the deviation threshold, and the deviation discrete amplitude is less than or equal to the discrete threshold, the floating coefficient of the value range is 1.8;
[0030] If the average deviation is less than or equal to the deviation threshold, and the deviation discrete amplitude is greater than the discrete threshold, the floating coefficient of the value range is 1.5;
[0031] If the average deviation is greater than the deviation threshold, and the deviation discrete amplitude is greater than the discrete threshold, the floating coefficient of the value range is 1.2;
[0032] If the average deviation is greater than the deviation threshold and the deviation discrete amplitude is less than or equal to the discrete threshold, the floating coefficient of the value range is 0.9.
[0033] In a preferred embodiment, the calculation expression of the Boolean value matching assignment is: , where Assign a value to a Boolean match, is the current Boolean value of the preset remote parameter setting frame. It is the standard Boolean value of the preset remote parameter setting frame;
[0034] The calculation expression of the relative position ratio of the fixed point number is: , where is the relative position ratio of the fixed point number, It is the current setting point number of the preset remote parameter setting frame. It is the minimum set point number of the preset remote parameter set value frame. It is the maximum set point number of the preset remote parameter set value frame.
[0035] In a preferred embodiment, the management unit receives a remote parameter setting frame for fixing or canceling a remote parameter setting frame, and forwards it to each interval unit in a broadcast manner, including the following steps:
[0036] The master station sends a command frame for fixing or canceling a setting to the management unit through the IEC104 protocol. The management unit receives the fixed remote parameter setting frame or the cancel remote parameter setting frame sent by the master station, and broadcasts the received fixed remote parameter setting frame or the cancel remote parameter setting frame to all interval units. All interval units receive the fixed remote parameter setting frame or the cancel remote parameter setting frame broadcast by the management unit. If the interval unit has previously received and processed the preset remote parameter setting frame, the fixed remote parameter setting frame or the cancel remote parameter setting frame is processed accordingly, the preset setting is fixed, and a confirmation reply is sent to the management unit, the preset setting is canceled, and a confirmation reply is sent to the management unit. If the interval unit has not previously received the preset remote parameter setting frame, no operation is performed and no reply is sent.
[0037] In a preferred embodiment, after the management unit receives a reply from any interval unit, it performs a general call synchronization setting operation on the interval unit again, including the following steps:
[0038] The management unit receives the confirmation reply from the interval unit, confirming that the interval unit has completed the solidification or cancellation operation. The management unit sends a general call request frame to the interval unit, requiring the interval unit to return all current fixed values. The interval unit receives the general call request from the management unit, packages all current fixed values into a response frame, and sends it back to the management unit. The management unit receives the fixed value response frame returned by the interval unit, parses the fixed value data in the response frame, and checks whether these fixed values are consistent with expectations, compares the received fixed values with the preset fixed values, and verifies their consistency. If the fixed values are consistent, the operation is completed. If the fixed values are inconsistent, it is necessary to resend the preset remote parameter fixed value frame and repeat the solidification or cancellation operation until the fixed values are consistent. The results of the synchronization operation are recorded, including successful fixed value synchronization and any inconsistencies.
[0039] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0040] 1. The present invention establishes a SOCKET channel between the management unit and each interval unit, initiates an IEC104 link request to each interval unit on the SOCKET channel, the interval unit responds to the link request of the management unit, completes the link establishment of the IEC104 protocol, and after the management unit calls and synchronizes the remote parameter values of each interval unit, the interval unit suddenly synchronizes the remote parameter values, the master station sends a preset value message through the IEC104 protocol, the management unit parses the preset value message to generate a preset remote parameter value frame and then forwards it to the corresponding interval unit, the interval unit evaluates whether the preset remote parameter value frame meets the standard, and after meeting the standard, the master station sends a solidified remote parameter value frame or cancels the remote parameter value frame broadcasted by the management unit to each interval unit, and the management unit receives the reply from the interval unit and performs a general call and synchronization operation on the interval unit again. The construction system meets the needs of modern power distribution systems for remote management of fixed values by introducing remote adjustment functions, and realizes parallel transmission through multiple SOCKET channels, which improves the efficiency of data transmission and anti-interference ability. Finally, through the general call synchronization and mutation synchronization mechanism, the real-time synchronization of fixed value parameters is ensured, effectively avoiding the risks caused by inconsistent fixed values.
[0041] 2. The present invention normalizes the relative position ratio of the fixed-value point number and the floating coefficient of the value range to obtain the normalized value of the relative position ratio of the fixed-value point number and the normalized value of the floating coefficient of the value range, and subtracts the normalized value of the relative position ratio of the fixed-value point number from the normalized value of the floating coefficient of the value range to obtain a data difference. The standard index is obtained by multiplying the data difference by Boolean value matching assignment. The larger the standard index is, the more the preset remote parameter fixed value frame meets the expected requirements. The obtained standard index is compared with a preset index threshold. The index threshold is used to determine whether the preset remote parameter fixed value frame meets the standard. The standard index is obtained by comprehensively calculating the Boolean value matching assignment, the relative position ratio of the fixed-value point number and the floating coefficient of the value range, so that the standard evaluation of the preset remote parameter fixed value frame is more comprehensive and accurate, and the quality of the transmission framework is further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0043] Figure 1 It is a schematic diagram of the architecture of the transmission framework of the present invention.
[0044] Figure 2 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Example: See Figure 1 and Figure 2 As shown, the method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol in this embodiment includes the following steps:
[0047] S1: Configure communication parameters and remote reference point table
[0048] The construction system configures the remote reference point table, management unit communication parameters and each bay unit communication parameters through maintenance tools;
[0049] S2: Establishing a SOCKET channel
[0050] A SOCKET channel is established between the management unit and each interval unit, with the management unit acting as the client and the interval unit acting as the server;
[0051] S3: Establishing IEC104 protocol link
[0052] The management unit initiates an IEC104 link request to each bay unit on the SOCKET channel, and the bay unit responds to the link request of the management unit to complete the link establishment of the IEC104 protocol;
[0053] S4: Synchronous remote parameter setting
[0054] After the management unit makes a general call to synchronize the remote parameter values of each interval unit, the interval unit suddenly changes the synchronized remote parameter values, and the master station sends a preset value message through the IEC104 protocol. The management unit parses the preset value message to generate a preset remote parameter value frame and then forwards it to the corresponding interval unit. The interval unit evaluates whether the preset remote parameter value frame meets the standard. If it meets the standard, the master station sends a solidified remote parameter value frame or cancels the remote parameter value frame broadcast by the management unit to each interval unit. After receiving the reply from the interval unit, the management unit again performs a general call to synchronize the value of the interval unit to complete the construction of the transmission framework.
[0055] The present application establishes a SOCKET channel between the management unit and each interval unit, initiates an IEC104 link request to each interval unit on the SOCKET channel, the interval unit responds to the link request of the management unit, completes the link establishment of the IEC104 protocol, after the management unit makes a general call to synchronize the remote parameter settings of each interval unit, the interval unit suddenly changes the synchronized remote parameter settings, the master station sends a preset setting message through the IEC104 protocol, the management unit parses the preset setting message to generate a preset remote parameter setting frame and then forwards it to the corresponding interval unit, the interval unit evaluates whether the preset remote parameter setting frame meets the standard, after meeting the standard, the master station sends a solidified remote parameter setting frame or cancels the remote parameter setting frame broadcast by the management unit to each interval unit, and the management unit performs a general call to synchronize the setting value operation on the interval unit again after receiving the reply from the interval unit. The constructed system meets the needs of modern distribution systems for remote management of set values by introducing remote adjustment functions, and realizes parallel transmission through multiple SOCKET channels, which improves the efficiency and anti-interference ability of data transmission. Finally, through the general call synchronization and mutation synchronization mechanisms, the real-time synchronization of set value parameters is ensured, effectively avoiding the risks caused by inconsistent set values.
[0056] The construction system configures the remote reference point table, management unit communication parameters, and each bay unit communication parameters through the maintenance tool, including the following steps:
[0057] Use the maintenance tool to configure the management unit's IP address, port number, protocol type and other communication parameters to ensure that it can communicate normally with each bay unit.
[0058] Use the maintenance tool to configure communication parameters such as IP address, port number, protocol type, etc. for each interval unit to ensure that the interval unit can correctly receive and respond to the communication request of the management unit.
[0059] Configure the remote parameter point table in the maintenance tool to define the specific attributes and parameters of each remote adjustment set point, including point number, data type, set value range, etc.
[0060] Associate the configured remote parameter point table with the management unit and the communication parameters of each interval unit to ensure that the set point table can be correctly applied to each communication node.
[0061] Use maintenance tools to verify the configured communication parameters and remote reference point table to ensure their accuracy and consistency.
[0062] Carry out communication test to ensure that the communication between the management unit and each interval unit is normal and the remote parameter point table can be correctly transmitted and applied.
[0063] The verified communication parameters and remote reference point table are saved in the system to ensure their stable application in actual operation.
[0064] A SOCKET channel is established between the management unit and each interval unit, with the management unit acting as the client and the interval unit acting as the server, including the following steps:
[0065] Use the previously configured communication parameters to initialize the IP address, port number, protocol type, etc. of the management unit and interval unit.
[0066] Start the SOCKET service on each interval unit, listen to the configured port number, and wait for the connection request from the management unit.
[0067] Create a SOCKET client on the management unit and use the configured IP address and port number to initiate connection requests to each interval unit.
[0068] After receiving the connection request from the management unit, the interval unit accepts the connection and establishes a SOCKET channel. At this point, a stable communication connection is established between the management unit and the interval unit.
[0069] A handshake protocol is performed between the management unit and the interval unit to verify the stability and reliability of the connection and ensure that the communication channel is normal.
[0070] The management unit initiates an IEC104 link request to each interval unit on the SOCKET channel, and the interval unit responds to the link request of the management unit to complete the link establishment of the IEC104 protocol, including the following steps:
[0071] Configure the IEC104 link parameters of the management unit and the interval unit, including the ASDU address, link address, timeout parameters, etc., to ensure that the basic parameters for link establishment are ready.
[0072] The management unit sends a start data transmission request frame (STARTDT-ACT) to each interval unit through the established SOCKET channel, requesting to establish an IEC104 link.
[0073] After receiving the start data transmission request frame from the management unit, the interval unit sends a start data transmission confirmation frame (STARTDT-CON) to confirm the link establishment request.
[0074] After receiving the start data transmission confirmation frame from the interval unit, the management unit confirms that the link has been successfully established. At this time, the IEC104 protocol link between the management unit and the interval unit is formally established.
[0075] After the link is established, the management unit and the interval unit perform initialization data exchange to ensure that the status of both parties is consistent and ready to start formal data transmission.
[0076] In order to ensure the stability and reliability of the link, periodic heartbeat detection is performed between the management unit and the interval unit, sending test frames (TESTFR-ACT) and receiving test confirmation frames (TESTFR-CON) to detect whether the link is normal.
[0077] During the link establishment process or data transmission process, if a link abnormality is detected (such as no response due to timeout), the management unit and the interval unit re-initiate the link establishment request according to the predetermined reconnection strategy to ensure the continuous availability of the communication link.
[0078] The management unit calls and synchronizes the remote parameter settings of each interval unit, including the following steps:
[0079] The management unit sends all remote parameter setting frames to each interval unit through the SOCKET channel, with the type identifier being 0xCA and the transmission reason being 0x06. The management unit receives the remote parameter setting frames replied by each interval unit, and parses the remote parameter setting frames through the remote parameter point table to obtain the remote parameter setting.
[0080] The interval unit mutation synchronous remote parameter setting includes the following steps:
[0081] When the interval unit modifies the remote parameter setting through the maintenance tool, the modified setting data will be transmitted to the SOCKET channel established with the management unit. The SOCKET channel uses the IEC104 protocol, with the custom type identifier of 0xE8 and the transmission reason of 0x03, plus the remote parameter setting information, to form a remote parameter setting change frame and send it to the management unit. The management unit receives the frame with the custom type identifier of 0xE8 and the transmission reason of 0x03, and parses the remote parameter setting data to the corresponding setting through the remote parameter point table.
[0082] The master station sends the preset setting message through the IEC104 protocol. The management unit parses the preset setting message to generate the preset remote parameter setting frame and then forwards it to the corresponding interval unit, including the following steps:
[0083] The master station sends preset value messages to the management unit through the IEC104 protocol. The management unit first parses the remote parameter point table to find out which interval units the master station presets the remote parameter values for, and then regenerates the preset remote parameter value frames according to the IEC104 protocol and forwards them to the corresponding interval units.
[0084] The interval unit evaluates whether the preset remote parameter setting frame meets the standard. If it meets the standard, the master station sends a fixed remote parameter setting frame or cancels the remote parameter setting frame, which is broadcasted to each interval unit by the management unit. After receiving the reply from the interval unit, the management unit performs a general call synchronization setting operation on the interval unit again, including the following steps:
[0085] After receiving the preset remote parameter setting frame, the interval unit evaluates whether the preset remote parameter setting frame meets the standard. If the preset remote parameter setting frame does not meet the standard, the management unit regenerates the preset remote parameter setting frame and sends it to the interval unit again. If the preset remote parameter setting frame meets the standard, the master station sends a fixed remote parameter setting frame or cancels the remote parameter setting frame to the management unit. The management unit receives the fixed remote parameter setting frame or cancels the remote parameter setting frame and forwards it to each interval unit in a broadcast manner. The interval unit that receives the preset remote parameter setting frame receives the fixed remote parameter setting frame or cancels the remote parameter setting frame again, then fixes or cancels the preset remote parameter setting frame and replies to the management unit. The interval unit that has not received the preset remote parameter setting frame before receives the fixed remote parameter setting frame or cancels the remote parameter setting frame again, and does not reply to the management unit. When the management unit receives the reply from any interval unit, it performs a general call synchronization setting operation on the interval unit again to prevent the remote parameter setting value from being inconsistent between the management unit and the measurement and control unit due to the failure of writing the remote parameter setting value.
[0086] After receiving the preset remote parameter setting frame, the interval unit evaluates whether the preset remote parameter setting frame meets the standard, including the following steps:
[0087] After receiving the preset remote parameter setting frame, the interval unit detects the preset remote parameter setting frame through the maintenance tool, and obtains the Boolean value matching assignment, the relative position ratio of the setting point number, and the floating coefficient of the value range of the preset remote parameter setting frame;
[0088] The relative position ratio of the fixed-value point number and the floating coefficient of the value range are normalized to map the relative position ratio of the fixed-value point number and the value range of the floating coefficient to [0,1], and the normalized value of the relative position ratio of the fixed-value point number and the normalized value of the floating coefficient of the value range are obtained. The normalized value of the relative position ratio of the fixed-value point number is subtracted from the normalized value of the floating coefficient of the value range to obtain the data difference. The standard index is obtained by multiplying the data difference by the Boolean value matching assignment. The larger the standard index is, the more the preset remote parameter fixed value frame meets the expected requirements. The obtained standard index is compared with the preset index threshold. The index threshold is used to determine whether the preset remote parameter fixed value frame meets the standard. If the standard index is greater than or equal to the index threshold, it is determined that the preset remote parameter fixed value frame meets the standard. If the standard index is less than the index threshold, it is determined that the preset remote parameter fixed value frame does not meet the standard.
[0089] The present application normalizes the relative position ratio of fixed-value point numbers and the floating coefficient of the value range to obtain the normalized value of the relative position ratio of the fixed-value point numbers and the normalized value of the floating coefficient of the value range, subtracts the normalized value of the relative position ratio of the fixed-value point numbers from the normalized value of the floating coefficient of the value range to obtain the data difference, and obtains the standard index by multiplying the data difference by Boolean value matching assignment. The larger the standard index is, the more the preset remote parameter fixed value frame meets the expected requirements. The obtained standard index is compared with the preset index threshold. The index threshold is used to determine whether the preset remote parameter fixed value frame meets the standard. The standard index is obtained by comprehensively calculating the Boolean value matching assignment, the relative position ratio of the fixed point numbers and the floating coefficient of the value range, so that the standard evaluation of the preset remote parameter fixed value frame is more comprehensive and accurate, and the quality of the transmission framework is further improved.
[0090] The calculation expression for Boolean matching assignment is: , where Assign a value to a Boolean match, is the current Boolean value of the preset remote parameter setting frame. It is the standard Boolean value of the preset remote parameter setting frame. In this application, Boolean value is a data type used to represent two logical states, True and False. Since Boolean values have only two values, 0 and 1, the absolute value of the difference can only be 0 or 1. Therefore, the value of the Boolean value matching assignment is 1.5 or 0.5. The larger Boolean value matching assignment indicates that the current Boolean value of the preset remote parameter setting frame matches the standard Boolean value of the preset remote parameter setting frame, and the smaller Boolean value matching assignment indicates that the current Boolean value of the preset remote parameter setting frame does not match the standard Boolean value of the preset remote parameter setting frame.
[0091] The calculation expression of the relative position ratio of the fixed point number is: , where is the relative position ratio of the fixed point number, It is the current setting point number of the preset remote parameter setting frame. It is the minimum set point number of the preset remote parameter set value frame. The maximum set point number of the preset remote parameter set value frame. The larger the relative position ratio of the set point number, the more the current set point number of the preset remote parameter set value frame deviates from the set point number range of the preset remote parameter set value frame. , that is, the preset remote parameter setting frame fails to meet the standard.
[0092] The calculation logic of the floating coefficient of the value range is as follows: obtain the number of fixed value points in the preset remote parameter fixed value frame, and calculate the value deviation of each fixed value point, obtain the difference by subtracting the standard value of the fixed value point from the actual value of the fixed value point, take the absolute value of the difference as the value deviation, and calculate the average deviation and the discrete amplitude of the deviation based on the value deviation of all fixed value points in the preset remote parameter fixed value frame. The expression is: , where is the mean deviation, is the discrete amplitude of the deviation, is the number of set value points in the preset remote parameter set value frame. For the The value deviation of each fixed value point generates a floating coefficient of the value range based on the average deviation and the discrete amplitude of the deviation;
[0093] If the average deviation is less than or equal to the deviation threshold, and the discrete amplitude of the deviation is less than or equal to the discrete threshold, it indicates that the overall value deviation of the fixed value point in the preset remote parameter fixed value frame is small, and the floating coefficient of the value range is 1.8;
[0094] If the average deviation is less than or equal to the deviation threshold, and the discrete amplitude of the deviation is greater than the discrete threshold, it indicates that the value deviation of the fixed value point in the preset remote parameter fixed value frame is small (but the value deviation of some fixed value points is greater than the deviation threshold), and the floating coefficient of the value range is 1.5;
[0095] If the average deviation is greater than the deviation threshold, and the discrete amplitude of the deviation is greater than the discrete threshold, it indicates that the value deviation of the fixed value point in the preset remote parameter fixed value frame is large (but the value deviation of some fixed value points is less than or equal to the deviation threshold), and the floating coefficient of the value range is 1.2;
[0096] If the average deviation is greater than the deviation threshold, and the discrete amplitude of the deviation is less than or equal to the discrete threshold, it indicates that the overall value deviation of the fixed value point in the preset remote parameter fixed value frame is large, and the floating coefficient of the value range is 0.9.
[0097] If the preset remote parameter setting frame is evaluated to meet the standard, the master station sends a fixed remote parameter setting frame or cancels the remote parameter setting frame to the management unit. The management unit receives the fixed remote parameter setting frame or cancels the remote parameter setting frame and forwards it to each interval unit in a broadcast manner. The interval unit that receives the preset remote parameter setting frame receives the fixed remote parameter setting frame or cancels the remote parameter setting frame again, and then fixes or cancels the preset remote parameter setting frame and replies to the management unit. The interval unit that has not received the preset remote parameter setting frame receives the fixed remote parameter setting frame or cancels the remote parameter setting frame again, and does not reply to the management unit, including the following steps:
[0098] The master station sends a command frame to confirm or cancel the setting value to the management unit through the IEC104 protocol.
[0099] The management unit receives the fixed remote parameter setting frame or the cancel remote parameter setting frame sent by the master station.
[0100] The management unit broadcasts the received remote parameter setting frame or remote parameter setting cancellation frame to all interval units.
[0101] All interval units receive the fixed remote parameter setting frame or the cancel remote parameter setting frame broadcast by the management unit.
[0102] If the interval unit has previously received and processed the preset remote parameter setting frame, it will perform corresponding processing on the solidified remote parameter setting frame or the canceled remote parameter setting frame.
[0103] Solidify the preset values and send a confirmation reply to the management unit.
[0104] Cancel the preset setting and send a confirmation reply to the management unit.
[0105] If the interval unit has not received the preset remote parameter setting frame before, it will not perform any operation and will not send a reply.
[0106] When the management unit receives a reply from any interval unit, it performs a general call synchronization setting operation on the interval unit again, including the following steps:
[0107] Receive reply: The management unit receives a confirmation reply from the interval unit, confirming that the interval unit has completed the solidification or cancellation operation.
[0108] Send a general call request: The management unit sends a general call request frame to the interval unit, requiring the interval unit to return all current set values.
[0109] Receiving a general call request: The interval unit receives a general call request from the management unit.
[0110] Return current set values: The interval unit packages all current set values into a response frame and sends it back to the management unit.
[0111] Receive fixed value response: The management unit receives the fixed value response frame returned by the interval unit.
[0112] Parsing fixed value data: The management unit parses the fixed value data in the response frame and checks whether these fixed values are consistent with expectations.
[0113] Check consistency: The management unit compares the received set value with the preset set value to verify their consistency.
[0114] Consistent: If the values agree, the operation is complete.
[0115] Inconsistency: If the set values are inconsistent, you may need to resend the preset remote parameter set value frame and repeat the solidification or cancellation operation until the set values are consistent.
[0116] Record operation results: The management unit records the results of the synchronization operation, including successful constant value synchronization and any inconsistencies.
[0117] Archive logs: Archive operation logs for future review and audit.
[0118] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0119] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0120] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol, characterized in that: The construction method comprises the following steps: S1: Configure communication parameters and remote reference point table The construction system configures the remote reference point table, management unit communication parameters and each bay unit communication parameters through maintenance tools; S2: Establishing a SOCKET channel A SOCKET channel is established between the management unit and each interval unit, with the management unit acting as the client and the interval unit acting as the server; S3: Establishing IEC104 protocol link The management unit initiates an IEC104 link request to each bay unit on the SOCKET channel, and the bay unit completes the IEC104 protocol link establishment after responding to the link request of the management unit; S4: Synchronous remote parameter setting After the management unit calls and synchronizes the remote parameter values of each interval unit, the interval unit suddenly changes the synchronized remote parameter value, and the master station sends the preset value message through the IEC104 protocol. The management unit parses the preset value message to generate a preset remote parameter value frame and then forwards it to the corresponding interval unit. The interval unit evaluates whether the preset remote parameter value frame meets the standard. After meeting the standard, the master station sends a fixed remote parameter value frame or cancels the remote parameter value frame broadcast by the management unit to each interval unit. After receiving the reply from the interval unit, the management unit calls and synchronizes the value of the interval unit again to complete the construction of the transmission framework. In step S4, the interval unit evaluates whether the preset remote parameter setting frame meets the standard. If the standard is met, the master station sends the fixed remote parameter setting frame or cancels the remote parameter setting frame broadcasted by the management unit to each interval unit, including the following steps: After receiving the preset remote parameter setting frame, the interval unit evaluates whether the preset remote parameter setting frame meets the standard. If the preset remote parameter setting frame does not meet the standard, the management unit regenerates the preset remote parameter setting frame and sends it to the interval unit again. If the preset remote parameter setting frame meets the standard, the master station sends a fixed remote parameter setting frame or cancels the remote parameter setting frame to the management unit. The management unit receives the fixed remote parameter setting frame or cancels the remote parameter setting frame and forwards it to each interval unit in a broadcast manner. The interval unit that receives the preset remote parameter setting frame receives the fixed remote parameter setting frame or cancels the remote parameter setting frame again, and then fixes or cancels the preset remote parameter setting frame and replies to the management unit. The interval unit that has not received the preset remote parameter setting frame before receives the fixed remote parameter setting frame or cancels the remote parameter setting frame again, and does not reply to the management unit. When the management unit receives a reply from any interval unit, it performs a general call synchronization setting operation on the interval unit again. After receiving the preset remote parameter setting frame, the interval unit evaluates whether the preset remote parameter setting frame meets the standard, including the following steps: After receiving the preset remote parameter setting frame, the interval unit detects the preset remote parameter setting frame through the maintenance tool, obtains the Boolean value matching assignment, the relative position ratio of the setting point number, and the floating coefficient of the value range of the preset remote parameter setting frame; The relative position ratio of the fixed point number and the floating coefficient of the value range are normalized to map the relative position ratio of the fixed point number and the value range of the floating coefficient to [0,1], and the normalized value of the relative position ratio of the fixed point number and the normalized value of the floating coefficient of the value range are obtained. The normalized value of the floating coefficient of the value range is subtracted from the normalized value of the relative position ratio of the fixed point number to obtain the data difference. The standard index is obtained by multiplying the data difference by the Boolean value matching assignment. The larger the standard index is, the more the preset remote parameter fixed value frame meets the expected requirements. The obtained standard index is compared with the preset index threshold. The index threshold is used to determine whether the preset remote parameter fixed value frame meets the standard. If the standard index is greater than or equal to the index threshold, it is determined that the preset remote parameter fixed value frame meets the standard. If the standard index is less than the index threshold, it is determined that the preset remote parameter fixed value frame does not meet the standard. The calculation logic of the floating coefficient of the value range is as follows: obtain the number of fixed value points in the preset remote parameter fixed value frame, and calculate the value deviation of each fixed value point, obtain the difference by subtracting the standard value of the fixed value point from the actual value of the fixed value point, take the absolute value of the difference as the value deviation, and calculate the average deviation and the discrete amplitude of the deviation according to the value deviation of all fixed value points in the preset remote parameter fixed value frame. The expression is: , where is the mean deviation, is the discrete amplitude of the deviation, is the number of set value points in the preset remote parameter set value frame. For the The value deviation of each fixed value point generates a floating coefficient of the value range based on the average deviation and the discrete amplitude of the deviation; If the average deviation is less than or equal to the deviation threshold, and the deviation discrete amplitude is less than or equal to the discrete threshold, the floating coefficient of the value range is 1.8; If the average deviation is less than or equal to the deviation threshold, and the deviation discrete amplitude is greater than the discrete threshold, the floating coefficient of the value range is 1.5; If the average deviation is greater than the deviation threshold, and the deviation discrete amplitude is greater than the discrete threshold, the floating coefficient of the value range is 1.2; If the average deviation is greater than the deviation threshold, and the discrete amplitude of the deviation is less than or equal to the discrete threshold, the floating coefficient of the value range is 0.9; The calculation expression of the Boolean value matching assignment is: , where Assign a value to a Boolean match, is the current Boolean value of the preset remote parameter setting frame. It is the standard Boolean value of the preset remote parameter setting frame; The calculation expression of the relative position ratio of the fixed point number is: , where is the relative position ratio of the fixed point number, It is the current setting point number of the preset remote parameter setting frame. It is the minimum set point number of the preset remote parameter set value frame. It is the maximum set point number of the preset remote parameter set value frame.
2. The method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol according to claim 1, characterized in that: In step S4, the management unit calls and synchronizes the remote parameter settings of each interval unit, including the following steps: The management unit sends all remote parameter setting frames to each interval unit through the SOCKET channel, with the type identifier being 0xCA and the transmission reason being 0x06. The management unit receives the remote parameter setting frames replied by each interval unit, and parses the remote parameter setting frames through the remote parameter point table to obtain the remote parameter setting.
3. The method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol according to claim 2, characterized in that: In step S4, the interval unit suddenly changes the synchronous remote parameter setting value, including the following steps: When the interval unit modifies the remote parameter setting through the maintenance tool, the modified setting data is transmitted to the SOCKET channel established with the management unit. The SOCKET channel uses the IEC104 protocol, with the custom type identifier 0xE8 and the transmission reason 0x03, plus the remote parameter setting information, to form a remote parameter setting change frame and send it to the management unit. The management unit parses the remote parameter setting data to the corresponding setting through the remote parameter point table.
4. The method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol according to claim 3, characterized in that: In step S4, the master station sends a preset value message through the IEC104 protocol, and the management unit parses the preset value message to generate a preset remote parameter value frame and then forwards it to the corresponding interval unit, including the following steps: The master station sends preset set value messages to the management unit through the IEC104 protocol. The management unit first parses the remote parameter point table to find out which interval units the master station presets the remote parameter set values for, and then regenerates the preset remote parameter set value frames according to the IEC104 protocol and forwards them to the corresponding interval units.
5. The method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol according to claim 4, characterized in that: The management unit receives a fixed remote parameter setting frame or a cancel remote parameter setting frame and forwards it to each interval unit in a broadcast manner, including the following steps: The master station sends a command frame for fixing or canceling a setting to the management unit through the IEC104 protocol. The management unit receives the fixed remote parameter setting frame or the cancel remote parameter setting frame sent by the master station, and broadcasts the received fixed remote parameter setting frame or the cancel remote parameter setting frame to all interval units. All interval units receive the fixed remote parameter setting frame or the cancel remote parameter setting frame broadcast by the management unit. If the interval unit has previously received and processed the preset remote parameter setting frame, the fixed remote parameter setting frame or the cancel remote parameter setting frame is processed accordingly, the preset setting is fixed, and a confirmation reply is sent to the management unit, the preset setting is canceled, and a confirmation reply is sent to the management unit. If the interval unit has not previously received the preset remote parameter setting frame, no operation is performed and no reply is sent.
6. The method for constructing a multi-channel synchronous transmission framework based on the IEC104 protocol according to claim 5, characterized in that: When the management unit receives a reply from any interval unit, it performs a general call synchronization setting operation on the interval unit again, including the following steps: The management unit receives the confirmation reply from the interval unit, confirming that the interval unit has completed the solidification or cancellation operation. The management unit sends a general call request frame to the interval unit, requiring the interval unit to return all current fixed values. The interval unit receives the general call request from the management unit, packages all current fixed values into a response frame, and sends it back to the management unit. The management unit receives the fixed value response frame returned by the interval unit, parses the fixed value data in the response frame, and checks whether these fixed values are consistent with expectations, compares the received fixed values with the preset fixed values, and verifies their consistency. If the fixed values are consistent, the operation is completed. If the fixed values are inconsistent, it is necessary to resend the preset remote parameter fixed value frame and repeat the solidification or cancellation operation until the fixed values are consistent. The results of the synchronization operation are recorded, including successful fixed value synchronization and any inconsistencies.
Citation Information
Patent Citations
Method and device for suppressing residual vibration at tail end of aerial work robot
CN118357915A
Automatic inspection and monitoring method based on time domain slotting control
US20160299482A1
