CN117650983A - FOTA aggregation upgrading method suitable for embedded equipment - Google Patents

FOTA aggregation upgrading method suitable for embedded equipment Download PDF

Info

Publication number
CN117650983A
CN117650983A CN202311562884.5A CN202311562884A CN117650983A CN 117650983 A CN117650983 A CN 117650983A CN 202311562884 A CN202311562884 A CN 202311562884A CN 117650983 A CN117650983 A CN 117650983A
Authority
CN
China
Prior art keywords
upgrading
equipment
group
version
fota
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
CN202311562884.5A
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 Bolian Communication Technology Co ltd
Original Assignee
Shenzhen Bolian Communication 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 Bolian Communication Technology Co ltd filed Critical Shenzhen Bolian Communication Technology Co ltd
Priority to CN202311562884.5A priority Critical patent/CN117650983A/en
Publication of CN117650983A publication Critical patent/CN117650983A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a FOTA aggregation upgrading method suitable for embedded equipment. The method comprises the following steps: s1, establishing an aggregation upgrading group; s2, inquiring the grouping of the equipment in the upgrading plan; s3, detecting whether a cyclic upgrading mode exists, and if not, entering a step S6; s4, starting an upgrade task; s5, entering an FOTA upgrading task in the equipment; s6, checking whether the equipment is equipment upgrading configuration of the existing network production environment; s7, according to the judgment in the step S6, when the terminal equipment needs to be upgraded, entering a step S4, and waiting for the equipment to be upgraded; s8, resetting the upgrade valid state FLAG. The invention adopts to firstly establish a version group to manage all version information and versions no matter whether the embedded device is disconnected or not, whether the embedded device is the device which is first accessed to the network or not, and whether the embedded device is different in version, the embedded device is not directly updated by the target version, and the embedded device is updated by the target group, and all the devices which are different in source version and need to be updated can take the group as an updating target to finish updating.

Description

FOTA aggregation upgrading method suitable for embedded equipment
Technical Field
The invention relates to the technical field of equipment upgrading methods, in particular to a FOTA aggregation upgrading method suitable for embedded equipment.
Background
The application industry of embedded equipment is more and more in the current society, and the hot industries such as automobiles, mobile phones, home and network communication equipment are not separated from equipment updating, upgrading and upgrading, and the equipment upgrading is often a complicated and error-prone place. In the process of frequent equipment upgrading, some equipment cannot be electrified in time, so that the upgrading process is manually ignored; some devices are far different from the current latest version number, and may be devices of different versions, and after the later on-line FOTA (Firmware Over-the-Air) upgrade is triggered, the current FOTA upgrade is a one-to-one version plan, so that different version upgrade plans need to be formulated, and some devices have incomplete front plans, so that the second upgrade plan cannot be continuously executed. The equipment is required to be upgraded in time, and in practical application, the equipment is uncontrollable, so that upgrade plans are disordered, and each time the upgrade plans cannot be completed because some equipment cannot be upgraded, so that planning tasks cannot be completed. The preparation of the FOTA upgrade plan of the equipment is not easy to operate, and version management and statistics of the embedded equipment are affected.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide the FOTA aggregation upgrading method which is suitable for embedded equipment and can solve the upgrading requirements of different versions of all equipment.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a FOTA aggregation upgrading method suitable for embedded equipment comprises the following steps:
s1, a server establishes an aggregate upgrading packet, a terminal device FOTA upgrading request is initiated, the information carrying SN/MAC/IMEI/FW is sent to the server, and after the server legitimacy authentication check is passed, request data initiated by the terminal device is sent to a server upgrading service module;
s2, after receiving a request of the terminal equipment, the server upgrading service module inquires that the equipment is in an aggregate upgrading group in the upgrading plan, wherein the server strategy is a retrieval method taking the group as a target group, and when the server retrieves that a plurality of groups meet the condition, the server continues to judge the group creation time comparison and takes the latest time and effective group as the target group;
s3, detecting whether the equipment is in a cyclic upgrading mode, identifying the equipment by using a FLAG variable, checking whether the equipment is configured into a cyclic upgrading identifier FLAG=2, if so, indicating that the equipment is in the cyclic upgrading configuration, and continuing to execute the next step, if not, entering a step S6;
s4, according to the FW version of the terminal equipment reporting request, comparing with the FW version obtained by the grouping, if the FW version is consistent, indicating that the version updating of the terminal equipment is completed, and if the FW version is inconsistent, the FW version information is required to be issued to the equipment end, so that an upgrading task is started, and the upgrading process is continued;
s5, the internal upgrading logic of the terminal equipment downloads FW version data according to version information and version storage paths provided by the response packet, formally enters an internal FOTA upgrading task of the equipment, and updates the version of the IMAGE on the FLASH of the equipment until the FW version information of the equipment is reported to complete upgrading, and the FOTA upgrading task is finished;
s6, checking whether the equipment is equipment upgrading configuration of the current network production environment according to the condition that the step S3 is not met, checking whether an upgrading identifier is FLAG=0, if the upgrading identifier is FLAG=0, indicating that the equipment configuration is in an un-upgrading state and needs to be upgraded at the moment, if the equipment configuration is not 0, indicating that the upgrading is successful, and not needing to be repeatedly upgraded, and ending the FOTA upgrading task;
s7, according to the judgment in the step S6, when the terminal equipment needs to be upgraded, entering a step S4, and waiting for the equipment to be upgraded;
s8, after the equipment is upgraded, the FLAG state in the equipment configuration of the current network production environment is required to be reset to the flag=1 mark, the current equipment is upgraded, repeated upgrading is not required, and the FOTA upgrading task is ended.
Preferably, in the step S1, the aggregate upgrade package is a pre-built package, and each time a plan is created, the versions of all the active devices before the aggregate are used as a new package, and when the plan is created, the current package is configured as the latest active package for all the devices.
Preferably, the aggregate upgrade packets exist corresponding to different time periods, and the aggregate upgrade packets are positioned as group G1, group G2, group G3 and group G … … group G n-1 The group G1 carries information FW2|DATE1|FW1, the group G2 carries information FW3|DATE2|FW1|FW2, and the group G n-1 The carried information is FW n |DATE n-1 |FW1|FW2|FW3|……|FW n-1, Wherein FW1 … … FWN is a production firmware version and an externally released formal version used by factory production, DATE1 … … DATE n-1 The correspondence is the current time node currently used to create the aggregate group.
Preferably, the group G1 is removed, the group G2 … … group G n-1 Certain FWs can be deleted or disabled as required, and only the corresponding FW is kicked off in the created aggregation packet to be reissued as a new aggregation packet.
Preferably, the group G1 is removed, the group G2 … … group G n-1 Certain FWs can be added according to the needs, and the corresponding FWs are added into the created aggregation packet and are reissued as new aggregation packets.
By adopting the scheme, the invention firstly establishes a version group to manage all version information and versions no longer directly uses the target version for upgrading, but uses the target group for upgrading no matter whether the embedded equipment is disconnected or not, whether the embedded equipment is the equipment which is accessed to the network for the first time or not, and whether the embedded equipment is different versions, and the embedded equipment can take the group as an upgrading target to finish upgrading, namely, the aggregation FOTA upgrading. This set of information: including version information of different sources, time of group establishment, current latest target FW version. When a group comprising only one source, it can be regarded as a conventional-compatible FOTA upgrade, one-to-one policy FOTA upgrade. Therefore, a brand new upgrading method is used for solving the problem that the FOTA is universally updated in the current equipment upgrading, the equipment versions can only be upgraded in a one-to-one correspondence mode, and different upgrading plans are required to be set for different equipment versions.
Drawings
FIG. 1 is a flow chart of the steps of an upgrade method according to an embodiment of the present invention.
FIG. 2 is a diagram of an aggregate upgrade construction of an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present invention, it should be noted that the terms "mounted," "connected," and "coupled" are to be construed broadly, as well as, for example, fixedly coupled, detachably coupled, or integrally coupled, unless otherwise specifically indicated and defined. Either mechanically or electrically. Can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
As shown in fig. 1 and fig. 2, the FOTA aggregation upgrade method suitable for the embedded device provided in this embodiment includes the following steps:
s1, a server establishes an aggregate upgrading packet, a terminal device FOTA upgrading request is initiated, the information carrying SN/MAC/IMEI/FW is sent to the server, and after the server legitimacy authentication check is passed, request data initiated by the terminal device is sent to a server upgrading service module;
s2, after receiving a request of the terminal equipment, the server upgrading service module inquires that the equipment is in an aggregate upgrading group in the upgrading plan, wherein the server strategy is a retrieval method taking the group as a target group, and when the server retrieves that a plurality of groups meet the condition, the server continues to judge the group creation time comparison and takes the latest time and effective group as the target group;
s3, because an upgrade identification FLAG variable is preset in the device research and development debugging verification stage, whether repeated upgrade is allowed or not can be marked, so that debugging can be facilitated, multiple times of verification upgrade can be realized, and even if the device upgrade is successful, the identification cannot be changed. So whether the equipment is in a cyclic upgrading mode or not needs to be detected, the FLAG variable is used for identifying, whether the equipment is configured into a cyclic upgrading identifier flag=2 is checked, if the equipment is in the cyclic upgrading identifier, the equipment is indicated to be in the cyclic upgrading configuration, the next step is continuously executed, and if the equipment is not in the cyclic upgrading configuration, the step S6 is entered;
s4, according to the FW version of the terminal equipment reporting request, comparing with the FW version obtained by the grouping, if the FW version is consistent, indicating that the version updating of the terminal equipment is completed, and if the FW version is inconsistent, the FW version information is required to be issued to the equipment end, so that an upgrading task is started, and the upgrading process is continued;
s5, the internal upgrading logic of the terminal equipment downloads FW version data according to version information and version storage paths provided by the response packet, formally enters an internal FOTA upgrading task of the equipment, and updates the version of the IMAGE on the FLASH of the equipment until the FW version information of the equipment is reported to complete upgrading, and the FOTA upgrading task is finished;
s6, checking whether the equipment is equipment upgrading configuration of the current network production environment according to the condition that the step S3 is not met, checking whether an upgrading identifier is FLAG=0, if the upgrading identifier is FLAG=0, indicating that the equipment configuration is in an un-upgrading state and needs to be upgraded at the moment, if the equipment configuration is not 0, indicating that the upgrading is successful, and not needing to be repeatedly upgraded, and ending the FOTA upgrading task;
s7, according to the judgment in the step S6, when the terminal equipment needs to be upgraded, entering a step S4, and waiting for the equipment to be upgraded;
s8, after the equipment is upgraded, the FLAG state in the equipment configuration of the current network production environment is required to be reset to the flag=1 mark, the current equipment is upgraded, repeated upgrading is not required, and the FOTA upgrading task is ended.
Further, in the step S1, the aggregate upgrade package is a pre-built package, and each time a plan is created, the versions of all the active devices before the package are aggregated as a new package, and when the device upgrade plan is created, the current package is configured for all the devices as the latest active package.
Further, as shown in fig. 2, the aggregate upgrade construction diagram of the embodiment is that the aggregate upgrade packets have corresponding packets according to different times, and the aggregate upgrade packets are located as group G1, group G2, group G3 and … … group G n-1 The group G1 carries information FW2|DATE1|FW1, the group G2 carries information FW3|DATE2|FW1|FW2, and the group G n-1 The carried information is FW n |DATE n-1 |FW1|FW2|FW3|……|FW n-1, Wherein FW1 … … FWN is a production firmware version and an externally released formal version used by factory production, DATE1 … … DATE n-1 The correspondence is the current time node currently used to create the aggregate group.
Wherein, at the time line 1, FW2 is issued, all versions of the devices a used by the current network are FW1, and the group G1 created at this time only needs to include information of the version FW1, so that the FOTA upgrade can be completed, which is substantially the same as the conventional FOTA upgrade. Device B is the device that is newly brought online, its version is the latest version at the current time, no upgrades are needed, and the version of device B is the target version of device a that was brought online before.
At time line 2, the published FW3, if the client has used devices with device A and device B, the group G2 created at this time, includes information that needs to include version FW1 information of the last time G1 was created (upgrade device A has not been updated), and time line 1 has been updated to the version of version FW2 device B (A'). All devices can be upgraded to the latest version FW3 before according to the latest target packet G2 policy. Device C is the device that was newly brought online, its version is the latest version at the current time, no upgrades are needed, and the version of device C is the target version of device a and device B that were brought online before.
At time line 3, the published FW4, if the customer has used devices, device a, device B and device C, the group G3 created at this time, includes information needed to include version FW1 information of the G2 created last (not updated upgrade device a), version FW2 information (not updated upgrade device B), and time line 2 has been updated to the version of FW3 device C (B'). All devices can be upgraded to the latest version FW4 device D as the device to be online newly according to the latest target packet G3 policy, its version is the latest version at the current time, no upgrade is required, and the version of device D is the target version of the previous online devices a, B and C.
If some FWs need to be deleted or disabled, the corresponding FWs in the created aggregation packet only need to be kicked off and reissued as a new aggregation packet.
The subsequent timelines, if there is a release of a new version, are equally applicable to the new add/delete aggregate grouping method and so on.
The above-described apparatus A, B, C factory produces an original version of the shipment equipment. Devices a ', B ', C ' represent the new naming of the original factory device A, B, C after successful upgrade of the new FW, no upgrade of the successful device, or naming using the original device A, B, C, respectively. The equipment with a plurality of (') identifiers is successfully updated by FW for a plurality of times, and can be understood as equipment which is not the original factory equipment, namely equipment with (').
Wherein FW n Production firmware version and external release formal version for factory production n Corresponding to the current creation aggregateThe current time used by the group, a different timeline may release a new FW or produce a new device.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (5)

1. The FOTA aggregation upgrading method suitable for the embedded equipment is characterized by comprising the following steps of:
s1, a server establishes an aggregate upgrading packet, a terminal device FOTA upgrading request is initiated, the information carrying SN/MAC/IMEI/FW is sent to the server, and after the server legitimacy authentication check is passed, request data initiated by the terminal device is sent to a server upgrading service module;
s2, after receiving a request of the terminal equipment, the server upgrading service module inquires that the equipment is in an aggregate upgrading group in the upgrading plan, wherein the server strategy is a retrieval method taking the group as a target group, and when the server retrieves that a plurality of groups meet the condition, the server continues to judge the group creation time comparison and takes the latest time and effective group as the target group;
s3, detecting whether the equipment is in a cyclic upgrading mode, identifying the equipment by using a FLAG variable, checking whether the equipment is configured into a cyclic upgrading identifier FLAG=2, if so, indicating that the equipment is in the cyclic upgrading configuration, and continuing to execute the next step, if not, entering a step S6;
s4, according to the FW version of the terminal equipment reporting request, comparing with the FW version obtained by the grouping, if the FW version is consistent, indicating that the version updating of the terminal equipment is completed, and if the FW version is inconsistent, the FW version information is required to be issued to the equipment end, so that an upgrading task is started, and the upgrading process is continued;
s5, the internal upgrading logic of the terminal equipment downloads FW version data according to version information and version storage paths provided by the response packet, formally enters an internal FOTA upgrading task of the equipment, and updates the version of the IMAGE on the FLASH of the equipment until the FW version information of the equipment is reported to complete upgrading, and the FOTA upgrading task is finished;
s6, checking whether the equipment is equipment upgrading configuration of the current network production environment according to the condition that the step S3 is not met, checking whether an upgrading identifier is FLAG=0, if the upgrading identifier is FLAG=0, indicating that the equipment configuration is in an un-upgrading state and needs to be upgraded at the moment, if the equipment configuration is not 0, indicating that the upgrading is successful, and not needing to be repeatedly upgraded, and ending the FOTA upgrading task;
s7, according to the judgment in the step S6, when the terminal equipment needs to be upgraded, entering a step S4, and waiting for the equipment to be upgraded;
s8, after the equipment is upgraded, the FLAG state in the equipment configuration of the current network production environment is required to be reset to the flag=1 mark, the current equipment is upgraded, repeated upgrading is not required, and the FOTA upgrading task is ended.
2. The FOTA aggregation upgrade method for embedded devices of claim 1, wherein: in the step S1, the aggregate upgrade package is a pre-built package, and each time a plan is created, the versions of all the active devices before are aggregated as a new package, and when the equipment upgrade plan is created, the current package is configured as the latest active package for all the devices.
3. The FOTA aggregation upgrade method for embedded devices of claim 2, wherein: the aggregate upgrade packets have corresponding packets according to different times, and the aggregate upgrade packets are positioned as group G1, group G2, group G3 and group G … … group G n-1 The group G1 carries information FW2|DATE1|FW1, the group G2 carries information FW3|DATE2|FW1|FW2, and the group G n-1 The carried information is FW n |DATE n-1 |FW1|FW2|FW3|……|FW n-1, Wherein FW1 … … FWN is a production firmware version and an externally released formal version used by factory production, DATE1 … … DATE n-1 The correspondence is the current time node currently used to create the aggregate group.
4. The FOTA aggregation upgrade method for embedded devices as claimed in claim 3, wherein: removing the group G1, the group G2 and the group G2 … … n-1 Certain FWs can be deleted or disabled as required, and only the corresponding FW is kicked off in the created aggregation packet to be reissued as a new aggregation packet.
5. The FOTA aggregation upgrade method for embedded devices of claim 4, wherein: removing the group G1, the group G2 and the group G2 … … n-1 Certain FWs can be added according to the needs, and the corresponding FWs are added into the created aggregation packet and are reissued as new aggregation packets.
CN202311562884.5A 2023-11-22 2023-11-22 FOTA aggregation upgrading method suitable for embedded equipment Pending CN117650983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311562884.5A CN117650983A (en) 2023-11-22 2023-11-22 FOTA aggregation upgrading method suitable for embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311562884.5A CN117650983A (en) 2023-11-22 2023-11-22 FOTA aggregation upgrading method suitable for embedded equipment

Publications (1)

Publication Number Publication Date
CN117650983A true CN117650983A (en) 2024-03-05

Family

ID=90045846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311562884.5A Pending CN117650983A (en) 2023-11-22 2023-11-22 FOTA aggregation upgrading method suitable for embedded equipment

Country Status (1)

Country Link
CN (1) CN117650983A (en)

Similar Documents

Publication Publication Date Title
CN109032653B (en) Method, device, equipment and storage medium for upgrading vehicle-mounted terminal of unmanned vehicle
CN111277477B (en) FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments
US20170344355A1 (en) Updating vehicle system modules
US20140282467A1 (en) Method and Apparatus for Multiple Vehicle Software Module Reflash
CN111367545A (en) Terminal upgrading method and device, server, terminal equipment and readable storage medium
WO2014018256A1 (en) Wireless firmware upgrades to an alarm security panel
CN112230966B (en) OTA upgrading method and device
CN111142905B (en) OTA upgrading method, OTA server and OTA upgrading system
CN112650520A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN110708205A (en) Method and system for performing FOTA (firmware over the air) on equipment through gateway
CN110362329A (en) A kind of version updating inspection method and system
CN103874113A (en) Wireless network maintenance method, device and system
WO2016127612A1 (en) Monitoring processing method and device
CN108984194B (en) Automobile remote iteration system based on 4G network
CN114980302A (en) Equipment access method, equipment management method, system and computer equipment
CN113660317A (en) Vehicle-mounted terminal remote upgrading method based on FTP protocol
CN105871568B (en) Software upgrading method and system
JP4298716B2 (en) Communication control system
CN113315797A (en) Method, system and node for remote upgrading of local area network in batches
DE102017100749A1 (en) METHOD AND DEVICE FOR CYCLIC FILING REPLACEMENT OF THE DEACTIVATED VEHICLE
CN117650983A (en) FOTA aggregation upgrading method suitable for embedded equipment
CN112667272A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
US11012830B2 (en) Automated activation and onboarding of connected devices
CN105872106A (en) Over-the-air upgrade method, over-the-air server and terminal
CN110990046A (en) Upgrading method based on dynamic file

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