A method, device, computer and medium for order cancellation and correction based on STS protocol

Through the method of withdrawing orders and reversing positives based on the STS regulations, the recharge code of the recharge value is generated and sent to the meter, which solves the problem that the STS06 quantity control table and the STS05 version meter lack standard reversing negative values ​​definitions, and realizes the automation and efficiency of reversing orders and reversing positives, reducing the workload of staff and the losses of sellers.

CN116167758BActive Publication Date: 2025-04-29ZHEJIANG CHINT INSTR & METER
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310174122.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2025-04-29
Estimated Expiration
2043-02-15

AI Technical Summary

Technical Problem

The STS06 quantity control table or STS05 version of the meter does not have a standard definition of negative and negative values, which leads to defects in the handling plan for order withdrawal and refunds. It is impossible to effectively control the tokens that have already withdrawn to recharge to the meter through other channels, and the process is cumbersome, which can easily cause customer disputes and seller losses.

Method used

A method for withdrawing orders and rushing the positive based on STS regulations is provided. By obtaining the first recharge code in the target order, generating a second transmission value based on its transmission value, forming a second recharge code as a recharge code of negative value, and sending the first recharge code and the second recharge code to the smart meter, so that it can perform the recharge order and rushing the positive operation.

Benefits of technology

It is realized that all versions of STS and tables with different paid types can be cancelled and corrected, which simplifies the process, reduces the workload of staff, avoids the time difference between generating tokens and input tokens, and prevents sellers from losing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116167758B_ABST
    Figure CN116167758B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, computer and medium for canceling and correcting an order based on the STS protocol, including: obtaining a target order to be canceled and corrected, the target order containing a first recharge code; generating a second transmission value according to a first transmission value in the first recharge code, combining the second transmission value to form a second recharge code, the second recharge code being a recharge code for recharging a negative value; if the meter corresponding to the target order is a smart meter, sending the first recharge code and the second recharge code to the meter, so that the meter performs the cancellation and correction according to the first recharge code and the second recharge code. The present invention customizes a management code for recharging a negative value, which is applicable to STS06 quantity control meters and STS05 version meters that currently do not have a standard definition of a negative recharge value, so that the cancellation and correction operation is more flexible and reduces the workload of staff.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of instruments, and in particular to a method, device, computer and medium for cancelling and correcting an order based on an STS protocol. Background Art

[0002] Standard transfer specification (STS) is an international standard issued by the STS Association, with ESKOM Electricity Bureau of South Africa as the main organizer. It has been widely used internationally and is mainly used in the field of prepaid systems to solve the problem of difficult charging.

[0003] STS describes a security specification technology framework for transmitting information between power sales systems and electricity meters. It has been widely used in power metering and power sales systems. The protocol can also be extended to water meters, gas meters and other public meters. After obtaining the certificate from the STS Association, meters and systems of different models and manufacturers can be compatible with each other without distinction.

[0004] STS uses virtual media (Token, 20 digits) for data exchange and information transmission, and can recharge the meter, clear the balance, set the maximum power, etc. At present, most prepaid systems have the following two solutions for order cancellation and correction: the first is to cancel the order within the system (that is, the order will not be cancelled after leaving the counter), and the meter will not be corrected. Its disadvantage is that it cannot control the recharge of the canceled Token to the meter through other channels (recorded by the electricity salesperson), and it is easy to cause customer disputes. The second is to read the balance first, then clear the balance, and finally generate the recharge Token (the transmission value is the balance minus the recharge amount in the order). Its disadvantage is that the process is cumbersome, and there is a time difference between generating the Token and inputting the Token, which causes losses to the seller.

[0005] Reversal under the STS protocol depends on the recharge token, which is generated using the token definition. However, the STS06 volume control meter or the STS05 version meter does not have a standard definition of negative recharge values, so reversal cannot be performed.

[0006] Therefore, how to solve the problem that there is no standard definition of charging and negative values ​​for STS06 control meters or STS05 version meters has become a technical problem that needs to be solved urgently and a focus of research for those skilled in the art. Summary of the invention

[0007] In order to solve the deficiencies in the prior art, the present invention provides a method, device, computer and medium for canceling and correcting an order based on the STS protocol.

[0008] The first aspect of the present invention provides a method for canceling and reversing an order based on the STS protocol, comprising the following steps: obtaining a target order to be canceled and reversed, the target order containing a first recharge code; generating a second transmission value according to a first transmission value in the first recharge code, and forming a second recharge code in combination with the second transmission value, the second recharge code being a recharge code for recharging a negative value; if the meter corresponding to the target order is a smart meter, sending the first recharge code and the second recharge code to the meter, so that the meter executes the order cancellation and reversal according to the first recharge code and the second recharge code.

[0009] The beneficial effects are as follows: the present invention generates a transmission value for a negative charge according to the transmission value of the recharge code in the target order, thereby forming a recharge code for a negative charge, and defines a management code for a negative charge. Some versions of STS or meters do not have a standard definition of a negative charge. After the present invention defines the management code for a negative charge, meters of all versions of STS and different payment types can cancel orders and make corrections. After selecting the target order to be canceled and corrected, the system automatically completes the correction operation. The process is simple, and the staff does not need to conduct on-site investigations on whether the recharge has been completed and whether the order can be canceled, thereby reducing the workload of the staff. For smart meters, there is no time difference between generating the Token and inputting the Token, and no loss will be caused to the seller.

[0010] In combination with the first aspect, in the first implementation of the first aspect, a second transmission value is generated according to the first transmission value in the first recharge code, and the step of forming the second recharge code in combination with the second transmission value includes: when the STS protocol version number of the target order is the first version number, the first transmission value is negatively determined as the second transmission value; the second transmission value is converted into binary, and filled into the transmission value field of the custom management code, and the preset number is filled into the subclass field of the custom management code to generate a second recharge code, and the preset number is used to characterize that the second recharge code is a recharge code for a negative value.

[0011] The beneficial effect is that: the first version does not have a standard definition of negative and recharge values, and the present invention customizes a management code for negative and recharge values, so that versions and meters without a standard definition of negative and recharge values ​​can also cancel orders and perform corrections.

[0012] In combination with the first aspect, in the second implementation of the first aspect, a second transmission value is generated according to the first transmission value in the first recharge code, and the step of forming the second recharge code in combination with the second transmission value includes: when the STS protocol version number of the target order is the second version number, judging the payment type of the meter; when the payment type of the meter is fee control, extracting the first transmission value according to the original protocol of the target order; taking the negative value of the first transmission value as the second transmission value, and generating a second recharge code.

[0013] The beneficial effect is that the second version of the fee control meter has a standard definition of recharge and negative values, and there is no need to use a customized recharge and negative value management code. The second recharge code is generated according to the original agreement of the target order to cancel the order and reverse it.

[0014] In combination with the second embodiment of the first aspect, in the third embodiment of the first aspect, when the payment type of the meter is quantity control, the first transmission value is taken as a negative value and determined as the second transmission value; the second transmission value is converted into binary and filled in the transmission value field of the custom management code, and the preset number is filled in the subcategory field of the custom management code to generate a second recharge code, and the preset number is used to characterize that the second recharge code is a recharge code for a negative value.

[0015] In combination with the first implementation of the first aspect or the third implementation of the first aspect, in the fourth implementation of the first aspect, the second transmission value is converted into a binary formula:

[0016] When e=0, t=10 e ×m;

[0017] When e>0,

[0018] Wherein, t is the second transmission value; e is the exponent; m is the coefficient; and n is an integer in the range of 1 to e.

[0019] In combination with the first aspect, in the fifth implementation of the first aspect, if the meter corresponding to the target order is a non-intelligent meter, a work order is generated according to the target order so that the staff can cancel the order and make corrections according to the work order.

[0020] The beneficial effect is that when the meter corresponding to the target order is a non-intelligent meter, a work order can also be generated according to the target order and sent to on-site staff for manual cancellation and correction. The method of the present invention is applicable to various meters.

[0021] In combination with the first aspect, in a sixth implementation of the first aspect, the step of the meter executing the order cancellation and correction according to the first recharge code and the second recharge code includes: if the first recharge code has been recharged to the meter, the meter inputs the second recharge code to cancel the order and correct it.

[0022] The beneficial effect is that the first recharge code has been recharged to the meter, and no more recharge is required. The order can be directly cancelled and reversed to prevent repeated recharge.

[0023] In combination with the first aspect or the sixth embodiment of the first aspect, in the seventh embodiment of the first aspect, the step of the meter executing the order cancellation and correction according to the first recharge code and the second recharge code includes: if the first recharge code is not recharged to the meter, the meter recharges according to the first recharge code; the meter inputs the second recharge code to cancel the order and correct it.

[0024] In combination with the seventh implementation manner of the first aspect, in the eighth implementation manner of the first aspect, the step of the meter executing the order cancellation and correction according to the first recharge code and the second recharge code includes: if it is impossible to know whether the first recharge code is recharged to the meter, the meter recharges according to the first recharge code, and the meter cancels the order and corrects it according to the second recharge code.

[0025] The beneficial effect is: ensuring that the first recharge code is recharged to the meter, and the meter will not be recharged repeatedly due to repeated input of the first recharge code.

[0026] The second aspect of the present invention provides an order cancellation and correction device based on the STS protocol, including: an acquisition module, used to acquire a target order to be cancelled and corrected, the target order containing a first recharge code; a recharge code generation module, used to generate a second transmission value according to a first transmission value in the first recharge code, and form a second recharge code in combination with the second transmission value, the second recharge code being a recharge code for recharging a negative value; a judgment module, used to judge whether the meter is a smart meter; an order cancellation and correction module, used to send the first recharge code and the second recharge code to the meter when the meter corresponding to the target order is a smart meter, so that the meter performs order cancellation and correction according to the first recharge code and the second recharge code.

[0027] The beneficial effects are as follows: the order cancellation and correction device based on the STS protocol provided by the present invention generates a transmission value for a negative value according to the transmission value of the recharge code in the target order, thereby forming a recharge code for a negative value, and customizes a management code for a negative value. Some versions of STS or meters do not have a standard definition of a negative value for recharge. After the management code for a negative value for recharge is customized by the present invention, meters of various versions of STS and different payment types can perform order cancellation and correction. After selecting the target order to be cancelled and corrected, the system automatically completes the correction operation. The process is simple, and the staff does not need to conduct on-site investigations on whether the recharge has been completed and whether the order can be cancelled, thereby reducing the workload of the staff. For smart meters, there is no time difference between generating the Token and inputting the Token, and no loss is caused to the seller.

[0028] The third aspect of the present invention provides a computer device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, thereby executing the order cancellation and correction method based on the STS protocol of the first aspect and any one of its optional embodiments.

[0029] A fourth aspect of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the order cancellation and correction method based on the STS protocol of the first aspect and any one of its optional implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention.

[0031] Figure 1 The following is a schematic diagram of the process of a cancellation and correction method based on the STS protocol provided in an embodiment of the present invention;

[0032] Figure 2 A schematic diagram of an order cancellation and reversal device based on the STS protocol provided in an embodiment of the present invention is shown;

[0033] Figure 3 A schematic diagram of the hardware structure of a computer device provided by an embodiment of the present invention is shown;

[0034] Figure 4 A schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0035] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] In the description of the present invention, it should be noted that the terms “first” and “second” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0037] The embodiment of the present invention provides a method for reversing order cancellation based on STS protocol, such as Figure 1 As shown, the following steps are included:

[0038] Step S001: Obtain the target order to be cancelled and corrected, where the target order contains the first recharge code.

[0039] In an optional embodiment, the first recharge code is the recharge that has been generated in the target order, that is, the recharge to be cancelled, recorded as Token0. Regardless of whether this Token0 has been recharged to the meter, it needs to be printed on the cancellation document.

[0040] In an optional embodiment, as shown in Table 1, the plaintext data corresponding to the Token is a set of 66-bit binary numbers, mainly including the class number, subclass number, random number, time identifier (TID), transmission value and CRC check. The class number and subclass number indicate the purpose; the random number (RND) and TID ensure the uniqueness and effectiveness of the token; the CRC check ensures the accuracy and integrity of the data.

[0041] Table 1: STS management code Token definition

[0042]

[0043] Step S002: Generate a second transmission value according to the first transmission value in the first recharge code, and form a second recharge code in combination with the second transmission value. The second recharge code is a recharge code for recharging negative value.

[0044] In an optional embodiment, illustratively, if the first transmission value in the first recharge code represents a recharge of 10 yuan, then a second transmission value is generated according to the first transmission value in the first recharge code, and the second transmission value represents a recharge of -10 yuan.

[0045] Step SOO3: If the meter corresponding to the target order is a smart meter, send the first recharge code and the second recharge code to the meter so that the meter cancels the order and corrects it according to the first recharge code and the second recharge code.

[0046] In an optional embodiment, if the meter corresponding to the target order is a non-intelligent meter, a work order is generated according to the target order so that the staff can cancel the order and make corrections according to the work order.

[0047] In an optional embodiment, exemplarily, for a smart meter, a first recharge code and a second recharge code are sent to the meter, that is, a first recharge code representing 10 yuan and a second recharge code representing -10 yuan are sent to the meter to cancel the order.

[0048] The embodiment of the present invention generates a transmission value for a negative charge according to the transmission value of the recharge code in the target order, thereby forming a recharge code for a negative charge, and defines a management code for a negative charge. Some versions of STS or meters do not have a standard definition of a negative charge. After the embodiment of the present invention defines the management code for a negative charge, meters of different versions of STS and payment types can cancel orders and make corrections. After selecting the target order to be canceled and corrected, the system automatically completes the correction operation. The process is simple, and the staff does not need to conduct on-site investigations on whether the recharge has been completed and whether the order can be canceled, thereby reducing the workload of the staff. For smart meters, there is no time difference between generating a Token and inputting a Token, and no loss is caused to the seller.

[0049] In an optional embodiment, the step of generating a second transmission value according to the first transmission value in the first recharge code and combining the second transmission value to form the second recharge code includes: when the STS protocol version number of the target order is the first version number:

[0050] First, the first transmission value is taken as a negative value and determined as the second transmission value.

[0051] Secondly, the second transmission value is converted into binary and filled into the transmission value field of the custom management code, and the preset number is filled into the subcategory field of the custom management code to generate a second recharge code. The preset number is used to indicate that the second recharge code is a recharge code for charging a negative value.

[0052] In an optional embodiment, a management code Token for negative and recharge values ​​is defined. The management code in the STS protocol provides meter manufacturers with 5 customizable subclasses, namely, exclusive management code Tokens, whose subclasses are numbered 11-15. This method selects one of the numbers to customize the negative and recharge values.

[0053] In an optional embodiment, the first version number is STS05, which is a previous generation STS encryption box that has been discontinued, but has not been completely stopped in the market.

[0054] In an alternative embodiment, if Figure 1 As shown, the STS protocol version is determined. If the STS protocol version is STS05, the fee control and quantity control meters of the STS05 version do not have standard definitions of recharge and negative values, and both require the use of custom recharge and negative value management codes.

[0055] In an optional embodiment, the first transmission value in the first recharge code Token0 is taken as a negative value to be determined as the second transmission value, and the second transmission value is converted into binary according to the transmission value calculation formula, and filled into the transmission value field in the custom recharge negative value management code definition as shown in Table 1 to generate a 20-digit management code Token, that is, the second recharge code Token1.

[0056] In an optional embodiment, the calculation formula for converting the second transmission value into binary is:

[0057] When e=0, t=10 e ×m;

[0058] When e>0,

[0059] Wherein, t is the second transmission value; e is the exponent; m is the coefficient; and n is an integer in the range of 1 to e.

[0060] In an optional embodiment, the step of generating a second transmission value according to the first transmission value in the first recharge code and combining the second transmission value to form the second recharge code includes: when the STS protocol version number of the target order is the second version number:

[0061] First, the payment type of the meter is determined. When the payment type of the meter is fee control, the first transmission value is extracted according to the original protocol of the target order.

[0062] Secondly, the first transmission value is taken as a negative value to be determined as a second transmission value, and a second recharge code is generated.

[0063] In an optional embodiment, the second version number is STS06, which is the latest generation of encryption box.

[0064] In an optional embodiment, for the STS06 version, the payment type is determined. When the payment type is fee control, there is a standard definition of recharge and negative values, and the first transmission value can be extracted according to the original agreement of the target order.

[0065] In an optional embodiment, when the payment type of the meter is quantity control:

[0066] First, the first transmission value is taken as a negative value and determined as the second transmission value;

[0067] Secondly, the second transmission value is converted into binary and filled into the transmission value field of the custom management code, and the preset number is filled into the subcategory field of the custom management code to generate a second recharge code. The preset number is used to indicate that the second recharge code is a recharge code for charging a negative value.

[0068] In an optional embodiment, for the STS06 version, the payment type is judged. When the payment type is quantity control, there is no standard definition of negative or recharge value, and a customized negative or recharge value management code is required to cancel the order and reverse it.

[0069] In an optional embodiment, the meter performs the steps of canceling and reversing the order according to the first recharge code and the second recharge code, including:

[0070] If the first recharge code has been recharged to the meter, the meter enters the second recharge code to cancel the order and reverse it.

[0071] If the first recharge code is not recharged to the meter, the meter recharges according to the first recharge code; the meter enters the second recharge code to cancel the order and reverse it.

[0072] If it is impossible to know whether the first recharge code has been recharged to the meter, the meter performs recharge according to the first recharge code; the meter inputs the second recharge code to cancel the order and reverse it.

[0073] In an optional embodiment, both Token0 and Token1 need to be recharged to the meter, that is, make sure to recharge first and then reverse. There are two situations for Token0: the first is that Token0 has been recharged to the meter time, and Token0 is recharged again, but the meter does not accept it, which means that the meter has completed the Token0 recharge before the cancellation order is reversed. In this case, you can directly enter the negative recharge Token1 for reversal; the second is that Token0 has not been recharged to the meter time, Token0 is recharged again, the meter accepts the recharge, the balance increases, and then the negative recharge Token1 is entered for reversal.

[0074] In an optional embodiment, a resident user of an STS05 fee-controlled ordinary meter recharges 100 yuan at a power sales point. After receiving the receipt (the recharge Token0 on the receipt is 1319-3586-8586-6470-1020), he did not enter the Token code through the meter keyboard. A few days later, he went to the power bureau to request cancellation of the recharge order. At this time, the system determines that it is an STS05 fee-controlled meter, uses a custom management code to generate a negative recharge Token1, and outputs the Token code: 1319-3586-8586-6470-1020, 2967-8801-7429 9990-7882; the system again determines that it is an ordinary meter, and automatically generates a work order at this time, which is dispatched to the on-site personnel. The on-site personnel enter 1319-3586-8586-6470-1020, 2967-8801-7429 The two token strings 9990-7882 are sent to the meter. The meter displays that 1319-3586-8586-6470-1020 and 2967-8801-74299990-7882 are received successfully.

[0075] In an optional embodiment, a resident user of a STS05 quantity-controlled smart meter purchases 100 kWh of electricity at a power sales point, and remotely sends a recharge Token0 (7307-3265-3314-9854-9746) to the meter. Then the user requests to cancel the recharge order. At this time, the system determines the STS05 quantity-controlled meter, uses a custom management code to generate a negative recharge Token1, and outputs the Token code: 7307-3265-3314-9854-9746, 29 87-6793-0856-8944-1832; the system automatically determines that the meter to be cancelled is a smart meter, and remotely sends two token codes 7307-3265-3314-9854-9746 and 2987-6793-0856-8944-1832 to the meter. At this time, the meter returns the message 7307-3265-3314-9854-9746 is not accepted, and 2987-6793-0856-8944-1832 is received successfully.

[0076] In an optional embodiment, a resident user of an STS06 mass-controlled ordinary meter purchased 100 kWh of electricity at a power sales point, and after getting the receipt (the recharge Token0 on the receipt is 2712-5777-0064-1893-8383), he entered the Token code through the meter keyboard and recharged the meter. The power bureau requested to cancel yesterday's recharge order. At this time, the system judged the STS06 mass-controlled meter, used the custom management code to generate a negative recharge Token1, and output the Token code: 2712-5777-0064-1893-838 3. 6976-4498-9580-2477-6781; the system determines that the meter to be cancelled is a common meter, and automatically generates a work order and sends it to the on-site personnel. The on-site personnel enter the two tokens 2712-5777-0064-1893-8383 and 6976-4498-9580-2477-6781 into the meter. At this time, the meter displays that 2712-5777-0064-1893-8383 is not accepted, and 6976-4498-9580-2477-6781 is received successfully.

[0077] In an optional embodiment, a resident user of a STS06 fee-controlled smart meter purchased 100 yuan of electricity at a power sales point, and remotely sent a recharge Token0 (3252-8891-1504-0675-9599) to the meter. Then the user requested to cancel the recharge order. At this time, the system judged that the STS06 fee-controlled meter used the STS protocol recharge code to generate a negative recharge Token1, and output the Token code: 3252-8891-1504-0675-9599, 21 88-0121-3693-2975-1196; the system determines that the meter to be cancelled is a smart meter, and remotely sends two tokens 3252-8891-1504-0675-9599 and 2188-0121-3693-2975-1196 to the meter. The meter returns the message "3252-8891-1504-0675-9599 received successfully" and "2188-0121-3693-2975-1196 received successfully".

[0078] The embodiment of the present invention provides a cancellation and correction device based on the STS protocol, such as Figure 2 As shown, including:

[0079] The acquisition module 201 is used to acquire the target order to be cancelled and corrected. The target order includes the first recharge code. For details, please refer to the description of step S001 in the above embodiment, which will not be repeated here.

[0080] The recharge code generation module 202 is used to generate a second transmission value according to the first transmission value in the first recharge code, and form a second recharge code in combination with the second transmission value. The second recharge code is a recharge code for recharging negative value. For details, please refer to the description of step S003 in the above embodiment, which will not be repeated here.

[0081] The judgment module 203 is used to judge whether the meter is a smart meter. For details, please refer to the description of step S003 in the above embodiment, which will not be repeated here.

[0082] The order cancellation and reversal module 204 is used to send the first recharge code and the second recharge code to the meter when the meter corresponding to the target order is a smart meter, so that the meter executes the order cancellation and reversal according to the first recharge code and the second recharge code. For details, please refer to the description of step S003 in the above embodiment, which will not be repeated here.

[0083] The order cancellation and correction device based on the STS protocol provided in the embodiment of the present invention generates a transmission value for a negative value according to the transmission value of the recharge code in the target order, thereby forming a recharge code for the negative value, and customizes a management code for the negative value. Some versions of STS or meters do not have a standard definition of a negative value. After the management code for the negative value is customized in the embodiment of the present invention, all versions of STS and meters with different payment types can perform order cancellation and correction. After selecting the target order to be cancelled and corrected, the system automatically completes the correction operation. The process is simple, and the staff does not need to conduct on-site investigations on whether the recharge has been completed and whether the order can be cancelled, thereby reducing the workload of the staff. For smart meters, there is no time difference between generating the Token and inputting the Token, and no loss will be caused to the seller.

[0084] The embodiment of the present invention also provides a computer device, such as Figure 3 It is a schematic diagram of the hardware structure of a computer device proposed according to an exemplary embodiment.

[0085] like Figure 3 As shown, the device includes one or more processors 301 and a memory 302, wherein the memory 302 includes a persistent memory, a volatile memory and a hard disk. Figure 3 A processor 301 is taken as an example. The device may also include: an input device 303 and an output device 304.

[0086] The processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0087] The processor 301 may be a central processing unit (CPU). The processor 301 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips. A general-purpose processor may be a microprocessor or the processor may be any conventional processor.

[0088] The memory 302 is a non-transient computer-readable storage medium, including persistent memory, volatile memory and hard disk, which can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instruction module corresponding to the business management method in the embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 302, that is, to implement any of the above-mentioned cancellation and correction methods based on the STS protocol.

[0089] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data required for use, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the data processing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0090] The input device 303 can receive input digital or character information and generate key signal input related to user settings and function control. The output device 304 can include display devices such as display screens.

[0091] One or more modules are stored in the memory 302, and when executed by one or more processors 301, the execution is as follows: Figure 1 The method shown.

[0092] The above-mentioned product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to Figure 1 Related description of the illustrated embodiment.

[0093] The embodiment of the present invention also provides a computer readable storage medium, such as Figure 4 As shown, the computer-readable storage medium stores computer-executable instructions 401, and the computer-executable instructions 401 can execute the order cancellation and correction method based on the STS protocol in any of the above method embodiments.

[0094] The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk drive (HDD) or a solid-state drive (SSD), etc. The storage medium may also include a combination of the above types of memory.

[0095] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A method for reversing order cancellation based on STS protocol, characterized in that: The following steps are involved: Obtain a target order to be reversed, wherein the target order includes a first recharge code; Generate a second transmission value according to the first transmission value in the first recharge code, and form a second recharge code in combination with the second transmission value, wherein the second recharge code is a recharge code for recharging negative value; If the meter corresponding to the target order is a smart meter, sending the first recharge code and the second recharge code to the meter, so that the meter performs order cancellation and reversal according to the first recharge code and the second recharge code; The step of generating a second transmission value according to the first transmission value in the first recharge code and forming a second recharge code in combination with the second transmission value includes: When the STS protocol version number of the target order is identified as the first version number, determining the first transmission value as a second transmission value; The second transmission value is converted into binary and filled into the transmission value field of the custom management code, and the preset number is filled into the subcategory field of the custom management code to generate the second recharge code, wherein the preset number is used to characterize that the second recharge code is a recharge code for negative and negative values; the first version number is a definition of a recharge value without a standard.

2. The method for reversing order cancellation based on STS protocol according to claim 1 is characterized in that: The step of generating a second transmission value according to the first transmission value in the first recharge code and combining the second transmission value to form a second recharge code also includes: When the STS protocol version number identifying the target order is the second version number, Determining the payment type of the meter, and when the payment type of the meter is fee control, extracting the first transmission value according to the original protocol of the target order; The first transmission value is taken as a negative number to determine the second transmission value, and the second recharge code is generated.

3. The method for reversing order cancellation based on STS protocol according to claim 2 is characterized in that: When the payment type of the meter is identified as quantity control, Taking the negative of the first transmission value, determining it as a second transmission value; The second transmission value is converted into binary and filled into the transmission value field of the custom management code, and the preset number is filled into the subcategory field of the custom management code to generate the second recharge code, wherein the preset number is used to indicate that the second recharge code is a recharge code for charging a negative value.

4. The method for reversing order cancellation based on STS protocol according to claim 1 or 3, characterized in that: The formula for converting the second transmission value into binary is: When e=0, t=10 e ×m; When e>0, Wherein, t is the second transmission value; e is the exponent; m is the coefficient; and n is an integer in the range of 1 to e.

5. The method for reversing order cancellation based on STS protocol according to claim 1 is characterized in that: If the meter corresponding to the target order is identified as a non-intelligent meter, a work order is generated according to the target order so that the staff can cancel the order and make corrections according to the work order.

6. The method for reversing order cancellation based on STS protocol according to claim 1 is characterized in that: The step of the meter performing order cancellation and reversal according to the first recharge code and the second recharge code comprises: If it is recognized that the first recharge code has been recharged to the meter, the meter inputs the second recharge code to cancel the order and reverse it.

7. The method for reversing order cancellation based on STS protocol according to claim 1 or 6, characterized in that: The step of the meter performing order cancellation and reversal according to the first recharge code and the second recharge code comprises: If it is identified that the first recharge code has not been recharged to the meter, the meter performs recharge according to the first recharge code; the meter inputs the second recharge code to cancel the order and reverse it.

8. The method for reversing order cancellation based on STS protocol according to claim 7 is characterized in that: The step of the meter performing order cancellation and reversal according to the first recharge code and the second recharge code comprises: If it is not possible to determine whether the first recharge code has been recharged to the meter, the meter performs recharge according to the first recharge code; and the meter inputs the second recharge code to cancel the order and reverse the recharge.

9. A cancellation and correction device based on STS protocol, characterized in that: Includes the following modules: An acquisition module, used for acquiring a target order to be reversed, wherein the target order includes a first recharge code; a recharge code generating module, configured to generate a second transmission value according to a first transmission value in the first recharge code, and form a second recharge code in combination with the second transmission value, wherein the second recharge code is a recharge code for recharging negative value; A judgment module, used to judge whether the meter is a smart meter; An order cancellation and reversal module, configured to, when the meter corresponding to the target order is a smart meter, send the first recharge code and the second recharge code to the meter, so that the meter performs order cancellation and reversal according to the first recharge code and the second recharge code; The step of generating a second transmission value according to the first transmission value in the first recharge code and forming a second recharge code in combination with the second transmission value includes: When the STS protocol version number of the target order is identified as the first version number, determining the first transmission value as a second transmission value; The second transmission value is converted into binary and filled into the transmission value field of the custom management code, and the preset number is filled into the subcategory field of the custom management code to generate the second recharge code, wherein the preset number is used to characterize that the second recharge code is a recharge code for negative and negative values; the first version number is a definition of a recharge value without a standard.

Citation Information

Patent Citations

  • Prepayment energy meter

    CN102013136A

  • Recharge device, prepaid electricity vending system, electricity vending system and method

    CN102542448A