Power distribution system and constant value operation and maintenance method and device
By implementing a fixed value operation and maintenance method in the public unit of the power distribution system, the problem of low operation and maintenance efficiency of the main station is solved, and efficient operation and maintenance of multiple terminals is achieved and simplified operation and maintenance operations are achieved.
Patent Information
- Application Number
- CN202411909546.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-05-02
AI Technical Summary
The main station has low operation and maintenance efficiency in the power grid, and cannot efficiently manage and operate the fixed values of each terminal.
By implementing a fixed value operation and maintenance method in the common unit of the power distribution system, receiving a fixed value operation message from the main station, determining the target terminal, converting the main station address to the terminal address based on the preset correspondence relationship, and sending a fixed value operation command to the target terminal.
It improves the operation and maintenance efficiency of the main station for multiple terminals, simplifies the operation and maintenance operation of the main station, and reduces the operation and maintenance costs.
Smart Images

Figure CN119921461A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of smart grid technology, and in particular, relates to a power distribution system and a fixed-value operation and maintenance method and device. Background Art
[0002] In the power grid, the master station is directly connected to each terminal through a switch, and the master station communicates directly with each terminal. The master station independently creates devices for each terminal, and then debugs each terminal, reads and writes fixed values, etc. This makes the operation and maintenance efficiency of the master station low. Summary of the invention
[0003] The embodiments of the present application provide a power distribution system, a fixed-value operation and maintenance method, a device, and a computer-readable storage medium, which can solve the problem of low operation and maintenance efficiency of a master station.
[0004] In a first aspect, an embodiment of the present application provides a fixed-value operation and maintenance method, which is applied to a common unit in a power distribution system, wherein the system includes a master station, the common unit, and at least one terminal, and the master station communicates with each of the terminals through the common unit;
[0005] The method comprises:
[0006] Receive fixed value operation message from the master station;
[0007] In response to the fixed value operation message, determining at least one target terminal according to the fixed value operation message;
[0008] For each of the target terminals, based on a preset corresponding relationship, converting the master station address of the master station into the terminal address of the target terminal;
[0009] According to the terminal address of each target terminal, a fixed value operation command is sent to each target terminal.
[0010] In a second aspect, an embodiment of the present application provides a fixed value operation and maintenance device, including:
[0011] A communication module, used for receiving a fixed value operation message from a master station;
[0012] Also used for sending a fixed value operation command to each of the target terminals according to the terminal address of each of the target terminals;
[0013] A processing module, configured to respond to the fixed value operation message and determine at least one target terminal according to the fixed value operation message;
[0014] It is also used to convert the main station address of the main station into the terminal address of the target terminal based on a preset corresponding relationship for each target terminal.
[0015] In a third aspect, an embodiment of the present application provides a power distribution system, comprising: a master station, a common unit and at least one terminal, wherein the master station communicates with each of the terminals through the common unit;
[0016] The master station is used to generate a fixed value operation message in response to a fixed value management operation, and send the fixed value operation message to the public unit;
[0017] The public unit is used to receive a fixed value operation message from the master station;
[0018] Also used for responding to the fixed value operation message and determining at least one target terminal according to the fixed value operation message;
[0019] It is also used to convert the main station address of the main station into the terminal address of the target terminal based on a preset corresponding relationship for each of the target terminals;
[0020] Also used for sending a fixed value operation command to each of the target terminals according to the terminal address of each of the target terminals;
[0021] The target terminal is used to receive the fixed value operation command from the common unit and execute the fixed value operation command.
[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the above-mentioned first aspects is implemented.
[0023] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0024] The embodiment of the present application receives a fixed value operation message from a main station; responds to the fixed value operation message, and determines at least one target terminal according to the fixed value operation message; for each target terminal, based on a preset corresponding relationship, converts the main station address of the main station into the terminal address of the target terminal; according to the terminal address of each target terminal, sends a fixed value operation command to each target terminal, and when the main station needs to operate the fixed value, sends a message to a public unit; the public unit sorts and forwards according to the corresponding relationship to forward the fixed value operation to the corresponding terminal, thereby realizing operation and maintenance of at least one terminal at the same time, and improving operation and maintenance efficiency.
[0025] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 is a schematic diagram of a system provided by an embodiment of the present application;
[0028] Figure 2 It is a flowchart of a fixed value operation and maintenance method provided in an embodiment of the present application;
[0029] Figure 3 It is a structural diagram of a fixed value operation and maintenance device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0031] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0032] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0033] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0034] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0035] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0036] In one embodiment, Figure 1 Schematic diagram of a system provided by an embodiment of the present application. Figure 1 As shown, the power distribution system includes: a master station 10 , a common unit 11 and at least one terminal 12 , and the master station 10 communicates with each terminal 12 through the common unit 11 .
[0037] The main station communicates with the public unit through a wired link or a wireless link, and the public unit communicates with each terminal through a switch.
[0038] The master station is used to generate a fixed value operation message in response to a fixed value management operation, and send the fixed value operation message to the public unit.
[0039] In the application, when the fixed value information needs to be queried and modified to realize remote maintenance according to the actual situation of the power grid, a fixed value management operation is generated. The master station generates a fixed value operation message in response to the fixed value management operation. The fixed value operation message can be a fixed value reading message, a fixed value preset message, a fixed value execution message, and a fixed value cancellation message. The master station sends the fixed value operation message to the public unit through the communication link.
[0040] The public unit is used to receive the fixed value operation message from the master station;
[0041] Also used to respond to the fixed value operation message and determine at least one target terminal according to the fixed value operation message;
[0042] It is also used to convert the main station address of the main station into the terminal address of the target terminal based on the preset corresponding relationship for each target terminal;
[0043] It is also used to send a fixed value operation command to each target terminal according to the terminal address of each target terminal.
[0044] In the application, the common unit receives the fixed value operation message from the master station through the communication link. The fixed value operation message is set to determine whether the master station operates all or part of the fixed values. Each fixed value address is a fixed value address that complies with the provisions of the master station. Then the target terminal is determined according to the fixed value operation message.
[0045] Because the addresses of the terminals connected to the public unit are different, and the addresses of the terminals are different from the addresses of the master stations, a terminal fixed value forwarding table is pre-set to obtain a preset corresponding relationship. Based on the pre-stored preset corresponding relationship, the public unit converts the master station address of the master station into the terminal address of the target terminal so that the fixed value operation requirements can be forwarded to the target terminal.
[0046] The target terminal is used to receive the fixed value operation command from the public unit and execute the fixed value operation command.
[0047] In the application, the target terminal receives a fixed value operation command belonging to the terminal through the switch, and the terminal responds to the fixed value operation command and performs a corresponding operation.
[0048] In this embodiment, a main station is used to respond to a fixed value management operation, generate a fixed value operation message, and send the fixed value operation message to a public unit; the public unit is used to receive the fixed value operation message from the main station; it is also used to respond to the fixed value operation message and determine at least one target terminal according to the fixed value operation message; it is also used to convert the main station address of the main station into the terminal address of the target terminal for each target terminal based on a preset corresponding relationship; it is also used to send a fixed value operation command to each target terminal according to the terminal address of each target terminal; the target terminal is used to receive the fixed value operation command from the public unit, execute the fixed value operation command, and when the main station needs to operate the fixed value, it sends a message to the public unit; the public unit sorts and forwards according to the corresponding relationship to forward the fixed value operation to the corresponding terminal, so as to realize operation and maintenance of at least one terminal at the same time and improve operation and maintenance efficiency.
[0049] Corresponding to the system described in the above embodiment, a fixed value operation and maintenance method is proposed, which is applied to the common units in the power distribution system.
[0050] Figure 2 is a flow chart of a fixed value operation and maintenance method provided by an embodiment of the present application. Figure 2 As shown, the method comprises:
[0051] S11: Receive the fixed value operation message from the master station.
[0052] S12: In response to the fixed value operation message, determine at least one target terminal according to the fixed value operation message.
[0053] In a possible implementation, step S12 includes:
[0054] S121: If it is determined that the fixed value operation message is a message for all fixed values, all terminals are determined to be target terminals.
[0055] In the application, when it is detected that the fixed value operation message carries VSQ=0, it is determined that the fixed value operation message is a message for all fixed values.
[0056] For example, the fixed value operation message is a fixed value reading message, when VSQ=0 of the fixed value operation message is detected, the fixed value operation message is determined to be a message for reading all fixed values, and all terminals are target terminals. When the public unit subsequently forwards, it still forwards according to the VSQ=0 requirement.
[0057] S122: If it is determined that the fixed value operation message is a message for a partial fixed value, then at least one fixed value address to be operated is determined according to the information body address in the fixed value operation message.
[0058] In the application, when it is detected that the fixed value operation message carries the information body address, it is determined that the fixed value operation message is a message for some fixed values, and the information body address is obtained and temporarily stored. The public unit polls all terminals, finds the fixed value address to which the terminal belongs in the information body address, determines that the fixed value address to which the terminal belongs needs to be operated, and extracts these fixed value addresses to be operated.
[0059] For example, the fixed value operation message is a fixed value reading message. When it is detected that the message carries an information body address, the information body address includes a fixed value address for reading a specific fixed value, it is determined that the fixed value reading message is a message for retrieving part of the fixed value, and the fixed value address to which the terminal belongs needs to be read.
[0060] The fixed value operation message is a fixed value preset message. When it is detected that the message carries an information body address, the information body address contains the fixed value address for writing a specific fixed value, and the fixed value preset message is determined to be a message for presetting part of the fixed value, and the fixed value address to which the terminal belongs needs to be preset.
[0061] S123: For each fixed value address to be operated, determine the terminal corresponding to the fixed value address to be operated as the target terminal.
[0062] S13: For each target terminal, based on a preset corresponding relationship, convert the master station address of the master station into the terminal address of the target terminal.
[0063] In a possible implementation, step S13 includes:
[0064] For each target terminal, based on the preset corresponding relationship, the terminal address of the target terminal is determined according to the master station address of the master station, the master station setting starting address, the terminal setting starting address, the number of each terminal setting and the number of the target terminal.
[0065] In the application, the master station fixed value starting address, terminal fixed value starting address, terminal fixed value number, and terminal number are configured in advance according to the actual scenario. Then the master station address is obtained through the message sent by the master station. The terminal address of the target terminal is calculated based on the master station address, the master station fixed value starting address, the terminal fixed value starting address, the terminal fixed value number, and the target terminal number.
[0066] Specifically, the calculation formula of the terminal address of the target terminal is: subaddr = hostaddr-(a+n*c)+b, where subaddr is the terminal address, hostaddr is the main station address, a is the main station fixed value starting address, b is the terminal fixed value starting address, n is the number of the target terminal, and c is the fixed value number of each terminal. Correspondingly, the fixed value address to which the terminal belongs complies with the address configuration, that is, SetAddr∈[a+(n-1)*c, a+n*c].
[0067] S14: Sending a fixed value operation command to each target terminal according to the terminal address of each target terminal.
[0068] In the application, before forwarding the fixed value operation, the common unit determines whether the link with the target terminal is normal. If the link is normal, the fixed value operation command is sent to the target terminal according to the terminal address of the target terminal.
[0069] By adding a function to determine whether the target terminal is online or in operation, offline or not-in-operation terminals can be skipped to improve the efficiency of fixed-value operation and maintenance.
[0070] For example, the fixed value operation message is a fixed value reading message, and the public unit sends a fixed value operation command to the target terminal according to the VSQ=0 requirement. The target terminal receives the fixed value operation command of VSQ=0, and the target terminal obtains and sends the configured fixed value according to the fixed value operation command of VSQ=0.
[0071] The fixed value operation message is a fixed value reading message, and the public unit sends a fixed value operation command to the target terminal according to the fixed value address to which the target terminal belongs. The target terminal obtains the corresponding fixed value according to the fixed value address to be read and then sends it up.
[0072] It can be understood that when the master station needs to operate on a set value, it sends a message to the public unit; the public unit sorts and forwards according to the corresponding relationship to forward the set value operation to the corresponding terminal. The master station does not need to operate each target terminal separately, making the operation of the master station simple.
[0073] And the setting value operation of the master station is sorted and forwarded to the corresponding terminal through the common unit, realizing the communication between the master station and the common unit, and the communication between the common unit and each terminal. When a new terminal is added, the terminal accesses the common unit, and the master station only needs to add a setting value, making the expansion simple, improving the operation and maintenance efficiency, reducing the cost, and solving the problems of poor scalability, low operation and maintenance efficiency, and high investment cost caused by changing the master station configuration, setting the access terminal and conducting communication debugging with the terminal when a new terminal is added.
[0074] In this embodiment, a setting value operation message from the master station is received; in response to the setting value operation message, at least one target terminal is determined according to the setting value operation message; for each target terminal, based on a preset corresponding relationship, the master station address of the master station is converted into the terminal address of the target terminal; according to the terminal addresses of the target terminals, a setting value operation command is sent to each target terminal. When the master station needs to operate on the setting value, a message is sent to the common unit; the common unit sorts and forwards according to the corresponding relationship to forward the setting value operation to the corresponding terminal, realizing the operation and maintenance of at least one terminal at the same time and improving the operation and maintenance efficiency.
[0075] In one embodiment, when a terminal cannot return all information through one frame of message and needs to return all information through multiple frames of messages, a flag bit is set to ensure that all messages returned by the terminal are forwarded to the master station.
[0076] When the setting value operation message is a setting value reading message and the target terminal returns multiple first response messages.
[0077] Correspondingly, before step S14, it further includes:
[0078] S21: Set the read flag bit of each target terminal to a first flag value, and the first flag value represents sending subsequent messages to the master station.
[0079] In the application, before forwarding the setting value operation, the read flag bit of each target terminal is set to the first flag value, so that the common unit can monitor whether there are subsequent messages in the messages returned by each target terminal, providing a basis for forwarding all messages returned by the terminal to the master station.
[0080] Among them, the read flag is an unsigned number, and the number of bits of the read flag is set according to the number of terminals mounted. It is set bit by bit, and the value of the target terminal corresponding to the bit of the read flag is set.
[0081] Exemplarily, the value of the bit is set to the first flag value, X|=(1<<n), X is the read flag, n is the number of the terminal device, the first flag value is 1, and 1<<n is used to set the value of the nth bit to 1.
[0082] After step S14, it further includes:
[0083] S22: For each target terminal, if a first response message returned by the target terminal is received, the master station address of the master station is determined based on the preset corresponding relationship, according to the terminal fixed starting address, the fixed number of each terminal, the master station fixed starting address of the master station and the terminal address and number of the target terminal; and according to the master station address of the master station, the first response message of the target terminal is sent to the master station until the value of the subsequent frame flag bit of the first response message indicates that there is no subsequent message.
[0084] In the application, for each target terminal, after receiving the first response message sent by the target terminal, the address of the message is converted into the master station address according to the preset corresponding relationship. Specifically, the master station address of the master station is determined according to the terminal fixed value starting address, the number of each terminal fixed value, the master station fixed value starting address of the master station and the terminal address and number of the target terminal.
[0085] Specifically, the calculation formula for the master station address of the master station is hostaddr=subaddr-b+n*c+a, where subaddr is the terminal address, hostaddr is the master station address, b is the terminal fixed starting address, n is the number of the target terminal, c is the fixed number of each terminal, and a is the master station fixed starting address.
[0086] When the value of the subsequent frame flag of the first response message sent by the target terminal indicates that there is a subsequent message, the value of the read flag of the target terminal continues to be set to the first flag value. After forwarding the first response message to the main station, the public unit communicates with the target terminal and continues to receive messages sent by the target terminal. When the value of the subsequent frame flag of the first response message sent by the target terminal indicates that there is no subsequent message, it means that the first response message received is the last frame message, and there is no need to continue to receive messages sent by the target terminal and forward the first response message to the main station, and the fixed value reading operation of the main station is completed.
[0087] For example, the value of the subsequent frame flag bit of the first response message is not 0, indicating that there is a subsequent message. The value of the subsequent frame flag bit of the first response message is 0, indicating that there is no subsequent message.
[0088] S23: When the value of the subsequent frame flag of the first response message indicates that there is no subsequent message, the read flag of the target terminal is set to a second flag value, and the second flag value indicates that the master station completes the fixed value reading operation.
[0089] In the application, the value of the subsequent frame flag of the first response message indicates that there is no subsequent message, indicating that the fixed value reading operation of the master station is completed, and the read flag of the target terminal is set to the second flag value to indicate that the fixed value reading operation of the master station for the target terminal is completed.
[0090] For example, the value of the bit is set to the second flag value, X &= ~(1 << n), where X is the read flag, n is the number of the terminal device, the first flag value is 1, and the second flag value is 0. The ~ is used to invert all bits to clear the value of the nth bit and reset the value of the nth bit to 0.
[0091] In this embodiment, by setting the read flag bits of each target terminal to the first flag value, where the first flag value indicates sending subsequent messages to the master station. For each target terminal, if a first response message returned by the target terminal is received, then based on a preset correspondence relationship, according to the starting address of the terminal setting value, the number of terminal setting values for each terminal, the starting address of the master station setting value of the master station, and the terminal address and number of the target terminal, the master station address of the master station is determined; and according to the master station address of the master station, the first response message of the target terminal is sent to the master station until the value of the subsequent frame flag bit of the first response message indicates that there is no subsequent message. When the value of the subsequent frame flag bit of the first response message indicates that there is no subsequent message, the read flag bit of the target terminal is set to the second flag value, and the second flag value indicates that the master station has completed the setting value reading operation, so as to ensure that all messages sent by the target terminal are forwarded to the master station and ensure that the master station receives complete messages fed back by each target terminal.
[0092] In one embodiment, when the setting value operation message is a setting value preset message, a setting value execution message, or a setting value cancellation message.
[0093] In application, when the master station needs to modify the setting value information according to the actual situation of the power grid, it first sends a setting value preset message to the common unit. After receiving the confirmation response message sent by the common unit, the master station issues a setting value execution message or a setting value cancellation message.
[0094] Before step S14, it further includes:
[0095] S21`: Set the write flag bits of each target terminal to the third flag value, where the third flag value indicates entering the write process.
[0096] In application, before forwarding the setting value operation, set the write flag bits of each target terminal to the third flag value, so that the common unit can monitor the operation and maintenance results and process conditions returned by each target terminal, providing a basis for summarizing the operation and maintenance results of all target terminals and accurately feeding back the final operation and maintenance results to the master station.
[0097] Among them, the write flag is an unsigned number, and the number of bits of the write flag is set according to the number of mounted terminals. Set bit by bit, and set the value of the corresponding bit of the write flag of the target terminal.
[0098] Specifically, the value of the bit is set to the third flag value, Y |= (1 << n), where Y is the write flag, n is the number of the terminal device, the third flag value is 1, and 1 << n is used to set the value of the nth bit to 1.
[0099] After step S14, it further includes:
[0100] S22`: For each target terminal, if a second response message returned by the target terminal or the operation duration of the target terminal exceeds a preset duration, set the value of the write flag bit of the target terminal to a fourth flag value, and the fourth flag value indicates the end of the write process.
[0101] In an application, when a second response message returned by the target terminal is received, it indicates that the target terminal executes a value setting operation command and returns an operation and maintenance result. Set the value of the write flag bit of the target terminal to the fourth flag value to indicate the end of the write process of the target terminal this time.
[0102] When the operation duration of the target terminal exceeds the preset duration, it indicates that the operation duration exceeds the duration required for the write process, and the value setting operation of the target terminal fails this time. Set the value of the write flag bit of the target terminal to the fourth flag value to indicate the end of the write process of the target terminal this time.
[0103] Exemplarily, the value of the bit is set to the fourth flag value, Y&=~(1<<n), where Y is the write flag, n is the number of the terminal device, the third flag value is 1, and the fourth flag value is 0. ~ is used to invert all bits to clear the value of the nth bit and reset the value of the nth bit to 0.
[0104] S23`: If it is determined that each target terminal operates successfully according to the second response messages of each target terminal, send an acknowledgement response message to the master station. The target terminal that operates successfully is the target terminal whose second response message is an operation acknowledgement message.
[0105] Among them, the second response message is an operation acknowledgement message or an operation denial message.
[0106] In an application, the common unit merges the second response messages sent by each target terminal. During the merging process, when it is determined that the second response message of each target terminal is an operation acknowledgement message, it is determined that each target terminal operates successfully, and the common unit sends an acknowledgement response message to the master station.
[0107] S24`: If it is determined that there is a target terminal with an operation failure according to the second response messages or operation durations of each target terminal, send a denial response message to the master station. The target terminal with an operation failure is the target terminal whose second response message is an operation denial message or whose operation duration exceeds the preset duration.
[0108] In an application, the common unit merges the second response messages sent by each target terminal. During the merging process, when it is determined that the second response message of the target terminal is an operation denial message, it is determined that the target terminal operates failed, and a denial response message is sent to the master station.
[0109] Or in the process of receiving the second response message sent by each target terminal, when it is determined that the operation time of the target terminal exceeds the preset time, it is determined that the operation of the target terminal fails, and a negative response message is sent to the main station.
[0110] Among them, it can be set to start the timer of the target terminal when the public unit sends a fixed value operation command to the target terminal, and the time calculated by the timer is the operation duration.
[0111] For example, the master station sends a fixed value preset message, and the corresponding second response message returned by the target terminal is a preset confirmation message or a preset denial message.
[0112] The master station sends a fixed value execution message, and the corresponding second response message returned by the target terminal is an execution confirmation message or an execution denial message.
[0113] The master station sends a fixed value revocation message, and the corresponding second response message returned by the target terminal is a revocation confirmation message or a revocation denial message.
[0114] In this embodiment, the write flag of each target terminal is set to a third flag value, and the third flag value indicates that the write process has begun. For each target terminal, if a second response message returned by the target terminal is received or the operation time of the target terminal exceeds a preset time, the write flag of the target terminal is set to a fourth flag value, and the fourth flag value indicates that the write process has ended. If it is determined that the operation of each target terminal is successful according to the second response message of each target terminal, a confirmation response message is sent to the main station. If it is determined that there is a target terminal that has failed in operation according to the second response message of each target terminal or the operation time, a negative response message is sent to the main station to ensure that the operation and maintenance results of all target terminals can be processed and summarized, and the final operation and maintenance results can be accurately fed back to the main station, so as to ensure that the main station is aware of the operation status of all target terminals.
[0115] It should be understood that the order of execution of the steps in the above embodiments does not mean the order of execution, and 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. In addition, the data collection in the above embodiments is compliant, and its use or implementation does not involve any infringement on the public interest.
[0116] Corresponding to the method described in the above embodiment, for the convenience of explanation, only the part related to the embodiment of the present application is shown.
[0117] In one embodiment, Figure 3 Schematic diagram of the structure of the fixed value operation and maintenance device provided in one embodiment of the present application. Figure 3 As shown, the fixed value operation and maintenance device includes:
[0118] The communication module 20 is used to receive the fixed value operation message from the master station;
[0119] It is also used to send a fixed value operation command to each target terminal according to the terminal address of each target terminal;
[0120] The processing module 21 is used to respond to the fixed value operation message and determine at least one target terminal according to the fixed value operation message;
[0121] It is also used to convert the main station address of the main station into the terminal address of the target terminal based on a preset corresponding relationship for each target terminal.
[0122] In one embodiment, the processing module is specifically used to determine that all terminals are target terminals if it is determined that the fixed value operation message is a message for all fixed values; if it is determined that the fixed value operation message is a message for some fixed values, determine at least one fixed value address to be operated according to the information body address in the fixed value operation message; for each fixed value address to be operated, determine the terminal corresponding to the fixed value address to be operated as the target terminal.
[0123] In one embodiment, the processing module is specifically used to determine the terminal address of the target terminal for each target terminal based on a preset corresponding relationship, according to the main station address of the main station, the main station fixed value starting address, the terminal fixed value starting address, the fixed value number of each terminal and the number of the target terminal.
[0124] In one embodiment, when the fixed value operation message is a fixed value read message and the target terminal returns multiple first response messages, the processing module is further used to set the read flag bit of each target terminal to a first flag value, and the first flag value indicates that a subsequent message is sent to the master station;
[0125] It is also used for, for each target terminal, if a first response message returned by the target terminal is received, then based on a preset corresponding relationship, according to the terminal fixed value starting address, the fixed value number of each terminal, the main station fixed value starting address of the main station and the terminal address and number of the target terminal, determining the master station address of the master station; and according to the master station address of the master station, sending the first response message of the target terminal to the main station until the value of the subsequent frame flag bit of the first response message indicates that there is no subsequent message; when the value of the subsequent frame flag bit of the first response message indicates that there is no subsequent message, setting the read flag bit of the target terminal to the second flag value, the second flag value indicating that the master station has completed the fixed value reading operation.
[0126] In one embodiment, when the fixed value operation message is a fixed value preset message, a fixed value execution message or a fixed value cancellation message, the processing module is further used to set the write flag bit of each target terminal to a third flag value, and the third flag value indicates entering the write process;
[0127] It is also used for, for each target terminal, if a second response message returned by the target terminal is received or the operation time of the target terminal exceeds a preset time, setting the value of the write flag bit of the target terminal to a fourth flag value, the fourth flag value indicating the end of the write process; if it is determined according to the second response message of each target terminal that the operation of each target terminal is successful, sending a confirmation response message to the master station, and the target terminal for which the operation is successful is the target terminal for which the second response message is the operation confirmation message;
[0128] It is also used to send a negative response message to the main station if it is determined that there is a target terminal with failed operation based on the second response message or operation duration of each target terminal. The target terminal with failed operation is the target terminal whose second response message is an operation negative response message or the operation duration exceeds the preset duration.
[0129] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0130] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0131] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0132] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some cases, the computer-readable medium cannot be an electric carrier signal and a telecommunication signal.
[0134] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0135] 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.
[0136] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0137] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0138] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A fixed value operation and maintenance method, characterized in that: A common unit applied to a power distribution system, the system comprising a master station, the common unit and at least one terminal, the master station communicating with each of the terminals through the common unit; The method comprises: Receive fixed value operation message from the master station; In response to the fixed value operation message, determining at least one target terminal according to the fixed value operation message; For each of the target terminals, based on a preset corresponding relationship, converting the master station address of the master station into the terminal address of the target terminal; According to the terminal address of each target terminal, a fixed value operation command is sent to each target terminal.
2. The method according to claim 1, characterized in that The step of determining at least one target terminal according to the fixed value operation message comprises: If it is determined that the fixed value operation message is a message for all fixed values, then all terminals are determined to be the target terminals; If it is determined that the fixed value operation message is a message for a partial fixed value, determining at least one fixed value address to be operated according to the information body address in the fixed value operation message; For each of the fixed value addresses to be operated, a terminal corresponding to the fixed value address to be operated is determined as a target terminal.
3. The method according to claim 2, characterized in that The converting, for each of the target terminals, the master station address of the master station into the terminal address of the target terminal based on a preset corresponding relationship includes: For each of the target terminals, based on the preset corresponding relationship, the terminal address of the target terminal is determined according to the main station address of the main station, the main station fixed value starting address, the terminal fixed value starting address, the number of each terminal fixed value and the number of the target terminal.
4. The method according to any one of claims 1 to 3, characterized in that: When the fixed value operation message is a fixed value reading message and the target terminal returns a plurality of first response messages; Before sending the fixed value operation command to each of the target terminals according to the terminal address of each of the target terminals, the method further includes: Setting the read flag of each of the target terminals to a first flag value, wherein the first flag value indicates that a subsequent message is sent to the master station; After sending the fixed value operation command to each of the target terminals according to the terminal address of each of the target terminals, the method further includes: For each of the target terminals, if a first response message returned by the target terminal is received, based on the preset corresponding relationship, according to the terminal fixed value starting address, the number of each terminal fixed value, the master station fixed value starting address of the master station and the terminal address and number of the target terminal, the master station address of the master station is determined; and according to the master station address of the master station, the first response message of the target terminal is sent to the master station until the value of the subsequent frame flag bit of the first response message indicates that there is no subsequent message; When the value of the subsequent frame flag bit of the first response message indicates that there is no subsequent message, the read flag bit of the target terminal is set to a second flag value, and the second flag value indicates that the master station completes the fixed value reading operation.
5. The method according to claim 4, characterized in that: The calculation formula of the terminal address of the target terminal is: subaddr=hostaddr-(a+n*c)+b; the calculation formula of the master station address of the master station is hostaddr=subaddr-b+n*c+a, subaddr is the terminal address, hostaddr is the master station address, b is the terminal fixed starting address, n is the number of the target terminal, c is the fixed number of each terminal, and a is the fixed starting address of the master station.
6. The method according to any one of claims 1 to 3, characterized in that: When the fixed value operation message is a fixed value preset message, a fixed value execution message or a fixed value cancellation message, Before sending the fixed value operation command to each of the target terminals according to the terminal address of each of the target terminals, the method further includes: Setting the write flag of each target terminal to a third flag value, wherein the third flag value indicates entering a write process; After sending the fixed value operation command to each of the target terminals according to the terminal address of each of the target terminals, the method further includes: For each of the target terminals, if a second response message returned by the target terminal is received or the operation duration of the target terminal exceeds a preset duration, the value of the write flag bit of the target terminal is set to a fourth flag value, and the fourth flag value indicates that the write process is ended; If it is determined according to the second response message of each target terminal that the operation of each target terminal is successful, a confirmation reply message is sent to the master station, and the target terminal for which the operation is successful is the target terminal for which the second response message is the operation confirmation message.
7. The method according to claim 6, characterized in that After the value of the write flag bit of the target terminal is set to the fourth flag value if the second response message returned by the target terminal is received, the method further includes: If it is determined that there is a target terminal with failed operation based on the second response message or operation duration of each target terminal, a negative response message is sent to the main station. The target terminal with failed operation is the target terminal whose second response message is an operation negative message or the operation duration exceeds the preset duration.
8. A fixed value operation and maintenance device, characterized in that: include: A communication module, used for receiving a fixed value operation message from a master station; It is also used to send a fixed value operation command to each target terminal according to the terminal address of each target terminal; A processing module, configured to respond to the fixed value operation message and determine at least one target terminal according to the fixed value operation message; It is also used to convert the main station address of the main station into the terminal address of the target terminal based on a preset corresponding relationship for each target terminal.
9. A power distribution system, characterized in that: include: A main station, a common unit and at least one terminal, wherein the main station communicates with each of the terminals through the common unit; The master station is used to generate a fixed value operation message in response to a fixed value management operation, and send the fixed value operation message to the public unit; The public unit is used to receive a fixed value operation message from the master station; Also used for responding to the fixed value operation message and determining at least one target terminal according to the fixed value operation message; It is also used to convert the main station address of the main station into the terminal address of the target terminal based on a preset corresponding relationship for each of the target terminals; Also used for sending a fixed value operation command to each of the target terminals according to the terminal address of each of the target terminals; The target terminal is used to receive the fixed value operation command from the common unit and execute the fixed value operation command.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.