CN103164903B - Gas meter with gas usage amount detail data generation and storage function - Google Patents

Gas meter with gas usage amount detail data generation and storage function Download PDF

Info

Publication number
CN103164903B
CN103164903B CN201310000702.5A CN201310000702A CN103164903B CN 103164903 B CN103164903 B CN 103164903B CN 201310000702 A CN201310000702 A CN 201310000702A CN 103164903 B CN103164903 B CN 103164903B
Authority
CN
China
Prior art keywords
combustion gas
use amount
gas use
storage unit
day
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
CN201310000702.5A
Other languages
Chinese (zh)
Other versions
CN103164903A (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.)
Shanghai Yingchen Information Technology Co.,Ltd.
Original Assignee
DAQING ENCH INNOVATION TECHNOLOGY 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 DAQING ENCH INNOVATION TECHNOLOGY Co Ltd filed Critical DAQING ENCH INNOVATION TECHNOLOGY Co Ltd
Priority to CN201310000702.5A priority Critical patent/CN103164903B/en
Publication of CN103164903A publication Critical patent/CN103164903A/en
Application granted granted Critical
Publication of CN103164903B publication Critical patent/CN103164903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measuring Volume Flow (AREA)

Abstract

A gas meter with a gas usage amount detail data generation and storage function mainly aims to solve the problem that an existing gas meter cannot effectively support multistep charging or time-sharing charging. The gas meter with the gas usage amount detail data generation and storage function is characterized in that the gas meter is provided with a clock module, a gas usage amount detail storage module and a program storage unit. The gas usage amount detail storage module comprises a monthly collection and storage unit, a daily collection and storage unit, and a daily detail storage unit. The clock module is controlled by a microprogrammed control unit (MCU) to provide the units of the gas usage amount detail storage module with timestamp signals. The MCU is a central controller with the following functions: being capable of receiving signals from a pulse metering module, calling stored instructions, and generating and storing gas usage amount detail data under the control of the instructions. The gas meter can generate the gas usage amount detail data in the meter, can charge in a system after acquiring the detail data, and achieves the multistep charging and the time-sharing charging for gas.

Description

A kind of gas meter, flow meter with the generation of combustion gas use amount detailed data and memory function
Technical field
The present invention relates to a kind of gas meter, flow meter.
Background technology
Usually the metering adopted in current gas (piped gas, rock gas etc.) industry and charging method have following several: 1, adopt mechanical gas table to be metering outfit, use the mode of manually carrying out checking meter, and according to checking meter number and this difference counted of checking meter last time, as use amount, be multiplied by unit price, this billing amount can be formed; 2, IC-card gas meter, flow meter is adopted to carry out measuring and the prepayment mode of charging.Namely adopt the gas consumption that prestores when reaching the quantitative model carrying out bales catch after unit reduces amount and subtract, namely when user uses combustion gas to reach a unit amount of reducing, gas meter, flow meter will cut a unit amount of reducing, automatically until pre-stored values exhausts from pre-stored values; 3, adopt that remote transmitting gas meter carries out measuring, the mode of charging.Namely be with mechanical gas table for base table, increase communication module, using the accumulative total on the communication modes transmission table such as wired, wireless as metering and metering data, realize the Long-distance Control to gas meter, flow meter simultaneously; 4, code-type gas meter, flow meter is adopted to carry out measuring and the mode of charging.Namely be with mechanical gas table for base table, increase code counter and numeric keypad, user can key-press input code string, reaches the object controlling gas meter, flow meter.This mode, carry out measuring substantially identical with the mode of charging with IC card type gas meter, flow meter, difference substitutes IC-card with code string, as transmission and the control medium of metering, metering data.Each more own excellent, shortcomings of these gas meter, flow meters above, but but there is the problem of a general character: these gas meter, flow meters can not carry out gas company in the urgent need to amount of money charging, can not effectively valuate and time-shared charge by ladder support simultaneously.In order to address this problem, having had now some areas to adopt local charging type gas meter, flow meter, is namely by pre-set programs in gas meter, flow meter, by program setting accounting regime and corresponding charging rate.But can not make adaptations in time this gas meter, flow meter carries out price adjustment during in gas company, need to carry out large-scale update routine, therefore, the strain property of the program is lower.
Summary of the invention
In order to solve the technical matters mentioned in background technology, the invention provides a kind of gas meter, flow meter with the generation of combustion gas use amount detailed data and memory function, this kind of gas meter, flow meter can in table the detailed data of generating gas use amount, charging can be carried out in system after the Fare Collection System of gas company obtains these details, realize the staged charging to combustion gas and time-shared charge therefore, it is possible to effective.
Technical scheme of the present invention is: this kind has the gas meter, flow meter of the generation of combustion gas use amount detailed data and memory function, the mechanical part comprising gas meter, flow meter and the MCU being arranged in gas meter, flow meter, pulse measurement module, valve control module, storer and data input/output interface conventional gas table component units, said data input/output interface comprises IC-card interface, cable network data transmit port and wireless network data transmit port etc.In addition, the unique distinction of this programme is:
Described gas meter, flow meter also has a clock module, and, also there is the detailed memory module of a combustion gas use amount and the program storage unit (PSU) storing the generation of combustion gas use amount detailed data and storage instruction in which memory;
Wherein, the detailed memory module of described combustion gas use amount comprise that the moon gathers storage unit, day gathers storage unit and day detailed storage unit;
Described clock module provides time stamp signal to the unit in the detailed memory module of combustion gas use amount under the control of MCU;
Described MCU is a central controller with following function: receive the signal coming from pulse measurement module, combustion gas use amount detailed data in calling program storage unit generates and stores instruction, and generating gas use amount detailed data information under the control of this instruction is also stored in the detailed memory module of combustion gas use amount.
On such scheme basis, following prioritization scheme can be obtained:
The described combustion gas use amount moon gathers storage unit, combustion gas use amount day gathers storage unit and combustion gas use amount day detailed storage unit all adopt timestamp to add the two parameter partitioned organization of combustion gas use amount assignment, described timestamp adopts the pattern of time-division date;
Described MCU calls combustion gas use amount detailed data and generates and complete controlling functions in accordance with the following steps after storage instruction:
First, compared with the timestamp that the timestamp of up-to-date generation and the combustion gas use amount moon are gathered the last item record in storage unit, if not the same January, then gather by the combustion gas use amount moon in storage unit create a new record, combustion gas use amount assignment for described in reduce amount, timestamp assignment is affiliated clock signal; If the same January, then upgrade the last item record gathering storage unit the combustion gas use amount moon, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and described cumulative sum of reducing amount;
Secondly, compared with the timestamp timestamp of up-to-date generation and combustion gas use amount day being gathered the last item record of storage unit, if not same date, then gather combustion gas use amount day in storage unit create a new record, combustion gas use amount assignment for described in reduce amount, timestamp assignment is affiliated clock signal; If same date, then upgrade the last item record gathering storage unit combustion gas use amount day, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and described cumulative sum of reducing amount;
Finally, compared with the timestamp of the last item record of the timestamp of up-to-date generation and combustion gas use amount day detailed storage unit, in section at one time, then in combustion gas use amount day detailed storage unit, create a new record, combustion gas use amount assignment for described in reduce amount, timestamp assignment is affiliated clock signal; If section at one time, then upgrade the last item record of combustion gas use amount day detailed storage unit, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and described cumulative sum of reducing amount; The described time period is the minimum time cycle that combustion gas uses detailed data generation.
The present invention has following beneficial effect: the present invention proposes a kind of gas meter, flow meter adopting new metering method, and under this kind of mode, gas quantity user used is stored in gas meter, flow meter by recording detailed mode according to the time.Like this, the data detail be stored in gas meter, flow meter just can be taken away by the data input/output terminal of gas meter, flow meter by gas company or user, the mode of taking-up data can be IC-card also can be other communication mode, like this, the continuous data that gas company obtains is exactly that user uses the detailed and moon day of combustion gas detail.Afterwards, charging can be carried out in system after the Fare Collection System of gas company obtains these details.Therefore, also just can realize ladder charging and time-shared charge, simultaneously when adjustment occurs gas price, also can accomplish synchronously to carry out.This kind of gas meter, flow meter can adopt prepayment mode and generate the parallel pattern of detailed mode, directly can transform on existing gas meter, flow meter, have stronger application value.
Accompanying drawing illustrates:
Fig. 1 is the composition frame chart of gas meter, flow meter of the present invention.
Fig. 2 is in optimal enforcement scheme 1, and MCU of the present invention controls the process flow diagram that relevant ingredient generates and stores combustion gas use amount detailed data.
Fig. 3 is in optimal enforcement scheme 2, and MCU of the present invention controls the process flow diagram that relevant ingredient generates and stores combustion gas use amount detailed data.
Embodiment:
Below in conjunction with accompanying drawing, the invention will be further described:
Fig. 1 is the composition frame chart of gas meter, flow meter control section of the present invention, modifies gas meter, flow meter mechanical part because not relating to, so do not provide in this manual for the mechanical part structural drawing of gas meter, flow meter.As shown in the figure, this kind has the gas meter, flow meter of the generation of combustion gas use amount detailed data and memory function, the conventional component such as the mechanical part comprising gas meter, flow meter and the MCU being arranged in gas meter, flow meter, pulse measurement module, valve control module, storer and IC-card interface, its unique distinction is:
Described gas meter, flow meter also has a clock module, and, also there is the detailed memory module of a combustion gas use amount and the program storage unit (PSU) storing the generation of combustion gas use amount detailed data and storage instruction in which memory;
Wherein, the detailed memory module of described combustion gas use amount comprises and gathers storage unit the combustion gas use amount moon, combustion gas use amount day gathers storage unit and combustion gas use amount day detailed storage unit;
Described clock module under the control of MCU when reach reduce amount after provide time stamp signal to the unit in the detailed memory module of combustion gas use amount;
Described MCU has following function, the signal coming from described pulse measurement module can be received, reach one setting reduce amount after, call described combustion gas use amount detailed data generate and store instruction, generating gas use amount detailed data information in the detailed memory module of combustion gas use amount also stores.
During concrete enforcement, the embodiment 1 of optimization is:
The described combustion gas use amount moon gathers storage unit, combustion gas use amount day gathers storage unit and combustion gas use amount day detailed storage unit all adopt timestamp to add the two parameter partitioned organization of combustion gas use amount assignment, described timestamp adopts the pattern of time-division date;
Described MCU calls combustion gas use amount detailed data and generates and have following function after storage instruction:
First, compared with the timestamp that the timestamp of up-to-date generation and the combustion gas use amount moon are gathered the last item record in storage unit, if not the same January, then gather by the combustion gas use amount moon in storage unit create a new record, combustion gas use amount assignment for described in reduce amount, timestamp assignment is affiliated clock signal; If the same January, then upgrade the last item record gathering storage unit the combustion gas use amount moon, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and described cumulative sum of reducing amount;
Secondly, compared with the timestamp timestamp of up-to-date generation and combustion gas use amount day being gathered the last item record of storage unit, if not same date, then gather combustion gas use amount day in storage unit create a new record, combustion gas use amount assignment for described in reduce amount, timestamp assignment is affiliated clock signal; If same date, then upgrade the last item record gathering storage unit combustion gas use amount day, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and described cumulative sum of reducing amount;
Finally, compared with the timestamp of the last item record of the timestamp of up-to-date generation and combustion gas use amount day detailed storage unit, in section at one time, then in combustion gas use amount day detailed storage unit, create a new record, combustion gas use amount assignment for described in reduce amount, timestamp assignment is affiliated clock signal; If section at one time, then upgrade the last item record of combustion gas use amount day detailed storage unit, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and described cumulative sum of reducing amount; The described time period is the minimum time cycle that combustion gas uses detailed data generation.
Fig. 2 is the process flow diagram that MCU of the present invention controls that relevant ingredient generates and stores combustion gas use amount detailed data.During concrete enforcement, MCU, pulse measurement module, LCD MODULE, valve control module, power detecting module, warning circuit, IC-card interface etc. are exactly the existing element in the XX model gas meter, flow meter of Beijing Chun Tang Science and Technology Ltd. production.
Below, several specific embodiments that the present invention obtains according to optimal enforcement scheme 1 are provided:
Example 1: the minimum time cycle using detailed data to generate the combustion gas on gas meter, flow meter and time period are set to 5 minutes, and pulse measurement module altogether have issued 3120 pulse signals to MCU and central control unit on January 10th, 2012 between 9:00 to 9:30.As a rule 1000 pulse signals are 1 and reduce amount, and respective user uses 1 cubic metre of gas flow, then in this gas meter, flow meter, each building block incites somebody to action cooperating in such a way:
whole 9 time ~ 9 time 03 point of period, have issued 1000 pulse signals to MCU because pulse measurement module is accumulative; MCU sends one and reduces amount to the detailed memory module of combustion gas use amount, simultaneously by clock signal that is 10 days 9 January in 2012 time 03 point be also sent to the detailed memory module of combustion gas use amount.Under the control of MCU, first, the timestamp gathering the last item record of storage unit the moon relatively in the detailed memory module of combustion gas use amount, namely during 1 day 7 January in 2012 02 point, with new timestamp, namely during 10 days 9 January in 2012 03 point, after confirming as the same January, more crescent gathers the last item record of storage unit, and combustion gas use amount adds up 1 cubic metre of gas flow, rises to 102 cubic metres; Then, relatively gather the timestamp of the last item record of storage unit day, namely during 10 days 6 January in 2012 52 points, with new timestamp, namely during 10 days 9 January in 2012 03 point, really admit a fault same date, then create a new record gathering day in storage unit, when timestamp is 10 days 9 January in 2012 03 point, combustion gas use amount is 1 cubic metre of gas flow; Finally, compare the timestamp of the last item record of day detailed storage unit, namely during 10 days 8 January in 2012 57 points with new timestamp, namely during 10 days 9 January in 2012 03 point, really admit a fault the same time period, then in day detailed storage unit, create a new record, when timestamp is 10 days 9 January in 2012 03 point, combustion gas use amount is 1 cubic metre of gas flow.
9 time 03 point ~ 9 time 09 point of period, 1000 pulse signals are sent to MCU because pulse measurement module is accumulative again during this, then MCU have sent one and reduces amount to the detailed memory module of combustion gas use amount, simultaneously by clock signal that is 10 days 9 January in 2012 time 09 point be also sent to the detailed memory module of combustion gas use amount.
Under the control of MCU, first, the timestamp gathering the last item record of storage unit the moon relatively in the detailed memory module of combustion gas use amount, namely during 1 day 7 January in 2012 02 point, with new clock signal, namely during 10 days 9 January in 2012 09 point, after confirming as the same January, more crescent gathers the last item record of storage unit, and combustion gas use amount adds up 1 cubic metre of gas flow, rises to 103 cubic metres; Afterwards, relatively gather the timestamp of the last item record of storage unit day, namely during 10 days 6 January in 2012 52 points, with new clock signal, namely during 10 days 9 January in 2012 09 point, after being confirmed to be same date, the last item record of [day gathers storage unit _ 204] is upgraded, combustion gas use amount adds up 1 cubic metre of gas flow, rises to 2 cubic metres; Finally, compare the timestamp of the last item record of day detailed storage unit, namely during 10 days 9 January in 2012 03 point with new clock signal, namely during 10 days 9 January in 2012 09 point, really admit a fault the same time period, then in day detailed storage unit, create a new record, when timestamp is 10 days 9 January in 2012 09 point, combustion gas use amount is 1 cubic metre of gas flow.
when 9 09 point ~ 9 time 23 points of periods.The module of pulse measurement is during this period accumulative again have issued 1000 pulse signals to MCU, MCU sends one and reduces amount to the detailed memory module of combustion gas use amount, simultaneously by clock signal that is 10 days 9 January in 2012 time 23 points be also sent to the detailed memory module of combustion gas use amount.Under the control of MCU, first, relatively the moon gathers the timestamp of the last item record of storage unit, namely during 1 day 7 January in 2012 02 point, with new clock signal, namely during 10 days 9 January in 2012 23 points, confirm as the same January, more crescent gathers the last item record of storage unit, and combustion gas use amount adds up 1 cubic metre of gas flow, rises to 104 cubic metres; Then, relatively gather the timestamp of the last item record of storage unit day, namely during 10 days 9 January in 2012 03 point with new clock signal, namely during 10 days 9 January in 2012 23 points, be confirmed to be same date, upgrade and gather the last item record of storage unit day, combustion gas use amount adds up 1 cubic metre of gas flow, rises to 3 cubic metres; Finally, compare the timestamp of the last item record of day detailed storage unit, namely during 10 days 9 January in 2012 03 point with new clock signal, namely during 10 days 9 January in 2012 23 points, really admit a fault the same time period, then in day detailed storage unit, create a new record, when timestamp is 10 days 9 January in 2012 23 points, combustion gas use amount is 1 cubic metre of gas flow.
9 time 23 points ~ 9 time 30 points of periods, pulse measurement module is accumulative altogether have issued 120 pulse signals to MCU, and user stops using afterwards.Reduce amount owing to not reaching, then MCU does not send and reduces amount to the detailed memory module of combustion gas use amount, and this pulse signal quantity is stored in storer to transfer for MCU when user uses next time.
After the above-mentioned life cycle of user terminates, the record in the detailed memory module of combustion gas use amount is as follows: wherein, day detailed storage unit, the data record that gathers storage unit day and gather storage unit the moon is respectively as shown in table 1, table 2 and table 3:
timestamp combustion gas use amount
.。。 。。。
2012.01.10 09:03 1
2012.01.10 09:09 1
2012.01.10 09:23 1
Table 1
timestamp combustion gas use amount
.。。 。。。
2012.01.10 09:03 3
Table 2
timestamp combustion gas use amount
.。。 。。。
2012.01.01 07:02 104
Table 3
Provide another kind of embodiment below, namely MCU needs to send to the detailed memory module of combustion gas use amount after each minimum time end cycle to reduce amount; Clock signal is sent to the detailed memory module of combustion gas use amount simultaneously, like this, the error in dipping in the time period can be reduced to a certain extent.
Example 2: the minimum time cycle using detailed data to generate the combustion gas on gas meter, flow meter and time period are set to 5 minutes, pulse measurement module altogether have issued 3420 pulse signals to MCU and central control unit on January 10th, 2012 between 9:00 to 9:30, then in this gas meter, flow meter, each building block incites somebody to action cooperating in such a way:
whole 9 time ~ 9 time 05 point of period, pulse measurement module is accumulative altogether have issued 1300 pulse signals to MCU, and after reaching 1000 pulse signals, namely MCU sends one and reduce amount to the detailed memory module of combustion gas use amount; Simultaneously by clock signal that is 10 days 9 January in 2012 time 05 point be also sent to the detailed memory module of combustion gas use amount.Under the control of MCU, first, relatively the moon gathers the timestamp of the last item record of storage unit, namely during 1 day 7 January in 2012 05 point, with new clock signal, namely during 10 days 9 January in 2012 05 point, after confirming as the same January, more crescent gathers the last item record of storage unit, and combustion gas use amount adds up 1 cubic metre of gas flow, rises to 102 cubic metres; Then, relatively gather the timestamp of the last item record of storage unit day, namely during 10 days 6 January in 2012 55 points, with new clock signal, namely during 10 days 9 January in 2012 05 point, really admit a fault same date, then create a new record gathering day in storage unit, when timestamp is 10 days 9 January in 2012 05 point, combustion gas use amount is 1 cubic metre of gas flow; Finally, compare the timestamp of the last item record of day detailed storage unit, namely during 10 days 9 January in 2012 00 point with new clock signal, namely during 10 days 9 January in 2012 05 point, really admit a fault the same time period, in day detailed storage unit, create a new record, when timestamp is 10 days 9 January in 2012 05 point, combustion gas use amount is 1 cubic metre of gas flow.Meanwhile, residue 300 pulse signal quantity are stored in storer to transfer for MCU after the next time period to be achieved.
9 time 06 point ~ 9 time 10 points of periods, during this period, accumulative the sending after the pulse signal in this time period and remaining pulse signal in the upper time period add up to MCU, MCU by 900 pulse signals of pulse measurement module reaches 1200 pulse signals.MCU sends one and reduces amount to the detailed memory module of combustion gas use amount; Simultaneously by clock signal that is 10 days 9 January in 2012 time 10 points be also sent to the detailed memory module of combustion gas use amount.Under the control of MCU, first, relatively the moon gathers the timestamp of the last item record of storage unit, namely during 1 day 7 January in 2012 05 point, with new clock signal, namely during 10 days 9 January in 2012 10 points, confirm as the same January, more crescent gathers the combustion gas use amount in the last item record of storage unit, and combustion gas use amount is added to 1 cubic metre of gas flow, rises to 103 cubic metres; Then, relatively gather the timestamp of the last item record of storage unit day, namely during 10 days 6 January in 2012 55 points, with new clock signal, namely during 10 days 9 January in 2012 10 points, be confirmed to be same date, upgrade the last item record gathering storage unit day, combustion gas use amount adds up 1 cubic metre of gas flow, rises to 2 cubic metres; Finally, compare the timestamp of the last item record of day detailed storage unit, namely during 10 days 9 January in 2012 05 point, with new clock signal, namely during 10 days 9 January in 2012 10 points, really admit a fault the same time period, in day detailed storage unit, create a new record, when timestamp is 10 days 9 January in 2012 10 points, combustion gas use amount is 1 cubic metre of gas flow.
Meanwhile, residue 200 pulse signal quantity are stored in storer to transfer for MCU after the next time period to be achieved
when 9 11 points to 9 time 15 points of periods.Pulse measurement module is accumulative sends 300 pulse signals to MCU, MCU to transfer in storer remaining 200 pulse signals and its cumulative after do not reach yet and reduce amount, cumulative pulse signal quantity is stored in transfer for MCU after the next time period to be achieved in storer by MCU, and in this time period, MCU does not send and reduces amount.
when 9 16 points ~ 9 time 20 points of periods.Pulse measurement module is accumulative sends 300 pulse signals to MCU, MCU to transfer in storer remaining 500 pulse signals and its cumulative after do not reach yet and reduce amount, 800 cumulative pulse signal quantity are stored in transfer for MCU after the next time period to be achieved in storer by MCU, and in this time period, MCU does not send and reduces amount.
when 9 21 points ~ 9 time 25 points of periods.Pulse measurement module is accumulative send 500 pulse signals to MCU, MCU transfer remaining 800 pulse signals in storer cumulative with it after reach and reduce amount, MCU sends one and reduces amount to combustion gas use amount detail memory module; Simultaneously by clock signal that is 10 days 9 January in 2012 time 25 points be also sent to the detailed memory module of combustion gas use amount.Under the control of MCU, first, relatively the moon gathers the timestamp of the last item record of storage unit, namely during 1 day 7 January in 2012 05 point with new clock signal, namely during 10 days 9 January in 2012 25 points, confirm as the same January, more crescent gathers the last item record of storage unit, combustion gas use amount adds up 1 cubic metre of gas flow, rises to 104 cubic metres; Then, compare the timestamp of the last item record gathering storage unit day, be confirmed to be same date, upgrade and gather the last item record of storage unit day, combustion gas use amount adds up 1 cubic metre of gas flow, rises to 3 cubic metres; Finally, compare the timestamp of the last item record of day detailed storage unit, namely during 10 days 9 January in 2012 10 points with new clock signal, namely during 10 days 9 January in 2012 25 points, really admit a fault the same time period, in day detailed storage unit, create a new record, when timestamp is 10 days 9 January in 2012 25 points, combustion gas use amount is 1 cubic metre of gas flow.Remaining 300 pulse signal quantity are stored in storer to transfer for MCU after the next time period to be achieved by MCU.
when 9 26 ~ 9 time 30 points of periods.Pulse measurement module is accumulative to be sent 120 pulse signals and not to send to MCU, MCU and reduce amount.
After the above-mentioned life cycle of user terminates, the record in the detailed memory module of combustion gas use amount is as follows: wherein, day detailed storage unit, the data record that gathers storage unit day and gather storage unit the moon is respectively as shown in table 4, table 5 and table 6:
timestamp combustion gas use amount
.。。 。。。
2012.01.10 09:05 1
2012.01.10 09:10 1
2012.01.10 09:25 1
Table 4
timestamp combustion gas use amount
.。。 。。。
2012.01.10 09:05 3
Table 5
timestamp combustion gas use amount
.。。 。。。
2012.01.01 07:05 104
Table 6
In addition, when specific implementation, if do not consider the storage space shared by data, during combustion gas use amount then in generating gas use amount day detailed storage unit, accumulative consumption instead of current period consumption can be recorded, after end cycle so in example 1, day detailed storage unit, the data record that gathers storage unit day and gather storage unit the moon is then respectively as shown in table 7, table 8 and table 9:
timestamp combustion gas use amount
.。。 。。。
2012.01.10 09:03 102
2012.01.10 09:09 103
2012.01.10 09:23 104
Table 7
timestamp combustion gas use amount
.。。 。。。
2012.01.10 09:03 104
Table 8
timestamp combustion gas use amount
.。。 。。。
2012.01.01 07:02 104
Table 9
It is more than the detailed description to optimal enforcement scheme 1.Provide optimal enforcement scheme 2 below, concrete scheme is described below: gather storage unit by the described moon, gather storage unit day and adopt timestamp to add the two parameter partitioned organization of combustion gas use amount assignment, described timestamp adopt year, month, day, time and point pattern; Described day detailed storage unit adopt initial time stamp, termination time stamp adds three parameter partitioned organizations of combustion gas use amount assignment, described timestamp adopt year, month, day, time and point pattern;
Described MCU, after user's valve opening, receive come from pulse measurement module pulse signal as commencing signal, and the combustion gas use amount detailed data simultaneously in calling program storage unit generates and stores instruction, and under the control of this instruction, MCU performs following steps:
Current time signal is obtained from described clock module;
In day detailed storage unit, create a new record, initial time stamp is current time signal, and termination time stamp and combustion gas use amount assigned area are sky;
The accumulative metrical pulse quantity received;
Described MCU, after user closes valve, receives the end signal coming from pulse measurement module, and the combustion gas use amount detailed data in calling program storage unit generates and stores instruction, and under the control of this instruction, MCU performs following steps in order:
Current time signal is obtained from described clock module;
The metrical pulse quantity of accumulative reception is decomposed into 2 parts, is respectively the integral multiple and not enough remaining sum of reducing amount; Described integral multiple of reducing amount is as new combustion gas use amount, and described not enough remaining sum is stored in corresponding stored unit;
Upgrade day detailed storage unit the last item record, termination time stamp is current time and combustion gas use amount assignment is new combustion gas use amount;
The relatively timestamp of day collection unit the last item record, if not same date, then in day collection unit, create a new record, timestamp is current time, and combustion gas use amount assignment is new combustion gas use amount; If same date, then upgrade the last item record in day collection unit, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and the accumulated value of described new combustion gas use amount;
The relatively timestamp of moon collection unit the last item record, if not the same January, then in moon collection unit, create a new record, timestamp is current time, and combustion gas use amount assignment is new combustion gas use amount; If the same January, then more the last item record in crescent collection unit, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and the accumulated value of described new combustion gas use amount.
The process flow diagram of above-mentioned optimal enforcement scheme 2 as shown in Figure 3.Provide 1 example specifically implemented according to the program below.
Example 3: certain gas meter, flow meter respectively on January 10th, 2012 9:03 to 9:17 have issued 2700 pulse signals (every 1000 pulse signals are 1 and reduce amount, 1 cubic metre of gas flow) continuously; On January 10th, 2012 9:25 to 9:29 have issued 1600 pulse signals continuously, then in this gas meter, flow meter, each building block will cooperating in such a way:
when 9 03 point, user's valve opening uses combustion gas, when pulse measurement module sends enabling signal obtains in clock module clock signal 10 days 9 January in 2012 to MCU, MCU 3 points as current time; In day detailed storage unit, create a new record, when initial time stamp is 10 days 9 January in 2012 03 point, termination time stamp is for empty, and combustion gas use amount be sky;
pulse measurement module continues to send pulse signal and is stored into step-by-step counting storage unit to after MCU, MCU return pulse signal also counting;
when 9 17 points, user closes valve, and pulse measurement module sends end signal and stops counting to MCU, MCU, and receive 2700 pulse signals are decomposed into two parts: 2000 pulse signals are converted to 2 and reduce amount, remain 700 pulse signals and are stored into step-by-step counting storage unit; When MCU obtains clock signal 10 days 9 January in 2012 in clock module 17 points as current time; Upgrade the last item record in day detailed storage unit, when initial time stamp is 10 days 9 January in 2012 03 point, when the termination time, stamp was 10 days 9 January in 2012 17 points, combustion gas use amount is 2 and reduces amount, i.e. 2 cubic metres of gas flows; By during current time 10 days 9 January in 2012 during 17 points of timestamp 9 days 20 January in 2012 with the last item record gathered day in storage unit compared with in the of 52 points, really admit a fault same date, gather day in storage unit create a new record, when timestamp is 10 days 9 January in 2012 17 points, combustion gas use amount is 2 cubic metres of gas flows; By during current time 10 days 9 January in 2012 during 17 points of timestamp 10 days 6 January in 2012 with the last item record gathered by the moon in storage unit compared with in the of 52 points, be confirmed to be the same January, more crescent gathers the last item record in storage unit, when time stamp setting is 10 days 9 January in 2012 17 points, combustion gas use amount adds up 2 cubic metres of gas flows, is updated to 104 cubic metres by 102 cubic metres.
when 9 25 points, user is valve opening again.When MCU obtains current clock signal 10 days 9 January in 2012 after 25 points, in day detailed storage unit, create a new record, when initial time stamp is 10 days 9 January in 2012 25 points, termination time stamp is for empty, and combustion gas use amount be sky;
when 9 25 points ~ 9 time 29 points, the lasting gas of user, pulse measurement module continues to send pulse signal to MCU, when 9 29 points, user closes valve, and pulse measurement module sends end signal to MCU, MCU stops counting, and 700 pulse signals retained in receive 1600 pulse signals and step-by-step counting storage unit are merged into 2300 pulse signals, then be decomposed into two parts: 2000 pulse signals are converted to 2 and reduce amount, remain 300 pulse signals and retain.
when MCU obtains clock signal 10 days 9 January in 2012 in clock module 29 points as current time; Upgrade the last item record in day detailed storage unit, when initial time stamp is 10 days 9 January in 2012 25 points, when termination time stamp renewal is set to 10 days 9 January in 2012 29 points, combustion gas use amount is set to 2 cubic metres of gas flows; When current time and day being gathered timestamp 10 days 9 January in 2012 of the last item record in storage unit compared with in the of 17 points, be confirmed to be same date, upgrade the last item record gathered day in storage unit, combustion gas use amount adds up 2 cubic metres of gas flows, is updated to 4 cubic metres by 2 cubic metres; When current time and the moon being gathered timestamp 10 days 6 January in 2012 of the last item record in storage unit compared with in the of 52 points, be confirmed to be the same January, more crescent gathers the last item record in storage unit, combustion gas use amount adds up 2 cubic metres of gas flows, is updated to 106 cubic metres by 104 cubic metres.
After above-mentioned end cycle, day detailed storage unit, the record that gathers storage unit day and gather storage unit the moon is respectively as shown in table 10 ~ table 12:
initial time stamp termination time stabs combustion gas use amount
.。。 。。。
2012.01.10 09:03 2012.01.10 09:17 2
2012.01.10 09:25 2012.01.10 09:29 2
Table 10
timestamp combustion gas use amount
.。。 。。。
2012.01.10 09:29 4
Table 11
timestamp combustion gas use amount
.。。 。。。
2012.01.01 09:29 106
Table 12

Claims (1)

1. have a gas meter, flow meter for the generation of combustion gas use amount detailed data and memory function, the mechanical part comprising gas meter, flow meter and the MCU, pulse measurement module, valve control module, storer and the data input/output interface that are arranged in gas meter, flow meter, is characterized in that:
Described gas meter, flow meter also has a clock module, and, also there is the detailed memory module of a combustion gas use amount and the program storage unit (PSU) storing the generation of combustion gas use amount detailed data and storage instruction in which memory;
Wherein, the detailed memory module of described combustion gas use amount comprise that the moon gathers storage unit, day gathers storage unit and day detailed storage unit;
Described clock module provides time stamp signal to the unit in the detailed memory module of combustion gas use amount under the control of MCU;
Described MCU is a central controller with following function: receive the signal coming from pulse measurement module, combustion gas use amount detailed data in calling program storage unit generates and stores instruction, and generating gas use amount detailed data information under the control of this instruction is also stored in the detailed memory module of combustion gas use amount;
Gather storage unit by the described moon, gather storage unit day and adopt timestamp to add the two parameter partitioned organization of combustion gas use amount assignment, described timestamp adopt year, month, day, time and point pattern; Described day detailed storage unit adopt initial time stamp, termination time stamp adds three parameter partitioned organizations of combustion gas use amount assignment, described timestamp adopt year, month, day, time and point pattern;
Described MCU, after user's valve opening, receive come from pulse measurement module pulse signal as commencing signal, and the combustion gas use amount detailed data simultaneously in calling program storage unit generates and stores instruction, and under the control of this instruction, MCU performs following steps:
Current time signal is obtained from described clock module;
In day detailed storage unit, create a new record, initial time stamp is current time signal, and termination time stamp and combustion gas use amount assigned area are sky;
The accumulative metrical pulse quantity received;
Described MCU, after user closes valve, receives the end signal coming from pulse measurement module, and the combustion gas use amount detailed data in calling program storage unit generates and stores instruction, and under the control of this instruction, MCU performs following steps in order:
Current time signal is obtained from described clock module;
The metrical pulse quantity of accumulative reception is decomposed into 2 parts, is respectively the integral multiple and not enough remaining sum of reducing amount; Described integral multiple of reducing amount is as new combustion gas use amount, and described not enough remaining sum is stored in corresponding stored unit;
Upgrade day detailed storage unit the last item record, termination time stamp is current time and combustion gas use amount assignment is new combustion gas use amount;
The relatively timestamp of day collection unit the last item record, if not same date, then in day collection unit, create a new record, timestamp is current time, and combustion gas use amount assignment is new combustion gas use amount; If same date, then upgrade the last item record in day collection unit, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and the accumulated value of described new combustion gas use amount;
The relatively timestamp of moon collection unit the last item record, if not the same January, then in moon collection unit, create a new record, timestamp is current time, and combustion gas use amount assignment is new combustion gas use amount; If the same January, then more the last item record in crescent collection unit, the combustion gas use amount assignment of new record is the combustion gas use amount of former record and the accumulated value of described new combustion gas use amount.
CN201310000702.5A 2013-01-03 2013-01-03 Gas meter with gas usage amount detail data generation and storage function Active CN103164903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310000702.5A CN103164903B (en) 2013-01-03 2013-01-03 Gas meter with gas usage amount detail data generation and storage function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310000702.5A CN103164903B (en) 2013-01-03 2013-01-03 Gas meter with gas usage amount detail data generation and storage function

Publications (2)

Publication Number Publication Date
CN103164903A CN103164903A (en) 2013-06-19
CN103164903B true CN103164903B (en) 2015-06-03

Family

ID=48587956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310000702.5A Active CN103164903B (en) 2013-01-03 2013-01-03 Gas meter with gas usage amount detail data generation and storage function

Country Status (1)

Country Link
CN (1) CN103164903B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103337109A (en) * 2013-06-09 2013-10-02 博彦网鼎信息技术有限公司 Fuel gas billing system and method
CN104713610B (en) * 2015-02-03 2018-02-16 成都秦川物联网科技股份有限公司 A kind of safety cut-off type intelligent gas meter application method with self-learning function
CN104655218A (en) * 2015-02-03 2015-05-27 成都秦川科技发展有限公司 Safety cut-out type intelligent gas meter with self learning function
CN107945403A (en) * 2017-11-14 2018-04-20 金卡智能集团股份有限公司 A kind of IC card intelligent gas meter price adjustment expense is made up the difference computational methods automatically
CN108597122B (en) * 2018-04-23 2020-08-18 重庆人文科技学院 Prepaid gas reading method
CN109064659A (en) * 2018-07-23 2018-12-21 廊坊新奥燃气设备有限公司 A kind of pre- price adjustment method and system of intelligent gas meter system
CN109841003B (en) * 2019-03-12 2021-05-25 珠海港信息技术股份有限公司 Gas charging method and system based on gas use conversion model
CN110349346A (en) * 2019-05-25 2019-10-18 深圳市中燃科技有限公司 It is a kind of to be compatible with the Internet of Things gas meter, flow meter charging method and system with off-line state online
CN111491011A (en) * 2020-03-27 2020-08-04 厦门骐俊物联科技股份有限公司 Gas meter data storage method, gas meter anti-death method and gas meter system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490600A (en) * 2003-09-08 2004-04-21 扬州恒信仪表有限公司 Intelligent pre-payment IC card watermeter with stepped charge and calculation
CN101339682A (en) * 2008-07-29 2009-01-07 深圳市思达仪表有限公司 CPU card three phase electronic type pre-payment step electricity price electrical energy meter
CN201251814Y (en) * 2008-09-12 2009-06-03 北京博纳电气有限公司 Staircase prepaid electric energy meter
CN101833823A (en) * 2010-06-01 2010-09-15 北京市热力集团有限责任公司 Intelligent IC card advanced charge thermal clearing control system and control process thereof
CN202584291U (en) * 2012-05-18 2012-12-05 浙江金卡高科技股份有限公司 Log settlement gas meter

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010109852A (en) * 2000-06-02 2001-12-12 김태훈 Gauge auto management system
CN102063764B (en) * 2011-01-25 2012-09-26 邵泽华 Intelligent gas meter of Internet of things and control system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490600A (en) * 2003-09-08 2004-04-21 扬州恒信仪表有限公司 Intelligent pre-payment IC card watermeter with stepped charge and calculation
CN101339682A (en) * 2008-07-29 2009-01-07 深圳市思达仪表有限公司 CPU card three phase electronic type pre-payment step electricity price electrical energy meter
CN201251814Y (en) * 2008-09-12 2009-06-03 北京博纳电气有限公司 Staircase prepaid electric energy meter
CN101833823A (en) * 2010-06-01 2010-09-15 北京市热力集团有限责任公司 Intelligent IC card advanced charge thermal clearing control system and control process thereof
CN202584291U (en) * 2012-05-18 2012-12-05 浙江金卡高科技股份有限公司 Log settlement gas meter

Also Published As

Publication number Publication date
CN103164903A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN103164903B (en) Gas meter with gas usage amount detail data generation and storage function
CN204102247U (en) A kind of intellectual water meter control device based on 3G wireless communication technology
CN108616321A (en) Clock synchronizing method, device, computer equipment and the storage medium of electric energy meter
CN107464359A (en) The processing method and system of a kind of prepayment information
CN102571370B (en) Many charge units the implementation method of charging when depositing and device
CN108711044A (en) A kind of the remote meter reading settlement method and system of water meter
US20230394453A1 (en) Energy metering method, apparatus, device and system, and storage medium
CN107563740A (en) Electricity transaction power purchase management platform system and meter collecting method
CN113537945A (en) Automatic analysis method and device for capital construction material excess saving
JP2012238204A (en) Portable meter reading system
CN105118183B (en) Intelligent gas meter ladder pricing system
CN201022023Y (en) Remote monitoring and recording system for distributed power quality
CN105222846B (en) The implementation method of Intelligent water meter of Internet of things ladder valuation
CN115884009A (en) Remote real-time monitoring method, device and system for carbon dioxide emission
CN105303707B (en) The implementation method of intelligent gas meter ladder valuation
CN105139533B (en) Remote transmission intelligent gas meter, flow meter with ladder valuation functions
CN101938367B (en) Method and system for enabling comprehensive network management system to realize performance access of lower network management system in telecommunication network
CN102760352A (en) Single-rate meter time-sharing charging system and method
CN105225351B (en) Remote-control intelligent gas meter ladder pricing system
CN102711136A (en) Energy saving amount calculation method and system for communication base station
CN105303709B (en) The implementation method of remote transmission intelligent water meter ladder valuation
CN103353977A (en) Method for carrying out transmission based on preferentially selecting important remote measurement in power plant unit adjustment
CN114339967A (en) Method and device for predicting base station traffic
CN202711453U (en) Remote meter reading system based on WCDMA (Wideband Code Division Multiple Access) network
CN105139532B (en) Remote-control intelligent water meter with ladder valuation functions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200921

Address after: Room 612, area D, building 20, No. 1-42, Lane 83, Hongxiang North Road, Lingang New Area, Pudong New Area, Shanghai

Patentee after: Shanghai Yingchen Information Technology Co.,Ltd.

Address before: 163319 D-2, block 310, service outsourcing industry park, Daqing hi tech Zone, Heilongjiang

Patentee before: DAQING ENCH INNOVATIVE TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right