CN108597122B - Prepaid gas reading method - Google Patents

Prepaid gas reading method Download PDF

Info

Publication number
CN108597122B
CN108597122B CN201810367061.XA CN201810367061A CN108597122B CN 108597122 B CN108597122 B CN 108597122B CN 201810367061 A CN201810367061 A CN 201810367061A CN 108597122 B CN108597122 B CN 108597122B
Authority
CN
China
Prior art keywords
reading
user
gas
balance
current
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
Application number
CN201810367061.XA
Other languages
Chinese (zh)
Other versions
CN108597122A (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.)
Chongqing Institute Of Humanities And Science
Original Assignee
Chongqing Institute Of Humanities And Science
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 Chongqing Institute Of Humanities And Science filed Critical Chongqing Institute Of Humanities And Science
Priority to CN201810367061.XA priority Critical patent/CN108597122B/en
Publication of CN108597122A publication Critical patent/CN108597122A/en
Application granted granted Critical
Publication of CN108597122B publication Critical patent/CN108597122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/06Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for prepaying basic charges, e.g. rent for meters
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/10Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with alarm or warning devices, e.g. indicating the interrupting of the supply

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Beverage Vending Machines With Cups, And Gas Or Electricity Vending Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a prepaid gas reading method, which comprises the following steps: acquiring user information and system information; reading related user information and system information, wherein different reading intervals are adopted according to different time periods: when the user balance before deducting is less than 0, reading is not carried out, the gas supply valve is closed, and when the user balance before deducting is more than 0, reading processing is carried out; updating the balance of the user before deducting the fee, judging according to the current system time, and if the next reading time interval is a busy hour reading interval in a busy period; if the reading time interval is idle, the next reading time interval is the idle reading interval. According to the method, different reading intervals are adopted according to different busy or idle time periods, the scientificity and accuracy of reading and fee deduction are improved, and the risk of malicious arrearage of a user is reduced by combining a prepayment mode. Secondly, automatic error correction: and keeping the previous reading to be compared with the current reading, and discarding the current reading when the difference is far larger than the daily normal dosage or the difference is negative.

Description

Prepaid gas reading method
Technical Field
The invention relates to the technical field of gas meters, in particular to a prepayment gas reading method.
Background
Direct-reading gas meters in the market are mostly used for wired direct reading for many years, and all the direct-reading gas meters are in a post-payment mode. The device is characterized by accurate reading and extremely low power consumption when the reading is not carried out at ordinary times. But the wire direct-reading wiring project is complex, high in cost and inconvenient to maintain, so that the popularization of the wire direct-reading wiring project is restricted. In the existing emerging wireless spread spectrum technology of the Internet of things, a wireless direct reading mechanism is introduced; the wireless direct-reading meter generally loads a reading circuit to directly read the reading on each character wheel of the counter before uploading data, and then uploads the data to the concentrator, so that the direct-reading interval is one day or a plurality of days, the power consumption of the direct-reading meter is greatly reduced, but the timeliness of the reading is lost, and particularly, under the condition that the current network meter requires to implement a prepayment mode, the reading with larger interval is difficult to reflect the real-time change of balance at the meter end, so that the prepayment mode is difficult to accurately implement in the wireless direct-reading network meter.
Disclosure of Invention
The invention aims to at least solve the technical problems in the prior art, and particularly innovatively provides a prepaid gas reading method, which comprises the following steps:
s1, obtaining user information and system information, wherein the user information comprises user identification information, user balance X before deduction and last gas reading B, the system information comprises current gas unit price A, and at least one idle time period starting time, at least one busy time starting time and an idle time reading interval are set to be △ t in a time interval0Busy hour reading interval △ t1The time period from the starting time of the idle time period to the starting time of the busy time period is the idle time period t0The time period from the busy hour starting moment to the next idle hour starting moment is a busy hour t1The idle reading interval △ t0Greater than busy hour reading interval △ t1
S2, when reading is started, reading the balance X of the user before deduction and the current gas unit price A; when X is not more than 0, closing the gas supply valve; when X is larger than 0, sending a query instruction to a gas meter of a user terminal to obtain a current gas reading C, after the current gas reading C is obtained, reading a last gas reading B and a current gas unit price A, and calculating a specific calculation formula of a user balance Y after fee deduction, wherein the specific calculation formula comprises the following steps:
Y=X-A*(C-B);
if Y is less than or equal to 0, the balance of the user is insufficient and recharging is needed, and the gas supply valve is closed;
s3, updating the user balance X before deducting fee to be equal to the user balance Y after deducting fee and reading the current time T of the system, if the current time T of the system belongs to the idle time T0The idle reading interval △ t is passed0S2 will be repeated; if the current time T of the system belongs to theBusy period t1Then the busy hour reading interval △ t is passed1S2 is repeated.
According to the method, different reading intervals are adopted according to different busy or idle time periods, the scientificity and accuracy of reading and fee deduction are improved, and the risk of malicious arrearage of a user is reduced by combining a prepayment mode.
The method comprises the following steps that the initial state of a reading switch of a gas meter of a user terminal is a dormant state, the reading switch is started after being activated by a query instruction, and the gas meter enters the dormant state after reading is finished.
The inquiry instruction is used as a mode for activating the terminal gas meter to read, so that the energy consumption of the reading circuit can be blocked when the terminal gas meter does not read, the power consumption of the terminal is reduced, and the power consumption cost is saved.
In another preferred embodiment of the present invention, the user information further includes a priority flag P, where the priority flag P takes a value of 0 or 1, P is 0 by default, when P is 0, it indicates that no special processing is required, and when any field priority flag P in the user information is 1, it indicates that the next reading interval is busy, i.e., the reading interval △ t is taken1
In the method, under the condition that special treatment is needed, the flexibility of controlling the reading interval according to different conditions is realized by adding the keyword mark and the priority mark for joint judgment.
Further, the user information further includes an early warning balance W, a priority flag P of the early warning balance W is 0 in default, and in step 2, when the user balance Y before deduction is less than or equal to W, the processor changes the priority flag P of the early warning balance W to 1.
The method considers the condition that the arrearage risk is increased when the balance of the user is not much, flexibly transforms the sampling time interval by utilizing the keyword mark and the priority mark, reduces the possibility of arrearage, and improves the real-time performance and the accuracy of fee deduction.
Further, the user information further includes a use flag U, a priority flag P of the use flag U defaults to 0, when the processor sends an inquiry instruction to the user terminal to obtain the current gas reading C, the front-end sensor detects that the user is using gas, the information that the user is using is fed back to the processor, and the processor sets the priority flag to 1.
The method considers the condition that the defaulting risk is increased when the user uses gas, so that the sampling time interval is flexibly changed by using the keyword mark and the priority mark, the defaulting possibility is reduced, and the real-time performance and the accuracy of fee deduction are improved.
Further, there is an automatic error correction step after step S2: and keeping the previous reading to be compared with the current reading, and discarding the current reading when the difference is far larger than the daily normal dosage or the difference is negative. The normal daily dosage can be determined according to actual conditions, for example, once per hour, the difference (gas dosage) cannot exceed 10. The reading error is prevented, and the reliability is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a prepaid gas reading method of the present invention;
fig. 2 is a flow chart of a preferred embodiment of a prepaid gas reading method according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the terms "mounted," "connected," and "connected" are to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, a communication between two elements, a direct connection, or an indirect connection via an intermediate medium, and specific meanings of the terms may be understood by those skilled in the art according to specific situations.
As shown in fig. 1, a prepaid gas reading method includes the following steps:
s1, obtaining user information and system information, wherein the user information comprises user identification information, user balance X before deduction and last gas reading B, the system information comprises current gas unit price A, and at least one idle time period starting time, at least one busy time starting time and an idle time reading interval are set to be △ t in a time interval0Busy hour reading interval △ t1The time period from the starting time of the idle time period to the starting time of the busy time period is the idle time period t0The time period from the busy hour starting moment to the next idle hour starting moment is a busy hour t1The idle reading interval △ t0Greater than busy hour reading interval △ t1(ii) a In this embodiment, there are two users, i.e. user a and user b, where the balance of user a before deducting the fee is 4 yuan, the balance of user b before deducting the fee is 0 yuan, the last gas reading is user a is 50, user b is 30, and the start time of busy hour is 6 every day: 00. 11: 00. 17: 00; the idle start time is 9 per day: 00. 13:00, 20: 00; the interval of busy hour reading is 15 minutes, and the interval of idle hour reading is 2 hours; namely 6 per day: 00-9: 00. 11: 00-13: 00. 17: 00-20: 00 is a busy hour period, and the reading interval is 15 minutes; the rest of each day is an idle period, and the reading interval is 2 hours.
S2, when reading is started, reading the balance X of the user before deduction and the current gas unit price A; when X is not more than 0, closing the gas supply valve; when X is larger than 0, sending a query instruction to a gas meter of a user terminal to obtain a current gas reading C, after the current gas reading C is obtained, reading a last gas reading B and a current gas unit price A, and calculating a specific calculation formula of a user balance Y after fee deduction, wherein the specific calculation formula comprises the following steps:
Y=X-A*(C-B);
if Y is less than or equal to 0, the balance of the user is insufficient and recharging is needed, and the gas supply valve is closed;
in this embodiment, if the current balance of the first user is 4 yuan, a query instruction is sent to a gas meter of a user terminal to obtain a current gas reading, and if the current gas reading is 51.3, the unit price of the current gas is 2 yuan per cube; the balance of the user after the user performs fee deduction is equal to 4-2(51.3-50) and equal to 1.4; because Y is greater than 0, the user does not need to recharge and does not need to close the gas supply valve; and if the current balance of the user B is 0 yuan, the gas supply valve is directly closed.
S3, updating the user balance X before deducting fee to be equal to the user balance Y after deducting fee and reading the current time T of the system, if the current time T of the system belongs to the idle time T0The idle reading interval △ t is passed0S2 will be repeated; if the current time T of the system belongs to the busy time period T1Then the busy hour reading interval △ t is passed1S2 is repeated. In this embodiment, the current balance of the first user is updated to 1.4 yuan, and the current time of the system is read, which is assumed to be 13: 10, in idle period, S2 is repeated after 2 hours interval of idle reading. The method comprises the following steps that the initial state of a reading switch of a gas meter of a user terminal is a dormant state, the reading switch is started after being activated by a query instruction, and the gas meter enters the dormant state after reading is finished. The present embodiment uses a ZigBee chip as a wake-up and sleep device.
In another preferred embodiment of the present invention, as shown in fig. 2, the user information further includes a priority flag P, where the priority flag P takes a value of 0 or 1, P is 0 by default, when P is 0, it indicates that no special processing is required, and when any field in the user information takes a value of 1, it indicates that the next reading interval is busy, i.e., the reading interval △ t is the next reading interval1
Further, the user information further includes an early warning balance W, a keyword flag K of the early warning balance W is 1, and a priority flag P defaults to 0, and in step 2, when the latest balance Y of the user is less than or equal to W, the processor changes the priority flag P of the early warning balance W to 1. In this embodiment, assuming that the early warning balance W is 2 yuan, when the user a finishes the fee deduction, the priority flag of the early warning balance becomes 1 because the balance is only 1.4 yuan; while the current time is in the idle period, the next reading time adds the current time to the busy interval reading, i.e., at 13: 25.
Further, the user information further includes a use flag U, a keyword flag K of the use flag U is 1, and a priority flag P is 0 by default, when the processor sends an inquiry instruction to the user terminal to obtain the current gas reading C, the front-end sensor detects that the user is using gas, and feeds back the information that the user is using to the processor, and the processor sets the priority flag to 1. In this embodiment, assuming that the balance of the user a is greater than the early warning balance by 2 yuan, when gas is used in an idle period, the gas meter at the user terminal changes in counting, the hall sensor at the front end generates hall potential, the hall potential is converted into an alternating electrical signal to notify the reading processor, and meanwhile, the reading processor reads the current time, and the next reading time is the current time plus the busy hour reading interval of 15 minutes.
In the present embodiment, after step S2, the method further includes an automatic error correction step: and keeping the previous reading to be compared with the current reading, and discarding the current reading when the difference is far larger than the daily normal dosage or the difference is negative. The normal daily dosage can be determined according to actual conditions, for example, once per hour, the difference (gas dosage) cannot exceed 10. The reading error is prevented, and the reliability is improved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (6)

1. A prepaid gas reading method is characterized by comprising the following steps:
s1, obtaining user information and system information, wherein the user information comprises user identification information, user balance X before deduction and last gas reading B, the system information comprises current gas unit price A, and at least one idle time period starting time, at least one busy time starting time and an idle time reading interval are set to be △ t in a time interval0Busy hour reading interval △ t1The time period from the starting time of the idle time period to the starting time of the busy time period is the idle time period t0The time period from the busy hour starting moment to the next idle hour starting moment is a busy hour t1The idle reading interval △ t0Greater than busy hour reading interval △ t1
S2, when reading is started, reading the balance X of the user before deduction and the current gas unit price A; when X is not more than 0, closing the gas supply valve; when X is larger than 0, sending a query instruction to a gas meter of a user terminal to obtain a current gas reading C, after the current gas reading C is obtained, reading a last gas reading B and a current gas unit price A, and calculating a user balance Y after fee deduction, wherein the specific calculation formula is as follows:
Y=X-A*(C-B);
if Y is less than or equal to 0, the balance of the user is insufficient and recharging is needed, and the gas supply valve is closed;
s3, updating the user balance X before deducting fee to be equal to the user balance Y after deducting fee and reading the current time T of the system, if the current time T of the system belongs to the idle time T0The idle reading interval △ t is passed0S2 will be repeated; if the current time T of the system belongs to the busy time period T1Then the busy hour reading interval △ t is passed1S2 is repeated.
2. The prepaid gas reading method according to claim 1, wherein the user terminal gas meter reading switch is initialized to a dormant state, the reading switch is turned on after being activated by the query command, and the user terminal gas meter reading switch enters the dormant state after reading is finished.
3. The prepaid gas reading method according to claim 1, wherein the user information further includes a priority flag P, the priority flag P is set to 0 or 1, the priority flag P is set to 0 by default, when P is 0, it indicates that no special processing is required, and when any field priority flag P in the user information is set to 1, it indicates that the reading interval △ t is taken as busy when the next reading interval is taken as busy1
4. The prepaid gas reading method according to claim 1, wherein the user information further includes an early warning balance W, a priority flag P of the early warning balance W is 0 in default, and in step 2, when a user balance Y before the user deducts fees is less than or equal to W, the processor changes the priority flag P of the early warning balance W to 1.
5. The prepaid gas reading method according to claim 1, wherein the user information further includes a use flag U, a priority flag P of the use flag U defaults to 0, when the processor sends an inquiry instruction to the user terminal to obtain the current gas reading C, the front-end sensor detects that the user is using gas, and feeds back the information that the user is using to the processor, and the processor sets the priority flag to 1.
6. The prepaid gas reading method according to claim 1, wherein there is an automatic error correction step after step S2: and keeping the previous reading to be compared with the current reading, and discarding the current reading when the difference is far larger than the daily normal dosage or the difference is negative.
CN201810367061.XA 2018-04-23 2018-04-23 Prepaid gas reading method Active CN108597122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810367061.XA CN108597122B (en) 2018-04-23 2018-04-23 Prepaid gas reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810367061.XA CN108597122B (en) 2018-04-23 2018-04-23 Prepaid gas reading method

Publications (2)

Publication Number Publication Date
CN108597122A CN108597122A (en) 2018-09-28
CN108597122B true CN108597122B (en) 2020-08-18

Family

ID=63613980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810367061.XA Active CN108597122B (en) 2018-04-23 2018-04-23 Prepaid gas reading method

Country Status (1)

Country Link
CN (1) CN108597122B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005043979A (en) * 2003-07-23 2005-02-17 Yazaki Corp Gas supply controller, gas use enabling time display unit, gas use enabling time display method, and program therefor
CN202948512U (en) * 2012-12-25 2013-05-22 山东思达特测控设备有限公司 Acquisition controller for gas prepayment
CN103164903A (en) * 2013-01-03 2013-06-19 大庆英辰创新科技有限公司 Gas meter with gas usage amount detail data generation and storage function
CN204576178U (en) * 2015-05-21 2015-08-19 成都千嘉科技有限公司 A kind of combustion gas pre-payment remote detection and control terminal
CN105279856A (en) * 2015-10-16 2016-01-27 北京恒华伟业科技股份有限公司 Electricity billing method and system
CN105788089A (en) * 2016-02-03 2016-07-20 吴江港华燃气有限公司 Gas meter data collection method
CN206146482U (en) * 2016-07-26 2017-05-03 上海真兰仪表科技股份有限公司 Adopt loRa spread spectrum wireless remote -transmitting fuel gas meter of photoelectrical technique reading
CN107464359A (en) * 2017-08-03 2017-12-12 苏州燃气集团有限责任公司 The processing method and system of a kind of prepayment information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005043979A (en) * 2003-07-23 2005-02-17 Yazaki Corp Gas supply controller, gas use enabling time display unit, gas use enabling time display method, and program therefor
CN202948512U (en) * 2012-12-25 2013-05-22 山东思达特测控设备有限公司 Acquisition controller for gas prepayment
CN103164903A (en) * 2013-01-03 2013-06-19 大庆英辰创新科技有限公司 Gas meter with gas usage amount detail data generation and storage function
CN204576178U (en) * 2015-05-21 2015-08-19 成都千嘉科技有限公司 A kind of combustion gas pre-payment remote detection and control terminal
CN105279856A (en) * 2015-10-16 2016-01-27 北京恒华伟业科技股份有限公司 Electricity billing method and system
CN105788089A (en) * 2016-02-03 2016-07-20 吴江港华燃气有限公司 Gas meter data collection method
CN206146482U (en) * 2016-07-26 2017-05-03 上海真兰仪表科技股份有限公司 Adopt loRa spread spectrum wireless remote -transmitting fuel gas meter of photoelectrical technique reading
CN107464359A (en) * 2017-08-03 2017-12-12 苏州燃气集团有限责任公司 The processing method and system of a kind of prepayment information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
5位直读燃气表数据采集节点的低功耗设计;王建强,许鹏,冯军,杨永杰,谢正光;《自动化仪表》;20140630;第35卷(第6期);61-64 *

Also Published As

Publication number Publication date
CN108597122A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN107271764B (en) Method and device for detecting abnormal power consumption of electrical appliance
CN105092011B (en) Weighing device calibration system and calibration method thereof
CN100583644C (en) Integrating A/D convertion method and its A/D converter
JP2005513900A5 (en)
EP2771975A1 (en) Frequency shift keying modulation and demodulation
CN103699029B (en) A kind of energy consumption data acquisition terminal
CN101256086A (en) Charging method and charging device for fixed air-quantity temperature difference type central air-conditioning
CN106937368A (en) The secondary wake/sleep method of low power loss communication node, node and system
CN105142210A (en) Synchronous calibration method for real-time clocks of wireless sensor network and sensors
CN106504504A (en) The data integrated harvester of water, electricity, gas table
CN103822667A (en) Temperature-humidity acquisition system based on Bluetooth technology
CN201637516U (en) Integral electromagnetic heat meter
CN108597122B (en) Prepaid gas reading method
CN112020031A (en) Low-power consumption thing allies oneself with communication device based on wireless awakening of low frequency and wiFi
KR101057807B1 (en) Flowmeter
CN206331579U (en) LoRa universal nodes
CN103337909A (en) Intelligent power consumption management method based on Internet of Things
CN202434049U (en) Water meter data acquirer
CN207379566U (en) Remote control intellectual water meter
GB2581395A (en) Monitoring apparatus, system and method
CN114070759A (en) Measurement transmission method enabling network load to be reduced
CN201066532Y (en) Measuring device with remote meter reading function
CN108022418A (en) Meter reading system
US11250523B2 (en) Expandable combination electric meter
CN208189021U (en) A kind of water meter reading wireless data acquisition device based on narrowband

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