A high-precision real-time charging method, settlement method and system based on an intelligent electricity meter

By combining energy pulses and fast pulses in smart power meters, high-precision electricity and electricity billing are achieved, the problem of low metering accuracy of existing power meters is solved, the accuracy and user experience of electricity bill settlement are improved, and data matching of digital currency payment system is supported.

CN115862224BActive Publication Date: 2025-07-04ANHUI ZENITH ELECTRICITY & ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211540018.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-07-04
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

The accuracy of the electricity metering and electricity billing of existing smart electricity meters is low, resulting in the data of the electricity bill settlement system and the digital currency payment system, affecting the user experience and the accuracy of electricity bill settlement.

Method used

By combining energy pulses and fast pulses in the smart power meter, high-precision power metering and electricity billing exceeding the existing threshold value, use the millisecond-level timer of the main control MCU to interrupt the task, control the billing interval period, and perform high-precision updates of the power and electricity bills within each billing interval period to generate high-precision electricity bill settlement information.

Benefits of technology

It has achieved power metering of 0.000001kWh and accumulated electricity bills of 0.00000001 yuan, which has improved the accuracy of electricity bill settlement, supported data matching of the digital currency payment system, and improved the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115862224B_ABST
    Figure CN115862224B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of power equipment, and specifically relates to a high-precision real-time charging method, a settlement method, and a system based on an intelligent electricity meter. The high-precision real-time charging method includes the following steps: S1: Predetermine the charging interval period. S2: When the charging interval period is reached, trigger the following electricity quantity and electricity fee update operations: load and verify the rate parameters, determine whether the metering chip is abnormal, read the register data, count the newly added energy pulses and fast pulses, count the newly added high-precision electricity quantity, and calculate the newly added high-precision electricity fee. S3: Generate the settlement information for the newly added high-precision electricity fee. S4: Wait for the next round of electricity quantity and electricity fee update operations to be executed, and determine whether a protocol message containing a high-precision real-time electricity fee settlement request is received. The electricity fee real-time settlement system includes: an intelligent electricity meter, an electricity fee management platform, and a digital currency Internet of Things payment terminal. The present invention solves the problems of low charging accuracy of existing electricity meters and the mismatch between electricity fee settlement and digital currency payment data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power equipment, and specifically relates to a high-precision real-time charging method based on an intelligent electricity meter, a high-precision real-time settlement method based on an intelligent electricity meter, and a real-time electricity fee settlement system based on digital currency. Background Art

[0002] In recent years, with the rapid development of smart grids, intelligent electricity meters have also been widely used. Compared with traditional electricity meters, intelligent electricity meters have higher measurement accuracy and the function of real-time data uploading. This lays a foundation for real-time electricity fee query and management between the power grid and users. However, the measurement accuracy and data update frequency of existing intelligent electricity meters are still relatively low. Currently, the threshold electricity quantity for electricity quantity statistics supported by the power grid is still in units of readings, with the highest accuracy up to two decimal places; the electricity fee still uses 0.1 yuan (i.e., the currency unit: jiao) as the settlement threshold.

[0003] Even in the latest DL / T 698.45-2017 "Object-Oriented Power Consumption Information Data Exchange Protocol" (referred to as the 698.45 protocol) jointly compiled by the China Electric Power Research Institute and multiple units, after being piloted and verified in multiple cities, the 698.45 protocol has been promoted and implemented after being reviewed and verified by the standard review group. Since the implementation of the 698.45 protocol to the present, the protocol has undergone multiple rounds of function expansion and improvement, but the electricity energy only has ordinary 2-digit decimal electricity energy and 4-digit decimal extended precision electricity energy, and there is no clear definition of higher-precision electricity energy in the protocol for the time being.

[0004] Under this current situation, if a user uses small-power electrical appliances, when the user needs to query their real-time electricity consumption and electricity fees in real time, if the threshold electricity quantity and threshold fee are not reached, the electricity consumption and electricity fees in the system will not be updated in real time, which greatly affects the user experience.

[0005] In addition, with the popularization and use of digital currency, the RMB is no longer traditional currency, but a string of encrypted numbers. Digital currency in online payment has broken away from the constraints of currency units such as yuan, jiao, and fen. Digital currency payment can be accurate to any number of decimal places, rather than being carried out in accordance with the traditional yuan, jiao, and fen as the minimum measurement unit. However, when applying digital currency to electricity fee settlement, due to the limitations of the accuracy of electricity quantity and electricity fee in the existing electricity fee settlement system, the electricity quantity and electricity fee settlement process still needs to be carried out with carry processing. There is a mismatch between the digital currency payment system and the electricity fee management system of the power grid. Summary of the Invention

[0006] To solve the problem that the power measurement and electricity bill calculation accuracy of existing smart electricity meters are relatively low, resulting in data mismatch between the electricity bill settlement system and the digital currency payment system during the user payment stage; the present invention provides a high-precision real-time billing method, settlement method, and system based on a smart electricity meter.

[0007] The technical solution provided by the present invention is as follows:

[0008] A high-precision real-time billing method based on a smart electricity meter, which is used for existing functional modules in the smart electricity meter, and combines energy pulses and fast pulses to achieve high-precision power measurement and electricity bill calculation beyond the existing threshold value. The high-precision real-time billing method includes the following steps:

[0009] S1: Predesign a billing interval period, and the billing interval period is the minimum time interval for triggering the smart electricity meter to perform power and electricity bill update tasks.

[0010] S2: Trigger a round of power and electricity bill update operations every time the billing interval period is reached, and the operation process is as follows:

[0011] S21: Load the rate electricity price parameters of the rate period parameters at the current moment and complete the rate parameter verification.

[0012] S23: Determine whether there is an abnormality in the metering chip:

[0013] (1) If yes, reconfigure the metering chip;

[0014] (2) Otherwise, read the register data of the power register, energy pulse register, and fast pulse count register in the metering chip.

[0015] S24: Obtain the newly added energy pulses and newly added fast pulses within the current billing interval period according to the data of each register.

[0016] S25: Calculate the newly added high-precision power according to the newly added energy pulses and fast pulse numbers in the current billing interval period, and accumulate the historical power.

[0017] S26: Calculate the corresponding newly added high-precision electricity bill by combining the rate electricity price parameters and the newly added high-precision power in the current billing interval period, and accumulate the historical electricity bill.

[0018] S3: Generate newly added high-precision electricity bill settlement information, and determine whether the newly added high-precision electricity bill in the high-precision electricity bill settlement information reaches the storage threshold value. If yes, write the settlement information in the memory RAM to the corresponding area in the EEPROM memory.

[0019] S4: Wait to execute the next round of power and electricity bill update operations, and determine whether a protocol message containing a high-precision real-time electricity bill settlement request is received.

[0020] In step S1 of the present invention, the initial value of the preset billing interval period is set to 200 ms, and the millisecond-level timer interrupt task of the main control MCU is used to control the billing interval period. The timer interrupt period is set to 4 ms. Each time the interrupt task is executed, the main control MCU decrements the billing interval period according to the interrupt period. When the billing interval period reaches zero, the billing interval flag IntervalTimeMark is set to 1, and the power generation and electricity charge update tasks are triggered. Among them, the initial value of the billing interval flag is 1 when the system runs for the first time; and the flag is cleared after each completion of the power and electricity charge update tasks.

[0021] As a further improvement of the present invention, in step S25, the process of accumulating high-precision electricity is as follows:

[0022] S251: Obtain the current time and determine whether the current time has passed one second. If so, perform the rate period switching process and obtain the new rate number.

[0023] S252: Combine the rate period parameters to determine whether new energy pulses are added, and accumulate the added energy pulses into the high-precision sub-rate electric energy according to the power direction.

[0024] S253: Combine the rate period parameters to accumulate the fast pulse base number in the memory corresponding to the current billing interval period, and determine whether the base number reaches the measurement threshold value corresponding to one millionth of a degree of electricity.

[0025] (1) If so, accumulate the newly added high-precision electricity represented by the fast pulse base number into the high-precision sub-rate electric energy according to the power direction;

[0026] (2) Otherwise, end this round of high-precision electricity measurement.

[0027] As a further improvement of the present invention, in step S26, the process of accumulating high-precision electricity charges is as follows:

[0028] S261: Obtain the current time and determine whether the current time has passed one second. If so, perform the rate electricity price parameter switching process and obtain the rate electricity price.

[0029] S262: Calculate the newly added high-precision electricity charges under each rate condition according to the newly added high-precision sub-rate electric energy and the corresponding rate electricity price parameters.

[0030] S263: Accumulate the newly added high-precision electricity charges under each rate condition, and then end this round of high-precision electricity charge calculation.

[0031] In step S3 of the present invention, the data in the high-precision electricity bill settlement information includes: the current electricity consumption to be settled, the current electricity bill to be settled, and the current settlement time. Among them, the current electricity consumption to be settled is the cumulative electricity consumption since the last settlement time, which is in the format of an unsigned 64-bit integer, with the unit of kWh and a conversion factor of -6, supporting high precision with 6 decimal places. The current electricity bill to be settled is the cumulative electricity bill since the last settlement time, which is in the format of an unsigned 64-bit integer, with the unit of yuan and a conversion factor of -8, supporting high precision with 8 decimal places. The current settlement time includes year, month, day, hour, minute, and second.

[0032] In step S3 of the present invention, the storage threshold value for the newly added high-precision electricity bill is 0.1 yuan, that is: when the newly added high-precision electricity bill calculated in each round of electricity quantity and electricity bill update task exceeds the storage threshold value, the newly added high-precision electricity quantity and newly added high-precision electricity bill of the current round calculated in the memory RAM are written into the corresponding area of the EEPROM memory.

[0033] The present invention also includes a high-precision real-time settlement method based on an intelligent electricity meter, which is used to complete real-time electricity bill settlement between the intelligent electricity meter and the settlement terminal according to the calculated high-precision electricity bill. The high-precision real-time settlement method includes the following steps:

[0034] S001A: The electricity bill management platform triggers a settlement task when reaching the system preset settlement cycle or receiving a settlement instruction issued manually, and sends a protocol message containing a high-precision real-time electricity bill settlement request to the corresponding intelligent electricity meter.

[0035] S002A: The intelligent electricity meter checks whether there is a protocol message in the communication port buffer and verifies the legality of the protocol message.

[0036] S003A: The intelligent electricity meter performs protocol parsing processing on the legal message and obtains the corresponding APDU protocol unit.

[0037] S004A: The intelligent electricity meter determines whether the APDU protocol unit contains a high-precision real-time electricity bill settlement request; if so, it responds to the request and sends the newly added high-precision electricity bill settlement information in the memory to the electricity bill management platform.

[0038] Among them, the high-precision electricity bill settlement information is calculated and generated by the intelligent electricity meter using the high-precision real-time billing method based on the intelligent electricity meter as described above.

[0039] S005A: The electricity bill management platform selects the payment channel pre-bound by the user to complete the currency settlement of the electricity bill according to the received newly added high-precision electricity bill settlement information, and sends a task end message indicating the completion of the settlement to the intelligent electricity meter.

[0040] As a further improvement of the present invention, the types of protocol messages containing real-time electricity bill settlement requests issued by the electricity bill management platform include two types, namely, the "clear after settlement" mode and the "not clear after settlement" mode.

[0041] In the "clear after settlement" mode, the smart electricity meter clears the corresponding settlement information stored in the internal memory RAM and EEPROM after receiving the task end message. In the "not clear after settlement" mode, the smart electricity meter does not perform data clearing processing after receiving the task end message.

[0042] As a further improvement of the present invention, the electricity bill management platform is also used to respond to the electricity bill query instruction issued by the user; the electricity bill query method is as follows:

[0043] S001B: When the electricity bill management platform receives the electricity bill query instruction issued manually, it triggers a query task; and sends a protocol message containing a high-precision real-time electricity bill query request to the corresponding smart electricity meter.

[0044] S002B: The smart electricity meter checks whether there is a protocol message in the communication port buffer and verifies the legality of the protocol message.

[0045] S003B: The smart electricity meter performs protocol parsing processing on the legal message and obtains the corresponding APDU protocol unit.

[0046] S004B: Determine whether the APDU protocol unit contains a high-precision real-time electricity bill query request; if so, respond to the request and send the newly added high-precision electricity bill settlement information in the memory to the electricity bill management platform.

[0047] Among them, the high-precision electricity bill settlement information is calculated and generated by the smart electricity meter using the high-precision real-time billing method based on the smart electricity meter as described above.

[0048] S005B: The electricity bill management platform returns the current electricity consumption to be settled and the current electricity bill to be settled to the user according to the newly added high-precision electricity bill settlement information received.

[0049] The present invention also includes a real-time electricity bill settlement system based on digital currency, and the real-time electricity bill settlement system includes: a plurality of smart electricity meters, an electricity bill management platform, and a digital currency Internet of Things payment terminal.

[0050] Among them, the smart electricity meters are installed at the electricity consumption nodes of each user and generate high-precision electricity bill settlement information by using the high-precision real-time billing method based on the smart electricity meter described above.

[0051] The electricity fee management platform is used to trigger a settlement task when reaching the settlement cycle preset by the system or receiving a settlement instruction issued manually, communicate with the smart electricity meter, and complete the electricity fee settlement task. Or when receiving an electricity fee query instruction issued manually to trigger a query task, it responds to the user's request and sends relevant data of the current electricity consumption to be settled and the current electricity fee to be settled.

[0052] The digital currency Internet of Things payment terminal is bound to each smart electricity meter. The digital currency Internet of Things payment terminal is used to communicate with the electricity fee management platform, and then complete the currency settlement of the electricity fee by using the digital currency pre-deposited in the wallet accounts bound to each smart electricity meter. The digital currency Internet of Things payment terminal is also used to communicate with a bank transaction background to manage the digital currency balance in the wallet accounts bound to each smart electricity meter.

[0053] The technical solution provided by the present invention has the following beneficial effects:

[0054] The technical solution provided by the present invention makes reasonable use of the hardware performance of the existing smart electricity meter and designs a method for electricity quantity measurement and electricity fee billing that can achieve a higher accuracy level. In this solution, by utilizing the clock unit interrupt task, the present invention can achieve the update of measurement data at the millisecond level. According to the relevant data in the energy pulse register and the fast pulse register in the measurement chip, the electricity quantity measurement can reach up to 0.000001 kWh at most, and the electricity fee accumulation can reach up to 0.00000001 yuan.

[0055] On the basis of adopting the solution of the present invention, when the smart electricity meter responds to an electricity fee query request, it can more precisely feedback the real-time change of the user's electricity consumption, improving the user's experience. At the same time, when the user conducts electricity fee settlement, the smart electricity meter can generate high-precision electricity fee settlement data and dock with the new payment channel of digital currency, making the data of the electricity fee settlement system match the data of the digital currency payment system. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a schematic diagram of the hardware structure of the smart electricity meter.

[0057] Figure 2 It is a flowchart of the steps of a high-precision real-time billing method based on a smart electricity meter provided in Embodiment 1 of the present invention.

[0058] Figure 3 It is a flowchart of the steps of the newly added high-precision electricity quantity accumulation process in Embodiment 1.

[0059] Figure 4 It is a flowchart of the steps of the newly added high-precision electricity fee accumulation process in Embodiment 1.

[0060] Figure 5This is the flowchart of the steps of a high-precision real-time settlement method based on an intelligent electricity meter provided in Embodiment 2 of the present invention.

[0061] Figure 6 This is the information structure diagram of protocol messages with different modes in Embodiment 2 of the present invention.

[0062] Figure 7 This is the system framework diagram of a real-time electricity bill settlement system based on digital currency provided in Embodiment 3 of the present invention.

[0063] Figure 8 It is adopted Figure 7 This is the flowchart of the system to implement the user electricity consumption data query task. Specific implementation manners

[0064] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The term "or / and" used herein includes any and all combinations of one or more of the related listed items.

[0066] Embodiment 1

[0067] This embodiment provides a high-precision real-time billing method based on an intelligent electricity meter. This method is used for the existing functional modules in the intelligent electricity meter, and combines energy pulses and fast pulses to achieve high-precision electricity measurement and electricity bill billing beyond the existing threshold values.

[0068] The hardware structure of the existing intelligent electricity meter is as Figure 1 shown. Combining Figure 1It can be known that the existing functional modules in the intelligent electric energy meter include a main control MCU, a metering chip unit, an EEPROM storage unit, a Flash storage unit, a control output unit, an ESAM encryption unit, an LCD display unit, a clock unit, and a communication unit. Among them, the communication unit includes an RS485 communication unit, an infrared communication unit, and an HPLC communication unit respectively. The metering chip unit, the Flash storage unit, and the ESAM encryption unit are connected to the main control MCU through an SPI interface; the EEPROM storage unit and the LCD display unit are connected to the main control MCU through an IIC interface. The three types of communication units are all communicatively connected to the main control MCU through a UART interface.

[0069] This embodiment provides a high-precision real-time billing method based on an intelligent electric energy meter, which is mainly implemented based on functional modules such as the main control MCU unit, the metering chip unit, the clock unit, and the EEPROM storage unit in the intelligent electric energy meter. The main control MCU includes resources such as an ARM Cortex series processor and a memory RAM, and the metering chip unit includes a power register, an energy pulse register, a fast pulse count register, etc.

[0070] As Figure 2 shown, the high-precision real-time billing method provided by this embodiment includes the following steps:

[0071] S1: Preset a billing interval period, and the billing interval period is the minimum time interval for triggering the intelligent electric energy meter to perform power and electricity charge update tasks.

[0072] In this embodiment, the initial value of the preset billing interval period is set to 200 ms, and the millisecond-level timer interrupt task of the main control MCU is used to control the billing interval period. The timer interrupt period is set to 4 ms. Each time the interrupt task is executed, the main control MCU decrements the billing interval period according to the interrupt period. When the billing interval period reaches zero, the billing interval flag IntervalTimeMark is set to 1, and the power and electricity charge update tasks are triggered. Among them, the initial value of the billing interval flag is 1 when the system runs for the first time; and the flag is cleared after each power and electricity charge update task is completed.

[0073] S2: Trigger a round of power and electricity charge update operations every time the billing interval period is reached, and the operation process is as follows:

[0074] S21: Load the rate electricity price parameter of the rate period parameter at the current moment, and complete the rate parameter verification.

[0075] S23: Determine whether there is an abnormality in the metering chip:

[0076] (1) If yes, reconfigure the metering chip;

[0077] (2) Otherwise, read the register data of the power register, energy pulse register, and fast pulse count register in the metering chip.

[0078] S24: Obtain the newly added energy pulses and newly added fast pulses within the current billing interval period according to the data of each register.

[0079] S25: Calculate the newly added high-precision electricity quantity according to the newly added energy pulses and fast pulse counts in the current billing interval period, and accumulate it to the historical electricity quantity.

[0080] Among them, as Figure 3 shown, the cumulative process of the newly added high-precision electricity quantity in this embodiment is as follows:

[0081] S251: Obtain the current moment, and determine whether the current moment has passed the second: If so, perform the rate period switching process and obtain the new rate number.

[0082] S252: Combine the rate period parameters, determine whether there are newly added energy pulses, and accumulate the newly added energy pulses to the high-precision sub-rate electric energy according to the power direction.

[0083] S253: Combine the rate period parameters, accumulate the fast pulse base number in the memory corresponding to the current billing interval period, and determine whether the base number reaches the metering threshold value corresponding to one millionth of a degree of electricity.

[0084] (1) If so, accumulate the newly added high-precision electricity quantity represented by the fast pulse base number to the high-precision sub-rate electric energy according to the power direction;

[0085] (2) Otherwise, end this round of high-precision electricity quantity metering.

[0086] S26: Calculate the corresponding newly added high-precision electricity charge according to the rate electricity price parameters and the newly added high-precision electricity quantity in the current billing interval period, and accumulate it to the historical electricity charge.

[0087] In this embodiment, as Figure 4 shown, the cumulative process of the newly added high-precision electricity charge is as follows:

[0088] S261: Obtain the current moment, and determine whether the current moment has passed the second: If so, perform the rate electricity price parameter switching process and obtain the rate electricity price.

[0089] S262: Calculate the newly added high-precision electricity charges under each rate condition according to the newly added high-precision sub-rate electric energy and the corresponding rate electricity price parameters.

[0090] S263: Accumulate the newly added high-precision electricity charges under each rate condition, and then end this round of high-precision electricity charge calculation.

[0091] S3: Generate new high-precision electricity bill settlement information, and determine whether the new high-precision electricity charges in the high-precision electricity bill settlement information reach the storage threshold value. If so, write the settlement information in the memory RAM to the corresponding area in the EEPROM memory.

[0092] The data in the high-precision electricity bill settlement information includes: the current electricity consumption to be settled, the current electricity charges to be settled, and the current settlement time. Among them, the current electricity consumption to be settled is the cumulative electricity consumption since the last settlement time, in the format of an unsigned 64-bit integer, with the unit of kWh, a conversion factor of -6, and supporting a high precision of 6 decimal places. The current electricity charges to be settled are the cumulative electricity charges since the last settlement time, in the format of an unsigned 64-bit integer, with the unit of yuan, a conversion factor of -8, and supporting a high precision of 8 decimal places. The current settlement time includes year, month, day, hour, minute, and second.

[0093] In this embodiment, the preset storage threshold value for the new high-precision electricity charges is 0.1 yuan, that is: when the new high-precision electricity charges calculated in each round of electricity quantity and electricity charge update tasks exceed the storage threshold value, the new high-precision electricity quantity and new high-precision electricity charges of the current round calculated in the memory RAM are written to the corresponding area in the EEPROM memory.

[0094] S4: Wait for the next round of electricity quantity and electricity charge update operations to be executed, and determine whether a protocol message containing a high-precision real-time electricity bill settlement request is received.

[0095] In the solution provided in this embodiment, the smart electricity meter uses the millisecond-level timer interrupt task of the main control MCU to control the billing interval period, thereby achieving high-precision measurement of electricity consumption and high-precision calculation of electricity charges at the millisecond level. Among them, when measuring high-precision electricity quantity, both traditional energy pulses and more refined fast pulses are used, so as to achieve high-precision electricity quantity measurement of 0.000001 kWh. Correspondingly, when conducting electricity charge statistics, combined with different rate electricity prices, the electricity charge accuracy can reach 0.00000001 yuan. The measurement accuracy of electricity consumption and electricity charges far exceeds the existing solutions.

[0096] In this embodiment, the measurement threshold value is the threshold value of the electricity consumption within a specific period that can be counted based on energy pulses and fast pulses. This value is related to the frequency of fast pulses in the system. In this embodiment, the smart electricity meter can achieve a maximum accuracy of one millionth of a degree.

[0097] The storage threshold value is the threshold value of the electricity consumption value written into the external memory by the smart electricity meter each time. Considering that when the data writing frequency is too high, it may greatly shorten the service life of the external memory and cause damage to the EEPROM memory. In this embodiment, the storage threshold value is artificially set to 0.1 kWh. That is, in each round of electricity measurement and electricity bill charging update operation, when the newly added electricity consumption reaches the threshold value, it is written into the external memory EEPROM; this can greatly reduce the writing frequency of the external memory and improve the service life of the external memory.

[0098] In the solution provided in this embodiment, after the smart electricity meter completes a round of electricity consumption and electricity bill update operation each time, it will wait for the trigger of the next round of tasks. At the same time, it will also check whether it has received a protocol message containing a high-precision real-time electricity bill settlement request. If a relevant message is received, the main control MCU of the smart electricity meter will execute two parallel tasks at the same time. One task is to repeatedly execute the electricity consumption and electricity bill update operation, and the other task is to respond to the real-time electricity bill settlement request and return the newly generated high-precision electricity bill settlement information in the main control MCU memory.

[0099] Embodiment 2

[0100] On the basis of the solution of Embodiment 1, this embodiment provides a high-precision real-time settlement method based on a smart electricity meter, which is used to complete the real-time settlement of electricity bills according to the calculated high-precision electricity bills between the smart electricity meter and the settlement terminal. As Figure 5 shown, the high-precision real-time settlement method includes the following steps:

[0101] S001A: When the electricity bill management platform reaches the system preset settlement cycle or receives a settlement instruction issued manually, it triggers a settlement task and sends a protocol message containing a high-precision real-time electricity bill settlement request to the corresponding smart electricity meter.

[0102] S002A: The smart electricity meter checks whether there is a protocol message in the communication port buffer and verifies the legality of the protocol message.

[0103] S003A: The smart electricity meter performs protocol parsing processing on the legal message and obtains the corresponding APDU protocol unit.

[0104] S004A: The smart electricity meter determines whether the APDU protocol unit contains a high-precision real-time electricity bill settlement request; if so, it responds to the request and sends the newly added high-precision electricity bill settlement information in the memory to the electricity bill management platform.

[0105] Among them, the high-precision electricity bill settlement information is calculated and generated by the smart electricity meter using the high-precision real-time charging method based on the smart electricity meter in Embodiment 1.

[0106] S005A: The electricity fee management platform selects the payment channels pre-bound by users according to the received new high-precision electricity fee settlement information to complete the currency settlement of electricity fees, and sends a task end message indicating the completion of settlement to the smart electricity meter.

[0107] In the solution of this embodiment, there are two scenarios for triggering the electricity fee settlement task: one is the periodic automatic deduction instruction of electricity fees set by the system. For example, various prepaid electricity meters adopt this working mode, and can automatically deduct the electricity fees of users daily, monthly or annually. The other is the settlement request sent by the user himself; with the continuous popularization of digital currency and the continuous development of the automation degree of power grid settlement services, the power grid can perform real-time electricity fee settlement according to the needs of users at any time.

[0108] In this embodiment, the messages sent through the communication port of the smart electricity meter are all based on the 689.45 protocol. Except for the high-precision real-time electricity fee settlement request, other requests will also use this protocol to generate messages. When the smart electricity meter receives the corresponding message, it processes it according to the preset program.

[0109] In the solution provided in this embodiment, the types of protocol messages sent by the electricity fee management platform containing real-time electricity fee settlement requests include two types, namely the "clear after settlement" mode and the "do not clear after settlement" mode. Specifically, the information structure of the protocol message is as Figure 6 shown.

[0110] In the "clear after settlement" mode, the smart electricity meter clears the corresponding settlement information in the internal memory RAM and EEPROM storage after receiving the task end message. In the "do not clear after settlement" mode, the smart electricity meter does not perform data clearing processing after receiving the task end message.

[0111] Embodiment 3

[0112] This embodiment provides a real-time electricity fee settlement system based on digital currency, as Figure 7 shown. The real-time electricity fee settlement system includes: multiple smart electricity meters, an electricity fee management platform, and a digital currency Internet of Things payment terminal. The real-time electricity fee settlement system is the corresponding system for implementing the high-precision real-time settlement method based on smart electricity meters in Embodiment 2.

[0113] Among them, the smart electricity meters are installed at the electricity consumption nodes of each user, and the high-precision real-time billing method based on smart electricity meters in Embodiment 1 is used to generate high-precision electricity fee settlement information.

[0114] The electricity fee management platform is used to trigger a settlement task when reaching the settlement cycle preset by the system or receiving a settlement instruction issued manually, communicate with the smart electricity meter, and complete the electricity fee settlement task. Or when receiving an electricity fee query instruction issued manually to trigger a query task, it responds to the user's request and sends the relevant data of the current electricity consumption to be settled and the current electricity fee to be settled received.

[0115] The digital currency Internet of Things payment terminal is bound to each smart electricity meter. The digital currency Internet of Things payment terminal is used to communicate with the electricity fee management platform, and then complete the currency settlement of the electricity fee by using the digital currency pre-deposited in the wallet accounts bound to each smart electricity meter. The digital currency Internet of Things payment terminal is also used to communicate with a bank transaction background to manage the digital currency balance in the wallet accounts bound to each smart electricity meter.

[0116] Based on Figure 7 For the real-time electricity fee settlement system, the electricity fee management platform can also respond to the electricity fee query instruction issued by the user; even if the user does not pay the electricity fee, the user can also query the electricity consumption and the electricity fee to be paid in real time. Specifically, as Figure 8 shown, the electricity fee query method is as follows:

[0117] S001B: When the electricity fee management platform receives an electricity fee query instruction issued manually, it triggers a query task; and sends a protocol message containing a high-precision real-time electricity fee query request to the corresponding smart electricity meter.

[0118] S002B: The smart electricity meter checks whether there is a protocol message in the communication port buffer and verifies the legality of the protocol message.

[0119] S003B: The smart electricity meter performs protocol parsing and processing on the legal message and obtains the corresponding APDU protocol unit.

[0120] S004B: The smart electricity meter judges whether the APDU protocol unit contains a high-precision real-time electricity fee query request; if so, it responds to the request and sends the newly added high-precision electricity fee settlement information in the memory to the electricity fee management platform.

[0121] Among them, the high-precision electricity fee settlement information is calculated and generated by the smart electricity meter by using the high-precision real-time charging method based on the smart electricity meter as described above.

[0122] S005B: The electricity fee management platform returns the current electricity consumption to be settled and the current electricity fee to be settled to the user according to the newly added high-precision electricity fee settlement information received.

[0123] Based on the foregoing solution, the system can respond to the query requests sent by users at the millisecond level, accurately feedback the changes in the electricity consumption of users with an accuracy level of one millionth of a kilowatt-hour, and generate electricity bills for payment on behalf of users with an accuracy level of 0.00000001 yuan.

[0124] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0125] The above-described embodiments only represent several implementation manners of the present invention. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims

1. A high-precision real-time billing method based on an intelligent electricity meter, characterized in that, It is used for the existing functional modules in the smart electricity meter, combining energy pulses and fast pulses to achieve high-precision electricity measurement and electricity charge billing; the precision of high-precision electricity is up to 0.000001 kWh; the precision of high-precision electricity charge is up to 0.00000001 yuan; The high-precision real-time billing method includes the following steps: S1: Preset the billing interval period, which is the minimum time interval for triggering the smart electricity meter to perform electricity quantity and electricity charge update tasks; S2: Trigger a round of electricity quantity and electricity charge update operations every time the billing interval period is reached. The operation process is as follows: S21: Load the rate electricity price parameters of the rate period parameters at the current moment and complete the verification of the rate parameters; S23: Judge whether there is an abnormality in the metering chip: (1) If yes, reconfigure the metering chip; (2) Otherwise, read the register data of the power register, energy pulse register and fast pulse count register in the metering chip; S24: Obtain the newly added energy pulses and newly added fast pulses within the current billing interval period according to the data of each register; S25: Calculate the newly added high-precision electricity quantity according to the newly added energy pulses and fast pulse numbers in the current billing interval period, and accumulate the historical electricity quantity; S26: Calculate the corresponding newly added high-precision electricity charge by combining the rate electricity price parameters of the current billing interval period and the newly added high-precision electricity quantity, and accumulate the historical electricity charge; S3: Generate newly added high-precision electricity charge settlement information, and judge whether the newly added high-precision electricity charge in the high-precision electricity charge settlement information reaches the storage threshold value. If yes, write the settlement information in the memory RAM to the corresponding area in the EEPROM memory; S4: Wait to execute the next round of electricity quantity and electricity charge update operations, and judge whether a protocol message containing a high-precision real-time electricity charge settlement request is received.

2. The high-precision real-time billing method based on an intelligent electricity meter according to claim 1, wherein: In step S1, the initial value of the preset billing interval period is set to 200 ms, and the millisecond-level timer interrupt task of the main control MCU is used to control the billing interval period; the timer interrupt period is set to 4 ms. Each time the interrupt task is executed, the main control MCU decrements the billing interval period according to the interrupt period until the billing interval period reaches zero, sets the billing interval flag IntervalTimeMark to 1, and triggers the electricity quantity and electricity charge update tasks; among them, the initial value of the billing interval flag is 1 when the system runs for the first time; and the flag is cleared after each electricity quantity and electricity charge update task is completed.

3. The high-precision real-time billing method based on an intelligent electricity meter according to claim 1, characterized in that: In step S25, the cumulative process of the newly added high-precision electricity quantity is as follows: S251: Obtain the current moment and judge whether the current moment has passed the second: If yes, run the rate period switching process and obtain the new rate number; S252: Combine the rate period parameters to judge whether there are newly added energy pulses, and accumulate the newly added energy pulses into the high-precision sub-rate electric energy according to the power direction; S253: Combine the rate period parameters to accumulate the fast pulse base number in the memory corresponding to the current billing interval period, and judge whether the base number reaches the metering threshold value corresponding to one millionth of a degree of electricity: (1) If yes, accumulate the newly added high-precision electricity quantity represented by the fast pulse base number into the high-precision sub-rate electric energy according to the power direction; Otherwise, end this round of high-precision electricity measurement.

4. The high-precision real-time billing method based on an intelligent electricity meter according to claim 3, characterized in that: In step S26, the cumulative process of the newly added high-precision electricity charge is as follows: S261: Obtain the current moment, and determine whether the current moment has passed a second. If so, perform rate electricity price parameter switching processing and obtain the rate electricity price. S262: Calculate the newly added high-precision electricity charges under each rate condition according to the newly added high-precision sub-rate electric energy and the corresponding rate electricity price parameters. S263: Accumulate the newly added high-precision electricity charges under each rate condition, and then end this round of high-precision electricity charge calculation.

5. The high-precision real-time billing method based on an intelligent electricity meter according to claim 1, characterized in that: In step S3, the data in the high-precision electricity charge settlement information includes: the current electricity consumption to be settled, the current electricity charge to be settled, and the current settlement moment. Among them, the current electricity consumption to be settled is the cumulative electricity consumption since the last settlement moment, in the format of an unsigned 64-bit integer, with the unit of kWh, a conversion multiple of -6, and supporting a high precision of 6 decimal places; the current electricity charge to be settled is the cumulative electricity charge since the last settlement moment, in the format of an unsigned 64-bit integer, with the unit of yuan, a conversion multiple of -8, and supporting a high precision of 8 decimal places; the current settlement moment includes year, month, day, hour, minute, and second.

6. The high-precision real-time billing method based on an intelligent electricity meter according to claim 1, characterized in that: In step S3, the storage threshold value of the newly added high-precision electricity charge is 0.1 yuan, that is, when the newly added high-precision electricity charge calculated in each round of electricity quantity and electricity charge update task exceeds the storage threshold value, the newly added high-precision electricity quantity and newly added high-precision electricity charge of the current round calculated in the memory RAM are written into the corresponding area of the EEPROM memory.

7. A high-precision real-time settlement method based on an intelligent electricity meter, characterized in that: It is used to complete real-time electricity charge settlement between the intelligent electricity meter and the settlement terminal according to the calculated high-precision electricity charge. The high-precision real-time settlement method includes the following steps: S001A: When the electricity charge management platform reaches the system preset settlement cycle or receives a settlement instruction issued manually, it triggers a settlement task and sends a protocol message containing a high-precision real-time electricity charge settlement request to the corresponding intelligent electricity meter. S002A: The intelligent electricity meter checks whether there is a protocol message in the communication port buffer and verifies the legality of the protocol message. S003A: The intelligent electricity meter performs protocol parsing processing on the legal message and obtains the corresponding APDU protocol unit. S004A: The intelligent electricity meter determines whether the APDU protocol unit contains a high-precision real-time electricity charge settlement request. If so, it responds to the request and sends the newly added high-precision electricity charge settlement information in the memory to the electricity charge management platform. The high-precision electricity charge settlement information is calculated and generated by the intelligent electricity meter using the high-precision real-time charging method based on the intelligent electricity meter described in any one of claims 1-6. S005A: The electricity charge management platform selects the payment channel pre-bound by the user to complete the currency settlement of the electricity charge according to the received newly added high-precision electricity charge settlement information, and sends a task end message indicating the completion of the settlement to the intelligent electricity meter.

8. The high-precision real-time settlement method based on an intelligent electricity meter according to claim 7, characterized in that: The types of protocol messages containing real-time electricity charge settlement requests sent by the electricity charge management platform include two types, namely the "clear after settlement" mode and the "not clear after settlement" mode. In the post-settlement clearing mode, the smart electricity meter clears the corresponding settlement information stored in the internal memory RAM and EEPROM after receiving the task end message; in the post-settlement non-clearing mode, the smart electricity meter does not perform data clearing after receiving the task end message.

9. The high-precision real-time settlement method based on an intelligent electricity meter according to claim 8, characterized in that: The electricity fee management platform is also used to respond to the electricity fee query instruction issued by the user; the electricity fee query method is as follows: S001B: When the electricity fee management platform receives the electricity fee query instruction issued manually, it triggers a query task; and sends a protocol message containing a high-precision real-time electricity fee query request to the corresponding smart electricity meter. S002B: The smart electricity meter checks whether there is a protocol message in the communication port buffer and verifies the legality of the protocol message. S003B: The smart electricity meter performs protocol parsing processing on the legal message and obtains the corresponding APDU protocol unit. S004B: The smart electricity meter determines whether the APDU protocol unit contains a high-precision real-time electricity fee query request; if so, it responds to the request and sends the newly added high-precision electricity fee settlement information in the memory to the electricity fee management platform. The high-precision electricity fee settlement information is calculated and generated by the smart electricity meter using the high-precision real-time charging method based on the smart electricity meter described in any one of claims 1-6. S005B: The electricity fee management platform returns the current electricity consumption to be settled and the current electricity fee to be settled to the user according to the newly added high-precision electricity fee settlement information received.

10. A real-time electricity bill settlement system based on digital currency, characterized in that: It includes: Multiple smart electricity meters, which are installed at the power consumption nodes of each user and generate high-precision electricity fee settlement information using the high-precision real-time charging method based on the smart electricity meter described in any one of claims 1-6. An electricity fee management platform, which is used to trigger a settlement task when reaching the system preset settlement period or receiving a manually issued settlement instruction, communicate with the smart electricity meter to complete the electricity fee settlement task; or when triggering a query task when receiving a manually issued electricity fee query instruction, respond to the user's request and send the relevant data of the current electricity consumption to be settled and the current electricity fee to be settled received. A digital currency Internet of Things payment terminal, which is bound to each smart electricity meter. The digital currency Internet of Things payment terminal is used to communicate with the electricity fee management platform, and then complete the currency settlement of the electricity fee using the digital currency pre-deposited in the wallet accounts bound to each smart electricity meter; the digital currency Internet of Things payment terminal is also used to communicate with a bank transaction background to manage the digital currency balance in the wallet accounts bound to each smart electricity meter.

Citation Information

Patent Citations

  • Electric quantity storage method, device and equipment of intelligent electric meter and medium

    CN112763777A

  • Intelligent electric meter data protection method and system based on cloud platform

    CN113884976A