CN114489726A - OTA (over the air) upgrading method and device for electronic equipment - Google Patents

OTA (over the air) upgrading method and device for electronic equipment Download PDF

Info

Publication number
CN114489726A
CN114489726A CN202210061982.XA CN202210061982A CN114489726A CN 114489726 A CN114489726 A CN 114489726A CN 202210061982 A CN202210061982 A CN 202210061982A CN 114489726 A CN114489726 A CN 114489726A
Authority
CN
China
Prior art keywords
ota
equipment
module
hash value
upgrade
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
CN202210061982.XA
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 Kaadas Intelligent Technology Co Ltd
Original Assignee
Shenzhen Kaadas 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 Kaadas Intelligent Technology Co Ltd filed Critical Shenzhen Kaadas Intelligent Technology Co Ltd
Priority to CN202210061982.XA priority Critical patent/CN114489726A/en
Publication of CN114489726A publication Critical patent/CN114489726A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides an OTA (over the air) upgrading method and device for electronic equipment. The method comprises the following steps: acquiring OTA (over the air) upgrading task information; determining a first hash value of an OTA file of each equipment module in the plurality of equipment modules according to the OTA upgrading task information; if the first hash value of the OTA file of a first equipment module in the plurality of equipment modules is smaller than a preset threshold value, determining a second hash value of the OTA file of the first equipment module according to the first hash value of the OTA file of the first equipment module; and performing OTA upgrading on the first equipment module based on the second hash value of the OTA file of the first equipment module. The method can perform OTA upgrade on the electronic equipment module in a programmed manner, simultaneously reduces system risks caused by human factors in the OTA upgrade, improves the OTA upgrade efficiency of the electronic equipment module, and intelligently manages the OTA upgrade of the electronic equipment.

Description

OTA (over the air) upgrading method and device for electronic equipment
Technical Field
The present application relates to the field of telecommunications technologies, and in particular, to an OTA upgrading method and apparatus for an electronic device.
Background
With The continuous development of The internet of things technology, The technology of The electronic device is increasingly accelerated, so that The upgrade of The electronic device is limited by network bandwidth and power consumption, and The firmware of The electronic device can be updated quickly, safely and efficiently through Over-The-Air technology (OTA).
Because the electronic equipment purchased by the user has different production batches and network access times, the version of the electronic equipment module is far from the latest version, and meanwhile, the electronic equipment in a large batch and multiple batches has complex versions, so that the OTA upgrade management and operation and maintenance difficulty of the electronic equipment module is increased.
Currently, the OTA upgrade of the electronic device module based on the internet of things is generally implemented by directly and sequentially performing manual upgrade on a plurality of OTA versions included between the current OTA version and the latest OTA version of the electronic device module, so as to upgrade to the latest OTA version of the electronic device module. The method is complex to operate, system risks are easily caused by human factors, OTA upgrading efficiency of the electronic equipment module is influenced, and OTA upgrading of the electronic equipment module cannot be intelligently managed.
Disclosure of Invention
The embodiment of the application provides an OTA upgrading method and device for electronic equipment, which can perform OTA upgrading on an electronic equipment module in a programmed manner, reduce system risks caused by human factors in OTA upgrading, improve OTA upgrading efficiency of the electronic equipment module and intelligently manage OTA upgrading of the electronic equipment.
In a first aspect, an embodiment of the present application provides an OTA upgrading method for an electronic device, including:
acquiring OTA (over the air) upgrading task information, wherein the OTA upgrading task information comprises equipment types, equipment models and equipment modules of electronic equipment, one equipment type corresponds to a plurality of equipment models, and one equipment model corresponds to a plurality of equipment modules;
determining a first hash value of an OTA file of each equipment module in the plurality of equipment modules according to the OTA upgrading task information;
if the first hash value of the OTA file of a first equipment module in the plurality of equipment modules is smaller than a preset threshold value, determining a second hash value of the OTA file of the first equipment module according to the first hash value of the OTA file of the first equipment module;
and performing OTA upgrade on the first equipment module based on the second hash value of the OTA file of the first equipment module.
In the method, a first hash value of an OTA file of an equipment module is determined through the equipment type and the equipment model of the electronic equipment in the OTA upgrading task information and the equipment module, the first hash value is the hash value corresponding to the current OTA version of the equipment module, a second hash value of the OTA file of the equipment module is determined through the first hash value, the second hash value is the hash value corresponding to the latest OTA version of the equipment module, and the latest OTA version hash value can be calculated through the method no matter how many OTA version hash values the equipment module of the electronic equipment is located in, so that the equipment module is subjected to OTA upgrading. The method does not need manual operation, reduces the system risk caused by human factors in OTA upgrading, improves the OTA upgrading efficiency of the equipment module, and realizes intelligent management and control of OTA upgrading.
In one possible implementation manner, the determining, according to the OTA upgrade task information, a first hash value of an OTA file of each of the plurality of device modules includes:
adding the hash value corresponding to the device type, the hash value corresponding to the device model and the hash value corresponding to the device module of the electronic device, and determining a first hash value of an OTA file of each device module in the plurality of device modules.
In this application embodiment, every equipment type of electronic equipment corresponds different hash values respectively, every equipment model corresponds different hash values respectively, every equipment module corresponds different hash values respectively, consequently, the hash value that corresponds the equipment type, the hash value that the equipment model corresponds and the hash value that the equipment module corresponds add, can obtain the first hash value of the OTA file of every equipment module, every first hash value is all unique, be convenient for follow-up accurately carry out the OTA upgrade to electronic equipment according to first hash value, promote equipment module's OTA upgrade efficiency.
In one possible implementation manner, the performing OTA upgrade on the first device module based on the second hash value of the OTA file of the first device module includes:
determining an OTA version of the OTA file of the first device module based on a second hash value of the OTA file of the first device module;
and performing OTA upgrade on the first equipment module according to the OTA version.
In the embodiment of the application, the second hash value of the OTA file of each equipment module is the hash value corresponding to the latest OTA version of the equipment module, the latest OTA version of the equipment module can be accurately found through the second hash value, and the equipment module is subjected to OTA upgrade according to the latest OTA version. The method does not need manual operation, reduces the system risk caused by human factors in OTA upgrading, and improves the OTA upgrading efficiency of the equipment module.
In one possible implementation, the OTA upgrade to the first device module includes:
and performing OTA upgrade on the first equipment module according to configuration information of an OTA upgrade task, wherein the configuration information comprises an upgrade priority, an upgrade range and an OTA dependent version module.
In the embodiment of the application, the configuration information of the OTA upgrading task can configure OTA upgrading of electronic equipment modules with different production batches and different access times, so that the problem that OTA versions are complex and difficult to upgrade and manage due to the fact that the electronic equipment modules are produced in large quantities and different access times is solved, and intelligent management and control of OTA upgrading are achieved.
In a possible implementation manner, after performing OTA upgrade on the first device module based on the second hash value of the OTA file of the first device module, the method further includes:
and receiving an OTA upgrading result of the first equipment module sent by the electronic equipment.
In the embodiment of the application, the intermediate state can be selectively reported in the OTA upgrading process, but the OTA upgrading result must be reported, the configuration information of the OTA upgrading task is reversely updated through the OTA upgrading result, the OTA upgrading task is scheduled, and the OTA upgrading of the equipment module is intelligently managed and controlled.
In a possible implementation manner, after receiving the OTA upgrade result of the first device module sent by the electronic device, the method further includes:
and when the OTA upgrading result is upgrading failure, retransmitting the data packet of the OTA version to the electronic equipment.
In the embodiment of the application, when the OTA upgrading result is upgrading failure, the server sends the data packet of the OTA version to the electronic equipment again, and retries upgrading for many times, so that upgrading failure caused by system or operation problems is avoided, and OTA upgrading efficiency of the equipment module is improved.
In a second aspect, an embodiment of the present application provides an OTA upgrading apparatus for an electronic device, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring OTA (over the air) upgrading task information, and the OTA upgrading task information comprises the device types, the device models and the device modules of electronic equipment, one device type corresponds to a plurality of device models, and one device model corresponds to a plurality of device modules;
the processing unit is used for determining a first hash value of an OTA file of each equipment module in the plurality of equipment modules according to the OTA upgrading task information; if the first hash value of the OTA file of a first equipment module in the plurality of equipment modules is smaller than a preset threshold value, determining a second hash value of the OTA file of the first equipment module according to the first hash value of the OTA file of the first equipment module; and performing OTA upgrade on the first equipment module based on the second hash value of the OTA file of the first equipment module.
In a possible implementation manner, the processing unit is specifically configured to:
adding the hash value corresponding to the device type, the hash value corresponding to the device model and the hash value corresponding to the device module of the electronic device, and determining a first hash value of an OTA file of each device module in the plurality of device modules.
In a possible implementation manner, the processing unit is specifically configured to:
determining an OTA version of the OTA file of the first device module based on a second hash value of the OTA file of the first device module;
and performing OTA upgrade on the first equipment module according to the OTA version.
In a possible implementation manner, the processing unit is specifically configured to:
and performing OTA upgrade on the first equipment module according to configuration information of an OTA upgrade task, wherein the configuration information comprises an upgrade priority, an upgrade range and an OTA dependent version module.
In one possible implementation, the apparatus further includes:
and the receiving unit is used for receiving the OTA upgrading result of the first equipment module sent by the electronic equipment.
In one possible implementation, the apparatus further includes:
and the sending unit is used for sending the data packet of the OTA version to the electronic equipment again when the OTA upgrading result is upgrading failure.
The operation and the beneficial effect executed by the OTA upgrading device of the electronic device may refer to any one of the methods and the beneficial effects described in the above first aspect, and repeated details are not repeated.
In a third aspect, the application provides an electronic device OTA upgrading device, where the electronic device OTA upgrading device may be a server, may also be a device in the server, or may be a device capable of matching with the server for use. The OTA upgrading device of the electronic equipment can also be a chip system. The OTA upgrading device of the electronic equipment can execute the method of any one of the first aspect. The function of the OTA upgrading device of the electronic equipment can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The module may be software and/or hardware. The operation and the beneficial effect executed by the OTA upgrading device of the electronic device may refer to any one of the methods and the beneficial effects described in the above first aspect, and repeated details are not repeated.
In a fourth aspect, the present application provides an electronic device OTA upgrade apparatus comprising a processor, wherein when the processor invokes a computer program in memory, the method according to any of the first aspects is performed.
In a fifth aspect, the present application provides an electronic device OTA upgrade apparatus comprising a processor and a memory, the memory storing a computer program; the processor is configured to execute the computer program stored in the memory to cause the OTA upgrading apparatus to perform the method according to any of the first aspect.
In a sixth aspect, the application provides an electronic device OTA upgrading apparatus comprising a processor, a memory and a transceiver for receiving a channel or a signal or transmitting a channel or a signal; the memory for storing a computer program; the processor is configured to invoke the computer program from the memory to perform the method according to any of the first aspects.
In a seventh aspect, the present application provides an OTA upgrading apparatus for an electronic device, including a processor and an interface circuit, where the interface circuit is configured to receive a computer program and transmit the computer program to the processor; the processor runs the computer program to perform the method according to any one of the first aspect.
In an eighth aspect, the present application provides a computer readable storage medium for storing a computer program which, when executed, causes the method of any one of the first aspects to be carried out.
In a ninth aspect, the present application provides a computer program product comprising a computer program that, when executed, causes the method of any one of the first aspects to be carried out.
In a tenth aspect, an embodiment of the present application provides an electronic device OTA upgrade system, where the electronic device OTA upgrade system includes at least one server and at least one terminal device, and the server is configured to perform the steps of any one of the first aspect.
Drawings
The drawings used in the embodiments of the present application are described below.
Fig. 1 is an architecture diagram of an OTA upgrading system of an electronic device provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of an OTA upgrade interface of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a flowchart of an OTA upgrading method for an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an OTA upgrading apparatus 400 of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an OTA upgrading apparatus 500 of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic architecture diagram of an OTA upgrading system for an electronic device according to an embodiment of the present application, where the system includes an electronic device 101, a terminal device 102, and a server 103, where:
the electronic device 101 is a device that is composed of electronic components such as an integrated circuit, a transistor, and an electron tube, functions by electronic technology software, and has a processing capability and a data transmission/reception capability. The electronic device 101 may include a plurality of device types, one device type corresponding to a plurality of device models, and one device model corresponding to a plurality of device modules, and thus, the electronic device 101 may include a plurality of device modules. The original firmware versions of the multiple device modules in the electronic device 101 are default to the firmware versions when the device modules leave the factory, and the firmware versions of the multiple device modules in the electronic device 101 are different when the device modules are connected to the network due to links such as production, storage, transportation, and sale. The electronic device 101 may be a home device connected through an internet of things technology, such as an audio and video device, a lighting device, a curtain, a security device, a digital cinema device, and the like, and the electronic device 101 may also be a related device based on electric energy, such as a computer, an air conditioner, a refrigerator, a washing machine, a door lock, a microwave oven, a printer, an all-in-one machine, a facsimile machine, and the like.
The terminal apparatus 102 is a device having a processing capability and a data transceiving capability. The terminal device 102 may generate a sending instruction, receive an instruction, or run OTA upgrade software, thereby implementing services related to OTA upgrade of the electronic device. For example, the terminal device 102 may be a Computer, a notebook, a tablet, a palmtop, a desktop, a diagnostic device, a mobile phone, an Ultra-mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like.
The server 103 may be a server or a server cluster composed of multiple servers, and provides a calculation or application service for the terminal device 102, and meanwhile derives and calculates hash values of OTA files of multiple modules in the electronic device 101, and determines OTA versions of the OTA files of the multiple modules in the electronic device 101 according to the hash values of the OTA files, thereby implementing OTA upgrade of the multiple modules in the electronic device 101.
Referring to fig. 2, fig. 2 is a schematic diagram of an OTA upgrade interface of an electronic device according to an embodiment of the present application, where the schematic diagram of the OTA upgrade interface of the electronic device includes: the system comprises a selection device, a selection module and a selection strategy.
The selected device includes a device type and a device model, and the device model may include information such as a product model, a product type, a product subtype, a batch year, a batch week, a batch number, a serial number, and the like. The device type is a category of electronic devices, for example, door locks, lighting lamps, computers, washing machines, and the like; the product model corresponds to the equipment type one by one, the product models with the same equipment type may be the same or different, the product model is generally formed by combining letters and numbers, for example, the product model of the door lock is WFP 01; the product type and the product subtype are a first-level subtype and a second-level subtype in the equipment type; the year of batch, week of batch, number of batch, and serial number are the year of production of the electronic device and the batch. The device type and the device model can uniquely identify the electronic device.
The selection module comprises an equipment module, the original firmware version of the equipment module is defaulted to the firmware version when leaving factory, and the firmware versions when the equipment module is connected to the network are different due to links such as production, storage, transportation and sale, namely the firmware versions of the equipment module are different when a user starts to use the electronic equipment. The firmware version of the device module is updated and upgraded continuously, so that the firmware version of the device module is normally distributed, that is, the OTA version of the OTA file of the device module is normally distributed. A device module of an electronic device may be uniquely identified by a device type, a device model, and a device module. The firmware refers to a device driver stored in the device module, and an operating system of the electronic device implements operation of the specific electronic device according to a standard device driver through the firmware.
The selection strategy is configured for OTA upgrade task of the equipment module, and can configure the upgrade mode, upgrade priority, upgrade range, OTA dependent version module and the like of OTA upgrade. The upgrading mode can comprise common upgrading and forced upgrading, the upgrading priority is the priority sequence when the equipment module is upgraded, the upgrading range is the range of OTA versions which can be upgraded by the equipment module, and the OTA dependent version module is the equipment module with the lowest dependent version relationship.
Referring to fig. 3, fig. 3 is a flowchart of an OTA upgrading method for an electronic device according to an embodiment of the present application, where the method includes, but is not limited to, the following steps:
s301: and acquiring OTA (over the air) upgrading task information.
The OTA upgrading task information comprises the equipment types, the equipment models and the equipment modules of the electronic equipment, wherein one equipment type corresponds to a plurality of equipment models, and one equipment model corresponds to a plurality of equipment modules. The device model number may include information such as product model, product type, product subtype, batch year, batch week, batch number, serial number, etc.
Specifically, the user can set the device type, the device model and the device module in the OTA upgrade task information through the terminal device, and the terminal device responds to the setting of the user after receiving the OTA upgrade task information input by the user.
For example, the user sets, through the OTA upgrade interface of the electronic device, that the device type of the electronic device is a door lock, the product type of the device type is WFP01, the product type is T0, the product subtype is 13, the batch year is 21, the batch week is 27, the batch number is 1, the serial number is 0042, the module 1 of the device module is a front panel, the current OTA version of the front panel is V1.12.008, the module 2 is a back panel, and the current OTA version of the back panel is V1.12.021. And after receiving the equipment type, the equipment model and the equipment module input by the user, the terminal equipment responds to the setting of the user.
S302: and determining a first hash value of the OTA file of each equipment module in the plurality of equipment modules according to the OTA upgrading task information.
In some embodiments, the hash value corresponding to the device type, the hash value corresponding to the device model, and the hash value corresponding to the device module of the electronic device are added to determine the first hash value of the OTA file of each of the plurality of device modules.
Specifically, the OTA file refers to firmware of the device module, the first hash value refers to a hash value corresponding to a current OTA file of the device module, and the first hash value is a string of 16-ary character strings. And adding the equipment type and the equipment model in the OTA upgrading task information and the hash value corresponding to the equipment module to obtain a first hash value of the current OTA file of each equipment module.
For example, the device type is that the hash value corresponding to the door lock is d242f00aa3bc98, the hash value corresponding to the device model WFP01T013212710042 is 866b32c6f76cd8, the device module is that the hash value corresponding to the front panel is ca903df852d832, and the hash value obtained after addition is 3e197758a56 bd. Thus, the first hash value of the OTA file of the front panel with device model WFP01 is 3e197758a56 bde.
In this application embodiment, every equipment type of electronic equipment corresponds different hash values respectively, every equipment model corresponds different hash values respectively, every equipment module corresponds different hash values respectively, consequently, the hash value that corresponds the equipment type, the hash value that the equipment model corresponds and the hash value that the equipment module corresponds add, can obtain the first hash value of the OTA file of every equipment module, every first hash value is all unique, be convenient for follow-up accurately carry out the OTA upgrade to electronic equipment according to first hash value, promote equipment module's OTA upgrade efficiency.
S303: and if the first hash value of the OTA file of the first equipment module in the plurality of equipment modules is smaller than the preset threshold value, determining a second hash value of the OTA file of the first equipment module according to the first hash value of the OTA file of the first equipment module.
Specifically, when the current OTA version of the OTA file of the first device module is smaller than the latest OTA version of the first device module, that is, the first hash value of the OTA file of the first device module is smaller than the preset threshold, the current OTA version of the OTA file of the first device module is sequentially derived to a second hash value according to the first hash value of the OTA file of the first device module, where the second hash value is a hash value corresponding to the latest OTA version of the first device module. The specific process of derivation is: deducing the hash value of the next OTA version according to the hash value of the previous OTA version, and successively recurrently calculating the hash value of the latest OTA version.
For example, when the current OTA version of the device module is V0.1.0, the hash value of the OTA version V0.1.0 is the first hash value, according to the above method, it may be determined that the first hash value is 3a0de09cf69bfe eca0d71cbbbb2c9044a2d2, from the first hash value, it may be derived that the hash value of the OTA version V0.2.0 is e5ab531790a81e647f2f88ef9d7e85067b5ece b f, from the hash value of the OTA version V0.2.0, it may be derived that the hash value of the OTA version v0.3.0 is 7f48625dbe ac92fa97351ce219e8 cf 40c 40cf50a70, and by recursion, it may be derived that the second hash value of the OTA file is 8798925dce ac92fa97351ce219 a8 c2003a6339 c 58595 2c, that is the latest version of the device module corresponding hash value of the OTA 638 a 63503 a 638 a 639 c503 c 639 c 595 56 c 503.
In the embodiment of the application, the hash values of the latest OTA versions of the OTA files of the equipment modules can be sequentially calculated through the rule no matter what the hash values of the current OTA versions of the OTA files of the equipment modules in the electronic equipment are.
S304: and performing OTA upgrade on the first equipment module based on the second hash value of the OTA file of the first equipment module.
In some embodiments, an OTA version of an OTA file of the first device module is determined based on a second hash value of the OTA file of the first device module; and performing OTA upgrade on the first equipment module according to the OTA version.
Specifically, a second hash value of the OTA file of the first device module is calculated according to the method, the OTA version of the OTA file corresponding to the second hash value is determined, a data packet of the OTA version is sent to the first device, and the first device carries out OTA upgrade on the first device module after receiving the data packet of the OTA version.
In the embodiment of the application, the second hash value of the OTA file of each equipment module is the hash value corresponding to the latest OTA version of the equipment module, the latest OTA version of the equipment module can be accurately found through the second hash value, and the equipment module is subjected to OTA upgrade according to the latest OTA version. The method does not need manual operation, reduces the system risk caused by human factors in OTA upgrading, and improves the OTA upgrading efficiency of the equipment module.
In some embodiments, the first device module is OTA upgraded according to configuration information of an OTA upgrade task.
In this embodiment, the configuration information of the OTA upgrade task may include an upgrade priority, an upgrade scope, and an OTA dependent version module. The upgrade priority is a priority order of upgrading the equipment modules, and the upgrade priority may be represented by numbers or letters, for example, the upgrade priority is 1, 2, 3, 4, 5, where the priority of 1 is the highest, and for example, the upgrade priority is a, b, c, d, e, where the priority of a is the highest. Generally, the upgrading priorities of a plurality of equipment modules may be the same or different, and the modules are upgraded according to the upgrading priority of each equipment module; the upgrading range is the range of OTA versions which can be upgraded by the equipment module, the range of the OTA versions comprises all OTA versions between the current OTA version of the OTA file and the latest OTA version of the OTA file, the equipment module is upgraded according to a certain OTA version selected by a user, and the upgraded OTA version is the certain OTA version selected by the user; the OTA dependent version module refers to an equipment module with the lowest dependent version relationship, for example, the front panel and the rear panel of the door lock are OTA dependent version modules, that is, the OTA version of the OTA file of the front panel is upgraded to the OTA version one, the OTA version of the OTA file of the rear panel is not lower than the OTA version two, the OTA version one is a certain version of the OTA file of the front panel, and the OTA version two is a certain version of the OTA file of the rear panel.
For example, the configuration information of the OTA upgrade task includes device module 1, device module 2, device module 3, and device module 4. The upgrade priority of the device module 1 is a, the upgrade priority of the device module 2 is a, the upgrade priority of the device module 3 is b, and the upgrade priority of the device module 4 is d. When the four equipment modules are upgraded through OTA, firstly, the equipment module 1 and the equipment module 2 are upgraded simultaneously, secondly, the equipment module 3 is upgraded, and finally, the equipment module 4 is upgraded.
For another example, the current OTA version of the OTA file of device module 1 is V0.12.2, the latest OTA version is V0.12.7, and the upgrade range of device module 1 is V0.12.2-V0.12.7, wherein all OTA versions are as follows: v0.12.2, V0.12.3, V0.12.4, V0.12.5, V0.12.6, V0.12.7. Device module 1 is upgraded V0.12.2 to V0.12.6 if the OTA file of device module 1 is set to V0.12.6, and device module 1 is upgraded V0.12.2 to V0.12.7 if the OTA file of device module 1 is set to V0.12.7.
For another example, device module 1 and device module 2 are OTA dependent version modules, the current OTA version of the OTA file of device module 1 is V0.15.1, device module 1 needs to be upgraded to V0.15.9, the current version of the OTA file of device module 2 is V0.2.1, if the condition of device module 1 being upgraded to V0.15.9 is that the version of the OTA file of device module 2 is not lower than V0.2.8, then the OTA version of the OTA file of device module 2 needs to be upgraded to V0.2.8 first, and then the OTA version of the OTA file of device module 1 needs to be upgraded to V0.15.9.
In the embodiment of the application, the configuration information of the OTA upgrading task can configure OTA upgrading of electronic equipment modules with different production batches and different access times, so that the problem that OTA versions are complex and difficult to upgrade and manage due to the fact that the electronic equipment modules are produced in large quantities and different access times is solved, and intelligent management and control of OTA upgrading are achieved.
In some embodiments, after OTA upgrade of the first device module, further comprising:
and receiving an OTA upgrading result of the first equipment module sent by the electronic equipment.
Specifically, the OTA upgrade result includes upgrade success and upgrade failure. After the OTA upgrading is carried out on the equipment module, the electronic equipment sends an OTA upgrading result to the terminal equipment, and the terminal equipment receives the OTA upgrading result.
In the embodiment of the application, the intermediate state can be selectively reported in the OTA upgrading process, but the OTA upgrading result must be reported, the configuration information of the OTA upgrading task is reversely updated through the OTA upgrading result, the OTA upgrading task is scheduled, and the OTA upgrading of the equipment module is intelligently managed and controlled.
Optionally, when the OTA upgrade result is that the upgrade fails, the data packet of the OTA version is re-sent to the electronic device.
Specifically, when the OTA upgrade result is that the upgrade fails, counting the number of times of the upgrade failure, and when the number of times of the upgrade failure is smaller than a preset failure number threshold, re-sending the data packet of the OTA version to the electronic equipment, and re-performing OTA upgrade on an equipment module of the electronic equipment; and when the upgrading failure times are larger than or equal to the preset failure time threshold, stopping sending the data packet of the OTA version to the electronic equipment.
In the embodiment of the application, the upgrading is retried for many times, so that the upgrading failure caused by system or operation problems can be avoided, and the OTA upgrading efficiency of the equipment module is improved.
The method of the embodiments of the present application is set forth above in detail and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device OTA upgrading apparatus 400 according to an embodiment of the present disclosure, where the apparatus may include an obtaining unit 401, a processing unit 402, a receiving unit 403, and a sending unit 404, where the receiving unit 403 and the sending unit 404 may communicate with the outside, and the processing unit 402 is configured to perform processing, such as determining a first hash value of an OTA file of each of the multiple device modules according to the OTA upgrading task information. The receiving unit 403 and the transmitting unit 404 may also be referred to as communication interfaces, transceiving units or transceiving modules. The receiving unit 403 and the sending unit 404 may be configured to perform the actions performed by the terminal device in the above method embodiment.
For example: the receiving unit 403 and the sending unit 404 may also be referred to as a transceiver module or a transceiver unit (including a receiving unit and/or a sending unit), and are respectively configured to perform the steps of sending and receiving by the terminal device in the foregoing method embodiments.
In one possible design, the OTA upgrading apparatus for an electronic device may implement the steps or processes performed by the terminal device corresponding to the above method embodiments. The receiving unit 403 and the sending unit 404 are configured to perform transceiving related operations on the terminal device side in the foregoing method embodiment, and the processing unit 402 is configured to perform processing related operations of the terminal device in the foregoing method embodiment.
An obtaining unit 401, configured to obtain over-the-air technology OTA upgrade task information, where the OTA upgrade task information includes device types, device models, and device modules of an electronic device, where one device type corresponds to multiple device models, and one device model corresponds to multiple device modules;
a processing unit 402, configured to determine, according to the OTA upgrade task information, a first hash value of an OTA file of each of the multiple device modules; if the first hash value of the OTA file of a first equipment module in the plurality of equipment modules is smaller than a preset threshold value, determining a second hash value of the OTA file of the first equipment module according to the first hash value of the OTA file of the first equipment module; and performing OTA upgrade on the first equipment module based on the second hash value of the OTA file of the first equipment module.
In a possible implementation manner, the processing unit 402 is specifically configured to add a hash value corresponding to the device type, a hash value corresponding to the device model, and a hash value corresponding to the device module of the electronic device, and determine a first hash value of an OTA file of each device module in the multiple device modules.
In a possible implementation manner, the processing unit 402 is specifically configured to determine, based on a second hash value of the OTA file of the first device module, an OTA version of the OTA file of the first device module; and performing OTA upgrade on the first equipment module according to the OTA version.
In a possible implementation manner, the processing unit 402 is specifically configured to perform OTA upgrade on the first device module according to configuration information of an OTA upgrade task, where the configuration information includes an upgrade priority, an upgrade range, and an OTA dependent version module.
In a possible implementation manner, the receiving unit 403 is configured to receive an OTA upgrade result of the first device module sent by the electronic device.
In a possible implementation manner, the sending unit 404 is configured to resend the OTA version data packet to the electronic device when the OTA upgrade result is an upgrade failure.
It should be noted that the implementation and beneficial effects of each unit can also correspond to the corresponding description of the method embodiment shown in fig. 3.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an OTA upgrading apparatus 500 of an electronic device according to an embodiment of the present disclosure. The terminal device may be applied to a system as shown in fig. 1, and perform the functions of the terminal device in the above method embodiment, or implement the steps or flows performed by the terminal device in the above method embodiment.
As shown in fig. 5, the terminal device includes a processor 501 and a transceiver 502. Optionally, the terminal device further comprises a memory 503. The processor 501, the transceiver 502 and the memory 503 can communicate with each other via the internal connection path to transmit control and/or data signals, the memory 503 is used for storing a computer program, and the processor 501 is used for calling and running the computer program from the memory 503 to control the transceiver 502 to transmit and receive signals. Optionally, the terminal device may further include an antenna, configured to send out the uplink data or the uplink control signaling output by the transceiver 502 through a wireless signal.
The processor 501 and the memory 503 may be combined into a processing device, and the processor 501 is configured to execute the program codes stored in the memory 503 to implement the functions. In particular, the memory 503 may be integrated in the processor 501 or may be independent of the processor 501. The processor 501 may correspond to the processing unit in fig. 4.
The transceiver 502 described above may correspond to the receiving unit and the transmitting unit in fig. 4. The transceiver 502 may include a receiver (or receiver, receiving circuit) and a transmitter (or transmitter, transmitting circuit). The receiver is used for receiving signals, and the transmitter is used for transmitting signals.
It should be understood that the terminal device shown in fig. 5 can implement various processes involving the terminal device in the method embodiment shown in fig. 3. The operation and/or function of each module in the terminal device are respectively for implementing the corresponding flow in the above method embodiment. Specifically, reference may be made to the description of the above method embodiments, and the detailed description is appropriately omitted herein to avoid redundancy.
The processor 501 may be configured to perform the actions implemented by the terminal device in the foregoing method embodiments, and the transceiver 502 may be configured to perform the actions of the terminal device described in the foregoing method embodiments to transmit or receive to the electronic device. Please refer to the description of the previous embodiment of the method, which is not repeated herein.
The processor 501 may be, for example, a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 501 may also be a combination of implementing computing functionality, e.g., comprising one or more microprocessors, a combination of digital signal processors and microprocessors, and so forth. The communication bus 504 may be a peripheral component interconnect standard PCI bus or an extended industry standard architecture EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. A communication bus 504 is used to enable connection communications between these components. In the embodiment of the present application, the transceiver 502 is used for performing signaling or data communication with other node devices. The memory 503 may include a volatile memory, such as a nonvolatile dynamic random access memory (NVRAM), a phase change random access memory (PRAM), a Magnetoresistive Random Access Memory (MRAM), and the like, and may further include a nonvolatile memory, such as at least one magnetic disk memory device, an electrically erasable programmable read-only memory (EEPROM), a flash memory device, such as a NOR flash memory (NOR flash memory) or a NAND flash memory (EEPROM), and a semiconductor device, such as a Solid State Disk (SSD). The memory 503 may optionally be at least one storage device located remotely from the processor 501. Optionally, a set of computer program code or configuration information may also be stored in the memory 503. Optionally, the processor 501 may also execute programs stored in the memory 503. The processor may cooperate with the memory and the transceiver to perform any of the methods and functions of the terminal device of the embodiments of the above-mentioned application.
An embodiment of the present application further provides a chip system, where the chip system includes a processor, configured to support a terminal device to implement the functions related to any of the foregoing embodiments, for example, perform OTA upgrade on the first device module based on a second hash value of an OTA file of the first device module. In one possible design, the chip system may also comprise a memory for the necessary computer programs and data of the terminal device. The chip system may be constituted by a chip, or may include a chip and other discrete devices. The input and the output of the chip system respectively correspond to the receiving and sending operations of the terminal equipment in the method embodiment.
The embodiment of the application also provides an OTA upgrading device of the electronic equipment, which comprises a processor and an interface. The processor may be adapted to perform the method of the above-described method embodiments.
It should be understood that the electronic device OTA upgrade apparatus may be a chip. For example, the OTA upgrading apparatus of the electronic device may be a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit (DSP), a Micro Controller Unit (MCU), a Programmable Logic Device (PLD) or other integrated chips.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
It should be noted that the processor in the embodiments of the present application may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
According to the method provided by the embodiment of the present application, the present application further provides a computer program product, which includes: computer program, which, when run on a computer, causes the computer to perform the method of any of the embodiments shown in fig. 3.
According to the method provided by the embodiment of the present application, the present application further provides a computer-readable medium, which stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the method of any one of the embodiments shown in fig. 3.
According to the method provided by the embodiment of the application, the application also provides an OTA (over the air) upgrading system of the electronic equipment, which comprises the one or more servers and one or more terminal equipment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Video Disk (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps (step) described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a positioning server) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. An OTA upgrading method for an electronic device is characterized by comprising the following steps:
acquiring OTA (over the air) upgrading task information, wherein the OTA upgrading task information comprises equipment types, equipment models and equipment modules of electronic equipment, one equipment type corresponds to a plurality of equipment models, and one equipment model corresponds to a plurality of equipment modules;
determining a first hash value of an OTA file of each equipment module in the plurality of equipment modules according to the OTA upgrading task information;
if the first hash value of the OTA file of a first equipment module in the plurality of equipment modules is smaller than a preset threshold value, determining a second hash value of the OTA file of the first equipment module according to the first hash value of the OTA file of the first equipment module;
and performing OTA upgrade on the first equipment module based on the second hash value of the OTA file of the first equipment module.
2. The method of claim 1, wherein determining a first hash value of an OTA file for each of the plurality of device modules based on the OTA upgrade task information comprises:
adding the hash value corresponding to the device type, the hash value corresponding to the device model and the hash value corresponding to the device module of the electronic device, and determining a first hash value of an OTA file of each device module in the plurality of device modules.
3. The method of claim 1, wherein the OTA upgrade of the first device module based on the second hash value of the OTA file of the first device module comprises:
determining an OTA version of the OTA file of the first device module based on a second hash value of the OTA file of the first device module;
and performing OTA upgrade on the first equipment module according to the OTA version.
4. The method of claim 1, wherein the OTA upgrade of the first device module comprises:
and performing OTA upgrade on the first equipment module according to configuration information of an OTA upgrade task, wherein the configuration information comprises an upgrade priority, an upgrade range and an OTA dependent version module.
5. The method of claim 3 or 4, wherein after performing OTA upgrade on the first device module based on the second hash value of the OTA file of the first device module, further comprising:
and receiving an OTA upgrading result of the first equipment module sent by the electronic equipment.
6. The method of claim 5, wherein after receiving the OTA upgrade result for the first device module sent by the electronic device, further comprising:
and when the OTA upgrading result is upgrading failure, retransmitting the data packet of the OTA version to the electronic equipment.
7. An OTA upgrading device of electronic equipment is characterized by comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring OTA (over the air) upgrading task information, and the OTA upgrading task information comprises equipment types, equipment models and equipment modules of electronic equipment, one equipment type corresponds to a plurality of equipment models, and one equipment model corresponds to a plurality of equipment modules;
the processing unit is used for determining a first hash value of an OTA file of each equipment module in the plurality of equipment modules according to the OTA upgrading task information; if the first hash value of the OTA file of a first equipment module in the plurality of equipment modules is smaller than a preset threshold value, determining a second hash value of the OTA file of the first equipment module according to the first hash value of the OTA file of the first equipment module; and performing OTA upgrade on the first equipment module based on the second hash value of the OTA file of the first equipment module.
8. The apparatus according to claim 7, wherein the processing unit is specifically configured to:
adding the hash value corresponding to the device type, the hash value corresponding to the device model and the hash value corresponding to the device module of the electronic device, and determining a first hash value of an OTA file of each device module in the plurality of device modules.
9. The apparatus according to claim 7, wherein the processing unit is specifically configured to:
determining an OTA version of the OTA file for the first device module based on a second hash value of the OTA file for the first device module;
and performing OTA upgrade on the first equipment module according to the OTA version.
10. The apparatus according to claim 7, wherein the processing unit is specifically configured to:
and performing OTA upgrade on the first equipment module according to configuration information of an OTA upgrade task, wherein the configuration information comprises an upgrade priority, an upgrade range and an OTA dependent version module.
11. The apparatus of claim 9 or 10, further comprising:
and the receiving unit is used for receiving the OTA upgrading result of the first equipment module sent by the electronic equipment.
12. The apparatus of claim 11, further comprising:
and the sending unit is used for sending the data packet of the OTA version to the electronic equipment again when the OTA upgrading result is upgrading failure.
13. An electronic device OTA upgrade apparatus comprising a processor and a memory, the memory being configured to store a computer program, the processor being configured to invoke the computer program to perform the method of any of claims 1-6.
14. A chip in an OTA upgrade apparatus for an electronic device, the chip comprising a processor and an input interface and an output interface for connection to the processor, the chip further comprising a memory in which a computer program according to any of claims 1-6 is executed when the computer program is executed.
15. A computer-readable storage medium for storing a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1-6.
16. A computer program product, characterized in that the computer program product comprises a computer program which, when run on a computer, causes the computer to carry out the method of any one of claims 1-6.
CN202210061982.XA 2022-01-19 2022-01-19 OTA (over the air) upgrading method and device for electronic equipment Pending CN114489726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210061982.XA CN114489726A (en) 2022-01-19 2022-01-19 OTA (over the air) upgrading method and device for electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210061982.XA CN114489726A (en) 2022-01-19 2022-01-19 OTA (over the air) upgrading method and device for electronic equipment

Publications (1)

Publication Number Publication Date
CN114489726A true CN114489726A (en) 2022-05-13

Family

ID=81472668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210061982.XA Pending CN114489726A (en) 2022-01-19 2022-01-19 OTA (over the air) upgrading method and device for electronic equipment

Country Status (1)

Country Link
CN (1) CN114489726A (en)

Similar Documents

Publication Publication Date Title
CN109417691B (en) Bluetooth cluster online upgrading method and device
US8291205B2 (en) Method for managing the reset of a data processor
CN108040355B (en) Network access method and system
CN111143371A (en) Data query method, device, equipment, system and medium
CN113900682A (en) System software upgrading method, device, equipment and computer storage medium
US20230049934A1 (en) Data Interface Sleep and Wakeup Method, Related Apparatus, and System
CN112152825B (en) Multi-stage module upgrading method and device for household appliance and electronic equipment
WO2023165293A1 (en) Channel state information updating method, base station, device, and storage medium
CN114489726A (en) OTA (over the air) upgrading method and device for electronic equipment
US9954729B1 (en) Provisioning and configuration of network infrastructure equipment
US20220263626A1 (en) Method and apparatus for determining position occupied by resource, user equipment, and storage medium
CN111294173A (en) Rate matching method and device
CN112688870B (en) Routing method, routing device and node equipment
CN115103359A (en) Network distribution method and device, network to be distributed equipment, electronic device and readable storage medium
CN113328891A (en) Data communication method, device, equipment and storage medium
EP3073694A1 (en) Self-interference channel estimation method and device
CN112953686B (en) Data retransmission method, device, equipment and storage medium
CN113840353A (en) Network distribution method of IOT (input/output) equipment, intelligent household appliance, system and storage medium
CN111885588A (en) Method and device for executing electronic card management service
CN112312373A (en) Channel optimization method, system and computer readable storage medium
CN107888329B (en) Method, system and equipment for indicating error correction coding
CN112118567A (en) Device upgrading method, electronic device and medium
CN113133010B (en) Wireless networking method, device, terminal equipment and storage medium
WO2024092507A1 (en) Low-interference wireless communication method and apparatus, computer-readable medium, and device
CN115118727B (en) Data transmission method, device, equipment and storage medium of distributed computing architecture

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