CN112383597A - Internet of things platform and Internet of things gas meter fee settlement synchronous processing method and system - Google Patents

Internet of things platform and Internet of things gas meter fee settlement synchronous processing method and system Download PDF

Info

Publication number
CN112383597A
CN112383597A CN202011205636.1A CN202011205636A CN112383597A CN 112383597 A CN112383597 A CN 112383597A CN 202011205636 A CN202011205636 A CN 202011205636A CN 112383597 A CN112383597 A CN 112383597A
Authority
CN
China
Prior art keywords
gas
accumulated
settlement
internet
amount
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.)
Granted
Application number
CN202011205636.1A
Other languages
Chinese (zh)
Other versions
CN112383597B (en
Inventor
李中阳
章圣意
黄象克
陈海棠
陈鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Cangnan Instrument Group Co ltd
Original Assignee
Zhejiang Cangnan Instrument Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Cangnan Instrument Group Co ltd filed Critical Zhejiang Cangnan Instrument Group Co ltd
Priority to CN202011205636.1A priority Critical patent/CN112383597B/en
Publication of CN112383597A publication Critical patent/CN112383597A/en
Application granted granted Critical
Publication of CN112383597B publication Critical patent/CN112383597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/001Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for gas
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/08Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for varying the tariff or changing the price
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/35Utilities, e.g. electricity, gas or water
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network 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/0435Network 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)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (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 fee 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 cost 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 the settlement result. When the Internet of things platform starts charging, recharging and unit price adjustment and data of the Internet of things gas meter end are transmitted back to the platform, the accumulated gas consumption amount settlement operation of the platform is triggered, and the data synchronization algorithm is used to enable the two settlement amounts to be consistent.

Description

Internet of things platform and Internet of things gas meter fee settlement synchronous processing method and system
Technical Field
The invention relates to the technical field of gas meter fee settlement, in particular to a synchronous processing method and system for fee settlement of an Internet of things platform and an Internet of things gas meter.
Background
In the prior art, when the internet of things platform and the internet of things gas meter calculate the gas fee, the internet of things platform starts charging, recharging, unit price adjustment and the data of the internet of things gas meter end are transmitted back to the platform, the operation of clearing the accumulated gas amount of the internet of things platform is triggered, the accumulated gas amount is continuously increased due to the real-time operation of the gas meter, the communication between the internet of things platform and the internet of things gas meter is intermittent, the data of the internet of things platform and the gas meter end 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 fee settlement of an Internet of things platform and an Internet of things gas meter.
In order to solve the technical problem, the invention is solved by the following technical scheme:
a synchronous processing method for fee settlement of an Internet of things platform and a gas meter comprises the following steps:
responding to a 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 related data of the Internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas cost 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 the settlement result.
As an implementation mode, the command packet sequentially includes a unique gas meter identification number, a unique command identification number, the current settlement time, a unit price, an accumulated gas consumption amount, 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 total gas use amount, the accumulated total gas purchase amount and the accumulated total gas use amount are encrypted by adopting a symmetric encryption algorithm and a corresponding key.
As an implementation mode, the settlement is performed based on the data related to the gas meter of the internet of things, and the settlement steps are as follows:
obtaining a difference value of the accumulated gas consumption under a standard condition, specifically: the current gas consumption is the standard condition accumulated gas consumption during the current settlement-the standard condition accumulated gas consumption during the previous settlement;
calculating the total amount of accumulated gas consumption according to the total amount of accumulated gas consumption settled last time and the amount of gas consumption at this time, and specifically comprising the following steps: the total accumulated gas consumption sum is the total accumulated gas consumption sum of the last time and the current gas consumption sum;
calculating the remaining amount according to the total accumulated gas purchasing amount and the total accumulated gas using amount of the user, which specifically comprises the following steps: the residual sum is the total sum of accumulated gas purchase-total sum of accumulated gas use.
As an implementation, the method further comprises the following steps:
based on a step gas price system, calculating the gas consumption of the time through the gas consumption of each step, specifically comprising the following steps: the current gas consumption is equal to the gas consumption of the first step plus the gas consumption of the second step plus.
After the gas consumption of this time is obtained through the gas consumption of each step, the amount of the gas consumption of this time is calculated, and the method specifically comprises the following steps: the amount of gas used at this time is equal to the first step gas usage amount × the first step gas price + the second step gas usage amount × the second step gas price +. + the nth step gas usage amount × the nth step gas price.
As an implementation manner, if the total amount of gas purchased accumulated by the user changes based on the user recharging, before the step of accumulating the total amount of gas purchased by the user and the total amount of gas used, the method further comprises the following steps:
calculating the total accumulated gas purchase amount of the user, specifically comprising the following steps: the total sum of the gas purchased by the user is the total sum of the gas purchased by the user before the gas purchase and the gas purchase sum of the time.
As an implementation manner, the synchronous settlement of the gas fee based on the unpacking result is specifically:
calculating a gas consumption difference value based on the command packet accumulated gas consumption under the standard condition and the current standard condition accumulated gas consumption of the meter end, specifically: the gas consumption difference is the accumulated gas consumption of the meter end-the accumulated gas consumption of the command packet;
calculating the gas consumption of each step price by combining a gas price system, specifically comprising the following steps: the difference between the gas consumption is equal to the gas consumption of a first step plus the gas consumption of a second step plus.
Obtaining a gas usage amount difference value based on the gas usage amount of each step price, specifically: the gas amount difference is equal to the first step gas consumption multiplied by the first step gas price, the second step gas consumption multiplied by the second step gas price plus.
And then, calculating the total accumulated gas consumption amount of the meter end according to the total accumulated gas consumption amount of the command packet and the difference value of the gas consumption amount, specifically comprising the following steps: the total amount of accumulated gas consumption of the table end is equal to the total amount of accumulated gas consumption of the command packet plus the difference value of the amount of gas consumption;
calculating the remaining amount of the meter end through the total accumulated gas purchasing amount of the command packet and the total accumulated gas using amount of the meter end, specifically comprising the following steps: and the table end residual sum is the total accumulated gas purchasing sum of the command packet-the total accumulated gas purchasing sum of the table end, and the total accumulated gas purchasing sum of the table end is the total accumulated gas purchasing sum of the command packet.
As an implementable mode, the gas meter data packet is formed by gas meter end settlement result data and an identification mark of a corresponding gas meter, and the gas meter data packet sequentially comprises a gas meter unique identification number, a command unique identification number, the current settlement time, unit price, accumulated gas consumption, accumulated total gas purchasing amount, accumulated total gas consumption amount and a check code;
the settlement time, unit price, accumulated gas consumption, total accumulated gas purchase amount and total accumulated gas consumption amount are encrypted by adopting a symmetric encryption algorithm and a corresponding key.
A synchronous processing system for fee settlement of an Internet of things platform and a gas meter comprises a control module, the Internet of things platform and the gas meter;
the control module responds to 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 related data of 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 cost 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 Internet of things platform;
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 to obtain the settlement result.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the following method steps:
responding to a 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 related data of the Internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas cost 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 the settlement result.
An apparatus for synchronously processing fee settlement of an internet of things platform and a gas meter comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the following method steps when executing the computer program:
responding to a 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 related data of the Internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas cost 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 the settlement result.
Due to the adoption of the technical scheme, the invention has the remarkable technical effects that:
based on the method and the system, when the platform of the Internet of things starts charging, recharging and unit price adjustment and data of the gas meter end of the Internet of things are transmitted back to the platform, the operation of settling the accumulated gas amount of the platform is triggered, and the data synchronization algorithm is used to ensure that the two settlement amounts are consistent; the calculation is that the gas price of the already-settled data needs to be changed and recalculated by the gas company, and the settlement time point is moved to the point, namely the accumulated usage and the accumulated gas use amount at the time point are obtained, and the calculation can be carried out by combining the new gas price and the current accumulated total gas purchase amount.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic overall flow diagram of the process 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 examples, which are illustrative of the present invention and are not to be construed as being limited thereto.
Example 1:
in the prior art, when the internet of things platform and the internet of things gas meter calculate the gas fee, the internet of things platform starts charging, recharging and unit price adjustment and the data of the internet of things gas meter end is transmitted back to the platform, and accumulated gas amount settlement operation of the internet of things platform is triggered.
How to make the settlement results of the platform of the internet of things and the gas meter end more consistent, a new synchronization mode needs to be developed, and the data of the platform of the internet of things and the gas meter end can be consistent through the synchronization of the data between the platform of the internet of things and the gas meter end.
Based on this, the invention provides a synchronous processing method for fee settlement of an internet of things platform and a gas meter, as shown in fig. 1, comprising the following steps:
s100, responding to a 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 related data of the Internet of things gas meter;
s200, after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas cost based on the unpacking result;
s300, acquiring a gas meter data packet generated after synchronous settlement of the 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, settlement is conducted on the relevant data based on the Internet of things gas meter, and a settlement result of the time is obtained.
When data sent by the gas meter or operations such as recharging and price adjustment of the Internet of things platform are received, 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 system comprises a unique gas meter identification number, a command unique identification number, the current settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount, accumulated total gas consumption amount and a 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 amount 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 performed based on data related to the gas meter of the internet of things, where: and defining the latest data record received by the gas meter as the data record in the current settlement, and defining the data in the last settlement as the data record in the last settlement. Settling according to a settlement algorithm rule according to the received latest data record of the gas meter and the data of the last settlement of the gas meter on the platform of the Internet of things, wherein the settlement step is as follows:
1. calculating the difference value of the standard condition accumulated gas consumption, namely the gas consumption at this time: the current gas consumption is the standard condition accumulated gas consumption during the current settlement-the standard condition accumulated gas consumption during the previous settlement;
2. calculating different step gas consumption of the gas consumption at this time according to a price mechanism: the gas consumption at this time is step gas consumption 1+ step gas consumption 2+ - + step gas consumption n;
3. according to a price mechanism, combining different step gas consumption amounts, calculating the amount of the gas used at this time: the amount of gas used at this time is 1 × step gas consumption 1+ 2 × step gas consumption 2+. farad.
4. Calculating the total amount of accumulated gas according to the total amount of accumulated gas and the current amount of gas according to the previous settlement: the total accumulated gas consumption sum is the total accumulated gas consumption sum of the last time and the current gas consumption sum;
5. calculating the remaining amount according to the total accumulated gas purchasing amount and the total accumulated gas using amount of the user: the residual sum is the total sum of accumulated gas purchase-total sum of accumulated gas use.
If the total amount of the accumulated gas purchase of the user changes due to the recharging of the user, the total amount of the accumulated gas purchase of the user is calculated before the 5 th operation:
the total sum of the gas purchased by the user is the total sum of the gas purchased by the user before the gas purchase and the gas purchase sum of the time.
If the price mechanism of the gas consumption amount changes in the settlement process or within a certain settled time, taking the previous settlement data of the applicable time period of the price mechanism as the data record during the last settlement according to the new price mechanism, and re-settling according to the steps 1-5. Of course, the above calculation method may be replaced by other calculation formulas, and is 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 settlement mechanism, and the steps are as follows:
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 Internet of things platform, wherein the corresponding data comprises 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. These data are collectively referred to as command packet data.
2. Calculating the 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: the gas consumption difference is the accumulated gas consumption of the meter end-the accumulated gas consumption of the command packet;
3. calculating the gas consumption of each step price according to a gas price mechanism: the difference of the gas consumption is 1+ 2+. to + n;
4. calculating the difference value of the gas consumption amount according to the gas consumption amount of each step price: the gas amount difference is 1 × step gas consumption 1+ 2 × step gas consumption 2+. the step gas consumption n × step gas price n;
5. calculating the total accumulated gas consumption amount of the meter end according to the total accumulated gas consumption amount of the command packet and the difference value of the gas consumption amount: the total amount of accumulated gas consumption of the table end is equal to the total amount of accumulated gas consumption of the command packet plus the difference value of the amount of gas consumption;
6. calculating the remaining amount of the meter end according to the total accumulated gas purchasing amount of the command packet and the total accumulated gas using amount of the meter end: the remaining amount of the table end is the total accumulated gas purchasing amount of the command packet-the total accumulated gas using amount of the table end;
7. the total accumulated gas purchase amount of the meter end is equal to the total accumulated gas purchase amount of the command packet: the total gas purchasing amount accumulated by the meter end is equal to the total gas purchasing amount accumulated by the command packet;
8. the table end gas usage unit price is equal to the unit price which is continuously executed from the n unit price which is executed: a flat gas price n + i. Similarly, the above calculation method may be replaced by other calculation formulas, and is not limited herein.
Specifically, a data packet is formed according to the settlement result data of the gas meter end and the identification mark of the gas meter: the data packets are arranged in the sequence: the system comprises a unique gas meter identification number, a command unique identification number, the current settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount, accumulated total gas consumption amount and a check code. The data packet will have therein: the settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount and accumulated total gas consumption amount are encrypted by adopting a symmetric encryption algorithm and a corresponding key, the symmetric algorithm can adopt DES, 3DES, SM4 and the like, and any symmetric encryption algorithm can be realized.
Example 2:
a synchronous processing system for fee settlement of an Internet of things platform and a gas meter is shown in FIG. 2 and comprises a control module 100, an Internet of things platform 200 and a gas meter 300;
the control module 100 responds to 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 related data of 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 costs based on the unpacked result;
the control module 100 is configured to acquire 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 used for receiving the gas meter data packet and settling the related data based on the internet of things gas meter to obtain the settlement result.
The gas meter 300 is arranged to: the command packet sequentially comprises a unique gas meter identification number, a unique command identification number, the current settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchasing amount, the accumulated total gas using amount and a check code, wherein the current settlement time, the unit price, the accumulated gas consumption, the accumulated total gas purchasing amount and the accumulated total gas using amount are encrypted by adopting a symmetric encryption algorithm and a corresponding secret key.
The internet of things platform 200 is configured to: the settlement is carried out based on the relevant data of the Internet of things gas meter, and the settlement steps are as follows:
obtaining a difference value of the accumulated gas consumption under a standard condition, specifically: the current gas consumption is the standard condition accumulated gas consumption during the current settlement-the standard condition accumulated gas consumption during the previous settlement;
calculating the total amount of accumulated gas consumption according to the total amount of accumulated gas consumption settled last time and the amount of gas consumption at this time, and specifically comprising the following steps: the total accumulated gas consumption sum is the total accumulated gas consumption sum of the last time and the current gas consumption sum;
calculating the remaining amount according to the total accumulated gas purchasing amount and the total accumulated gas using amount of the user, which specifically comprises the following steps: the residual sum is the total sum of accumulated gas purchase-total sum of accumulated gas use.
The internet of things platform 200 is configured to:
based on a step gas price system, calculating the gas consumption of the time through the gas consumption of each step, specifically comprising the following steps: the current gas consumption is equal to the gas consumption of the first step plus the gas consumption of the second step plus.
After the gas consumption of this time is obtained through the gas consumption of each step, the amount of the gas consumption of this time is calculated, and the method specifically comprises the following steps: the amount of gas used at this time is equal to the first step gas usage amount × the first step gas price + the second step gas usage amount × the second step gas price +. + the nth step gas usage amount × the nth step gas price.
The internet of things platform 200 is configured to:
if the total amount of the accumulated gas purchase of the user is changed due to the user recharging, before the step of the total amount of the accumulated gas purchase and the total amount of the accumulated gas use of the user, the method further comprises the following steps:
calculating the total accumulated gas purchase amount of the user, specifically comprising the following steps: the total sum of the gas purchased by the user is the total sum of the gas purchased by the user before the gas purchase and the gas purchase sum of the time.
The control module 100 is arranged to: the gas meter data packet is formed by gas meter end settlement result data and an identification mark of a corresponding gas meter, and sequentially comprises a gas meter unique identification number, a command unique identification number, the settlement time, unit price, accumulated gas consumption, accumulated total gas purchasing amount, accumulated total gas using amount and a check code;
the settlement time, unit price, accumulated gas consumption, total accumulated gas purchase amount and total accumulated gas consumption amount are encrypted by adopting a symmetric encryption algorithm and a corresponding key.
The gas meter 300 is arranged to: the result based on unpacking is used for synchronously settling the gas cost, and specifically comprises the following steps:
calculating a gas consumption difference value based on the command packet accumulated gas consumption under the standard condition and the current standard condition accumulated gas consumption of the meter end, specifically: the gas consumption difference is the accumulated gas consumption of the meter end-the accumulated gas consumption of the command packet;
calculating the gas consumption of each step price by combining a gas price system, specifically comprising the following steps: the difference between the gas consumption is equal to the gas consumption of a first step plus the gas consumption of a second step plus.
Obtaining a gas usage amount difference value based on the gas usage amount of each step price, specifically: the gas amount difference is equal to the first step gas consumption multiplied by the first step gas price, the second step gas consumption multiplied by the second step gas price plus.
And then, calculating the total accumulated gas consumption amount of the meter end according to the total accumulated gas consumption amount of the command packet and the difference value of the gas consumption amount, specifically comprising the following steps: the total amount of accumulated gas consumption of the table end is equal to the total amount of accumulated gas consumption of the command packet plus the difference value of the amount of gas consumption;
calculating the remaining amount of the meter end through the total accumulated gas purchasing amount of the command packet and the total accumulated gas using amount of the meter end, specifically comprising the following steps: and the table end residual sum is the total accumulated gas purchasing sum of the command packet-the total accumulated gas purchasing sum of the table end, and the total accumulated gas purchasing sum of the table end is the total accumulated gas purchasing sum of the command packet.
Example 3:
a computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the following method steps:
responding to a 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 related data of the Internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas cost 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 the settlement result.
When the processor executes a computer program, the command packet is sequentially composed of a unique gas meter identification number, a unique command identification number, the current settlement time, unit price, accumulated gas consumption, accumulated total gas consumption and a check code, wherein the current settlement time, the unit price, the accumulated total gas consumption and the accumulated total gas consumption are encrypted by adopting a symmetric encryption algorithm and a corresponding key.
When the processor executes a computer program, the settlement based on the relevant data of the Internet of things gas meter is realized, and the settlement steps are as follows:
obtaining a difference value of the accumulated gas consumption under a standard condition, specifically: the current gas consumption is the standard condition accumulated gas consumption during the current settlement-the standard condition accumulated gas consumption during the previous settlement;
calculating the total amount of accumulated gas consumption according to the total amount of accumulated gas consumption settled last time and the amount of gas consumption at this time, and specifically comprising the following steps: the total accumulated gas consumption sum is the total accumulated gas consumption sum of the last time and the current gas consumption sum;
calculating the remaining amount according to the total accumulated gas purchasing amount and the total accumulated gas using amount of the user, which specifically comprises the following steps: the residual sum is the total sum of accumulated gas purchase-total sum of accumulated gas use.
The implementation further comprises the following steps when the processor executes the computer program:
based on a step gas price system, calculating the gas consumption of the time through the gas consumption of each step, specifically comprising the following steps: the current gas consumption is equal to the gas consumption of the first step plus the gas consumption of the second step plus.
After the gas consumption of this time is obtained through the gas consumption of each step, the amount of the gas consumption of this time is calculated, and the method specifically comprises the following steps: the amount of gas used at this time is equal to the first step gas usage amount × the first step gas price + the second step gas usage amount × the second step gas price +. + the nth step gas usage amount × the nth step gas price.
When the processor executes the computer program, the method realizes that if the total amount of the accumulated gas purchase of the user is changed based on the user recharging, before the steps of the total amount of the accumulated gas purchase and the total amount of the accumulated gas use of the user, the method further comprises the following steps:
calculating the total accumulated gas purchase amount of the user, specifically comprising the following steps: the total sum of the gas purchased by the user is the total sum of the gas purchased by the user before the gas purchase and the gas purchase sum of the time.
When the processor executes the computer program, the synchronous settlement of the gas cost based on the unpacking result is realized, and the method specifically comprises the following steps:
calculating a gas consumption difference value based on the command packet accumulated gas consumption under the standard condition and the current standard condition accumulated gas consumption of the meter end, specifically: the gas consumption difference is the accumulated gas consumption of the meter end-the accumulated gas consumption of the command packet;
calculating the gas consumption of each step price by combining a gas price system, specifically comprising the following steps: the difference between the gas consumption is equal to the gas consumption of a first step plus the gas consumption of a second step plus.
Obtaining a gas usage amount difference value based on the gas usage amount of each step price, specifically: the gas amount difference is equal to the first step gas consumption multiplied by the first step gas price, the second step gas consumption multiplied by the second step gas price plus.
And then, calculating the total accumulated gas consumption amount of the meter end according to the total accumulated gas consumption amount of the command packet and the difference value of the gas consumption amount, specifically comprising the following steps: the total amount of accumulated gas consumption of the table end is equal to the total amount of accumulated gas consumption of the command packet plus the difference value of the amount of gas consumption;
calculating the remaining amount of the meter end through the total accumulated gas purchasing amount of the command packet and the total accumulated gas using amount of the meter end, specifically comprising the following steps: and the table end residual sum is the total accumulated gas purchasing sum of the command packet-the total accumulated gas purchasing sum of the table end, and the total accumulated gas purchasing sum of the table end is the total accumulated gas purchasing sum of the command packet.
When a processor executes a computer program, the gas meter data packet is formed by gas meter end calculation result data and an identification mark of a corresponding gas meter, and the gas meter data packet sequentially comprises a gas meter unique identification number, a command unique identification number, the current settlement time, unit price, accumulated gas consumption, accumulated total gas purchasing amount, accumulated total gas consumption amount and a check code;
the settlement time, unit price, accumulated gas consumption, total accumulated gas purchase amount and total accumulated gas consumption amount are encrypted by adopting a symmetric encryption algorithm and a corresponding key.
Example 4:
in one embodiment, a device for synchronously processing fee settlement of an internet of things platform and a gas meter is provided, and the device for synchronously processing fee 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 fee 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 Internet of things platform and the gas meter fee settlement is used for providing calculation and control capacity. The storage of the device for synchronously processing the fee settlement of the Internet of things platform and the gas meter comprises a nonvolatile storage medium and an internal storage. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database is used for storing all data of the device for synchronously processing the fee settlement of the Internet of things platform and the gas meter. The network interface of the computer device is used for communicating with an external terminal through a network connection. When being executed by a processor, the computer program realizes a method for synchronously settling fees of an Internet of things platform and a gas meter, and the method comprises the following steps:
responding to communication between the platform of the Internet of things and the gas meter, and issuing a command packet to the gas meter, wherein the command packet is generated by the platform of the Internet of things based on a last settlement result, and the settlement result is a result of settlement based on related data of the gas meter of the Internet of things;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas cost 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 the settlement result.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, 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 has been 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal 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, it should be noted that the specific embodiments described in the present specification may differ in the shape of the components, the names of the components, and the like. All equivalent or simple changes of the structure, the characteristics and the principle of the invention which are described in the patent conception of the invention are included in the protection scope of the patent of the invention. Various modifications, additions and substitutions for the specific embodiments described may be made by those skilled in the art without departing from the scope of the invention as defined in the accompanying claims.

Claims (10)

1. A synchronous processing method for fee settlement of an Internet of things platform and a gas meter is characterized by comprising the following steps:
responding to a 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 related data of the Internet of things gas meter;
after the gas meter receives the command packet, unpacking the command packet, and synchronously settling the gas cost 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 the settlement result.
2. The Internet of things platform and gas meter fee settlement synchronous processing method according to claim 1, wherein the command packet sequentially comprises a gas meter unique identification number, a command unique identification number, the 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 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 a corresponding key.
3. The internet of things platform and gas meter fee settlement synchronous processing method according to claim 1, wherein settlement is performed based on the related data of the internet of things gas meter, and the settlement steps are as follows:
obtaining a difference value of the accumulated gas consumption under a standard condition, specifically: the current gas consumption is the standard condition accumulated gas consumption during the current settlement-the standard condition accumulated gas consumption during the previous settlement;
calculating the total amount of accumulated gas consumption according to the total amount of accumulated gas consumption settled last time and the amount of gas consumption at this time, and specifically comprising the following steps: the total accumulated gas consumption sum is the total accumulated gas consumption sum of the last time and the current gas consumption sum;
calculating the remaining amount according to the total accumulated gas purchasing amount and the total accumulated gas using amount of the user, which specifically comprises the following steps: the residual sum is the total sum of accumulated gas purchase-total sum of accumulated gas use.
4. The internet of things platform and gas meter fee settlement synchronous processing method according to claim 3, further comprising the following steps:
based on a step gas price system, calculating the gas consumption of the time through the gas consumption of each step, specifically comprising the following steps: the current gas consumption is equal to the gas consumption of the first step plus the gas consumption of the second step plus.
After the gas consumption of this time is obtained through the gas consumption of each step, the amount of the gas consumption of this time is calculated, and the method specifically comprises the following steps: the amount of gas used at this time is equal to the first step gas usage amount × the first step gas price + the second step gas usage amount × the second step gas price +. + the nth step gas usage amount × the nth step gas price.
5. The internet of things platform and gas meter fee settlement synchronous processing method according to claim 3, wherein if the total amount of gas purchase accumulated by the user is changed due to user recharging, before the step of accumulating the total amount of gas purchase and the total amount of gas use according to the user, the method further comprises the following steps:
calculating the total accumulated gas purchase amount of the user, specifically comprising the following steps: the total sum of the gas purchased by the user is the total sum of the gas purchased by the user before the gas purchase and the gas purchase sum of the time.
6. The internet of things platform and gas meter fee settlement synchronous processing method according to claim 1, wherein the synchronous settlement of the gas fee is performed based on the unpacking result, specifically:
calculating a gas consumption difference value based on the command packet accumulated gas consumption under the standard condition and the current standard condition accumulated gas consumption of the meter end, specifically: the gas consumption difference is the accumulated gas consumption of the meter end-the accumulated gas consumption of the command packet;
calculating the gas consumption of each step price by combining a gas price system, specifically comprising the following steps: the difference between the gas consumption is equal to the gas consumption of a first step plus the gas consumption of a second step plus.
Obtaining a gas usage amount difference value based on the gas usage amount of each step price, specifically: the gas amount difference is equal to the first step gas consumption multiplied by the first step gas price, the second step gas consumption multiplied by the second step gas price plus.
And then, calculating the total accumulated gas consumption amount of the meter end according to the total accumulated gas consumption amount of the command packet and the difference value of the gas consumption amount, specifically comprising the following steps: the total amount of accumulated gas consumption of the table end is equal to the total amount of accumulated gas consumption of the command packet plus the difference value of the amount of gas consumption;
calculating the remaining amount of the meter end through the total accumulated gas purchasing amount of the command packet and the total accumulated gas using amount of the meter end, specifically comprising the following steps: and the table end residual sum is the total accumulated gas purchasing sum of the command packet-the total accumulated gas purchasing sum of the table end, and the total accumulated gas purchasing sum of the table end is the total accumulated gas purchasing sum of the command packet.
7. The internet of things platform and gas meter fee settlement synchronous processing method according to claim 1, wherein the gas meter data packet is formed by gas meter end settlement result data and an identification mark of a corresponding gas meter, and the gas meter data packet sequentially comprises a gas meter unique identification number, a command unique identification number, the settlement time, unit price, accumulated gas consumption, accumulated total gas purchase amount, accumulated total gas use amount and a check code;
the settlement time, unit price, accumulated gas consumption, total accumulated gas purchase amount and total accumulated gas consumption amount are encrypted by adopting a symmetric encryption algorithm and a corresponding key.
8. A synchronous processing system for fee settlement of an Internet of things platform and a gas meter is characterized by comprising a control module, the Internet of things platform and the gas meter;
the control module responds to 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 related data of 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 cost 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 Internet of things platform;
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 to obtain the settlement result.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
10. An apparatus for synchronously processing fee settlement of an internet of things platform and a gas meter, comprising a memory, a processor and a computer program stored in the memory and operable on the processor, wherein the processor executes the computer program to implement the method steps of any one of claims 1 to 7.
CN202011205636.1A 2020-11-02 2020-11-02 Internet of things platform and Internet of things gas meter expense settlement synchronous processing method and system Active CN112383597B (en)

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 true CN112383597A (en) 2021-02-19
CN112383597B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117238077A (en) * 2023-11-16 2023-12-15 成都秦川物联网科技股份有限公司 Ultrasonic metering instrument stepped gas price management method and system based on Internet of things

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741059A (en) * 2005-09-26 2006-03-01 王英明 Method and apparatus for data collection and settlement separated processing and settlement integrated 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
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
US20180033097A1 (en) * 2012-10-24 2018-02-01 Causam Energy, Inc. System, method, and apparatus for settlement for participation in an electric power grid
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
CN111241143A (en) * 2020-01-09 2020-06-05 湖南华博信息技术有限公司 Distributed calculation method and system for water supply amount and water fee

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741059A (en) * 2005-09-26 2006-03-01 王英明 Method and apparatus for data collection and settlement separated processing and settlement integrated 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
US20180033097A1 (en) * 2012-10-24 2018-02-01 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
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
CN111241143A (en) * 2020-01-09 2020-06-05 湖南华博信息技术有限公司 Distributed calculation method and system for water supply amount and water fee

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117238077A (en) * 2023-11-16 2023-12-15 成都秦川物联网科技股份有限公司 Ultrasonic metering instrument stepped gas price management method and system based on Internet of things
CN117238077B (en) * 2023-11-16 2024-01-23 成都秦川物联网科技股份有限公司 Ultrasonic metering instrument stepped gas price management method and system based on Internet of things

Also Published As

Publication number Publication date
CN112383597B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN115269038B (en) Stateless computing data processing method, program product and electronic device
TW200917084A (en) Metered pay-as-you-go computing experience
JP2019512126A (en) Method and system for training a machine learning system
CN111694589B (en) Upgrade package generation method, device, server and computer readable storage medium
TW200907815A (en) Computer hardware metering
CN112383597A (en) Internet of things platform and Internet of things gas meter fee settlement synchronous processing method and system
US20090198543A1 (en) License Compliance Management
CN110516463B (en) Method and apparatus for generating information
CN107251523B (en) Data storage method based on cloud service, integrity detection method and device and terminal equipment
CN111814173A (en) Work file storage method, copyright confirmation method and device
JP4378833B2 (en) Battery usage fee billing system and billing method
USRE42743E1 (en) System for authorizing functionality in adaptable hardware devices
JP2002351564A (en) Device, method and program for application providing service
CN104503862A (en) Method and device for obtaining check value of application channel package
CN109150643A (en) A kind of business processing method for detecting abnormality and device
CN111680048A (en) Aggregation task processing method, device, server and medium
CN107517166A (en) Flow control methods, device and access device
CN111899104B (en) Service execution method and device
CN111831738A (en) Method and device for storing Internet recruitment data on block chain
CN114185854A (en) Off-line billing method and system of SaaS system
CN114220222B (en) Offline prepaid electric quantity recharging method and system
CN112613970A (en) Value-added tax rate-based supplier billing control method and system
KR20120062370A (en) Real time billing service system
CN111833054A (en) Method and device for storing Internet e-commerce data on block chain
CN111831670A (en) Storage method and device related to internet comment data on block chain

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