CN112925541A - OTA cloud upgrading method for gas meter of Internet of things - Google Patents

OTA cloud upgrading method for gas meter of Internet of things Download PDF

Info

Publication number
CN112925541A
CN112925541A CN202110196638.7A CN202110196638A CN112925541A CN 112925541 A CN112925541 A CN 112925541A CN 202110196638 A CN202110196638 A CN 202110196638A CN 112925541 A CN112925541 A CN 112925541A
Authority
CN
China
Prior art keywords
gas meter
cloud
upgrading
internet
things
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
CN202110196638.7A
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.)
Xi'an Babbitt Information Technology Co ltd
Original Assignee
Xi'an Babbitt Information 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 Xi'an Babbitt Information Technology Co ltd filed Critical Xi'an Babbitt Information Technology Co ltd
Priority to CN202110196638.7A priority Critical patent/CN112925541A/en
Publication of CN112925541A publication Critical patent/CN112925541A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an OTA (over the air) cloud upgrading method for an Internet of things gas meter, which comprises the steps of deploying a cloud server, using a virtual terminal by a developer to perform cloud programming and remote source code level debugging, writing a bootloader program and an application program when the gas meter leaves a factory, synchronously starting a timing module in the gas meter after the gas meter is started, calling a single chip microcomputer of the gas meter at every X time from an idle process through one partition, sending a search instruction signal to the gas meter, then idling again or adding the partition into the process of the gas meter application, searching through the Internet of things and determining whether to update the gas meter or not, matching the partition calling in the idle process with the timing module, thereby realizing the sending of the search instruction, greatly reducing the load of the single chip microcomputer, not influencing the running of the program per se, obtaining upgraded firmware gas meter at the first time and performing cloud upgrading, in the suspended state, the memory is not occupied at all.

Description

OTA cloud upgrading method for gas meter of Internet of things
Technical Field
The invention relates to the technical field of OTA (over the air) cloud upgrading methods for gas meters of Internet of things, in particular to an OTA cloud upgrading method for gas meters of Internet of things.
Background
The traditional gas meter upgrading method generally adopts the internet for upgrading, manual active upgrading is needed, and an automatic updating mode needs to occupy a large amount of memory, so that the performance of the gas meter is reduced, and therefore, an improved technology is urgently needed to solve the problem in the prior art.
Disclosure of Invention
The invention aims to provide an OTA (over the air) cloud upgrading method for an Internet of things gas meter, which aims to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: an OTA cloud upgrading method for an Internet of things gas meter comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program into the gas meter when the gas meter leaves a factory;
step three: after the gas meter is started, a timing module in the gas meter is started synchronously, a single chip microcomputer of the gas meter at every X time is called from an idle process through one partition, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: the method comprises the steps that a cloud server searches for upgrading firmware through the Internet of things, if new upgrading firmware is not searched, the searching process is stopped, a timing module continues to conduct timing, if new upgrading firmware is searched, a searching success command is returned to a gas meter, at the moment, the cloud server directly sends a signal to a gas meter single chip microcomputer and stops working of the timing module, if a cloud end cancels the upgrading command, the timing module is restarted, if the cloud end confirms the upgrading command, the cloud server transmits upgrading firmware files to the gas meter and installs programs, idle partitions are adopted in the installation process to conduct processing, after upgrading is completed, the gas meter is restarted, and a new version application program is executed.
Preferably, the bootloader program in the second step has a size not larger than 24 kb.
Preferably, the size of the application program in the second step is not larger than 112 kb.
Preferably, the file format of the firmware upgraded in the fourth step is. BIN.
Preferably, a communication module is arranged in the gas meter in the second step.
Compared with the prior art, the invention has the beneficial effects that:
(1) the partition calling in the idle process is matched with the timing module, so that the sending of the search instruction is realized, the load of the single chip microcomputer is greatly reduced, and the running of the program of the gas meter can not be influenced.
(2) Meanwhile, the upgrading firmware can be obtained at the first time through searching of the Internet of things, so that cloud upgrading is realized.
(3) When the timing module is used for not wanting to upgrade, the timing module stops working in a suspended state, so that the memory is not occupied completely, and the flexibility is greatly improved.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a technical scheme that: an OTA cloud upgrading method for an Internet of things gas meter comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program when the gas meter leaves a factory, wherein the size of the bootloader program is not more than 24kb, and the size of the application program is not more than 112 kb;
step three: after the gas meter is started, a timing module in the gas meter is started synchronously, a single chip microcomputer of the gas meter at every X time is called from an idle process through one partition, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: the method comprises the steps that a cloud server searches for upgrading firmware through the Internet of things, if new upgrading firmware is not searched, the searching process is stopped, a timing module continues to conduct timing, if new upgrading firmware is searched, a searching success command is returned to a gas meter, at the moment, the cloud server directly sends a signal to a gas meter single chip microcomputer and stops working of the timing module, if a cloud end cancels the upgrading command, the timing module is restarted, if the cloud end confirms the upgrading command, the cloud server transmits upgrading firmware files to the gas meter and installs programs, idle partitions are adopted in the installation process to conduct processing, after upgrading is completed, the gas meter is restarted, and a new version application program is executed.
Wherein, be provided with the communication module in the gas table.
The first embodiment is as follows:
an OTA cloud upgrading method for an Internet of things gas meter comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program when the gas meter leaves a factory, wherein the size of the bootloader program is 22.3kb, and the size of the application program is 43.2 kb;
step three: after the gas meter is started, a timing module in the gas meter is synchronously started, a single chip microcomputer of the gas meter is called from an idle process through one partition every 24 hours, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: and the cloud server searches the upgrade firmware of the BIN through the Internet of things, does not search new upgrade firmware, terminates the search process, and continues to time by the timing module.
Example two:
an OTA cloud upgrading method for an Internet of things gas meter comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program when the gas meter leaves a factory, wherein the size of the bootloader program is 22.3kb, and the size of the application program is 43.2 kb;
step three: after the gas meter is started, a timing module in the gas meter is started synchronously, a single chip microcomputer of the gas meter is called from an idle process through one partition every 24 hours, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: the cloud server searches for the updated firmware of BIN through the Internet of things, searches for new updated firmware, and returns a successful search instruction to the gas meter, and at the moment, the cloud server directly sends a signal to the gas meter single chip microcomputer and stops the work of the timing module, and then cancels the update instruction through the cloud end, and the timing module is restarted;
example three:
an OTA cloud upgrading method for an Internet of things gas meter comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program when the gas meter leaves a factory, wherein the size of the bootloader program is 22.3kb, and the size of the application program is 43.2 kb;
step three: after the gas meter is started, a timing module in the gas meter is started synchronously, a single chip microcomputer of the gas meter is called from an idle process through one partition every 24 hours, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: the method comprises the steps that a cloud server searches for BIN upgrading firmware in a file format through the Internet of things, new upgrading firmware is searched, a successful searching instruction is returned to a gas meter, at the moment, the cloud server directly sends a signal to a gas meter single chip microcomputer, the work of a timing module is stopped, the upgrading instruction is confirmed through a cloud end, the cloud server transmits upgrading firmware files to the gas meter and installs programs, idle partitions are adopted for processing in the installation process, after upgrading is completed, the gas meter is restarted, and application programs of new versions are executed.
Example four:
an OTA cloud upgrading method for an Internet of things gas meter comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program when the gas meter leaves a factory, wherein the size of the bootloader program is 22.3kb, and the size of the application program is 43.2 kb;
step three: after the gas meter is started, a timing module in the gas meter is started synchronously, a single chip microcomputer of the gas meter is called from an idle process through one partition every 2 hours, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: the cloud server searches for the updated firmware with the file format of BIN through the Internet of things, searches for new updated firmware, returns a successful search instruction to the gas meter, and at the moment, directly sends a signal to the gas meter single chip microcomputer and stops the work of the timing module, and if the update instruction is cancelled at the cloud end, the timing module is restarted.
Example five:
an OTA cloud upgrading method for an Internet of things gas meter comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program when the gas meter leaves a factory, wherein the size of the bootloader program is 22.3kb, and the size of the application program is 43.2 kb;
step three: after the gas meter is started, a timing module in the gas meter is synchronously started, a single chip microcomputer of the gas meter is called from an idle process through one partition every 48 hours, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: the method comprises the steps that a cloud server searches for BIN upgrading firmware in a file format through the Internet of things, new upgrading firmware is searched, a successful searching instruction is returned to a gas meter, at the moment, the cloud server directly sends a signal to a gas meter single chip microcomputer and stops working of a timing module, the cloud end confirms the upgrading instruction, the cloud server transmits upgrading firmware files to the gas meter and installs programs, idle partitions are adopted for processing in the installation process, after upgrading is completed, the gas meter is restarted, and application programs of new versions are executed.
According to the first embodiment to the fifth embodiment, the method provided by the invention has the advantages that the partition calling in the idle process is matched with the timing module, so that the sending of the search instruction is realized, the load of a single chip microcomputer is greatly reduced, the running of the program of the gas meter is not influenced, meanwhile, the firmware is upgraded at the first time through the searching of the Internet of things, the cloud upgrading is realized, in a hanging state when the method is used for not wanting upgrading, the timing module stops working, the memory is not occupied completely, and the flexibility is greatly improved.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (5)

1. An OTA cloud upgrading method for an Internet of things gas meter is characterized by comprising the following steps: the method comprises the following steps:
the method comprises the following steps: deploying a compiling server, a file server and a virtual terminal at the cloud end, uploading the configuration of the monitoring equipment to the cloud server through a network, and using the virtual terminal by a developer to perform cloud programming and remote source code level debugging;
step two: writing a bootloader program and an application program into the gas meter when the gas meter leaves a factory;
step three: after the gas meter is started, a timing module in the gas meter is started synchronously, a single chip microcomputer of the gas meter at every X time is called from an idle process through one partition, a search instruction signal is sent to a cloud end, and then the partition is idled again or added into a process applied to the gas meter;
step four: the method comprises the steps that a cloud server searches for upgrading firmware through the Internet of things, if new upgrading firmware is not searched, the searching process is stopped, a timing module continues to conduct timing, if new upgrading firmware is searched, a searching success command is returned to a gas meter, at the moment, the cloud server directly sends a signal to a gas meter single chip microcomputer and stops working of the timing module, if a cloud end cancels the upgrading command, the timing module is restarted, if the cloud end confirms the upgrading command, the cloud server transmits upgrading firmware files to the gas meter and installs programs, idle partitions are adopted in the installation process to conduct processing, after upgrading is completed, the gas meter is restarted, and a new version application program is executed.
2. The OTA cloud upgrading method for the gas meter of the Internet of things according to claim 1, characterized in that: and the size of the bootloader program in the second step is not more than 24 kb.
3. The OTA cloud upgrading method for the gas meter of the Internet of things according to claim 1, characterized in that: the size of the application program in the second step is not more than 112 kb.
4. The OTA cloud upgrading method for the gas meter of the Internet of things according to claim 1, characterized in that: and in the fourth step, the file format of the upgraded firmware is BIN.
5. The OTA cloud upgrading method for the gas meter of the Internet of things according to claim 1, characterized in that: and a communication module is arranged in the gas meter in the second step.
CN202110196638.7A 2021-02-22 2021-02-22 OTA cloud upgrading method for gas meter of Internet of things Pending CN112925541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110196638.7A CN112925541A (en) 2021-02-22 2021-02-22 OTA cloud upgrading method for gas meter of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110196638.7A CN112925541A (en) 2021-02-22 2021-02-22 OTA cloud upgrading method for gas meter of Internet of things

Publications (1)

Publication Number Publication Date
CN112925541A true CN112925541A (en) 2021-06-08

Family

ID=76170087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110196638.7A Pending CN112925541A (en) 2021-02-22 2021-02-22 OTA cloud upgrading method for gas meter of Internet of things

Country Status (1)

Country Link
CN (1) CN112925541A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708548A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Program upgrading method and terminal device
CN208298163U (en) * 2018-06-14 2018-12-28 上海飞奥燃气设备有限公司 Low power-consumption intelligent gas meter, flow meter
CN109448251A (en) * 2018-12-29 2019-03-08 益阳中屹智能科技有限公司 A kind of Intelligent gas meter based on internet of things
WO2019154172A1 (en) * 2018-02-12 2019-08-15 华为技术有限公司 Software update management method, server, terminal, device, and storage medium
CN110633092A (en) * 2019-09-09 2019-12-31 北京方研矩行科技有限公司 Server for OTA (over the air) upgrading and embedded equipment upgrading method and device
US20200301693A1 (en) * 2019-03-19 2020-09-24 Verizon Patent And Licensing Inc. Firmware over-the-air orchestration for iot devices
WO2021008184A1 (en) * 2019-07-18 2021-01-21 南京依维柯汽车有限公司 Remote upgrading system and upgrading method for fota firmware on new energy automobile
CN112312212A (en) * 2019-07-30 2021-02-02 青岛海信传媒网络技术有限公司 Upgrading method of digital television system and related device
CN112383439A (en) * 2020-11-24 2021-02-19 重庆前卫表业有限公司 Air upgrading system and method for intelligent gas meter

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708548A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Program upgrading method and terminal device
WO2019154172A1 (en) * 2018-02-12 2019-08-15 华为技术有限公司 Software update management method, server, terminal, device, and storage medium
CN208298163U (en) * 2018-06-14 2018-12-28 上海飞奥燃气设备有限公司 Low power-consumption intelligent gas meter, flow meter
CN109448251A (en) * 2018-12-29 2019-03-08 益阳中屹智能科技有限公司 A kind of Intelligent gas meter based on internet of things
US20200301693A1 (en) * 2019-03-19 2020-09-24 Verizon Patent And Licensing Inc. Firmware over-the-air orchestration for iot devices
WO2021008184A1 (en) * 2019-07-18 2021-01-21 南京依维柯汽车有限公司 Remote upgrading system and upgrading method for fota firmware on new energy automobile
CN112312212A (en) * 2019-07-30 2021-02-02 青岛海信传媒网络技术有限公司 Upgrading method of digital television system and related device
CN110633092A (en) * 2019-09-09 2019-12-31 北京方研矩行科技有限公司 Server for OTA (over the air) upgrading and embedded equipment upgrading method and device
CN112383439A (en) * 2020-11-24 2021-02-19 重庆前卫表业有限公司 Air upgrading system and method for intelligent gas meter

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DENG J ET AL.: "Design of Intelligent Gas Meter System Based on STM 32", 《NATURAL GAS AND OIL》 *
丛亮: "燃气表远程抄表系统中基站软件的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
韩彦岭: "《计算机操作系统》", 31 January 2018, 上海科学技术出版社 *

Similar Documents

Publication Publication Date Title
CN111142907B (en) Partition upgrading method for off-line keyword recognition system
CN102520948B (en) Application maintenance update method and device
CN102722384A (en) On-line upgrading method and upgrading system for optical module firmware
CN112198820B (en) Interrupt service implementation method, device, equipment and storage medium
CN104978209A (en) Application updating method and application updating device
CN110633091A (en) Electronic module and software wireless upgrading method thereof
CN111782246A (en) Embedded program upgrading method of multi-node equipment based on bus
CN103106083A (en) Loading method and loading device of firmware
CN115408013A (en) Firmware and file automatic programming method of Zynq UltraScale + MPSoC platform
CN112925541A (en) OTA cloud upgrading method for gas meter of Internet of things
CN115604113B (en) FAN network equipment rapid upgrading method, system, equipment and medium
CN112230967B (en) Optical module firmware rollback online upgrading method based on traditional partition
CN110908690A (en) CAN bus-based online upgrading method for multiple BMU application programs
CN116028084A (en) Cross-version hot upgrading method, system and terminal based on OpenStack cloud platform
CN111949290B (en) Hot patch management method and device, electronic equipment and storage medium
CN112685053B (en) Remote upgrade control method for singlechip program
CN114124698A (en) Upgrading method, device and system of power distribution automation terminal operation system based on cloud master station
CN112968800A (en) Switch batch test method, system and equipment based on Loongson platform
CN111240705A (en) Method and system for upgrading BIOS in UEFI mode
CN115185553A (en) Method for updating device firmware of user and related device
CN112083927A (en) Method for acquiring software SVN version information in power acquisition terminal on site
CN216286665U (en) Device for performing embedded software online upgrade by using NB-IoT (NB-IoT)
CN107145345B (en) Method for updating media access control address based on serial port
CN117687662A (en) Singlechip program upgrading method and device, readable storage medium and electronic equipment
CN116450170A (en) Remote upgrade failure prevention method for MCU program

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

Application publication date: 20210608