CN112817630A - FOTA upgrading method based on small space - Google Patents

FOTA upgrading method based on small space Download PDF

Info

Publication number
CN112817630A
CN112817630A CN202110124233.2A CN202110124233A CN112817630A CN 112817630 A CN112817630 A CN 112817630A CN 202110124233 A CN202110124233 A CN 202110124233A CN 112817630 A CN112817630 A CN 112817630A
Authority
CN
China
Prior art keywords
packet
intelligent terminal
upgrading
space
differential
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
CN202110124233.2A
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.)
Shenzhen Huazhuo Intelligent Technology Co ltd
Original Assignee
Shenzhen Huazhuo Intelligent 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 Shenzhen Huazhuo Intelligent Technology Co ltd filed Critical Shenzhen Huazhuo Intelligent Technology Co ltd
Priority to CN202110124233.2A priority Critical patent/CN112817630A/en
Publication of CN112817630A publication Critical patent/CN112817630A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of FOTA upgrading, and discloses a FOTA upgrading method based on a small space, which comprises the following steps: acquiring a first differential packet, a second differential packet and a third differential packet which are all used for upgrading the intelligent terminal; uploading the first differential packet, the second differential packet and the third differential packet to an OTA server; the OTA server sends an instruction to the intelligent terminal to detect the size of the space and returns the instruction to detect whether the space is upgraded or not; if so, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading packet; if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloading a plurality of compressed packets in the first differential packet to a corresponding space of the intelligent terminal, and independently upgrading the compressed packets; when the current compression packet in the first differential packet is upgraded successfully, a flag is sent to an OTA server to download the next compression packet; and automatically deleting the upgrading packet until the last compression packet in the first differential packet is upgraded successfully. The invention is convenient for small-space upgrading of the intelligent terminal.

Description

FOTA upgrading method based on small space
Technical Field
The invention relates to the technical field of FOTA upgrading, in particular to a FOTA upgrading method based on a small space.
Background
The FOTA upgrade (Firmware Over-the-Air) technology mainly refers to a technology for remotely managing and updating Firmware in terminal equipment through an Air interface. Through the FOTA upgrading operation, not only can the upgrading application software be downloaded, but also the operating system of the equipment can be updated. Therefore, the FOTA upgrading operation enables equipment manufacturers to send the upgrading packet to the terminal equipment of the users through the network, so that the firmware and the software are upgraded, the convenience is brought to the users, and the cost is saved for the equipment manufacturers.
In the prior art, many embedded devices have strict requirements on space, and some embedded devices have only a few M spaces. However, before development, the fota upgrading space needs to be reserved, so that great restriction is imposed on later development of functions.
Therefore, how to provide a FOTA upgrading method based on a small space is to facilitate the small space upgrading of the intelligent terminal, which becomes an urgent technical problem to be solved.
Disclosure of Invention
The invention aims to provide a small-space-based FOTA upgrading method, which is convenient for upgrading a small space of an intelligent terminal.
Therefore, according to a first aspect, an embodiment of the present invention discloses a FOTA upgrade method based on a small space, including: acquiring a first differential packet, a second differential packet and a third differential packet which are all used for upgrading the intelligent terminal; uploading the first differential packet, the second differential packet, and the third differential packet to an OTA server; the OTA server sends an instruction to the intelligent terminal to detect the size of the space and returns the instruction to detect whether the space is upgraded or not; if so, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading packet; if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloading a plurality of compressed packets in the first differential packet to a corresponding space of the intelligent terminal, and independently upgrading the compressed packets; when the current compression packet in the first differential packet is successfully upgraded, the current compression packet is automatically deleted, and a flag is sent to an OTA server to download the next compression packet; and automatically deleting the upgrading packet until the last compression packet in the first differential packet is upgraded successfully.
The invention is further set to distinguish each function of the intelligent terminal into different differential packets through a flag, compress the differential packets after the differential packets are finished, and sequentially encode each compressed packet to obtain a first differential packet.
The invention is further arranged that the second differential packet is made in partitions, each partition being made separately.
The invention is further configured such that the third differential packet is a whole packet.
The invention is further configured that, if the request is positive, the OTA server sends an upgrade instruction to the intelligent terminal, and after preparing a corresponding upgrade package, the method further comprises the following steps: and if the OTA server detects that the space of the intelligent terminal is enough, the intelligent terminal is upgraded in a whole package until the upgrading is successful.
The present invention is further configured such that, if the OTA server detects that the space of the intelligent terminal is a small space, the method further includes the steps of sequentially downloading the plurality of compressed packets in the first differential packet to the corresponding space of the intelligent terminal, and performing individual upgrade on the compressed packets, and then: and after the intelligent terminal is subjected to upgrading suspension operation, the intelligent terminal continues to be upgraded before suspension in the next idle time.
The invention is further configured that, if the request is yes, the OTA server sends an upgrade instruction to the intelligent terminal, prepares a corresponding upgrade package, and if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloads a plurality of compressed packages in the first differential package to the corresponding space of the intelligent terminal, and performs individual upgrade, the method further comprises: when the intelligent terminal needs to be upgraded for many times, the OTA server detects the use time of the user and upgrades the user at night when the user is not used.
The invention has the following beneficial effects: the embodiment of the invention discloses a small-space-based FOTA upgrading method, which comprises the steps of obtaining a first differential packet, a second differential packet and a third differential packet which are all used for upgrading an intelligent terminal; uploading the first differential packet, the second differential packet, and the third differential packet to an OTA server; the OTA server sends an instruction to the intelligent terminal to detect the size of the space and returns the instruction to detect whether the space is upgraded or not; if so, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading packet; if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloading a plurality of compressed packets in the first differential packet to a corresponding space of the intelligent terminal, and independently upgrading the compressed packets; when the current compression packet in the first differential packet is successfully upgraded, the current compression packet is automatically deleted, and a flag is sent to an OTA server to download the next compression packet; and automatically deleting the upgrading packet until the last compression packet in the first differential packet is upgraded successfully. Compared with the prior art, the intelligent system can be upgraded differentially, the FOTA upgrading method based on the small space is provided, and the intelligent terminal can be upgraded conveniently in the small space.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a FOTA upgrade method based on a small space disclosed in this embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses a FOTA upgrading method based on a small space, which comprises the following steps of:
step S101, a first differential packet, a second differential packet and a third differential packet which are all used for upgrading the intelligent terminal are obtained;
step S102, uploading the first differential packet, the second differential packet and the third differential packet to an OTA server;
step S103, the OTA server sends an instruction to the intelligent terminal to detect the size of the space and returns the instruction to detect whether the space is upgraded;
step S104, if yes, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading packet;
step S105, if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloading a plurality of compressed packets in the first differential packet to a corresponding space of the intelligent terminal, and independently upgrading the compressed packets;
step S106, when the current compression packet in the first differential packet is successfully upgraded, the current compression packet is automatically deleted, and a flag is sent to an OTA server to download the next compression packet;
and step S107, automatically deleting the upgrading packet until the last compression packet in the first differential packet is upgraded successfully.
It should be noted that, in the FOTA upgrade method based on a small space disclosed in the embodiment of the present invention, the first differential packet, the second differential packet, and the third differential packet, which are all used for upgrading the intelligent terminal, are obtained; uploading the first differential packet, the second differential packet, and the third differential packet to an OTA server; the OTA server sends an instruction to the intelligent terminal to detect the size of the space and returns the instruction to detect whether the space is upgraded or not; if so, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading packet; if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloading a plurality of compressed packets in the first differential packet to a corresponding space of the intelligent terminal, and independently upgrading the compressed packets; when the current compression packet in the first differential packet is successfully upgraded, the current compression packet is automatically deleted, and a flag is sent to an OTA server to download the next compression packet; and automatically deleting the upgrading packet until the last compression packet in the first differential packet is upgraded successfully. Compared with the prior art, the intelligent system can be upgraded differentially, the FOTA upgrading method based on the small space is provided, and the intelligent terminal can be upgraded conveniently in the small space.
In this embodiment, each function of the intelligent terminal is differentiated into different differential packets through a flag, the differential packets are compressed after the completion, and each compressed packet is sequentially encoded to obtain a first differential packet.
In this embodiment, the second differential packet is manufactured by partitioning, and each partition is manufactured separately.
In this embodiment, the third differential packet is a whole packet.
In this embodiment, after step S104, the method further includes: and if the OTA server detects that the space of the intelligent terminal is enough, the intelligent terminal is upgraded in a whole package until the upgrading is successful.
In this embodiment, after step S105, the method further includes: and after the intelligent terminal is subjected to upgrading suspension operation, the intelligent terminal continues to be upgraded before suspension in the next idle time.
In this embodiment, between step S104 and step S105, the method further includes: when the intelligent terminal needs to be upgraded for many times, the OTA server detects the use time of the user and upgrades the user at night when the user is not used.
The working principle is as follows: the embodiment of the invention discloses a small-space-based FOTA upgrading method, which comprises the steps of obtaining a first differential packet, a second differential packet and a third differential packet which are all used for upgrading an intelligent terminal; uploading the first differential packet, the second differential packet, and the third differential packet to an OTA server; the OTA server sends an instruction to the intelligent terminal to detect the size of the space and returns the instruction to detect whether the space is upgraded or not; if so, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading packet; if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloading a plurality of compressed packets in the first differential packet to a corresponding space of the intelligent terminal, and independently upgrading the compressed packets; when the current compression packet in the first differential packet is successfully upgraded, the current compression packet is automatically deleted, and a flag is sent to an OTA server to download the next compression packet; and automatically deleting the upgrading packet until the last compression packet in the first differential packet is upgraded successfully. Compared with the prior art, the intelligent system can be upgraded differentially, the FOTA upgrading method based on the small space is provided, and the intelligent terminal can be upgraded conveniently in the small space.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (7)

1. A FOTA upgrading method based on small space is characterized by comprising the following steps:
acquiring a first differential packet, a second differential packet and a third differential packet which are all used for upgrading the intelligent terminal;
uploading the first differential packet, the second differential packet, and the third differential packet to an OTA server;
the OTA server sends an instruction to the intelligent terminal to detect the size of the space and returns the instruction to detect whether the space is upgraded or not;
if so, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading packet;
if the OTA server detects that the space of the intelligent terminal is a small space, sequentially downloading a plurality of compressed packets in the first differential packet to a corresponding space of the intelligent terminal, and independently upgrading the compressed packets;
when the current compression packet in the first differential packet is successfully upgraded, the current compression packet is automatically deleted, and a flag is sent to an OTA server to download the next compression packet;
and automatically deleting the upgrading packet until the last compression packet in the first differential packet is upgraded successfully.
2. The FOTA upgrading method based on the small space as claimed in claim 1, wherein each function of the intelligent terminal is distinguished into different differential packets through a flag, the differential packets are compressed after being completed, and each compressed packet is sequentially encoded to obtain a first differential packet.
3. The FOTA upgrade method based on small space as claimed in claim 1, wherein the second difference packet is made by partitioning, each partition being made separately.
4. The FOTA upgrade method based on small space as claimed in claim 1, wherein said third differential packet is a whole packet.
5. The FOTA upgrading method based on small space as claimed in claim 1, wherein if yes, the OTA server sends an upgrading instruction to the intelligent terminal and prepares a corresponding upgrading package, further comprising:
and if the OTA server detects that the space of the intelligent terminal is enough, the intelligent terminal is upgraded in a whole package until the upgrading is successful.
6. The FOTA upgrade method based on small space as claimed in claim 1, wherein if the OTA server detects that the space of the intelligent terminal is small, the OTA server sequentially downloads the plurality of compressed packets in the first differential packet to the corresponding space of the intelligent terminal, and performs individual upgrade, further comprising:
and after the intelligent terminal is subjected to upgrading suspension operation, the intelligent terminal continues to be upgraded before suspension in the next idle time.
7. The FOTA upgrade method based on small space as claimed in claim 1, wherein if said, OTA server sends upgrade order to intelligent terminal, and prepares corresponding upgrade package, and if said OTA server detects that the intelligent terminal space is small space, downloads multiple compressed packages in the first differential package to corresponding space of intelligent terminal in turn, and performs individual upgrade, further comprising:
when the intelligent terminal needs to be upgraded for many times, the OTA server detects the use time of the user and upgrades the user at night when the user is not used.
CN202110124233.2A 2021-01-28 2021-01-28 FOTA upgrading method based on small space Pending CN112817630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110124233.2A CN112817630A (en) 2021-01-28 2021-01-28 FOTA upgrading method based on small space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110124233.2A CN112817630A (en) 2021-01-28 2021-01-28 FOTA upgrading method based on small space

Publications (1)

Publication Number Publication Date
CN112817630A true CN112817630A (en) 2021-05-18

Family

ID=75860167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110124233.2A Pending CN112817630A (en) 2021-01-28 2021-01-28 FOTA upgrading method based on small space

Country Status (1)

Country Link
CN (1) CN112817630A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885903A (en) * 2021-08-30 2022-01-04 珠海读书郎软件科技有限公司 Multi-application upgrading method for application market
BE1029923B1 (en) * 2021-11-15 2023-06-12 Shenzhen Sunritel Smart Tech Ltd FIRMWARE OVER THE AIR (FOTA) UPGRADE PROCEDURE BASED ON SMALL SPACE

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714811A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Method and device for manufacturing difference upgrade package and system difference upgrade method and device
CN105812178A (en) * 2016-03-08 2016-07-27 青岛海信移动通信技术股份有限公司 Terminal upgrade method and terminal
CN107995284A (en) * 2017-11-29 2018-05-04 艾体威尔电子技术(北京)有限公司 A kind of OTA upgrade methods suitable for POS machine
CN108650287A (en) * 2018-03-15 2018-10-12 百度在线网络技术(北京)有限公司 Upgrade method, equipment and the computer-readable medium of terminal device in Internet of Things
CN112162773A (en) * 2020-10-10 2021-01-01 北京紫光展锐通信技术有限公司 Differential upgrading method and device, storage medium and terminal
CN112181471A (en) * 2020-10-16 2021-01-05 北京紫光展锐通信技术有限公司 Differential upgrading method and device, storage medium and computer equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714811A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Method and device for manufacturing difference upgrade package and system difference upgrade method and device
US20160321063A1 (en) * 2013-12-13 2016-11-03 Zte Corporation Method and Device for Making Differential Upgrade Package, and Method and Device for System Differential Upgrading
CN105812178A (en) * 2016-03-08 2016-07-27 青岛海信移动通信技术股份有限公司 Terminal upgrade method and terminal
CN107995284A (en) * 2017-11-29 2018-05-04 艾体威尔电子技术(北京)有限公司 A kind of OTA upgrade methods suitable for POS machine
CN108650287A (en) * 2018-03-15 2018-10-12 百度在线网络技术(北京)有限公司 Upgrade method, equipment and the computer-readable medium of terminal device in Internet of Things
CN112162773A (en) * 2020-10-10 2021-01-01 北京紫光展锐通信技术有限公司 Differential upgrading method and device, storage medium and terminal
CN112181471A (en) * 2020-10-16 2021-01-05 北京紫光展锐通信技术有限公司 Differential upgrading method and device, storage medium and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885903A (en) * 2021-08-30 2022-01-04 珠海读书郎软件科技有限公司 Multi-application upgrading method for application market
BE1029923B1 (en) * 2021-11-15 2023-06-12 Shenzhen Sunritel Smart Tech Ltd FIRMWARE OVER THE AIR (FOTA) UPGRADE PROCEDURE BASED ON SMALL SPACE

Similar Documents

Publication Publication Date Title
CN105791387B (en) Vehicle control updating method and system
CN105094883B (en) Method and system for vehicle update
CN112817630A (en) FOTA upgrading method based on small space
CN100428816C (en) Method for over air mobile station management
EP2878140B1 (en) Wireless firmware upgrades to an alarm security panel
US20150363210A1 (en) Vehicle download by remote mobile device
CN111158738B (en) Headset firmware upgrading method and device and readable storage medium
CN104809006B (en) Software-implemented apparatus and method between a vehicle and a mobile device
CN105270288B (en) Method and apparatus for dynamically updating vehicle modules configuration record
CN104951332A (en) Targeted vehicle remote feature updates
KR101541112B1 (en) FOTA system and the method
KR20170066579A (en) Method for updating terminal system, terminal and system
CN101958933A (en) Method and device for upgrading terminal software
JP2015510617A (en) System and corresponding method for providing telematic services
CN102577236A (en) Method and apparatus for remote management of device
CN111142905B (en) OTA upgrading method, OTA server and OTA upgrading system
EP1757132A1 (en) Modular data components for wireless communication devices
CN107391205B (en) Cable digital television network conversion equipment and system upgrading method based on cable digital television network conversion equipment
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
WO2012016409A1 (en) Terminal upgrade method, terminal upgrade downgrade method and upgrade management center
WO2018131223A1 (en) Relay device, communication control method, and communication control program
WO2019129271A1 (en) Method for electronic device authentication and firmware update, and electronic device
CN102158851B (en) Method for updating network service request parameters of mobile terminal and mobile terminal
CN103825937A (en) Method, device and system for controlling data updating of embedded equipment
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210518

WD01 Invention patent application deemed withdrawn after publication