Electricity price parameter issuing method and system based on transparent task
Technical Field
The invention relates to the technical field of electricity price remote issuing, in particular to an electricity price parameter issuing method and system based on a transparent task.
Background
The existing electricity price issuing mode mainly realizes electricity price adjustment through real-time communication interaction of a plurality of links such as an acquisition system main station, a terminal uplink and downlink module, an intelligent electric energy meter and the like.
Firstly, an identity authentication command is issued to a concentrator by a master station of an acquisition system, the concentrator directly and transparently forwards the authentication command to an electric energy meter, and the master station and the concentrator enter a waiting state at the moment; responding after the identity authentication of the electric energy meter is passed, and reporting to the master station step by step through the concentrator, wherein the master station and the concentrator receive responses within respective overtime thresholds, the identity authentication of the electric energy meter is valid, and the electricity price issuing setting can be issued to the electric energy meter by the master station at this time; the issuing setting is the same as the transmission mode of the identity authentication instruction, and the transmission is also transparent through the concentrator. Similarly, the reply of successful setting of the new electricity price of the electric energy meter must be received within the communication timeout threshold of each path of equipment and finally reaches the master station, so that a complete traditional electricity price issuing task is successfully completed. Therefore, the existing electricity price issuing mode is a task mode for synchronizing all devices, and a high requirement is put forward on the real-time performance of a communication channel. And if the identity authentication result is reported, the master station is overtime, the concentrator is overtime, and if the identity authentication result is reported, the master station is overtime, and the concentrator is overtime, the task of issuing the electricity price parameter is failed. And the advantages of the GPRS/CDMA commonly used uplink and the narrowband carrier channel of the downlink of the terminal are not in the real-time property of single communication in terms of the hardware technology of the terminal.
Disclosure of Invention
The invention provides a transparent task-based electricity price parameter issuing method and system, overcomes the defects of the prior art, and can effectively solve the problem of low success rate of issuing electricity price parameters in the existing mode of synchronously issuing electricity price parameter tasks by various devices.
One of the technical schemes of the invention is realized by the following measures: a transparent task-based electricity price parameter issuing method comprises the following steps:
a transparent task queue is established in the concentrator, and the master station issues the identification authentication commands of the electric energy meters to the transparent task queue of the concentrator in batches;
the concentrator circularly executes identity verification on the electric energy meters in the transformer area according to the identity authentication command of the electric energy meters, and reports the number of the electric energy meters subjected to identity verification and the identity verification result corresponding to the number to the master station;
the master station sends power price parameter setting commands to the transparent task queue of the concentrator in batches according to the identity verification result;
the concentrator circularly executes the electricity price parameter setting command for multiple rounds until the electricity price parameter setting of the electric energy meter is successful.
The following is further optimization or/and improvement of the technical scheme of the invention:
when the concentrator circularly executes the electricity price parameter setting command for multiple times, the main station monitors the electricity price parameter setting result in real time, and the real-time monitoring comprises the step that the concentrator actively reports the electricity price parameter setting result of the electric energy meter and the main station actively calls and measures the electricity price parameter setting result of the electric energy meter.
The transparent task queue that the electricity price parameter set order was sent to the concentrator in batches to above-mentioned master station according to the authentication result includes:
the master station judges the identity verification result of each electric energy meter;
acquiring the electric energy meter number passing the identity authentication, setting a corresponding power generation price parameter setting command, and issuing the command to the concentrator in batches;
and acquiring the electric energy meter number which fails in the identity authentication, judging that the electricity price parameter setting command of the electric energy meter fails to be issued, and waiting for re-performing the identity authentication and the electricity price parameter setting command.
When the master station issues the electric energy meter identity authentication commands to the transparent task queue of the concentrator in batches, the quantity of the electric energy meter identity authentication commands issued in batches is the same as the size of the transparent task queue, or all the electric energy meter identity authentication commands are issued in batches;
if all the electric energy meter identity authentication commands are issued in batch, the concentrator carries out self-scheduling according to the self-computing processing capacity and the idle condition of the communication channel.
The concentrator reports the electric energy meter numbers subjected to identity verification and the identity verification results corresponding to the electric energy meter numbers to the master station one by one in real time, and the master station independently issues an identity authentication command of a new electric energy meter to the transparent task queue of the concentrator after receiving one electric energy meter number and the identity verification results corresponding to the electric energy meter number.
The concentrator executes the commands in the transparent task queue in a meter reading mode.
The second technical scheme of the invention is realized by the following measures: a system under electricity price parameter based on transparent task comprises a main station and a concentrator, wherein a transparent task queue is arranged in the concentrator;
the master station is used for issuing the identity authentication commands of the electric energy meters to the transparent task queue of the concentrator in batches; issuing a power price parameter setting command to a transparent task queue of the concentrator in batches according to the identity verification result;
the concentrator is used for circularly executing identity verification on the electric energy meters in the transformer area according to the electric energy meter identity authentication command and reporting the number of the electric energy meters subjected to identity verification and identity verification results corresponding to the number to the master station; and circularly executing the electricity price parameter setting command for multiple times until the electricity price parameter setting of the electric energy meter is successful.
According to the invention, the electricity price parameters are issued to the concentrator in batches, the transparent task queue is established in the concentrator, and the electricity price parameters are asynchronously issued to the electric energy meter, so that the pressure of a master station is effectively reduced, the success rate and efficiency of issuing the electricity price parameters are improved, the workload of on-site palm price adjustment is reduced, and the method is suitable for issuing and applying large-batch electricity price parameters.
Drawings
Fig. 1 is a schematic diagram of the identity authentication process of the present invention.
Fig. 2 is a schematic diagram of a power rate parameter issuing setting process of the present invention.
FIG. 3 is a diagram of a transparent task queue according to the present invention.
FIG. 4 is a flow chart of example 1 of the present invention.
Detailed Description
The present invention is not limited by the following examples, and specific embodiments may be determined according to the technical solutions and practical situations of the present invention.
The invention is further described with reference to the following examples and figures:
example 1: as shown in fig. 1, 2, 3 and 4, the electricity price parameter issuing method based on the transparent task comprises the following steps:
a transparent task queue is established in the concentrator, and the master station issues the identification authentication commands of the electric energy meters to the transparent task queue of the concentrator in batches;
the concentrator circularly executes identity verification on the electric energy meters in the transformer area according to the identity authentication command of the electric energy meters, and reports the number of the electric energy meters subjected to identity verification and the identity verification result corresponding to the number to the master station;
the master station sends power price parameter setting commands to the transparent task queue of the concentrator in batches according to the identity verification result;
the concentrator circularly executes the electricity price parameter setting command for multiple rounds until the electricity price parameter setting of the electric energy meter is successful.
The master station is a master station in a power utilization information acquisition system of a power grid.
The transparent task queue can contain 15 commands at most; as shown in fig. 3, the transparent task queue includes a task number, a task priority, a task effective duration, a task execution period, a task command list, a task result list, and the like. Each command in the transparent task queue can be set with a priority, and the concentrator executes the command according to the priority, for example, in the actual power grid task execution, the meter reading task and the fee control task have the highest priority, and the execution is performed at the highest priority to ensure the real-time performance. The priority of the power price parameter issuing task is low, and the issuing is completed within the time range of the power price parameter adjustment service operation.
The concentrator circularly executes the electricity price parameter setting commands for multiple times, if any setting command fails, the concentrator stops issuing subsequent commands, and the master station judges that the transparent task is successfully executed only if all commands are successfully issued.
According to the invention, the electricity price parameters are issued to the concentrator in batches, the transparent task queue is established in the concentrator, and the electricity price parameters are asynchronously issued to the electric energy meter, so that the pressure of a master station is effectively reduced, the success rate and efficiency of issuing the electricity price parameters are improved, the workload of on-site palm price adjustment is reduced, and the method is suitable for issuing and applying large-batch electricity price parameters.
The following is further optimization or/and improvement of the technical scheme of the invention:
as shown in fig. 2 and 4, when the concentrator circularly executes the power rate parameter setting command for multiple times, the master station monitors the power rate parameter setting result in real time, and the real-time monitoring includes that the concentrator actively reports the power rate parameter setting result of the electric energy meter and the master station actively calls the power rate parameter setting result of the electric energy meter.
The main station does not wait for the concentrator to report the execution result, but calls the electricity price parameter setting result of the electric energy meter in real time, so that the communication success rate requirement of each channel can be reduced, and the concentrator can repeatedly execute the temporary failed task until the temporary failed task is successful, thereby effectively avoiding an overtime mechanism and ensuring that the accidental communication failure can not influence the final result of electricity price issuing.
As shown in fig. 1, 3, and 4, the sending of the batch power generation price parameter setting command to the transparent task queue of the concentrator by the master station according to the authentication result includes:
the master station judges the identity verification result of each electric energy meter;
acquiring the electric energy meter number passing the identity authentication, setting a corresponding power generation price parameter setting command, and issuing the command to the concentrator in batches;
and acquiring the electric energy meter number which fails in the identity authentication, judging that the electricity price parameter setting command of the electric energy meter fails to be issued, and waiting for re-performing the identity authentication and the electricity price parameter setting command.
As shown in fig. 1, 3 and 4, when the master station issues the electric energy meter identity authentication commands to the transparent task queue of the concentrator in batches, the quantity of the electric energy meter identity authentication commands issued in batches is the same as the size of the transparent task queue, or all the electric energy meter identity authentication commands are issued in batches;
if all the electric energy meter identity authentication commands are issued in batch, the concentrator automatically schedules according to the self computing processing capacity and the idle condition of a communication channel, commands of different electric energy meters are issued in parallel, and commands of the same electric energy meter are issued in series.
As shown in fig. 1, 3, and 4, the concentrator reports the electric energy meter numbers subjected to identity verification and the identity verification results corresponding to the electric energy meter numbers to the master station one by one in real time, and the master station receives one electric energy meter number and the identity verification result corresponding to the electric energy meter number and then independently issues an identity authentication command of a new electric energy meter to the transparent task queue of the concentrator.
After the concentrator finishes an identity authentication command, the master station can independently issue an identity authentication command of a new electric energy meter to the transparent task queue of the concentrator, so that the maximization of the executable command of the transparent task queue is kept, and the efficiency of issuing the electricity price parameter is effectively improved.
As shown in fig. 1, 2 and 3, the concentrator executes the commands in the transparent task queue by means of meter reading. The meter reading mode execution command can be executed for multiple times within the running time range until success or timeout.
Example 2: as shown in fig. 1 and 2, the transparent task-based electricity price parameter issuing system comprises a master station and a concentrator, wherein a transparent task queue is arranged in the concentrator;
the master station is used for issuing the identity authentication commands of the electric energy meters to the transparent task queue of the concentrator in batches; issuing a power price parameter setting command to a transparent task queue of the concentrator in batches according to the identity verification result;
the concentrator is used for circularly executing identity verification on the electric energy meters in the transformer area according to the electric energy meter identity authentication command and reporting the number of the electric energy meters subjected to identity verification and identity verification results corresponding to the number to the master station; and circularly executing the electricity price parameter setting command for multiple times until the electricity price parameter setting of the electric energy meter is successful.
The above technical features constitute the best embodiment of the present invention, which has strong adaptability and best implementation effect, and unnecessary technical features can be increased or decreased according to actual needs to meet the requirements of different situations.