CN109448256B - Method for activating a reserve rate of an electrical consumer - Google Patents

Method for activating a reserve rate of an electrical consumer Download PDF

Info

Publication number
CN109448256B
CN109448256B CN201811451926.7A CN201811451926A CN109448256B CN 109448256 B CN109448256 B CN 109448256B CN 201811451926 A CN201811451926 A CN 201811451926A CN 109448256 B CN109448256 B CN 109448256B
Authority
CN
China
Prior art keywords
rate
parameter
current
spare
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811451926.7A
Other languages
Chinese (zh)
Other versions
CN109448256A (en
Inventor
赵孟杰
叶金挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Sanxing Smart Electric Co Ltd
Original Assignee
Ningbo Sanxing Smart Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Smart Electric Co Ltd filed Critical Ningbo Sanxing Smart Electric Co Ltd
Priority to CN201811451926.7A priority Critical patent/CN109448256B/en
Publication of CN109448256A publication Critical patent/CN109448256A/en
Application granted granted Critical
Publication of CN109448256B publication Critical patent/CN109448256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/08Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for varying the tariff or changing the price

Abstract

The invention provides a simple, flexible, efficient and practical method for activating standby rates of electric equipment, which comprises the following steps: s1, extracting a current rate mark corresponding to the current rate scheme, and acquiring memory chip areas corresponding to each parameter in the current rate mark; s2, according to the standby rate scheme, setting the memory area corresponding to each parameter in the standby rate mark to be activated to be different from the memory area corresponding to each parameter in the current rate mark; s3, setting each spare rate parameter according to the memory area corresponding to the spare rate parameter to be activated, and combining with each corresponding spare rate parameter which is not set to obtain the set spare rate mark; s4, the set standby rate mark or the current rate mark is changed into a new current rate mark, and all parameters of the new standby rate mark are set to be 0; the set backup rate plan content can be transferred to the current rate plan by simply changing two rate flags.

Description

Method for activating a reserve rate of an electrical consumer
Technical Field
The invention relates to the technical field of rate switching of electric equipment, in particular to a method for activating standby rate of electric equipment.
Background
The multi-rate electric energy meter is also called a time-of-use electric energy meter and a multi-rate meter, commonly called a peak-valley meter, and is a metering means provided for meeting the demand of peak-valley time-of-use electricity price in recent years. The method can respectively measure the power consumption of the peak, the valley and the flat section according to the preset division of the peak, the valley and the flat section, thereby adopting different electricity prices for the power consumption of different sections, playing the role of adjusting the electricity prices, encouraging power customers to adjust the electricity load, shifting the peak to fill the valley, reasonably using the power resources and fully exploiting the potential of power generation, power supply and electric equipment.
Two different tariff schemes are generally arranged in the multi-tariff electric energy meter, so that the power bureau can switch between different seasons, the power price can be adjusted when the seasons change, and the power load can be better controlled. Since the electric energy meter can only operate in one scheme within a time period, if necessary, the switching of different rate schemes is realized through local or remote parameter setting. The IDIS (Interoperable Device Interface specifications) protocol provides that the content of the activated standby rate scheme replaces the content of the current rate scheme, and for the method for activating the standby rate scheme, the existing program usually adopts address pointer offset, namely the addresses of two sets of rate schemes are continuous, the standby rate scheme is activated through the initial address offset, but all parameters (more than or equal to four) need to be reset, the efficiency is low, and therefore, the method has certain limitation in use; if the standby rate scheme inside the electric energy meter is activated by the data relocation of the EEPROM, the data volume is large, the program resource occupies a large space, even causes the watchdog to reset, and has no practicability.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a simple, flexible, efficient and practical method for activating a standby rate of an electrical device in view of the above current state of the art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method of activating a backup rate for a powered device, comprising the steps of:
s1, extracting a current rate mark corresponding to the current rate scheme, and acquiring memory chip areas corresponding to each parameter in the current rate mark;
s2, according to the spare rate scheme, setting the memory area corresponding to each parameter needing to be set in the spare rate mark to be activated to be different from the memory area corresponding to each parameter in the current rate mark;
s3, setting each spare rate parameter according to the memory area corresponding to the spare rate parameter to be activated, and combining with each corresponding spare rate parameter which is not set to obtain the set spare rate mark;
s4, the set standby rate mark or the current rate mark is changed into a new current rate mark, and all parameters of the new standby rate mark are set to be 0;
the current rate parameter is 0 and corresponds to a first memory chip area, and the current rate parameter is 1 and corresponds to a second memory chip area;
the current rate mark comprises at least one byte of data, wherein four bits respectively represent a current scheme name, a current season table, a current week table and a current time period table;
the spare rate mark comprises at least one byte of data, wherein four bits respectively represent a spare scheme name, a spare season table, a spare week table and a spare time period table;
the four bit positions of the current rating flag correspond to the four bit positions of the backup rating flag.
Further, in step S3, the set parameter in the spare rate flag is 1, and the memory chip area of the corresponding parameter is different from the memory chip area of the current rate parameter; the unset parameter is 0, and the memory area of the corresponding parameter is the same as the memory area of the current rate parameter.
Further, the spare rate flag further includes a preset time parameter located in one bit, where the preset time parameter is a specific time point at which the set activation condition is effective.
Further, step S1 further includes setting the activation time point to be 1 in the standby rate flag before activating the standby rate scheme.
Further, when the preset time point is reached, the activation action is executed to set the preset time in the standby rate parameters to be 0, the preset time parameters can only take effect once, and the effective condition is that the preset time point is reached, so that the situation that when the parameters of the standby rate scheme are set, the parameters are not completely set, but the rate names of the two schemes are the same, and the direct activation is realized according to the activation condition in the common sense.
Furthermore, the parameters corresponding to the standby rate scheme to be activated include one or any combination of a scheme name, a season table, a week table and a time period table, and the standby rate scheme can be effectively activated by setting a single parameter.
Further, the scheme contents corresponding to each parameter in the current rate flag are stored in the first memory area and the second memory area.
Further, the scheme contents corresponding to each parameter in the spare rate flag are stored in the first memory slice area and the second memory slice area.
Further, the first memory slice area and the second memory slice area respectively store a complete set of rate schemes.
Compared with the prior art, the invention has the advantages that:
(1) the binary value of the current rate mark is obtained, if the parameter is 0, the binary value corresponds to a first memory area, if the parameter is 1, the binary value corresponds to a second memory area, the memory area information consisting of parameters of a scheme name, a season table, a week table and a time period table is directly positioned, and the current rate scheme can be searched and read;
(2) when a standby rate scheme to be activated is set, the set parameter is set to be 1, different chip areas of the memory chip area corresponding to the corresponding parameter in the current rate mark are directly read, the parameter which is not set is set to be 0, the memory chip area corresponding to the corresponding parameter in the current rate mark is directly read, the memory area occupied by the current rate scheme and the standby rate scheme is jointly controlled by the current rate mark and the standby rate mark, when the standby rate scheme is activated, only a certain corresponding parameter in the current rate mark and the standby rate mark needs to be changed, and the set standby rate scheme is transferred to the current rate scheme;
the method for activating the standby rate of the electric equipment provided by the invention can effectively activate the standby rate scheme by only setting a single parameter, and certainly can also set the parameter combination in the rate mark, so that the searching, reading and activating of the current rate scheme and the standby rate scheme are simple, flexible, efficient and practical.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the present invention;
FIG. 2 is a schematic diagram of the structure of the current rate indicator and the backup rate indicator of the preferred embodiment of the present invention;
fig. 3 is a schematic structural diagram of a first memory chip area and a second memory chip area according to a preferred embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the accompanying examples.
Referring to fig. 1, the preferred embodiment provides a method for activating a back-up rate of an electrical device, preferably an intelligent power meter, comprising the steps of:
s1, extracting a current rate mark corresponding to the current rate scheme, and acquiring memory chip areas corresponding to each parameter in the current rate mark;
s2, according to the spare rate scheme, setting the memory area corresponding to each parameter needing to be set in the spare rate mark to be activated to be different from the memory area corresponding to each parameter in the current rate mark;
s3, setting each spare rate parameter according to the memory area corresponding to the spare rate parameter to be activated, and combining with each corresponding spare rate parameter which is not set to obtain a set spare rate mark, wherein the set parameter in the spare rate mark is 1, and the corresponding scheme is set to be different from the current rate scheme; the unset parameter is 0, and the corresponding scheme is the same as the current rate scheme;
s4, the set standby rate mark or the current rate mark is changed into a new current rate mark, and all parameters of the new standby rate mark are set to be 0;
the current rate mark comprises at least one byte of data, wherein four bits respectively represent a current scheme name, a current season table, a current week table and a current time period table;
the spare rate mark comprises at least one byte of data, wherein four bits respectively represent a spare scheme name, a spare season table, a spare week table and a spare time period table;
the four bit positions of the current rating flag correspond to the four bit positions of the backup rating flag.
Preferably, the standby rate flag further includes a preset time parameter located in one bit, where the preset time parameter is a specific time point at which the activation condition is set to be valid, and before the standby rate scheme is activated in step S1, the activation time point is set, and the preset time parameter in the standby rate flag is set to 1. In the whole process of activating the standby rate scheme, the preset time parameter can only take effect once, the effective condition is a specific time point reaching the preset time, and the effective condition can effectively avoid that when the parameters of the standby rate scheme are set, the parameters are not completely set, but the rate names of the two schemes are the same, and the direct activation is realized when the activation condition in the common sense is met.
In the preferred embodiment, the current rate flag and the standby rate flag are both one byte of data, the low four bits of parameters from low to high represent the scheme name, the season table, the week table, and the time period table, respectively, the fifth bit of the standby rate flag is the activation time, and the other bits of the parameter do not specify any content, as shown in fig. 2 specifically. It is understood that in other embodiments, the rate flag may include more than one byte of data, and may also include parameters representing other attributes, and the arrangement of the parameters is not limited, and is only an example.
For the memory area corresponding to the parameter value, using the parameter of the current rate mark as the reference, if the current rate parameter is 0, corresponding to the first memory slice area, if the current rate parameter is 1, corresponding to the second memory slice area, as shown in fig. 3, the scheme content a corresponding to each parameter in the current rate mark is stored in the first memory area and the second memory area respectively, the scheme content b corresponding to each parameter in the spare rate mark is stored in the first memory slice area and the second memory slice area respectively, the first memory area and the second memory area respectively store a set of complete rate schemes, parameters corresponding to the standby rate schemes to be activated comprise one or any combination of scheme names b, season tables b, week tables b and time period tables b, and the standby rate schemes can be effectively activated by the activation schemes only through setting single parameters.
The first embodiment is as follows:
the current rate flag is 00000101, representing the parameters of the current rate plan: the scheme name a, the season table a, the week table a and the time period table a respectively correspond to a first memory slice area, a second memory slice area, a first memory slice area and a second memory slice area in the EEPROM, and the current rate scheme can be searched and read by acquiring the current rate mark.
In the active standby rate scheme, according to the scheme change in the standby rate scheme, the week table b may be replaced by a week table a, or the season table b may be replaced by a season table a, or the time period table b may be replaced by a time period table a, or a combination of the above different parameters, then the memory slice area different from the memory slice area corresponding to the parameter or the parameter combination in the current rate flag is the memory slice area of the standby rate parameter, the standby rate scheme of the embodiment is that the season table b is replaced by the season table a, then the set standby rate flag is obtained as 00010010 according to the change of the corresponding memory slice area, the standby rate parameter is 0, the standby rate parameter is 1, the standby rate parameter is set, the rate scheme corresponding to the unset parameter is not changed, and the content corresponding to the current rate scheme is directly read when searching and reading, and (3) directly reading the scheme of the different memory chip areas corresponding to the corresponding parameters of the current rate scheme when searching and reading except the activation time of the rate scheme corresponding to the set parameters.
When the standby rate scheme is activated, the activation time point is reached, for example, 0 point 00 in 11/1/11/2018, the low five-bit activation time parameter is set to 0, the set standby rate flag is 00000010, the activation condition is met, only the set standby rate flag needs to be xored with the current rate flag, and a new current rate flag can be obtained, that is, 00000010^00000101 ^ 00000111, the low four bits are respectively, from low to high, a scheme name a ', a season table a', a week table a ', and a period table a', and the parameters in the new standby rate flag are all set to 0, in the embodiment, only two rate flags need to be simply changed, and the content of the set standby rate scheme is transferred to the current rate scheme, so that the method is simple and efficient.
Example two:
the current rate flag is 00001100, representing the parameters of the current rate plan: the scheme name a, the season table a, the week table a and the time period table a respectively correspond to a first memory slice area, a second memory slice area and a second memory slice area in the EEPROM, and the current rate scheme can be searched and read by acquiring the current rate mark.
The spare rate scheme of this embodiment is that the time slot table b is replaced by the time slot table a, the set spare rate flag obtained according to the change of the corresponding memory chip area is 00011000, the spare rate parameter is 0, which represents that the parameter is not set, the spare rate parameter is 1, which represents that the parameter is set, the rate scheme corresponding to the parameter that is not set is not changed, and the content corresponding to the current rate scheme is directly read when searching and reading, and the rate scheme corresponding to the set parameter is a scheme of directly reading the different memory chip areas corresponding to the corresponding parameter of the current rate scheme except the activation time when searching and reading.
When the standby rate scheme is activated, the activation time point is reached, for example, 0 point 00 in 1 month and 1 day in 2019, the activation time parameter of the lower five bits is set to 0, the set standby rate flag is 00001000, the activation condition is met, only the set standby rate flag needs to be xored with the current rate flag, and a new current rate flag can be obtained, that is, 00001000^00001100 ^ 00000100, the lower four bits from low to high are respectively a scheme name a ', a season table a', a week table a ', and a period table a', which correspond to the first memory slice area, the second memory slice area, and the first memory slice area, and all the parameters in the new standby rate flag are set to 0.
The method for activating the backup rate of the electric equipment provided in the above preferred embodiment can also effectively activate the backup rate scheme by only setting a single parameter, and certainly, can also set a parameter combination in the rate flag, so that the search and reading of the current rate scheme and the backup rate scheme and the activation of the backup rate scheme are simple, flexible, efficient and practical.
It should be noted that the above embodiments are only used for illustrating the present invention and should not be used as a limitation to the present invention, and that the modifications and changes to the above embodiments are within the scope of the present invention as claimed in the appended claims.

Claims (9)

1. A method of activating a backup rate for a powered device, comprising the steps of:
s1, extracting a current rate mark corresponding to the current rate scheme, and acquiring memory chip areas corresponding to each parameter in the current rate mark;
s2, according to the spare rate scheme, setting the memory area corresponding to each parameter needing to be set in the spare rate mark to be activated to be different from the memory area corresponding to each parameter in the current rate mark;
s3, setting each spare rate parameter according to the memory area corresponding to the spare rate parameter to be activated, and combining with each corresponding spare rate parameter which is not set to obtain the set spare rate mark;
s4, the set standby rate mark or the current rate mark is changed into a new current rate mark, and all parameters of the new standby rate mark are set to be 0;
the parameter of the current rate mark is 0 and corresponds to the first memory area, and the parameter of the current rate mark is 1 and corresponds to the second memory area;
the current rate mark comprises at least one byte of data, wherein four bits respectively represent a current scheme name, a current season table, a current week table and a current time period table;
the spare rate mark comprises at least one byte of data, wherein four bits respectively represent a spare scheme name, a spare season table, a spare week table and a spare time period table;
the four bit positions of the current rating flag correspond to the four bit positions of the backup rating flag.
2. The method for activating powered device reserve rates of claim 1 wherein: in step S3, the set parameter in the spare rate flag is 1, and the memory area of the corresponding parameter is different from the memory area of the current rate parameter; the unset parameter is 0, and the memory area of the corresponding parameter is the same as the memory area of the current rate parameter.
3. The method for activating powered device reserve rates of claim 1 wherein: the spare rate flag further includes a preset time parameter located in one bit, where the preset time parameter is a specific time point at which the set activation condition is effective.
4. A method for activating a powered device reserve rate according to claim 3 wherein: step S1 further includes setting the activation time point to 1 after the activation of the backup rate scheme.
5. The method for activating powered device reserve rates of claim 4, wherein: and after the preset time point is reached, setting the preset time in the standby rate parameters to be 0, and meeting the activation condition.
6. The method for activating powered device reserve rates of claim 5, wherein: the parameters corresponding to the standby rate scheme to be activated comprise one or any combination of a scheme name, a season table, a week table and a time period table.
7. The method for activating powered device reserve rates of claim 1 wherein: the scheme contents corresponding to each parameter in the current rate mark are stored in the first memory area and the second memory area.
8. The method for activating powered device reserve rates of claim 1 wherein: scheme contents corresponding to all parameters in the spare rate mark are stored in the first memory slice area and the second memory slice area respectively.
9. Method for activating a backup rate for a consumer according to claim 7 or 8, characterized in that: and the first memory area and the second memory area respectively store a set of complete rate schemes.
CN201811451926.7A 2018-11-30 2018-11-30 Method for activating a reserve rate of an electrical consumer Active CN109448256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811451926.7A CN109448256B (en) 2018-11-30 2018-11-30 Method for activating a reserve rate of an electrical consumer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811451926.7A CN109448256B (en) 2018-11-30 2018-11-30 Method for activating a reserve rate of an electrical consumer

Publications (2)

Publication Number Publication Date
CN109448256A CN109448256A (en) 2019-03-08
CN109448256B true CN109448256B (en) 2021-05-11

Family

ID=65556575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811451926.7A Active CN109448256B (en) 2018-11-30 2018-11-30 Method for activating a reserve rate of an electrical consumer

Country Status (1)

Country Link
CN (1) CN109448256B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115512488B (en) * 2022-11-24 2023-04-28 国网江苏省电力有限公司营销服务中心 Time-sharing electricity charge calculation method and device based on flexible rate electric energy meter

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531249A (en) * 2003-03-10 2004-09-22 华为技术有限公司 Method for communication charge by charge identification
CN1979179A (en) * 2005-11-29 2007-06-13 上海贝岭股份有限公司 Method and apparatus for judging and processing power-off event in multi fee-ratio electric energy meter
CN101435832A (en) * 2008-11-28 2009-05-20 安徽中天电力电子有限责任公司 Method for reading three-charge rate and four-charge rate electrical energy meter of low voltage carrier wave meter reading collection terminal
JP4480406B2 (en) * 2004-01-27 2010-06-16 大阪瓦斯株式会社 Discount fee billing system and method
CN102870372A (en) * 2012-06-15 2013-01-09 华为技术有限公司 Method and apparatus for processing billing data
CN104299323A (en) * 2014-10-23 2015-01-21 武汉阿迪克电子股份有限公司 Charge-control processing method of electric power meter for prepayment
CN108898743A (en) * 2018-06-29 2018-11-27 宁波三星智能电气有限公司 The illegal judgement and processing method of a kind of rate and relevant parameter

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345434B (en) * 2013-06-26 2016-06-15 京东方科技集团股份有限公司 The data back up method of a kind of display device and device
JP6214390B2 (en) * 2013-12-26 2017-10-18 キヤノン株式会社 MEMORY CONTROL DEVICE, MEMORY CONTROL METHOD, AND PROGRAM

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531249A (en) * 2003-03-10 2004-09-22 华为技术有限公司 Method for communication charge by charge identification
JP4480406B2 (en) * 2004-01-27 2010-06-16 大阪瓦斯株式会社 Discount fee billing system and method
CN1979179A (en) * 2005-11-29 2007-06-13 上海贝岭股份有限公司 Method and apparatus for judging and processing power-off event in multi fee-ratio electric energy meter
CN101435832A (en) * 2008-11-28 2009-05-20 安徽中天电力电子有限责任公司 Method for reading three-charge rate and four-charge rate electrical energy meter of low voltage carrier wave meter reading collection terminal
CN102870372A (en) * 2012-06-15 2013-01-09 华为技术有限公司 Method and apparatus for processing billing data
CN104299323A (en) * 2014-10-23 2015-01-21 武汉阿迪克电子股份有限公司 Charge-control processing method of electric power meter for prepayment
CN108898743A (en) * 2018-06-29 2018-11-27 宁波三星智能电气有限公司 The illegal judgement and processing method of a kind of rate and relevant parameter

Also Published As

Publication number Publication date
CN109448256A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN103019737A (en) Method and device for displaying shortcut of application program
CN102455973A (en) Method for setting data field to erase data by using residual space of Flash chip
AU2012203447A1 (en) System, method, and apparatus for operating a power distribution system
CN104574051A (en) Charging method and device
CN106940625A (en) The date storage method of intelligent electric meter
CN109448256B (en) Method for activating a reserve rate of an electrical consumer
CN102063941B (en) EEPROM (Electrically Erasable Programmable Read-Only Memory) loss balancing method for prolonging life of electric energy meter
CN101320596A (en) Bad block management method facing high-capacity FLASH solid memory
CN104317671A (en) Power-down data storage and recovery algorithm prolonging service life of non-volatile memory
JP2015106952A (en) Estimation program, estimation method and estimation apparatus
CN101520919B (en) Public electricity utilization management system
CN111143239A (en) Frozen electric quantity data compression storage method and decompression method for intelligent electric meter
CN201765272U (en) Three-fee-controlled wireless intelligent electric energy meter
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN105491208A (en) Method for storing electric quantity information of mobile terminal, and mobile terminal
CN103064033A (en) Power supply test circuit
CN103207834B (en) A kind of electric energy data storage method
JP2010020653A (en) Method and system for calculating design capacity of transformer, and method and system for determining design specification of facility
CN108197143B (en) Method and system for identifying information of specific transformer user in GIS (geographic information System)
RU2716270C2 (en) Power supply control system and method
CN202362901U (en) Acquisition terminal of special transformer
CN105207214B (en) A kind of power scheduling control system
CN202652235U (en) Microcontroller Internet device with embedded TCP/IP protocol stack module
CN102117274A (en) Patent retrieval method and system
CN106785708B (en) A kind of socket and its line management method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant