CN112383597B - Internet of things platform and Internet of things gas meter expense settlement synchronous processing method and system - Google Patents
Internet of things platform and Internet of things gas meter expense settlement synchronous processing method and system Download PDFInfo
- Publication number
- CN112383597B CN112383597B CN202011205636.1A CN202011205636A CN112383597B CN 112383597 B CN112383597 B CN 112383597B CN 202011205636 A CN202011205636 A CN 202011205636A CN 112383597 B CN112383597 B CN 112383597B
- Authority
- CN
- China
- Prior art keywords
- gas
- amount
- accumulated
- settlement
- consumption
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F15/00—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
- G07F15/001—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for gas
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F15/00—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
- G07F15/08—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for varying the tariff or changing the price
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y10/00—Economic sectors
- G16Y10/35—Utilities, e.g. electricity, gas or water
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0435—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Measuring Volume Flow (AREA)
Abstract
The invention discloses a synchronous processing method for the charge settlement of an internet of things platform and a gas meter, which comprises the following steps: responding to communication between the internet of things platform and the gas meter, and issuing a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result; after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas expense based on the unpacking result; acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform; and after the internet of things platform receives the gas meter data packet, settling the related data based on the internet of things gas meter to obtain a settlement result of the time. When the internet of things platform starts charging, recharging and adjusting unit price and the data of the internet of things gas meter end are returned to the platform, the platform is triggered to accumulate the gas consumption amount settlement operation, and a data synchronization algorithm is used to enable the two settlement amounts to be consistent.
Description
Technical Field
The invention relates to the technical field of gas meter expense settlement, in particular to a synchronous processing method and a synchronous processing system for the expense settlement of an Internet of things platform and an Internet of things gas meter.
Background
In the prior art, when the platform of the internet of things and the gas meter of the internet of things calculate the fuel gas cost, the platform of the internet of things is used for starting charging, recharging and adjusting unit price and the data of the gas meter end of the internet of things are transmitted back to the platform, the operation of settlement of the accumulated gas consumption amount of the platform of the internet of things is triggered, the accumulated gas consumption is continuously and cumulatively increased due to the fact that the gas meter is operated in real time, and the communication between the platform of the internet of things and the gas meter of the internet of things is intermittent, so that the data of the platform of the internet of things and the data of the gas meter end of the internet of things are inconsistent, and errors in charging are caused.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a synchronous processing method and a synchronous processing system for cost settlement of an internet of things platform and an internet of things gas meter.
In order to solve the technical problems, the invention is solved by the following technical scheme:
a synchronous processing method for the charge settlement of an Internet of things platform and a gas meter comprises the following steps:
responding to a received triggered settlement program, and issuing a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas expense based on the unpacking result;
acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform;
and after the internet of things platform receives the gas meter data packet, settling the related data based on the internet of things gas meter to obtain a settlement result of the time.
As an implementation manner, the command packet sequentially includes a unique identification number of the gas meter, a unique identification number of the command, the current settlement time, a unit price, an accumulated gas consumption, an accumulated total gas purchase amount, an accumulated total gas use amount and a check code, wherein the current settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchase amount and the accumulated total gas use amount are encrypted by adopting a symmetric encryption algorithm and corresponding keys.
As an implementation manner, the settlement is performed based on the data related to the internet of things gas meter, and the settlement steps are as follows:
the difference value of the accumulated gas consumption under the standard condition is obtained, specifically: current air consumption = current accumulated air consumption of standard conditions at the time of settlement-last accumulated air consumption of standard conditions at the time of settlement;
according to the accumulated gas consumption amount of the last settlement and the current gas consumption amount, calculating the accumulated gas consumption total amount, wherein the accumulated gas consumption total amount is specifically as follows: total accumulated gas consumption amount = total last accumulated gas consumption amount + current gas consumption amount;
according to the total accumulated gas purchasing amount and the total accumulated gas consumption amount of the user, calculating the current residual amount, specifically: the current remaining amount=total accumulated gas purchase amount-total accumulated gas consumption amount.
As an embodiment, the method further comprises the steps of:
based on the step gas price system, the gas consumption is calculated through each step gas consumption, and specifically: this air usage = first step air usage + second step air usage +.+ nth step air usage;
after the gas consumption of this time is obtained through the gas consumption of each ladder, the gas consumption amount of this time is calculated, and specifically: this time the gas consumption amount=the first ladder gas consumption amount x the first ladder gas price+the second ladder gas consumption amount the gas amount x the second step gas price +.+ the n-th step gas consumption x the n-th step gas price.
As an embodiment, if the user accumulated total gas purchase amount is changed based on the user recharging, the method further comprises the following steps before the step of accumulating the total gas purchase amount and the accumulated total gas use amount according to the user:
the total amount of the accumulated gas purchasing of the user is calculated, and the method specifically comprises the following steps: total user accumulated gas purchase amount=total user accumulated gas purchase amount before the current gas purchase+current gas purchase amount.
As an implementation manner, the synchronous settlement of the fuel gas expense based on the unpacking result is specifically as follows:
based on the accumulated gas consumption of the command packet and the current standard condition accumulated gas consumption of the meter end under the standard condition, calculating a gas consumption difference value, specifically: air consumption difference = meter end accumulated air consumption-command package accumulated air consumption;
the gas consumption of each step price is calculated by combining a gas price system, and the method specifically comprises the following steps: air consumption difference = first step air consumption + second step air consumption +.+ nth step air consumption;
the difference value of the gas consumption and the gas consumption is obtained based on the gas consumption of each ladder price, and is specifically as follows: gas amount difference = first step gas consumption x first step gas consumption + second step gas consumption x second step gas consumption +.+ -.) + n step gas consumption x n step gas consumption;
and then calculating the total accumulated gas consumption of the meter end according to the difference value of the total accumulated gas consumption and the gas consumption of the command packet, wherein the total accumulated gas consumption is specifically as follows: the total accumulated gas consumption amount of the table end=the difference value of the total accumulated gas consumption amount and the gas consumption amount of the command packet;
the total gas purchasing amount and the total gas consumption amount at the meter end are calculated through the command packet, and the method specifically comprises the following steps: the remaining amount of the meter end=the total amount of the command packet accumulated gas purchasing amount-the total amount of the meter end accumulated gas consumption amount, wherein the total amount of the meter end accumulated gas purchasing amount is the total amount of the command packet accumulated gas purchasing amount.
As an implementation manner, the gas meter data packet is formed by gas meter end settlement result data and identification marks of corresponding gas meters, and sequentially comprises a gas meter unique identification number, a command unique identification number, current settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount, accumulated total gas consumption amount and a check code;
the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchase amount and the accumulated total gas consumption amount are encrypted by adopting a symmetrical encryption algorithm and a corresponding secret key.
The system comprises a control module, an Internet of things platform and a gas meter;
the control module responds to the received triggered settlement program and issues a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on the last settlement result, and the settlement result is based on the data settlement related to the internet of things gas meter;
the gas meter is used for unpacking the command packet after receiving the command packet and synchronously settling the gas expense based on the unpacking result;
the control module is used for acquiring a gas meter data packet generated after synchronous settlement of the gas meter is completed and sending the gas meter data packet to the platform of the Internet of things;
and the internet of things platform is used for settling the related data of the gas meter based on the internet of things after receiving the gas meter data packet, so as to obtain a settlement result of the time.
A computer readable storage medium storing a computer program which, when executed by a processor, performs the method steps of:
responding to a received triggered settlement program, and issuing a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas expense based on the unpacking result;
acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform;
and after the internet of things platform receives the gas meter data packet, settling the related data based on the internet of things gas meter to obtain a settlement result of the time.
An apparatus for processing the charge settlement of an internet of things platform and a gas meter synchronously, comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the following method steps when executing the computer program:
responding to a received triggered settlement program, and issuing a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas expense based on the unpacking result;
acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform;
and after the internet of things platform receives the gas meter data packet, settling the related data based on the internet of things gas meter to obtain a settlement result of the time.
The invention has the remarkable technical effects due to the adoption of the technical scheme:
based on the method and the system, when the platform of the Internet of things starts charging, recharging and adjusting unit price and the data of the gas meter end of the Internet of things are returned to the platform, the platform is triggered to accumulate the settlement operation of the gas consumption amount, and a data synchronization algorithm is used to enable the settlement amount of the gas consumption amount and the settlement amount to be consistent; the method is that the gas company needs to change the gas price to recalculate the settled data, and only needs to move the settlement time point to the point, namely, the accumulated consumption and the accumulated gas consumption of the time point are obtained, and the new gas price and the current accumulated total gas purchasing amount are combined to calculate.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic overall flow diagram of the method of the present invention;
fig. 2 is a schematic diagram of the overall structure of the system of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following examples, which are illustrative of the present invention and are not intended to limit the present invention thereto.
Example 1:
in the prior art, when the platform of the internet of things and the gas meter of the internet of things calculate the fuel gas cost, the platform of the internet of things is used for starting charging, recharging and adjusting unit price and the data of the gas meter end of the internet of things are transmitted back to the platform, the operation of settlement of the accumulated gas consumption amount of the platform of the internet of things is triggered, and the accumulated gas consumption is continuously and cumulatively increased due to the fact that the gas meter is running in real time, the data of the platform of the internet of things and the data of the gas meter end are inconsistent, and errors in charging are likely to occur.
How to make the settlement results of the internet of things platform and the gas meter more consistent, therefore, a new synchronization mode needs to be developed, and the data of the internet of things platform and the gas meter are consistent through the synchronization of the data between the internet of things platform and the gas meter.
Based on this, the invention provides a synchronous processing method for the charge settlement of an internet of things platform and a gas meter, as shown in fig. 1, comprising the following steps:
s100, responding to a received triggered settlement program, and issuing a command packet to a gas meter, wherein the command packet is generated by an Internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the Internet of things gas meter;
s200, unpacking the command packet after the command packet is received by the gas meter, and synchronously settling the gas expense based on the unpacking result;
s300, acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform;
s400, after the internet of things platform receives the gas meter data packet, settling the data related to the gas meter based on the internet of things, and obtaining a settlement result of the time.
When data sent by the gas meter or operations such as recharging, price adjustment and the like are received by the internet of things platform, a settlement mechanism is triggered, and the internet of things platform starts a settlement algorithm for the gas meter.
In one embodiment, the order of the command packets is: the unique identification number of the gas meter, the unique identification number of the command, the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchasing amount, the accumulated total gas consumption amount and the check code. The command packet will have therein: the settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount and accumulated total gas consumption are encrypted by adopting a symmetric encryption algorithm and a corresponding key, and the symmetric algorithm can adopt DES, 3DES, SM4 and the like.
In one embodiment, the settlement is based on data related to the gas meter of the internet of things, wherein: the latest data record of the gas meter is defined as the data record in the current settlement, and the last settlement data is defined as the data record in the last settlement. According to the latest data record of the received gas meter and the last settlement data of the gas meter on the internet of things platform, settlement is carried out according to a settlement algorithm rule, and the settlement steps are as follows:
1. calculating the difference value of the standard accumulated air consumption, namely the current air consumption: current air consumption = current accumulated air consumption of standard conditions at the time of settlement-last accumulated air consumption of standard conditions at the time of settlement;
2. according to the price mechanism, different ladder gas consumption of the current gas consumption is calculated: this air consumption = stair air consumption 1+ stair air consumption 2+, + stair air consumption n;
3. according to a price mechanism, the gas consumption amount of the time is calculated by combining different ladder gas consumption amounts: this time of gas amount=stepped gas amount 1×stepped gas amount 1+stepped gas amount 2×stepped gas amount 2+, +stepped gas amount n×stepped gas amount n;
4. calculating the total gas consumption according to the total gas consumption amount of the last settlement and the current gas consumption amount: total accumulated gas consumption amount = total last accumulated gas consumption amount + current gas consumption amount;
5. calculating the current residual amount according to the total accumulated gas purchasing amount and the total accumulated gas consumption amount of the user: the current remaining amount=total accumulated gas purchase amount-total accumulated gas consumption amount.
If the user is charged with the money, the accumulated total gas purchase amount of the user is changed, and the accumulated total gas purchase amount of the user is calculated before the 5 th operation:
total user accumulated gas purchase amount=total user accumulated gas purchase amount before the current gas purchase+current gas purchase amount.
If the price mechanism of the air consumption changes in the settlement process or in a certain period of time after settlement, the previous settlement data of the time period for which the price mechanism is applicable is used as the data record in the last settlement according to the new price mechanism, and the settlement is carried out again according to the steps 1-5. Of course, the above calculation method may be replaced by other calculation formulas, which are not limited herein.
In other embodiments, when the gas meter receives data sent by the internet of things platform, the gas meter starts a meter end computing mechanism, which comprises the following steps:
1. and carrying out decryption operation according to the agreed encryption algorithm and the corresponding secret key to obtain corresponding data in the command packet of the platform of the Internet of things, wherein the corresponding data comprises a unique identification number of the gas meter, a unique identification number of the command, the settlement time, unit price, accumulated gas consumption, accumulated total gas purchasing amount, accumulated total gas consumption amount and check code. These data are collectively referred to as command packet data.
2. Calculating a gas consumption difference value according to the command packet standard condition accumulated gas consumption and the current standard condition accumulated gas consumption of the meter end: air consumption difference = meter end accumulated air consumption-command package accumulated air consumption;
3. calculating the price gas consumption of each step according to a gas price mechanism: air consumption difference = stair air consumption 1+ stair air consumption 2+, + stair air consumption n;
4. calculating the gas consumption amount difference value according to the gas consumption amount of each step price: gas amount difference = step gas consumption 1 x step gas price 1+ step gas consumption 2 x step gas price 2+ step gas consumption n x step gas price n;
5. calculating the total accumulated gas consumption of the meter according to the difference value of the total accumulated gas consumption and the gas consumption of the command packet: the total accumulated gas consumption amount of the table end=the difference value of the total accumulated gas consumption amount and the gas consumption amount of the command packet;
6. calculating the residual amount of the meter end according to the total amount of the purchased air accumulated by the command packet and the total amount of the consumed air accumulated by the meter end: the remaining amount of the meter end = the total amount of the command packet accumulated gas purchasing and the total amount of the meter end accumulated gas consumption;
7. the total accumulated gas purchase amount at the meter end is equal to the total accumulated gas purchase amount of the command packet: the total accumulated gas purchase amount of the meter end = the total accumulated gas purchase amount of the command packet;
8. the table end air unit price is equal to the number n unit price which is executed, and the execution is continued: table end unit price = step gas price n..step gas price n+i. Also, the above calculation method may be replaced by other calculation formulas, which are not limited herein.
And finally, forming a data packet according to the settlement result data of the gas meter end and the identification mark of the gas meter: the arrangement sequence of the data packets is as follows: the unique identification number of the gas meter, the unique identification number of the command, the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchasing amount, the accumulated total gas consumption amount and the check code. The data packet will have the following: the settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount and accumulated total gas consumption are encrypted by adopting a symmetric encryption algorithm and a corresponding key, the symmetric algorithm can be DES, 3DES, SM4 and the like, and any symmetric encryption algorithm can be realized.
Example 2:
the system for synchronously processing the charge settlement of the internet of things platform and the gas meter comprises a control module 100, the internet of things platform 200 and the gas meter 300 as shown in fig. 2;
the control module 100 responds to receiving a triggered settlement program and issues a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the internet of things gas meter;
the gas meter 300 is configured to unpack the command packet after receiving the command packet, and perform synchronous settlement on gas charges based on the unpacking result;
the control module 100 is configured to obtain a gas meter data packet generated after synchronous settlement of a gas meter is completed, and send the gas meter data packet to an internet of things platform;
the internet of things platform 200 is configured to perform settlement on data related to the gas meter based on the internet of things after receiving the gas meter data packet, so as to obtain a settlement result of this time.
The gas meter 300 is configured to: the command packet sequentially comprises a unique identification number of the gas meter, a unique identification number of the command, the settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount, accumulated total gas use amount and check codes, wherein the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchase amount and the accumulated total gas use amount are encrypted by adopting a symmetrical encryption algorithm and corresponding keys.
The internet of things platform 200 is configured to: the settlement is carried out based on the data related to the gas meter of the Internet of things, and the settlement steps are as follows:
the difference value of the accumulated gas consumption under the standard condition is obtained, specifically: current air consumption = current accumulated air consumption of standard conditions at the time of settlement-last accumulated air consumption of standard conditions at the time of settlement;
according to the accumulated gas consumption amount of the last settlement and the current gas consumption amount, calculating the accumulated gas consumption total amount, wherein the accumulated gas consumption total amount is specifically as follows: total accumulated gas consumption amount = total last accumulated gas consumption amount + current gas consumption amount;
according to the total accumulated gas purchasing amount and the total accumulated gas consumption amount of the user, calculating the current residual amount, specifically: the current remaining amount=total accumulated gas purchase amount-total accumulated gas consumption amount.
The internet of things platform 200 is configured to:
based on the step gas price system, the gas consumption is calculated through each step gas consumption, and specifically: this air usage = first step air usage + second step air usage +.+ nth step air usage;
after the gas consumption of this time is obtained through the gas consumption of each ladder, the gas consumption amount of this time is calculated, and specifically: this time the gas consumption amount=the first ladder gas consumption amount x the first ladder gas price+the second ladder gas consumption amount the gas amount x the second step gas price +.+ the n-th step gas consumption x the n-th step gas price.
The internet of things platform 200 is configured to:
if the user accumulated total gas purchase amount is changed based on the user recharging, the method further comprises the following steps before the steps of accumulating the total gas purchase amount and accumulating the total gas use amount according to the user:
the total amount of the accumulated gas purchasing of the user is calculated, and the method specifically comprises the following steps: total user accumulated gas purchase amount=total user accumulated gas purchase amount before the current gas purchase+current gas purchase amount.
The control module 100 is arranged to: the gas meter data packet is formed by gas meter end settlement result data and identification marks of corresponding gas meters, and sequentially comprises a gas meter unique identification number, a command unique identification number, current settlement time, unit price, accumulated gas consumption, accumulated gas purchase total amount, accumulated gas consumption total amount and check codes;
the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchase amount and the accumulated total gas consumption amount are encrypted by adopting a symmetrical encryption algorithm and a corresponding secret key.
The gas meter 300 is configured to: the synchronous settlement of the fuel gas expense is carried out based on the unpacking result, and specifically comprises the following steps:
based on the accumulated gas consumption of the command packet and the current standard condition accumulated gas consumption of the meter end under the standard condition, calculating a gas consumption difference value, specifically: air consumption difference = meter end accumulated air consumption-command package accumulated air consumption;
the gas consumption of each step price is calculated by combining a gas price system, and the method specifically comprises the following steps: air consumption difference = first step air consumption + second step air consumption +.+ nth step air consumption;
the difference value of the gas consumption and the gas consumption is obtained based on the gas consumption of each ladder price, and is specifically as follows: gas amount difference = first step gas consumption x first step gas consumption + second step gas consumption x second step gas consumption +.+ -.) + n step gas consumption x n step gas consumption;
and then calculating the total accumulated gas consumption of the meter end according to the difference value of the total accumulated gas consumption and the gas consumption of the command packet, wherein the total accumulated gas consumption is specifically as follows: the total accumulated gas consumption amount of the table end=the difference value of the total accumulated gas consumption amount and the gas consumption amount of the command packet;
the total gas purchasing amount and the total gas consumption amount at the meter end are calculated through the command packet, and the method specifically comprises the following steps: the remaining amount of the meter end=the total amount of the command packet accumulated gas purchasing amount-the total amount of the meter end accumulated gas consumption amount, wherein the total amount of the meter end accumulated gas purchasing amount is the total amount of the command packet accumulated gas purchasing amount.
Example 3:
a computer readable storage medium storing a computer program which, when executed by a processor, performs the method steps of:
responding to a received triggered settlement program, and issuing a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas expense based on the unpacking result;
acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform;
and after the internet of things platform receives the gas meter data packet, settling the related data based on the internet of things gas meter to obtain a settlement result of the time.
When the processor executes the computer program, the command packet sequentially comprises a unique identification number of the gas meter, a unique identification number of the command, the settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount, accumulated total gas use amount and check code, wherein the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchase amount and the accumulated total gas use amount are encrypted by adopting a symmetrical encryption algorithm and corresponding keys.
When the processor executes the computer program, the settlement based on the data related to the gas meter of the Internet of things is realized, and the settlement steps are as follows:
the difference value of the accumulated gas consumption under the standard condition is obtained, specifically: current air consumption = current accumulated air consumption of standard conditions at the time of settlement-last accumulated air consumption of standard conditions at the time of settlement;
according to the accumulated gas consumption amount of the last settlement and the current gas consumption amount, calculating the accumulated gas consumption total amount, wherein the accumulated gas consumption total amount is specifically as follows: total accumulated gas consumption amount = total last accumulated gas consumption amount + current gas consumption amount;
according to the total accumulated gas purchasing amount and the total accumulated gas consumption amount of the user, calculating the current residual amount, specifically: the current remaining amount=total accumulated gas purchase amount-total accumulated gas consumption amount.
When the processor executes the computer program, the implementation further comprises the following steps:
based on the step gas price system, the gas consumption is calculated through each step gas consumption, and specifically: this air usage = first step air usage + second step air usage +.+ nth step air usage;
after the gas consumption of this time is obtained through the gas consumption of each ladder, the gas consumption amount of this time is calculated, and specifically: this time the gas consumption amount=the first ladder gas consumption amount x the first ladder gas price+the second ladder gas consumption amount the gas amount x the second step gas price +.+ the n-th step gas consumption x the n-th step gas price.
When the processor executes the computer program, if the accumulated total gas purchase amount of the user changes based on the recharging of the user, the method further comprises the following steps before the steps of accumulating the total gas purchase amount and the accumulated total gas use amount according to the user:
the total amount of the accumulated gas purchasing of the user is calculated, and the method specifically comprises the following steps: total user accumulated gas purchase amount=total user accumulated gas purchase amount before the current gas purchase+current gas purchase amount.
When the processor executes the computer program, the synchronous settlement of the fuel gas expense based on the unpacking result is realized, specifically:
based on the accumulated gas consumption of the command packet and the current standard condition accumulated gas consumption of the meter end under the standard condition, calculating a gas consumption difference value, specifically: air consumption difference = meter end accumulated air consumption-command package accumulated air consumption;
the gas consumption of each step price is calculated by combining a gas price system, and the method specifically comprises the following steps: air consumption difference = first step air consumption + second step air consumption +.+ nth step air consumption;
the difference value of the gas consumption and the gas consumption is obtained based on the gas consumption of each ladder price, and is specifically as follows: gas amount difference = first step gas consumption x first step gas consumption + second step gas consumption x second step gas consumption +.+ -.) + n step gas consumption x n step gas consumption;
and then calculating the total accumulated gas consumption of the meter end according to the difference value of the total accumulated gas consumption and the gas consumption of the command packet, wherein the total accumulated gas consumption is specifically as follows: the total accumulated gas consumption amount of the table end=the difference value of the total accumulated gas consumption amount and the gas consumption amount of the command packet;
the total gas purchasing amount and the total gas consumption amount at the meter end are calculated through the command packet, and the method specifically comprises the following steps: the remaining amount of the meter end=the total amount of the command packet accumulated gas purchasing amount-the total amount of the meter end accumulated gas consumption amount, wherein the total amount of the meter end accumulated gas purchasing amount is the total amount of the command packet accumulated gas purchasing amount.
When the processor executes a computer program, the gas meter data packet is formed by gas meter end settlement result data and identification marks of corresponding gas meters, and the gas meter data packet sequentially comprises a gas meter unique identification number, a command unique identification number, current settlement time, unit price, accumulated gas consumption, accumulated gas purchase total amount, accumulated gas consumption total amount and a check code;
the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchase amount and the accumulated total gas consumption amount are encrypted by adopting a symmetrical encryption algorithm and a corresponding secret key.
Example 4:
in an embodiment, a device for synchronously processing the charge settlement of the internet of things platform and the gas meter is provided, and the device for synchronously processing the charge settlement of the internet of things platform and the gas meter can be a server or a mobile terminal. The device for synchronously processing the charge settlement of the internet of things platform and the gas meter comprises a processor, a memory, a network interface and a database which are connected through a system bus. The processor of the device for synchronously processing the charge settlement of the gas meter and the Internet of things platform is used for providing computing and control capabilities. The memory of the device for synchronously processing the charge settlement of the internet of things platform and the gas meter comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database is used for storing all data of the device for synchronously processing the internet of things platform and the gas meter expense settlement. The network interface of the computer device is used for communicating with an external terminal through a network connection. The method for realizing the synchronous processing of the internet of things platform and the gas meter expense settlement when the computer program is executed by the processor comprises the following steps:
responding to communication between the internet of things platform and the gas meter, and issuing a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas expense based on the unpacking result;
acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform;
and after the internet of things platform receives the gas meter data packet, settling the related data based on the internet of things gas meter to obtain a settlement result of the time.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that:
reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Thus, the appearances of the phrase "one embodiment" or "an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
In addition, the specific embodiments described in the present specification may differ in terms of parts, shapes of components, names, and the like. All equivalent or simple changes of the structure, characteristics and principle according to the inventive concept are included in the protection scope of the present invention. Those skilled in the art may make various modifications or additions to the described embodiments or substitutions in a similar manner without departing from the scope of the invention as defined in the accompanying claims.
Claims (9)
1. The synchronous processing method for the cost settlement of the internet of things platform and the gas meter is characterized by comprising the following steps of:
responding to a received triggered settlement program, and issuing a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on a last settlement result, and the settlement result is a result of settlement based on data related to the internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas expense based on the unpacking result;
acquiring a gas meter data packet generated after synchronous settlement of a gas meter is completed, and sending the gas meter data packet to an Internet of things platform;
after the internet of things platform receives the gas meter data packet, settling the related data based on the internet of things gas meter to obtain a settlement result of the time;
the settlement is carried out based on the data related to the gas meter of the Internet of things, and the settlement steps are as follows:
the difference value of the accumulated gas consumption under the standard condition is obtained, specifically: current air consumption = current accumulated air consumption of standard conditions at the time of settlement-last accumulated air consumption of standard conditions at the time of settlement;
according to the accumulated gas consumption amount of the last settlement and the current gas consumption amount, calculating the accumulated gas consumption total amount, wherein the accumulated gas consumption total amount is specifically as follows: total accumulated gas consumption amount = total last accumulated gas consumption amount + current gas consumption amount;
according to the total accumulated gas purchasing amount and the total accumulated gas consumption amount of the user, calculating the current residual amount, specifically: the current remaining amount=total accumulated gas purchase amount-total accumulated gas consumption amount.
2. The method for synchronously processing the charge settlement of the internet of things platform and the gas meter according to claim 1, wherein the command packet sequentially comprises a unique identification number of the gas meter, a unique identification number of the command, a current settlement time, a unit price, a cumulative gas consumption amount, a cumulative total gas purchase amount, a cumulative total gas consumption amount and a check code, and the current settlement time, the unit price, the cumulative gas consumption amount, the cumulative total gas purchase amount and the cumulative total gas consumption amount are encrypted by adopting a symmetric encryption algorithm and corresponding keys.
3. The method for synchronously processing the charge settlement of the internet of things platform and the gas meter according to claim 1, further comprising the following steps:
based on the step gas price system, the gas consumption is calculated through each step gas consumption, and specifically: this air usage = first step air usage + second step air usage +.+ nth step air usage;
after the gas consumption of this time is obtained through the gas consumption of each ladder, the gas consumption amount of this time is calculated, and specifically: this time the gas consumption amount=the first ladder gas consumption amount x the first ladder gas price+the second ladder gas consumption amount the gas amount x the second step gas price +.+ the n-th step gas consumption x the n-th step gas price.
4. The method for synchronously processing the charge settlement of the internet of things platform and the gas meter according to claim 1, wherein if the user accumulated total gas purchase amount is changed based on the user recharging, the method further comprises the following steps before the steps of accumulating the total gas purchase amount and the accumulated total gas use amount according to the user:
the total amount of the accumulated gas purchasing of the user is calculated, and the method specifically comprises the following steps: total user accumulated gas purchase amount=total user accumulated gas purchase amount before the current gas purchase+current gas purchase amount.
5. The synchronous processing method for the internet of things platform and the gas meter fee settlement according to claim 1, wherein the synchronous settlement for the gas fee based on the unpacking result is specifically as follows:
based on the accumulated gas consumption of the command packet and the current standard condition accumulated gas consumption of the meter end under the standard condition, calculating a gas consumption difference value, specifically: air consumption difference = meter end accumulated air consumption-command package accumulated air consumption;
the gas consumption of each step price is calculated by combining a gas price system, and the method specifically comprises the following steps: air consumption difference = first step air consumption + second step air consumption +.+ nth step air consumption;
the difference value of the gas consumption and the gas consumption is obtained based on the gas consumption of each ladder price, and is specifically as follows: gas amount difference = first step gas consumption x first step gas consumption + second step gas consumption x second step gas consumption +.+ -.) + n step gas consumption x n step gas consumption;
and then calculating the total accumulated gas consumption of the meter end according to the difference value of the total accumulated gas consumption and the gas consumption of the command packet, wherein the total accumulated gas consumption is specifically as follows: the total accumulated gas consumption amount of the table end=the difference value of the total accumulated gas consumption amount and the gas consumption amount of the command packet;
the total gas purchasing amount and the total gas consumption amount at the meter end are calculated through the command packet, and the method specifically comprises the following steps: the remaining amount of the meter end=the total amount of the command packet accumulated gas purchasing amount-the total amount of the meter end accumulated gas consumption amount, wherein the total amount of the meter end accumulated gas purchasing amount is the total amount of the command packet accumulated gas purchasing amount.
6. The synchronous processing method for the charge settlement of the internet of things platform and the gas meter according to claim 1, wherein the gas meter data packet is formed by gas meter end settlement result data and identification marks of corresponding gas meters, and sequentially comprises a gas meter unique identification number, a command unique identification number, current settlement time, unit price, accumulated gas consumption, accumulated gas purchase total amount, accumulated gas use total amount and check codes;
the settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchase amount and the accumulated total gas consumption amount are encrypted by adopting a symmetrical encryption algorithm and a corresponding secret key.
7. The synchronous processing system for the cost settlement of the internet of things platform and the gas meter is characterized by comprising a control module, the internet of things platform and the gas meter;
the control module responds to the received triggered settlement program and issues a command packet to the gas meter, wherein the command packet is generated by the internet of things platform based on the last settlement result, and the settlement result is based on the data settlement related to the internet of things gas meter;
the gas meter is used for unpacking the command packet after receiving the command packet and synchronously settling the gas expense based on the unpacking result;
the control module is used for acquiring a gas meter data packet generated after synchronous settlement of the gas meter is completed and sending the gas meter data packet to the platform of the Internet of things;
the internet of things platform is used for settling the related data of the gas meter based on the internet of things after receiving the gas meter data packet to obtain a settlement result of the time;
the settlement is carried out based on the data related to the gas meter of the Internet of things, and the settlement steps are as follows:
the difference value of the accumulated gas consumption under the standard condition is obtained, specifically: current air consumption = current accumulated air consumption of standard conditions at the time of settlement-last accumulated air consumption of standard conditions at the time of settlement;
according to the accumulated gas consumption amount of the last settlement and the current gas consumption amount, calculating the accumulated gas consumption total amount, wherein the accumulated gas consumption total amount is specifically as follows: total accumulated gas consumption amount = total last accumulated gas consumption amount + current gas consumption amount;
according to the total accumulated gas purchasing amount and the total accumulated gas consumption amount of the user, calculating the current residual amount, specifically: the current remaining amount=total accumulated gas purchase amount-total accumulated gas consumption amount.
8. A computer-readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method steps of any one of claims 1 to 6.
9. An apparatus for synchronizing the processing of an internet of things platform with the settlement of gas meter charges, comprising a memory, a processor and a computer program stored in said memory and executable on said processor, wherein said processor, when executing said computer program, implements the method steps of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011205636.1A CN112383597B (en) | 2020-11-02 | 2020-11-02 | Internet of things platform and Internet of things gas meter expense settlement synchronous processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011205636.1A CN112383597B (en) | 2020-11-02 | 2020-11-02 | Internet of things platform and Internet of things gas meter expense settlement synchronous processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112383597A CN112383597A (en) | 2021-02-19 |
CN112383597B true CN112383597B (en) | 2023-04-28 |
Family
ID=74577524
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011205636.1A Active CN112383597B (en) | 2020-11-02 | 2020-11-02 | Internet of things platform and Internet of things gas meter expense settlement synchronous processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112383597B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117238077B (en) * | 2023-11-16 | 2024-01-23 | 成都秦川物联网科技股份有限公司 | Ultrasonic metering instrument stepped gas price management method and system based on Internet of things |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108877059A (en) * | 2018-06-08 | 2018-11-23 | 廊坊新奥燃气设备有限公司 | Internet of Things gas meter, flow meter settlement method, Internet of Things gas meter, flow meter and meter reading Platform Server |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1741059B (en) * | 2005-09-26 | 2015-11-25 | 王英明 | Data acquisition with clearing separating treatment method, device and settle accounts integral system |
CN102496123A (en) * | 2011-11-21 | 2012-06-13 | 成都伦力表具有限公司 | Over-the-air recharging method applied to gauge table and over-the-air recharging system thereof |
US8849715B2 (en) * | 2012-10-24 | 2014-09-30 | Causam Energy, Inc. | System, method, and apparatus for settlement for participation in an electric power grid |
CN103473903A (en) * | 2013-09-30 | 2013-12-25 | 无锡健科智能科技有限公司 | Remote monitoring system of remote water meter |
CN105323734A (en) * | 2014-07-11 | 2016-02-10 | 国网河南省电力公司漯河供电公司 | Ammeter accessorial device |
CN105609337A (en) * | 2016-03-22 | 2016-05-25 | 宁波智轩物联网科技有限公司 | Intelligent circuit breaker system with capability of real-time metering and charging |
CN111241143B (en) * | 2020-01-09 | 2021-02-02 | 湖南华博信息技术有限公司 | Distributed calculation method and system for water supply amount and water fee |
-
2020
- 2020-11-02 CN CN202011205636.1A patent/CN112383597B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108877059A (en) * | 2018-06-08 | 2018-11-23 | 廊坊新奥燃气设备有限公司 | Internet of Things gas meter, flow meter settlement method, Internet of Things gas meter, flow meter and meter reading Platform Server |
Also Published As
Publication number | Publication date |
---|---|
CN112383597A (en) | 2021-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9317877B2 (en) | Enabling third-party E-store with carrier billing for a mobile device | |
JP5744811B2 (en) | Electric vehicle charging device, electric vehicle charging system including the same, and electric vehicle charging method | |
CN102547646A (en) | Operating system supporting cost aware applications | |
CN115269038B (en) | Stateless computing data processing method, program product and electronic device | |
CN103781044B (en) | A kind of charging method and charge system of the commodity bought with mobile phone charge in Mobile solution | |
TW200917084A (en) | Metered pay-as-you-go computing experience | |
CN112383597B (en) | Internet of things platform and Internet of things gas meter expense settlement synchronous processing method and system | |
CN110163634B (en) | Refund method and device based on blockchain and electronic equipment | |
CN111340639A (en) | Settlement data processing method and device | |
CN110458611A (en) | Method, apparatus and calculating equipment for processing of fixing a price | |
TW200907815A (en) | Computer hardware metering | |
CN106910303A (en) | A kind of supervising device of making out an invoice, billing system and billing method for being applied to tax control | |
CN103684801A (en) | A data distribution method, an apparatus and a server | |
CN110348832A (en) | B2C online payment gateway adapter, system, adaptation and method of payment | |
CN104242994B (en) | Communication method, communication device and corresponding mobile terminal with NFC function | |
KR20140116047A (en) | An electric charging system, a power measuring instrument and a mobile terminal for an electric charging system and a control method thereof | |
CN106327273A (en) | STS-based prepaid electricity selling system and method | |
CN110163606B (en) | Refund method and device based on blockchain and electronic equipment | |
WO2017092491A1 (en) | Debiting method and device | |
CN111831738A (en) | Method and device for storing Internet recruitment data on block chain | |
CN111325586A (en) | Bill generation method, device, server and medium based on block chain network | |
CN112613970A (en) | Value-added tax rate-based supplier billing control method and system | |
CN114220222B (en) | Offline prepaid electric quantity recharging method and system | |
KR102667194B1 (en) | Cloud infrastructure shared resource billing division method and system | |
KR101568693B1 (en) | Rental management apparatus and method of the mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |