CN112017364A - Intelligent gas meter with NB-IoT module embedded with custom program - Google Patents

Intelligent gas meter with NB-IoT module embedded with custom program Download PDF

Info

Publication number
CN112017364A
CN112017364A CN202010882113.4A CN202010882113A CN112017364A CN 112017364 A CN112017364 A CN 112017364A CN 202010882113 A CN202010882113 A CN 202010882113A CN 112017364 A CN112017364 A CN 112017364A
Authority
CN
China
Prior art keywords
module
iot
mcu
gas meter
information
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.)
Pending
Application number
CN202010882113.4A
Other languages
Chinese (zh)
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 Viewshine Intelligent Meter Co Ltd
Original Assignee
Zhejiang Viewshine Intelligent Meter 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 Viewshine Intelligent Meter Co Ltd filed Critical Zhejiang Viewshine Intelligent Meter Co Ltd
Priority to CN202010882113.4A priority Critical patent/CN112017364A/en
Publication of CN112017364A publication Critical patent/CN112017364A/en
Pending legal-status Critical Current

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/001Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for gas

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention provides an intelligent gas meter with a self-defined program embedded in an NB-IoT communication module, which comprises a gas meter base meter, a shell, an MCU, an NB-IoT module, an infrared module, a power supply module, a valve driving module, a metering and information-fetching module, a liquid crystal display module, a key module and an RTC clock module, wherein the gas meter base meter is connected with the shell; an NB-IoT communication module with a complex service function of an embedded intelligent gas meter is adopted, and an MCU is only responsible for the gas meter metering function and a hardware control program. The invention does not need an external flash storage module, has lower requirements on an external MCU, does not need a high-performance MCU, can greatly save the cost and reduce the circuit complexity, remotely upgrades the step price adjusting module, the charging module and the communication control module through the FOTA, supports the step fee control updating and the change of a communication protocol, is convenient for the operation and maintenance in the later period, greatly lightens the workload of the maintenance, and also improves the efficiency of the upgrading and the maintenance.

Description

Intelligent gas meter with NB-IoT module embedded with custom program
Technical Field
The invention belongs to the technical field of gas meters, and particularly relates to an intelligent gas meter with an embedded NB-IoT module with an intelligent gas meter service function and an MCU module for processing bottom hardware control.
Background
Most of domestic intelligent gas meters are IC card intelligent gas meters, and although the IC card intelligent gas meters solve the problem of difficult meter reading and household entry, the IC card intelligent gas meters cannot acquire gas data and gas meter states of users in time and cannot meet the application requirements of gas companies in the aspects of real-time management and control, big data analysis and the like. And NB-IoT is showing stronger and stronger development potential as the mainstream technology in the field of LPWAN Internet of things. At present, an internet of things gas meter based on an NB-IoT technology is pursued because of the advantages of labor saving, intelligent gas price adjustment and stable signal transmission, and is widely applied to intelligent gas meter design.
The existing intelligent gas meter setting is usually realized by only using an NB-IoT module as a communication module and externally connecting an MCU (microprogrammed control unit) responsible for the service function and the bottom control of the intelligent gas meter. The bottom control program is usually simple and reliable in logic, and does not need to be upgraded and maintained subsequently; the service function of the gas meter is modified according to the requirement, and the design function is fixed, so that the function optimization and the upgrading maintenance of the intelligent gas meter in the operation process are not facilitated. By developing an intelligent gas meter scheme with an NB-IoT communication module embedded with a custom program, and combining the NB-IoT platform FOTA function, relatively flexible and reliable version upgrading can be realized.
The design is different from the existing gas meter design, and all functions of the gas meter are realized by the NB-IoT module without being externally connected with an MCU. The design has two problems, one is that the NB-IoT module is awakened by the metering and information-obtaining module when gas is used, so that the NB-IoT module is in an awakening state for a long time, the gas meter is in a high power consumption state for a long time, and the requirement of the gas meter for long-time use cannot be met; secondly, the NB-IoT module needs time to be awakened, so that the gas consumption data of the metering and credit-obtaining module cannot be received in real time, and the problem of low gas meter precision caused by data loss is caused.
Disclosure of Invention
The invention aims to solve the problems existing in the current gas meter design and provides an intelligent gas meter with an NB-IoT communication module embedded with a custom program.
The invention adopts the NB-IoT module embedded with the flash memory chip and adopts the openCPU development mode of the NB-IoT module, which is different from the common application mode, and the NB-IoT module not only serves as a communication module, but also can be regarded as an MCU to fully utilize the processor and flash resources in the NB-IoT module.
The invention is characterized in that the idea of classification control of the programs in the gas meter is adopted, so the program layering is also an important characteristic. In the prior gas meter design, functional modules such as liquid crystal display, keys, data reporting and the like are all controlled and processed by the MCU. The NB-IoT module in the gas meter is responsible for the function modules related to the service, and other program functions are still controlled by the MCU.
The intelligent gas meter adopts an NB-IoT communication module embedded with complex business functions of the intelligent gas meter, and the MCU is only responsible for the metering function and the hardware control program of the gas meter.
An intelligent gas meter with a self-defined program embedded in an NB-IoT communication module comprises a gas meter base meter, a shell, an MCU, an NB-IoT module, an infrared module, a power module, a valve driving module, a metering and information-fetching module, a liquid crystal display module, a key module and an RTC clock module.
The MCU is connected with the NB-IoT module, the infrared module, the power supply module, the liquid crystal display module, the key module, the metering and information-fetching module, the valve driving module and the RTC clock module, the metering and information-fetching module is connected with a gas meter base meter, and the modules are all arranged in the shell;
the gas meter is not externally connected with a flash storage module, and the MCU acquires the gas information used by the user through the metering and information obtaining module; the MCU detects the state information of the meter through the control valve driving module and realizes the control function of related events; the liquid crystal display module and the key module are used for realizing a man-machine interaction function, and the MCU is used for realizing data interaction with the outside through the infrared module and used for testing in a development stage and later maintenance; the power supply module supplies power to other modules, accurate clock control is carried out through the RTC clock module, accurate realization of a timing function is achieved, the user gas consumption information and the meter state information are temporarily stored in the MCU, the MCU wakes up the NB-IoT module regularly according to preset wake-up time, the NB-IoT module acquires the user gas consumption information and the meter state stored in the MCU, and the user gas consumption information and the meter state temporarily stored in the MCU are cleared.
The NB-IoT module comprises a step price adjusting module, a charging module and a communication control module, step metering charging is realized through the step price adjusting module, a plurality of groups of step price schemes can be realized, positive steps and negative steps can be realized, and step price adjusting module, the charging module and the communication control module are remotely upgraded through the FOTA to support step charge control updating and communication protocol changing.
And the MCU and the NB-IoT module select a communication mode according to practical application, wherein the communication mode comprises IIC, SPI and serial port communication.
The FOTA upgrading adopts a differential upgrading type, is different from the whole package upgrading, adopts differential upgrading, and can realize rapid upgrading of the appointed module program.
The gas meter design scheme has the advantages and beneficial effects as follows:
firstly, the design makes full use of the NB-IoT module self resources, an external flash storage module is not needed, the requirement on an external MCU is low, a high-performance MCU is not needed, the cost can be greatly saved, and the circuit complexity can be reduced. Secondly, services are separated from control, and modification is facilitated. The MCU is only responsible for a bottom layer control program, and the MCU burden can be reduced without maintenance and modification in later upgrading and maintenance; and the NB-IoT module is embedded with an operating system to be responsible for complex service logic, and only the NB-IoT module needs to be operated in the subsequent upgrading and maintenance. Moreover, the service program can be remotely upgraded by the NB-IoT module through the FOTA, so that the ladder fee control updating and the change of the communication protocol are supported, the later operation and maintenance are facilitated, the workload of the later maintenance is greatly reduced, and the upgrading and maintenance efficiency is also improved.
Drawings
FIG. 1 is a view showing an internal structure of a gas meter according to the present invention;
fig. 2 is a flowchart of the NB-IoT module process of the present invention;
FIG. 3 is a flowchart of the FOTA upgrade procedure of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings;
the structural design of the gas meter is shown in fig. 1, and the intelligent gas meter with the NB-IoT communication module embedded with the custom program is described.
The MCU is connected with the NB-IoT module, the infrared module, the power supply module, the liquid crystal display module, the key module, the metering and credit-taking module, the valve driving module and the RTC clock module, the metering and credit-taking module is connected with the gas meter, and the modules are all arranged in the shell;
the gas meter is not externally connected with a flash storage module, and the MCU acquires the gas information used by the user through the metering and information obtaining module; the MCU detects the state information of the meter through the control valve driving module and realizes the control function of related events; the liquid crystal display module and the key module are used for realizing a man-machine interaction function, and the MCU is used for realizing data interaction with the outside through the infrared module and used for testing in a development stage and later maintenance; the power supply module supplies power to other modules, accurate clock control is carried out through the RTC clock module, accurate realization of a timing function is achieved, the user gas consumption information and the meter state information are temporarily stored in the MCU, the MCU wakes up the NB-IoT module regularly according to preset wake-up time, the NB-IoT module acquires the user gas consumption information and the meter state stored in the MCU, and the user gas consumption information and the meter state temporarily stored in the MCU are cleared.
The NB-IoT module comprises a step price adjusting module, a charging module and a communication control module, step metering charging is realized through the step price adjusting module, a plurality of groups of step price schemes can be realized, positive steps and negative steps can be realized, and step price adjusting module, the charging module and the communication control module are remotely upgraded through the FOTA to support step charge control updating and communication protocol changing.
And the MCU and the NB-IoT module select a communication mode according to practical application, wherein the communication mode comprises IIC, SPI and serial port communication.
The user gas consumption information is mainly the accumulated gas consumption related to the gas meter.
The NB-IoT module program flow diagram is shown in fig. 2, the NB-IoT module is in a low power consumption state in a normal state, the MCU wakes up the NB-IoT module in the low power consumption state at regular time, then the NB-IoT module communicates with the MCU through a set communication mode to obtain the user gas consumption information and the meter state stored in the MCU, and performs step charging related service processing through the obtained user gas consumption information, and then stores the obtained freezing data in a flash inside the NB-IoT module, where the freezing data includes gas meter related gas consumption cumulant, price information, and meter state; if the awakening time is the informing time of the gas meter, the NB-IoT module informs the frozen data to the Internet of things platform through a communication protocol set by the communication control module, the NB-IoT module processes upper information returned by the Internet of things platform and stores the upper information in an internal flash, and sends a corresponding instruction to the MCU according to instruction information obtained after processing, the MCU realizes related logic through the control valve driving module and the liquid crystal display module, and the NB-IoT module enters a low-power-consumption dormant state to wait for awakening next time when the NB-IoT module informs that the task is finished; and if the awakening time is not the reporting time of the gas meter, the storage task is completed, and the NB-IoT module enters a low-power-consumption dormant state. The reporting interval of the gas meter is set to be integral multiple of the awakening interval according to practical application.
As shown in fig. 3, the FOTA upgrade procedure flow chart includes that, first, the NB-IoT module receives an upgrade command sent by the internet of things platform, then, the NB-IoT module sends a preset upgrade instruction to the internet of things platform, and after the instruction is reported successfully, the NB-IoT module starts to download firmware. And entering a firmware upgrading stage after successful downloading and successful verification, wherein power can not be cut off at the moment, if the upgrading is successful, the NB-IoT module uploads upgrading success information to the Internet of things platform, and the NB module firmware is a new upgraded version. In the process of downloading and upgrading the firmware, if the downloading and upgrading are failed or the verification is failed due to the occurrence of a problem, the upgrading is stopped, the failure information is uploaded to the platform of the Internet of things, and the firmware of the module keeps the old version before upgrading unchanged at the moment.

Claims (7)

1. An intelligent gas meter with a self-defined program embedded in an NB-IoT communication module is characterized by comprising a gas meter base meter, a shell, an MCU, an NB-IoT module, an infrared module, a power supply module, a valve driving module, a metering and information-fetching module, a liquid crystal display module, a key module and an RTC clock module;
the MCU is connected with the NB-IoT module, the infrared module, the power supply module, the liquid crystal display module, the key module, the metering and information-obtaining module, the valve driving module and the RTC clock module, the metering and information-obtaining module is connected with a gas meter base meter, and the metering and information-obtaining module and the RTC clock module are all installed inside the shell.
2. The intelligent gas meter with the NB-IoT communication module embedded with the custom program as claimed in claim 1, wherein the gas meter is not connected with an external flash storage module, and the MCU acquires the gas information of the user through the metering and credit-fetching module; the MCU detects the state information of the meter through the control valve driving module and realizes the control function of related events; the man-machine interaction function is realized through the liquid crystal display module and the key module; the MCU realizes data interaction with the outside through the infrared module for testing in a development stage and later maintenance; the power supply module supplies power to other modules, accurate clock control is carried out through the RTC clock module, accurate realization of a timing function is achieved, the user gas consumption information and the meter state information are temporarily stored in the MCU, the MCU wakes up the NB-IoT module regularly according to preset wake-up time, the NB-IoT module acquires the user gas consumption information and the meter state stored in the MCU, and the user gas consumption information and the meter state temporarily stored in the MCU are cleared.
3. The intelligent gas meter with the NB-IoT communication module embedded with the custom program as claimed in claim 2, wherein the NB-IoT module comprises a ladder price adjusting module, a charging module and a communication control module, and the ladder price adjusting module is used for realizing ladder metering charging, realizing multi-group ladder price schemes, realizing positive ladder and negative ladder, and remotely upgrading the ladder price adjusting module, the charging module and the communication control module through FOTA to support ladder fee control updating and communication protocol changing.
4. The intelligent gas meter with the built-in custom program of the NB-IoT communication module as claimed in claim 3, wherein the communication mode between the MCU and the NB-IoT module is selected according to the actual application, and the communication mode comprises IIC, SPI and serial communication.
5. The intelligent gas meter with the built-in custom program of the NB-IoT communication module as claimed in claim 3, wherein FOTA upgrade adopts a differential upgrade type, which is different from a whole package upgrade, and can realize rapid upgrade of a specified module program by adopting differential upgrade.
6. The intelligent gas meter with the NB-IoT communication module embedded with the custom program as claimed in claim 4 or 5, wherein the NB-IoT module is in a low power consumption state in a normal state, the MCU wakes up the NB-IoT module in the low power consumption state at regular time, then the NB-IoT module communicates with the MCU through a set communication mode to acquire user gas consumption information and meter state stored in the MCU, performs step charging related service processing through the acquired user gas consumption information, and then stores the acquired freezing data in a flash in the NB-IoT module, wherein the freezing data comprises gas meter related gas consumption cumulant, price information and meter state; if the awakening time is the informing time of the gas meter, the NB-IoT module informs the frozen data to the Internet of things platform through a communication protocol set by the communication control module, the NB-IoT module processes upper information returned by the Internet of things platform and stores the upper information in an internal flash, and sends a corresponding instruction to the MCU according to instruction information obtained after processing, the MCU realizes related logic through the control valve driving module and the liquid crystal display module, and the NB-IoT module enters a low-power-consumption dormant state to wait for awakening next time when the NB-IoT module informs that the task is finished; if the awakening time is not the reporting time of the gas meter, the storage task is completed, and the NB-IoT module enters a low-power-consumption dormant state; the reporting interval of the gas meter is set to be integral multiple of the awakening interval according to practical application.
7. The intelligent gas meter with the built-in custom program of the NB-IoT communication module as claimed in claim 6, wherein the FOTA upgrade procedure is as follows:
firstly, an NB-IoT module receives an upgrading command sent by an Internet of things platform, then the NB-IoT module sends a preset upgrading command to the Internet of things platform, and the NB-IoT module starts to download firmware after the command is reported successfully; the downloading is successful, the firmware upgrading stage is started after the verification is successful, the power can not be cut off, if the upgrading is successful, the NB-IoT module uploads upgrading success information to the Internet of things platform, and the NB module firmware is a new upgraded version; in the process of downloading and upgrading the firmware, if the downloading and upgrading are failed or the verification is failed due to the occurrence of a problem, the upgrading is stopped, the failure information is uploaded to the platform of the Internet of things, and the firmware of the module keeps the old version before upgrading unchanged at the moment.
CN202010882113.4A 2020-08-28 2020-08-28 Intelligent gas meter with NB-IoT module embedded with custom program Pending CN112017364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010882113.4A CN112017364A (en) 2020-08-28 2020-08-28 Intelligent gas meter with NB-IoT module embedded with custom program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010882113.4A CN112017364A (en) 2020-08-28 2020-08-28 Intelligent gas meter with NB-IoT module embedded with custom program

Publications (1)

Publication Number Publication Date
CN112017364A true CN112017364A (en) 2020-12-01

Family

ID=73503723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010882113.4A Pending CN112017364A (en) 2020-08-28 2020-08-28 Intelligent gas meter with NB-IoT module embedded with custom program

Country Status (1)

Country Link
CN (1) CN112017364A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738873A (en) * 2021-01-04 2021-04-30 金卡智能集团股份有限公司 Module wake-up protection system and method
CN113063471A (en) * 2021-03-23 2021-07-02 上海飞奥燃气设备有限公司 NB-IoT intelligent gas meter based on OpenCPU technology
CN113516839A (en) * 2021-05-18 2021-10-19 廊坊新奥智能科技有限公司 Communication complementary type gas meter based on OneNET cloud platform
WO2022198921A1 (en) * 2021-03-22 2022-09-29 上海飞奥燃气设备有限公司 Nb-iot intelligent gas meter based on opencpu technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018063260A1 (en) * 2016-09-29 2018-04-05 Intel IP Corporation Firmware update for internet of things devices
CN109089259A (en) * 2018-08-03 2018-12-25 上海艾拉比智能科技有限公司 A kind of online difference upgrade-system
CN109189433A (en) * 2018-09-18 2019-01-11 四川爱联科技有限公司 Upgrade method for internet of things equipment MCU
CN109389757A (en) * 2017-08-09 2019-02-26 辽宁思凯科技股份有限公司 A kind of intelligent gas meter die for special purpose group based on NB-IOT modem
CN109520576A (en) * 2017-09-19 2019-03-26 辽宁思凯科技股份有限公司 A kind of NB mould group that ultrasonic water table function is embedded in NB-IOT modem chip
CN110929262A (en) * 2019-11-20 2020-03-27 上海钧正网络科技有限公司 Online upgrading method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018063260A1 (en) * 2016-09-29 2018-04-05 Intel IP Corporation Firmware update for internet of things devices
CN109389757A (en) * 2017-08-09 2019-02-26 辽宁思凯科技股份有限公司 A kind of intelligent gas meter die for special purpose group based on NB-IOT modem
CN109520576A (en) * 2017-09-19 2019-03-26 辽宁思凯科技股份有限公司 A kind of NB mould group that ultrasonic water table function is embedded in NB-IOT modem chip
CN109089259A (en) * 2018-08-03 2018-12-25 上海艾拉比智能科技有限公司 A kind of online difference upgrade-system
CN109189433A (en) * 2018-09-18 2019-01-11 四川爱联科技有限公司 Upgrade method for internet of things equipment MCU
CN110929262A (en) * 2019-11-20 2020-03-27 上海钧正网络科技有限公司 Online upgrading method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738873A (en) * 2021-01-04 2021-04-30 金卡智能集团股份有限公司 Module wake-up protection system and method
CN112738873B (en) * 2021-01-04 2024-04-16 金卡智能集团股份有限公司 Module wake-up protection system and method
WO2022198921A1 (en) * 2021-03-22 2022-09-29 上海飞奥燃气设备有限公司 Nb-iot intelligent gas meter based on opencpu technology
CN113063471A (en) * 2021-03-23 2021-07-02 上海飞奥燃气设备有限公司 NB-IoT intelligent gas meter based on OpenCPU technology
CN113516839A (en) * 2021-05-18 2021-10-19 廊坊新奥智能科技有限公司 Communication complementary type gas meter based on OneNET cloud platform

Similar Documents

Publication Publication Date Title
CN112017364A (en) Intelligent gas meter with NB-IoT module embedded with custom program
CN103942061B (en) Battery firmware updating method, portable electronic device and rechargeable battery module
US20190163250A1 (en) Apparatus and method for managing power consumption in electronic device
CN102037428A (en) Integrated circuit with secondary-memory controller for providing a sleep state for reduced power consumption and method therefor
CN101923369B (en) System and method for managing time of substrate management controller
CN211205414U (en) NB-IOT gas meter of remote upgrading
CN103583320A (en) Irrigation control method and irrigation device
WO2022052492A1 (en) Gas meter with program embedded in nb-iot communication module, and data processing method
CN107577189A (en) A kind of accurate timing Rouser of automatic monitoring system
CN102821446B (en) Synchronous awaking mechanism of long-term and deep dormant wireless sensor network
CN100410846C (en) Method for realizing real-time clock waking-up of notebook computer
CN207039651U (en) A kind of water-saving irrigation RTU equipment for supporting remote upgrade
CN112526914B (en) Low-power-consumption management flow method for milliampere-level data acquisition unit
KR20200100957A (en) Read meter, reading method thereof, and computer program performing the method
WO2020192669A1 (en) Gas meter intelligent controller and firmware upgrade start-up method therefor
CN111857841A (en) Awakening method of main control chip, storage medium and intelligent terminal
CN1845623A (en) Method for displaying time on handset
CN104881018B (en) Water paddy irrigation Water application rate for miniature irrigation area tests system and test method
CN104376488A (en) Low-power-consumption electronic commodity price label and control method thereof
CN114117356A (en) Method and equipment for realizing remote low-power-consumption sensor
CN104965759A (en) Method for controlling terminal and terminal
CN201957120U (en) Network alarm clock system and mobile terminal with network alarm clock function
CN113311758B (en) Power consumption mode control method and device, satellite terminal and storage medium
CN109189462A (en) A kind of touch-control system with automatic upgrade function
CN219394874U (en) Internet of things terminal device capable of remotely upgrading software

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201201

RJ01 Rejection of invention patent application after publication