WO2016201809A1 - 一种基于sts的预付费售电系统和方法 - Google Patents

一种基于sts的预付费售电系统和方法 Download PDF

Info

Publication number
WO2016201809A1
WO2016201809A1 PCT/CN2015/090161 CN2015090161W WO2016201809A1 WO 2016201809 A1 WO2016201809 A1 WO 2016201809A1 CN 2015090161 W CN2015090161 W CN 2015090161W WO 2016201809 A1 WO2016201809 A1 WO 2016201809A1
Authority
WO
WIPO (PCT)
Prior art keywords
meter
sts
token
charging
data
Prior art date
Application number
PCT/CN2015/090161
Other languages
English (en)
French (fr)
Inventor
唐国均
郑罡
罗乾鹏
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016201809A1 publication Critical patent/WO2016201809A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions

Definitions

  • This document relates to, but is not limited to, the field of communication technology, and in particular to an STS-based prepaid sales system and method.
  • Prepaid electricity sales systems are widely used in many countries and regions.
  • the related prepaid sales system is based on the Standard Transfer Specification (STS), which integrates management, billing, testing and other services.
  • STS Standard Transfer Specification
  • the user inputs the purchased power to the prepaid sales system, and the prepaid sales system can calculate the cost that the user needs to pay, which is convenient for the user to pay.
  • Embodiments of the present invention provide an STS-based prepaid power selling system and method for solving the problem that the related prepaid power selling system is not flexible enough in application.
  • Embodiments of the present invention provide a prepaid power selling system based on a standard transmission specification STS, including:
  • a communication module configured to receive the unique code and power purchase data of the electricity meter sent by the user equipment
  • the charging module is configured to acquire a charging policy corresponding to the unique code of the electricity meter, and calculate the power selling data according to the charging policy and the power purchasing data;
  • the STS protocol module is configured to generate a token TOKEN corresponding to the sales data based on the STS protocol, where the TOKEN is used to be entered into an electric meter corresponding to the unique encoding of the electric meter, so that the electric meter uses the sales data.
  • the STS protocol module includes: a master unit and one or more slave units;
  • the main unit is configured to query whether there is a pre-generated TOKEN corresponding to the sales data according to the unique encoding of the electric meter and the sales data; if yes, return the TOKEN; if not, call the One of the one or more slave units;
  • the slave unit called by the master unit is set to generate TOKEN corresponding to the power sale data based on the STS protocol.
  • the system further includes: a management module, configured to set or adjust a charging policy corresponding to the unique encoding of each meter according to the attribute change of the electric meter corresponding to the unique encoding of the electric meter.
  • the system further includes: a protocol extension module; the protocol extension module is configured to extend the STS protocol adopted by the STS protocol module.
  • the charging policy includes one or more charging conditions; and the charging policy includes multiple
  • the relationship between the plurality of billing conditions includes independence, juxtaposition, and/or counting.
  • the embodiment of the present invention further provides an STS-based pre-paid power selling method, including: receiving a unique encoding and power purchasing data sent by a user equipment; acquiring a charging policy corresponding to the unique encoding of the electric meter; Calculating the sales data according to the strategy and the power purchase data; generating a token TOKEN corresponding to the power sales data based on the STS protocol, wherein the TOKEN is used to be entered into the electricity meter corresponding to the unique code of the electricity meter, so that the electricity meter is The sales data is used.
  • the calculating the sales data according to the charging policy and the power purchasing data includes: querying whether there is a TOKEN corresponding to the pre-generated sales data according to the meter unique encoding and the selling data; If yes, the TOKEN is returned; if not, the TOKEN corresponding to the sales data is generated based on the STS protocol.
  • the method further includes: according to the meter, uniquely encoding the attribute change of the corresponding meter, Set or adjust the charging policy corresponding to the unique encoding of each meter.
  • the charging policy includes one or more charging conditions; where the charging policy includes multiple charging conditions, the system between the multiple charging conditions includes independent, parallel, and/or Or counting.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • a single meter is used as a management object, and a corresponding charging policy is set for each meter, and the charging policy can be separately adjusted.
  • Adjusting the billing strategy of the meter can eliminate the need to adjust the entire prepaid power selling system, which increases the flexibility of the system and facilitates management of each user.
  • FIG. 1 is a structural diagram of an STS-based prepaid power selling system according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of an STS-based prepaid power selling system according to another embodiment of the present invention.
  • FIG. 3 is a structural diagram of an STS-based prepaid power selling system according to still another embodiment of the present invention.
  • FIG. 4 is a flow chart of an STS-based prepaid power selling method in accordance with an embodiment of the present invention.
  • a single meter is used as a management object, and a corresponding charging policy is set for each meter, and the charging policy can be separately adjusted.
  • the billing policy of the meter can be adjusted without adjusting the entire prepaid power selling system. Therefore, the prepaid power selling system of the embodiment of the present invention can easily expand different services, and the system has high flexibility and is convenient for users to manage.
  • FIG. 1 is a structural diagram of an STS-based prepaid power selling system according to an embodiment of the present invention.
  • the STS-based prepaid sales system includes a communication module 110, a billing module 120, and an STS protocol module 130.
  • the communication module 110 is configured to receive the meter unique code and the power purchase data sent by the user equipment.
  • User equipment includes: network equipment such as POS machines, desktop computers, and mobile terminals.
  • the meter used by the user has a unique code ID of the meter, and the unique code of the meter can distinguish different meters.
  • the purchase of electricity data is the amount of electricity purchased or purchased electricity.
  • the user equipment can access the system through the communication module 110. After the user equipment accesses the system, the user can input the meter unique code and the power purchase data in the user equipment. After receiving the meter unique code and the power purchase data, the user equipment is responsible for sending to the communication module 110, and the communication module 110 is unique. The encoding and power purchase data is transmitted to the billing module 120.
  • the charging module 120 is configured to acquire a charging policy corresponding to the unique encoding of the electric meter, and calculate the sales data according to the charging policy and the power purchasing data.
  • the sales data is the amount of electricity purchased or the amount of electricity purchased. Among them, when the purchase of electricity data is the amount of electricity purchased, the electricity sales data is the purchase of electricity; when the purchase of electricity is the purchase of electricity, the sales data is the purchase amount.
  • the charging strategy is used to calculate and output the sales data corresponding to the unique code of the meter after inputting the power purchase data.
  • This embodiment sets a corresponding charging policy for each meter.
  • the billing policy can be adjusted in the background of the system.
  • the billing module 120 is configured to transmit the sales data to the STS protocol module 130 after calculating the sales power data.
  • the STS protocol module 130 is configured to generate a TOKEN corresponding to the sales data based on the STS protocol.
  • TOKEN is a token and is a string of encrypted digital codes. TOKEN via wireless, wired or Manually, it is entered into the electricity meter corresponding to the unique code of the meter, so that the meter can use the electricity sales data.
  • the communication module 110 is further configured to acquire the TOKEN and record the TOKEN by wireless or wired into the electric meter corresponding to the unique code of the electric meter.
  • the STS protocol module 130 is configured to generate an TOKEN corresponding to the IEC62055-41 standard corresponding to the sales data by using an algorithm based on the STS protocol.
  • the STS protocol-based algorithm can be written into the STS protocol module 130, or the STS protocol-based algorithm can be written into the external module.
  • the STS protocol module 130 provides an external interface, and the external module is connected to the external interface, thereby enabling the STS protocol.
  • the module 130 calls an STS protocol-based algorithm in the external module to generate a TOKEN corresponding to the IEC62055-41 standard corresponding to the sales data.
  • the charging policy includes one or more charging conditions; if the charging policy includes multiple charging conditions, the relationship between the multiple charging conditions includes: independent, side by side, and/or counting.
  • Each billing condition includes: a billing name and a billing algorithm.
  • the parallel relationship means that the input data of a plurality of charging conditions are the same and are simultaneously calculated.
  • the recursive relationship refers to the output data of one or more charging conditions as input data of another charging condition.
  • the charging policy includes three charging conditions for the reporting relationship:
  • A is the purchase amount (unit: yuan)
  • 10 is the monthly rent (unit: yuan)
  • B is the output data of the billing condition 1 (unit: yuan)
  • the input data of the billing condition 2 10%
  • C is the output data (unit: element) of the charging condition 2
  • the input data of the charging condition 3 1 is the unit price of electricity (unit: yuan/degree)
  • D is the amount of purchased electricity (unit: degree).
  • the STS protocol module 130 is configured to generate TOKEN in the form of a master-slave unit.
  • the STS protocol module 130 includes: one master unit and one or more slave units.
  • a main unit configured to obtain the meter unique encoding and power selling data from the calculating module 120; query whether there is a TOKEN corresponding to the power selling data pre-generated according to the meter unique encoding and the power selling data; if yes, return to the TOKEN; if not, one of the one or more slave units is called.
  • the slave unit called by the master unit is set to generate TOKEN corresponding to the power sale data based on the STS protocol.
  • the master unit is set to call the slave unit in the idle state; if there is no slave unit in the idle state, the slave unit with the least computation task is called to generate the TOKEN.
  • Pre-generating the TOKEN corresponding to the sales data includes: generating according to user preference data and historical pre-sales data.
  • the electric meter unique code and the purchase power data are used as user preference data.
  • the TOKEN corresponding to the user preference data may be generated. If the main unit returns the TOKEN corresponding to the user preference data, the TOKEN corresponding to the user preference data is generated again when the system is idle, for use in the next direct use.
  • the historical pre-sales electricity data can be the last purchase data of the electricity meter uniquely encoded by a certain meter.
  • the TOKEN corresponding to the historical pre-sales data can be generated. If the main unit returns the TOKEN corresponding to the historical pre-sales data, the TOKEN corresponding to the historical pre-sales data is generated again when the system is idle, for the next direct use.
  • system further includes: a management module 140. as shown in picture 2.
  • the management module 140 is configured to input user information, and input a unique meter corresponding to the user information. Encoding, and setting or adjusting the charging policy corresponding to the unique encoding of each meter according to the attribute change of the meter corresponding to the unique encoding of the meter.
  • the change of the attribute of the meter is the change of the user type and the change of the charging policy. After the change is sent, the charging policy needs to be set or adjusted.
  • the management module 140 is configured to take effect immediately after the charging policy is completed. For example, if the meter changes from a commercial electric meter to a civil meter, the unit price of the electricity in the billing strategy needs to be adjusted.
  • the administrator logs in to the management module 140 by using a management device, such as a network device such as a PC or a mobile terminal, to input user information, a unique code of the meter, and a charging policy.
  • a management device such as a network device such as a PC or a mobile terminal
  • the management module 140 is further configured to store the charging policy corresponding to each meter uniquely encoded in the database, so that the computing module 120 queries and acquires.
  • system further includes a protocol extension module 150. As shown in Figure 3.
  • the protocol extension module 150 is configured to extend the STS protocol adopted by the STS protocol module 130, so that the STS protocol can be more adapted to the application scenario.
  • the STS protocol module 130 is configured to generate a TOKEN in accordance with the extended STS protocol.
  • the administrator extends the STS protocol by means of the management device and the login protocol extension module 150.
  • the parameter of the STS protocol for generating the TOKEN includes a TID (TokenIdentifier) parameter representing the time.
  • TID TokenIdentifier
  • the valid range of the TID parameter is from the beginning of the year of 2024, and the application may be applied after 2024.
  • the STS protocol is extended so that the TID parameters can still be used after 2024.
  • the rate field of the STS protocol ranges from 0 to 99. Generally, the rate uses 1, and when the TID parameter of the STS protocol needs to be extended, a rate greater than 1 is used.
  • the foregoing communication module 110, the charging module 120, the STS protocol module 130, the management module 140, and the protocol extension module 150 may be disposed in the same device, or may be separately disposed in different devices.
  • the embodiment of the invention also provides an STS-based prepaid power selling method.
  • FIG 4 A flow chart of an STS-based prepaid power sales method in accordance with an embodiment of the present invention.
  • Step S410 The prepaid power selling system receives the meter unique code and the power purchase data sent by the user equipment.
  • Step S420 The prepaid power selling system acquires a charging policy corresponding to the unique code of the electricity meter.
  • a billing policy is set for each meter uniquely encoded.
  • the charging policy includes one or more charging conditions; where the charging policy includes multiple charging conditions, the relationship between the multiple charging conditions includes independent, parallel, and/or Count.
  • Each billing condition includes a billing name and a billing algorithm.
  • the charging policy corresponding to the unique code of each electric meter may be set or adjusted.
  • Step S430 the prepaid power selling system calculates the sales data according to the charging policy and the power purchasing data.
  • Step S440 the pre-paid power selling system generates a token TOKEN corresponding to the sales data based on the STS protocol, so as to record the TOKEN into the electric meter corresponding to the unique code of the electric meter, so that the electric meter uses the sales data. .
  • the pre-paid power selling system is based on the STS protocol
  • generating the token TOKEN corresponding to the sales data includes: querying whether the pre-generated sales data exists according to the unique encoding of the electricity meter and the sales data. Corresponding TOKEN; if yes, returning the TOKEN; if not, generating TOKEN corresponding to the sales data based on the STS protocol.
  • the STS protocol can be parsed before the STS protocol is used. To adapt to different application scenarios, the STS protocol in the STS protocol module can be extended.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the above technical solution realizes that when the type of the user to which the meter belongs changes or the charging policy changes, the charging policy of the meter can be adjusted, and the entire prepaid power selling system does not need to be adjusted, thereby improving the flexibility of the system and facilitating management. Every user.

Abstract

一种基于STS的预付费售电系统和方法。所述系统包括:通信模块,设置为接收用户设备发送的电表唯一编码和购电数据;计费模块,设置为获取所述电表唯一编码对应的计费策略,并根据所述计费策略和所述购电数据,计算售电数据;STS协议模块,设置为基于STS协议,生成所述售电数据对应的令牌TOKEN。上述技术方案以单个电表为管理对象,为每个电表设置对应的计费策略,且该计费策略可以被单独调整,当该电表所属用户的类型发生变化、或者计费政策发生变化时,调整该电表的计费策略即可,无需调整整个预付费售电系统,提高了系统的灵活性,便于管理每个用户。

Description

一种基于STS的预付费售电系统和方法 技术领域
本文涉及但不限于通信技术领域,特别是涉及一种基于STS的预付费售电系统和方法。
背景技术
预付费售电系统在不少国家和地区被广泛应用。相关的预付费售电系统是基于标准传输规范(Standard transfer specification,STS)构建的,系统集成了管理、计费、测试等业务。用户在购电时,向预付费售电系统输入购买的电量,预付费售电系统就可以计算出用户需要支付的费用,方便用户缴费。
随着社会的进步,开始有意识的对用户进行种类划分,如:商用电用户和民用电用户、用电量较多的用户和用电量较少的用户。但是,相关的预付费售电系统不能对用户种类进行实时的划分,且针对既有种类的用户不能单独管理,这导致预付费售电系统在应用上不够灵活。当新增一个种类、或者某一种类用户的售电政策变化时,需要对整个预付费售电系统进行调整。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种基于STS的预付费售电系统和方法,用以解决相关预付费售电系统在应用上不够灵活的问题。
本发明实施例提供了一种基于标准传输规范STS的预付费售电系统,包括:
通信模块,设置为接收用户设备发送的电表唯一编码和购电数据;
计费模块,设置为获取所述电表唯一编码对应的计费策略,并根据所述计费策略和所述购电数据,计算售电数据;
STS协议模块,设置为基于STS协议,生成所述售电数据对应的令牌TOKEN,所述TOKEN用于被录入所述电表唯一编码对应的电表中,使所述电表使用所述售电数据。
其中,所述STS协议模块包括:一个主单元、以及一个或多个从单元;
所述主单元,设置为根据所述电表唯一编码和所述售电数据,查询是否存在预先生成的所述售电数据对应的TOKEN;若是,则返回所述TOKEN;若否,则调用所述一个或多个从单元中的一个从单元;
被所述主单元调用的从单元,设置为基于STS协议,生成所述售电数据对应的TOKEN。
其中,所述系统还包括:管理模块;所述管理模块,设置为根据所述电表唯一编码对应的电表的属性变化,设置或调整每个电表唯一编码对应的计费策略。
其中,所述系统还包括:协议扩展模块;所述协议扩展模块,设置为对STS协议模块采用的STS协议进行扩展。
其中,所述计费策略包括一个或多个计费条件;在所述计费策略包括多个
计费条件的情况下,所述多个计费条件之间的关系包括独立、并列、和/或递算。
本发明实施例还提供了一种基于STS的预付费售电方法,包括:接收用户设备发送的电表唯一编码和购电数据;获取所述电表唯一编码对应的计费策略;根据所述计费策略和所述购电数据,计算售电数据;基于STS协议,生成所述售电数据对应的令牌TOKEN,所述TOKEN用于被录入所述电表唯一编码对应的电表中,使所述电表使用所述售电数据。
其中,根据所述计费策略和所述购电数据,计算售电数据,包括:根据所述电表唯一编码和所述售电数据,查询是否存在预先生成的所述售电数据对应的TOKEN;若是,则返回所述TOKEN;若否,则基于STS协议,生成所述售电数据对应的TOKEN。
其中,所述方法还包括:根据所述电表唯一编码对应的电表的属性变化, 设置或调整每个电表唯一编码对应的计费策略。
其中,所述计费策略包括一个或多个计费条件;在所述计费策略包括多个计费条件的情况下,所述多个计费条件之间的系统包括独立、并列、和/或递算。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
本发明实施例有益效果如下:
本发明实施例以单个电表为管理对象,为每个电表设置对应的计费策略,且该计费策略可以被单独调整,当该电表所属用户的类型发生变化、或者计费政策发生变化时,调整该电表的计费策略即可,无需调整整个预付费售电系统,提高了系统的灵活性,便于管理每个用户。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是根据本发明实施例的基于STS的预付费售电系统的结构图;
图2是根据本发明另一实施例的基于STS的预付费售电系统的结构图;
图3是根据本发明又一实施例的基于STS的预付费售电系统的结构图;
图4是根据本发明实施例的基于STS的预付费售电方法的流程图。
本发明的实施方式
本发明实施例以单个电表为管理对象,为每个电表设置对应的计费策略,且该计费策略可以被单独调整,当该电表所属用户的类型发生变化、或者计费政策发生变化时,调整该电表的计费策略即可,无需调整整个预付费售电系统,因此,本发明实施例的预付费售电系统易于扩展不同的业务,系统灵活性较高,用户便于管理。
以下结合附图,对本发明实施例进行进一步详细说明。应当理解,此处 所描述的具体实施例仅仅用以解释本发明,并不限定本发明。
本实施例提供了一种基于STS的预付费售电系统,如图1所示,为根据本发明实施例的基于STS的预付费售电系统的结构图。
该基于STS的预付费售电系统包括:通信模块110、计费模块120和STS协议模块130。
通信模块110,设置为接收用户设备发送的电表唯一编码和购电数据。
用户设备包括:POS机、台式机、移动终端等网络设备。
用户使用的电表具有电表唯一编码ID,电表唯一编码可以区分不同的电表。
购电数据为购电金额或购电电量。
用户设备可以通过通信模块110接入系统。在用户设备接入系统之后,用户可以在用户设备中输入电表唯一编码和购电数据,用户设备接收到电表唯一编码和购电数据之后,负责发送到通信模块110,通信模块110,将电表唯一编码和购电数据传送到计费模块120。
计费模块120,设置为获取所述电表唯一编码对应的计费策略,并根据所述计费策略和所述购电数据,计算售电数据。
售电数据为购电金额或购电电量。其中,当购电数据为购电金额时,售电数据为购电电量;当购电数据为购电电量时,售电数据为购电金额。
计费策略用于在输入购电数据之后,计算并输出电表唯一编码对应的售电数据。本实施例为每个电表设置对应的计费策略。在用户类型或计费政策变化时,例如:月租、税率、费率、电价变化时,可以在系统后台调整该计费策略。
计费模块120设置为计算出售电数据后,将该售电数据发送到STS协议模块130。
STS协议模块130,设置为基于STS协议,生成所述售电数据对应的TOKEN。
TOKEN为令牌,是一串加密数字编码。将TOKEN通过无线、有线或者 人工的方式,录入到电表唯一编码对应的电表中,使该电表可以使用售电数据。
可选地,通信模块110还设置为获取该TOKEN,并将TOKEN通过无线或有线方式录入到电表唯一编码对应的电表中。
STS协议模块130是设置为使用基于STS协议的算法,生成所述售电数据对应的、符合IEC62055-41标准的TOKEN。
基于STS协议的算法可以写入STS协议模块130中,也可以将基于STS协议的算法写入外置模块中,STS协议模块130提供外部接口,外置模块与该外部接口连接,进而使STS协议模块130调用外置模块中的基于STS协议的算法,生成售电数据对应的、符合IEC62055-41标准的TOKEN。
针对上述计费策略具体而言,
计费策略包括一个或多个计费条件;如果所述计费策略包括多个计费条件,则多个计费条件之间的关系包括:独立、并列、和/或递算。每个计费条件包括:计费名称和计费算法。
独立关系是指,单个计费条件独立存在,与其他计费条件无关。
并列关系是指,多个计费条件的输入数据相同、且同时运算。
递算关系是指,一个或多个计费条件的输出数据作为另一个计费条件的输入数据。
例如:计费策略包括递算关系的3个计费条件:
计费条件1:计费名称1,计费算法:A-10=B;
计费条件2:计费名称2,计费算法:B×(1-10%)=C;
计费条件3:计费名称3,计费算法:C÷1=D;
其中,A为购电金额(单位:元),10为月租费(单位:元),B为计费条件1的输出数据(单位:元)、计费条件2的输入数据、10%为税率、C为计费条件2的输出数据(单位:元)、计费条件3的输入数据,1为电量单价(单位:元/度)、D为购电电量(单位:度)。如:A=100.00元,则根 据上述计费条件1~3可以得到D=81度电。
在一个实施例中,因为TOKEN的生成效率较低,为了提高STS协议模块130的工作效率,STS协议模块130是设置为采用主从单元的形式来生成TOKEN。
在本实施例中,STS协议模块130包括:一个主单元、以及一个或多个从单元。
主单元,设置为从计算模块120得到电表唯一编码和售电数据;根据所述电表唯一编码和所述售电数据,查询是否存在预先生成所述售电数据对应的TOKEN;若是,则返回所述TOKEN;若否,则调用所述一个或多个从单元中的一个从单元。被所述主单元调用的从单元,设置为基于STS协议,生成所述售电数据对应的TOKEN。其中,主单元是设置为调用处于空闲状态的从单元;如果没有处于空闲状态的从单元,则调用计算任务最少的从单元来生成TOKEN。
预先生成所述售电数据对应的TOKEN包括:根据用户偏好数据和历史预售电数据生成的。
当同一电表唯一编码出现多次相同的购电数据,且相同购电数据出现的次数大于偏好阈值,则将该电表唯一编码和该购电数据作为用户偏好数据。在系统空闲时,可以生成该用户偏好数据对应的TOKEN。如果主单元将该用户偏好数据对应的TOKEN返回,则在系统空闲来临时,再次生成该用户偏好数据对应的TOKEN,以备下次直接使用。
历史预售电数据可以是某个电表唯一编码的电表上一次的购电数据。在系统空闲时,可以生成该历史预售电数据对应的TOKEN。如果主单元将该历史预售电数据对应的TOKEN返回,则在系统空闲来临时,再次生成该历史预售电数据对应的TOKEN,以备下次直接使用。
在另一实施例中,所述系统还包括:管理模块140。如图2所示。
管理模块140,设置为录入用户信息、录入该用户信息对应的电表唯一 编码、以及根据电表唯一编码对应的电表的属性变化,设置或调整每个电表唯一编码对应的计费策略。电表的属性变化即是用户类型的变化、计费政策的变化,在变化发送后,需要对计费策略作进行设置或调整。管理模块140设置成调整计费策略完成之后,计费策略即时生效。例如:电表从商用电电表变化为民用电电表,就需要对计费策略中的电量单价进行调整。
可选地,管理员借助于管理设备,如PC机、移动终端等网络设备,登录管理模块140,以便录入用户信息、电表唯一编码、以及计费策略。
管理模块140,还设置为将每个电表唯一编码对应的计费策略存储在数据库中,以便计算模块120查询和获取。
在又一实施例中,所述系统还包括:协议扩展模块150。如图3所示。
协议扩展模块150,设置为对STS协议模块130采用的STS协议进行扩展,使STS协议能够更加适应应用场景。
如果对STS协议进行扩展,则STS协议模块130是设置为按照扩展后的STS协议生成TOKEN。可选地,管理员借助于管理设备,登录协议扩展模块150,对STS协议进行扩展。
例如:STS协议用于生成TOKEN的参数中,包含代表时间的TID(TokenIdentifier)参数,该TID参数的有效范围是1993年起止2024年截至,为了在2024年之后还可以应用本实施例,需要对STS协议进行扩展,使TID参数在2024年之后依旧可以正常使用。如,STS协议的费率字段范围是0~99,一般而言费率使用1,当需要对STS协议的TID参数进行扩展时,使用大于1的费率。
上述通信模块110、计费模块120、STS协议模块130、管理模块140、以及协议扩展模块150,可以设置在同一设备中,也可以分别设置在不同设备中。
本发明实施例还提供了一种基于STS的预付费售电方法。如图4所示, 为根据本发明实施例的基于STS的预付费售电方法的流程图。
步骤S410,预付费售电系统接收用户设备发送的电表唯一编码和购电数据。
步骤S420,预付费售电系统获取所述电表唯一编码对应的计费策略。
为每个电表唯一编码对应设置计费策略。
所述计费策略包括一个或多个计费条件;在所述计费策略包括多个计费条件的情况下,所述多个计费条件之间的关系包括独立、并列、和/或递算。
每个计费条件包括计费名称和计费算法。
根据所述电表唯一编码对应的电表的属性变化,可以设置或调整每个电表唯一编码对应的计费策略。
步骤S430,预付费售电系统根据所述计费策略和所述购电数据,计算售电数据。
步骤S440,预付费售电系统基于STS协议,生成所述售电数据对应的令牌TOKEN,以便将所述TOKEN录入所述电表唯一编码对应的电表中,使所述电表使用所述售电数据。
可选的,预付费售电系统基于STS协议,生成所述售电数据对应的令牌TOKEN包括:根据所述电表唯一编码和所述售电数据,查询是否存在预先生成的所述售电数据对应的TOKEN;若是,则返回所述TOKEN;若否,则基于STS协议,生成所述售电数据对应的TOKEN。
在使用STS协议之前,可以对STS协议进行解析;为了适应不同的应用场景,可以对STS协议模块中的STS协议进行扩展。
本实施例所述的方法相应于图1~3所示的系统实施例中进行了描述,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
上述技术方案实现了当电表所属用户的类型发生变化、或者计费政策发生变化时,调整该电表的计费策略即可,无需调整整个预付费售电系统,提高了系统的灵活性,便于管理每个用户。

Claims (10)

  1. 一种基于标准传输规范STS的预付费售电系统,包括:
    通信模块,设置为接收用户设备发送的电表唯一编码和购电数据;
    计费模块,设置为获取所述电表唯一编码对应的计费策略,并根据所述计费策略和所述购电数据,计算售电数据;
    STS协议模块,设置为基于STS协议,生成所述售电数据对应的令牌TOKEN,所述TOKEN用于被录入所述电表唯一编码对应的电表中,使所述电表使用所述售电数据。
  2. 如权利要求1所述的系统,其中,所述STS协议模块包括:一个主单元、以及一个或多个从单元;
    所述主单元,设置为根据所述电表唯一编码和所述售电数据,查询是否存在预先生成的所述售电数据对应的TOKEN;若是,则返回所述TOKEN;若否,则调用所述一个或多个从单元中的一个从单元;
    被所述主单元调用的从单元,设置为基于STS协议,生成所述售电数据对应的TOKEN。
  3. 如权利要求1所述的系统,所述系统还包括:管理模块;
    所述管理模块,设置为根据所述电表唯一编码对应的电表的属性变化,设置或调整每个电表唯一编码对应的计费策略。
  4. 如权利要求1所述的系统,所述系统还包括:协议扩展模块;
    所述协议扩展模块,设置为对STS协议模块采用的STS协议进行扩展。
  5. 如权利要求1-4中任一项所述的系统,其中,
    所述计费策略包括一个或多个计费条件;
    在所述计费策略包括多个计费条件的情况下,所述多个计费条件之间的关系包括独立、并列、和/或递算。
  6. 一种基于STS的预付费售电方法,包括:
    接收用户设备发送的电表唯一编码和购电数据;
    获取所述电表唯一编码对应的计费策略;
    根据所述计费策略和所述购电数据,计算售电数据;
    基于STS协议,生成所述售电数据对应的令牌TOKEN,所述TOKEN用于被录入所述电表唯一编码对应的电表中,使所述电表使用所述售电数据。
  7. 如权利要求6所述的方法,根据所述计费策略和所述购电数据,计算售电数据,包括:
    根据所述电表唯一编码和所述售电数据,查询是否存在预先生成的所述售电数据对应的TOKEN;
    若是,则返回所述TOKEN;
    若否,则基于STS协议,生成所述售电数据对应的TOKEN。
  8. 如权利要求6所述的方法,所述方法还包括:
    根据所述电表唯一编码对应的电表的属性变化,设置或调整每个电表唯一编码对应的计费策略。
  9. 如权利要求6-8中任一项所述的方法,其中,
    所述计费策略包括一个或多个计费条件;
    在所述计费策略包括多个计费条件的情况下,所述多个计费条件之间的系统包括独立、并列、和/或递算。
  10. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~5中任一项所述的方法。
PCT/CN2015/090161 2015-06-17 2015-09-21 一种基于sts的预付费售电系统和方法 WO2016201809A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510336374.5A CN106327273A (zh) 2015-06-17 2015-06-17 一种基于sts的预付费售电系统和方法
CN201510336374.5 2015-06-17

Publications (1)

Publication Number Publication Date
WO2016201809A1 true WO2016201809A1 (zh) 2016-12-22

Family

ID=57544823

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090161 WO2016201809A1 (zh) 2015-06-17 2015-09-21 一种基于sts的预付费售电系统和方法

Country Status (2)

Country Link
CN (1) CN106327273A (zh)
WO (1) WO2016201809A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765746A (zh) * 2018-05-08 2018-11-06 河南森源电气股份有限公司 一种智能仪表定值设定方法和一种智能仪表
CN113140075A (zh) * 2021-04-25 2021-07-20 浙江正泰仪器仪表有限责任公司 一种智能表升级方法、装置及智能表

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106781053B (zh) * 2016-11-30 2019-08-20 杭州海兴电力科技股份有限公司 STS的token识别方法及系统
CN108038979B (zh) * 2017-10-27 2020-07-28 杭州海兴电力科技股份有限公司 基于sts预付费系统的可持续操作方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102013136A (zh) * 2010-11-24 2011-04-13 深圳市思达仪表有限公司 预付费电能表
CN102521921A (zh) * 2011-12-15 2012-06-27 中国电力科学研究院 一种费控装置、预付费售电系统、售电系统及方法
CN203192085U (zh) * 2013-04-24 2013-09-11 广东浩迪创新科技有限公司 一种预付费电能表

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318671B (zh) * 2014-09-30 2016-09-28 江苏林洋能源股份有限公司 一种无介质高安全性电表的预付费方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102013136A (zh) * 2010-11-24 2011-04-13 深圳市思达仪表有限公司 预付费电能表
CN102521921A (zh) * 2011-12-15 2012-06-27 中国电力科学研究院 一种费控装置、预付费售电系统、售电系统及方法
CN203192085U (zh) * 2013-04-24 2013-09-11 广东浩迪创新科技有限公司 一种预付费电能表

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765746A (zh) * 2018-05-08 2018-11-06 河南森源电气股份有限公司 一种智能仪表定值设定方法和一种智能仪表
CN113140075A (zh) * 2021-04-25 2021-07-20 浙江正泰仪器仪表有限责任公司 一种智能表升级方法、装置及智能表

Also Published As

Publication number Publication date
CN106327273A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
CA2949521C (en) Device, method and system for autonomous selection of a commodity supplier through a blockchain distributed database
WO2016201809A1 (zh) 一种基于sts的预付费售电系统和方法
US9892467B2 (en) System and method for implementing charge centric billing
CN106846176B (zh) 一种电费核算系统
JP6630425B1 (ja) 電力取引履歴生成システム
CN111130810B (zh) 云服务用量包的计费方法、装置及相关设备
CN105447028A (zh) 识别特征账号的方法及装置
CN112364004B (zh) 基于数据仓库的保单数据处理方法、装置及存储介质
WO2020244468A1 (zh) 金融产品推荐方法、装置、电子设备及计算机存储介质
JP2015535360A (ja) データストリームを分配するための方法及びシステム
Narayan et al. Smart metering of cloud services
CN110909383A (zh) 一种电子发票管理方法、装置及电子设备和存储介质
Li et al. Dynamic lot sizing with all‐units discount and resales
CN106998314B (zh) 账户交互方法及装置
CN112001576A (zh) 可再生能源电力消纳量核算方法
CN110969492A (zh) 一种云产品的计价方法、定价方法、装置及系统
Sun et al. A fast temporal second‐order difference scheme for the time‐fractional subdiffusion equation
US20150181045A1 (en) Flexibile event rating
CN109299913A (zh) 员工薪资方案生成方法及装置
CN109816507A (zh) 金融资产数据的统计方法及装置、存储介质、计算机设备
CN113505338B (zh) 电力市场环境下电力零售套餐购电量智能调整装置
CN110602665B (zh) 一种基于通信凭证共享服务的共享服务指标的确定方法
KR102495474B1 (ko) 블록체인 기반으로 전력 소비 내역을 인증하는 장치 및 방법
US11481762B2 (en) Methods and apparatus for creating, tracking, and redeeming DLT-enabled digitized tokens from electricity generation
JP7325816B2 (ja) 電力取引履歴生成システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15895382

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15895382

Country of ref document: EP

Kind code of ref document: A1