OTA upgrade method and device for electronic equipment

By automatically calculating the OTA file hash value and configuration information of the device module, the OTA upgrade without manual operation is realized, which solves the system risks and cumbersome operation problems caused by human factors in the existing technology, and improves the efficiency and intelligence of the OTA upgrade of electronic equipment. Management capabilities.

CN114489726BActive Publication Date: 2024-11-05SHENZHEN KAADAS INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210061982.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2024-11-05
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

The existing technology has system risks and cumbersome operations caused by human factors in the process of upgrading electronic equipment OTA, and cannot achieve intelligent management. Especially when multiple batches of equipment versions are complex, the upgrade efficiency is inefficient.

Method used

By obtaining the hash values ​​of the device type, model and module, automatically calculate the hash values ​​of the OTA file of the device module, realizing OTA upgrade without manual operation, combining configuration information for intelligent control, and retrying it when the upgrade fails to improve Success rate.

Benefits of technology

It reduces the systemic risks brought by human factors, improves the efficiency of OTA upgrades, realizes intelligent control of electronic equipment modules, simplifies the OTA upgrade process, and enhances the management capabilities of multiple batches of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489726B_ABST
    Figure CN114489726B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an electronic device OTA upgrade method and device. The method includes: obtaining the OTA upgrade task information of the over-the-air download technology; determining the first hash value of the OTA file of each device module in multiple device modules according to the OTA upgrade task information; if the first hash value of the OTA file of the first device module in the multiple device modules is less than the preset threshold, then determining the second hash value of the OTA file of the first device module according to the first hash value of the OTA file of the first device module; based on the second hash value of the OTA file of the first device module, OTA upgrade the first device module. The above method can programmatically perform OTA upgrades on electronic device modules, while reducing the system risks caused by human factors in OTA upgrades, improving the OTA upgrade efficiency of electronic device modules, and intelligently managing and controlling OTA upgrades of electronic devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of telecommunication technology, and in particular to an OTA upgrade method and device for electronic equipment. Background Art

[0002] With the continuous development of Internet of Things technology, the technological changes of electronic devices have accelerated, making the upgrade of electronic devices limited by network bandwidth and power consumption. Through Over-The-Air technology (OTA), the firmware of electronic devices can be updated quickly, safely and efficiently.

[0003] Due to the different production batches and network access times of the electronic equipment purchased by users, the version of the electronic equipment module is far different from the latest version. At the same time, large quantities and multiple batches of electronic equipment make the version of the electronic equipment module complicated, which increases the difficulty of OTA upgrade management and operation and maintenance of the electronic equipment module.

[0004] At present, the OTA upgrade of electronic equipment modules based on the Internet of Things is generally to manually upgrade multiple OTA versions between the current OTA version of the electronic equipment module and the latest OTA version in sequence, so as to upgrade to the latest OTA version of the electronic equipment module. This method is cumbersome to operate, and it is easy to cause system risks due to human factors, which affects the OTA upgrade efficiency of the electronic equipment module and cannot intelligently manage the OTA upgrade of the electronic equipment module. Summary of the invention

[0005] The embodiments of the present application provide an electronic device OTA upgrade method and device, which can programmatically perform OTA upgrades on electronic device modules, while reducing system risks caused by human factors during OTA upgrades, improving the OTA upgrade efficiency of electronic device modules, and intelligently managing and controlling OTA upgrades of electronic devices.

[0006] In a first aspect, an embodiment of the present application provides an OTA upgrade method for an electronic device, comprising:

[0007] Acquire OTA upgrade task information of the over-the-air download technology, where the OTA upgrade task information includes a device type, a device model, and a device module of the electronic device, where one device type corresponds to multiple device models, and one device model corresponds to multiple device modules;

[0008] Determine, according to the OTA upgrade task information, a first hash value of the OTA file of each device module in the plurality of device modules;

[0009] If the first hash value of the OTA file of a first device module among the multiple device modules is less than a preset threshold, determining a second hash value of the OTA file of the first device module according to the first hash value of the OTA file of the first device module;

[0010] Based on the second hash value of the OTA file of the first device module, the first device module is OTA upgraded.

[0011] In the above method, the first hash value of the OTA file of the device module is determined by the device type, device model and device module of the electronic device in the OTA upgrade task information. The first hash value is the hash value corresponding to the current OTA version of the device module. The second hash value of the OTA file of the device module is determined by the first hash value. The second hash value is the hash value corresponding to the latest OTA version of the device module. Regardless of the OTA version hash value of the device module of the electronic device, the latest OTA version hash value can be calculated by this method, thereby performing an OTA upgrade on the device module. This method does not require manual operation, reduces the system risk caused by human factors in OTA upgrades, improves the OTA upgrade efficiency of the device module, and realizes intelligent management and control of OTA upgrades.

[0012] In a possible implementation, determining, according to the OTA upgrade task information, a first hash value of an OTA file of each of the multiple device modules includes:

[0013] A hash value corresponding to the device type of the electronic device, a hash value corresponding to the device model, and a hash value corresponding to the device module are added together to determine a first hash value of the OTA file of each device module in the multiple device modules.

[0014] In an embodiment of the present application, each device type of the electronic device corresponds to a different hash value, each device model corresponds to a different hash value, and each device module corresponds to a different hash value. Therefore, by 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, the first hash value of the OTA file of each device module can be obtained. Each first hash value is unique, which facilitates the subsequent accurate OTA upgrade of the electronic device according to the first hash value, thereby improving the OTA upgrade efficiency of the device module.

[0015] In a possible implementation, 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:

[0016] 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;

[0017] According to the OTA version, the first device module is OTA upgraded.

[0018] In the embodiment of the present application, the second hash value of the OTA file of each device module is the hash value corresponding to the latest OTA version of the device module. The second hash value can accurately find the latest OTA version of the device module, and the device module is OTA upgraded according to the latest OTA version. This method does not require manual operation, reduces the system risk caused by human factors in OTA upgrades, and improves the OTA upgrade efficiency of device modules.

[0019] In a possible implementation, performing OTA upgrade on the first device module includes:

[0020] The first device module is OTA upgraded according to configuration information of the OTA upgrade task, wherein the configuration information includes an upgrade priority, an upgrade range, and an OTA dependent version module.

[0021] In an embodiment of the present application, the configuration information of the OTA upgrade task can configure the OTA upgrade of electronic device modules with different production batches and network access times, solving the problem of complex and difficult upgrade management of OTA versions caused by a large number of production batches and different network access times, and realizing intelligent management and control of OTA upgrades.

[0022] In a possible implementation, 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:

[0023] Receive an OTA upgrade result of the first device module sent by the electronic device.

[0024] In an embodiment of the present application, the intermediate status can be selectively reported during the OTA upgrade process, but the OTA upgrade result must be reported. The configuration information of the OTA upgrade task is reversely updated through the OTA upgrade result, the scheduling of the OTA upgrade task is completed, and the OTA upgrade of the device module is intelligently managed and controlled.

[0025] 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:

[0026] When the OTA upgrade result is an upgrade failure, the data packet of the OTA version is resent to the electronic device.

[0027] In an embodiment of the present application, when the OTA upgrade result is an upgrade failure, the server resends the OTA version data packet to the electronic device and retries the upgrade multiple times to avoid upgrade failures due to system or operation problems, thereby improving the OTA upgrade efficiency of the device module.

[0028] In a second aspect, an embodiment of the present application provides an OTA upgrade device for an electronic device, comprising:

[0029] an acquisition unit, configured to acquire over-the-air (OTA) upgrade task information, wherein the OTA upgrade task information includes a device type, a device model, and a device module of the electronic device, wherein one device type corresponds to multiple device models, and one device model corresponds to multiple device modules;

[0030] A processing unit, used to determine a first hash value of an OTA file of each device module among the multiple device modules according to the OTA upgrade task information; if the first hash value of the OTA file of a first device module among the multiple device modules is less than a preset threshold, determine a second hash value of the OTA file of the first device module according to the first hash value of the OTA file of the first device module; and perform OTA upgrade on the first device module based on the second hash value of the OTA file of the first device module.

[0031] In a possible implementation manner, the processing unit is specifically configured to:

[0032] A hash value corresponding to the device type of the electronic device, a hash value corresponding to the device model, and a hash value corresponding to the device module are added together to determine a first hash value of the OTA file of each device module in the multiple device modules.

[0033] In a possible implementation manner, the processing unit is specifically configured to:

[0034] 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;

[0035] According to the OTA version, the first device module is OTA upgraded.

[0036] In a possible implementation manner, the processing unit is specifically configured to:

[0037] The first device module is OTA upgraded according to configuration information of the OTA upgrade task, wherein the configuration information includes an upgrade priority, an upgrade range, and an OTA dependent version module.

[0038] In a possible implementation manner, the device further includes:

[0039] The receiving unit is used to receive the OTA upgrade result of the first device module sent by the electronic device.

[0040] In a possible implementation manner, the device further includes:

[0041] The sending unit is used to resend the data packet of the OTA version to the electronic device when the OTA upgrade result is an upgrade failure.

[0042] The operations and beneficial effects performed by the electronic device OTA upgrade device can refer to the methods and beneficial effects described in any one of the first aspects above, and the repeated parts will not be repeated.

[0043] In the third aspect, the present application provides an OTA upgrade device for an electronic device, which may be a server, a device in a server, or a device that can be used in combination with a server. Among them, the OTA upgrade device for an electronic device may also be a chip system. The OTA upgrade device for an electronic device may execute the method described in any one of the first aspects. The functions of the OTA upgrade device for an electronic device may be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above functions. The module may be software and / or hardware. The operations and beneficial effects performed by the OTA upgrade device for an electronic device may refer to the methods and beneficial effects described in any one of the first aspects above, and the repetitive parts will not be repeated.

[0044] In a fourth aspect, the present application provides an electronic device OTA upgrade device, the electronic device OTA upgrade device comprising a processor, when the processor calls a computer program in a memory, the method described in any one of the first aspects is executed.

[0045] In the fifth aspect, the present application provides an OTA upgrade device for an electronic device, the OTA upgrade device for an electronic device comprising a processor and a memory, the memory being used to store a computer program; the processor being used to execute the computer program stored in the memory, so that the OTA upgrade device for an electronic device executes a method as described in any one of the first aspects.

[0046] In the sixth aspect, the present application provides an OTA upgrade device for an electronic device, wherein the OTA upgrade device for an electronic device comprises a processor, a memory and a transceiver, wherein the transceiver is used to receive a channel or signal, or to send a channel or signal; the memory is used to store a computer program; and the processor is used to call the computer program from the memory to execute a method as described in any one of the first aspects.

[0047] In the seventh aspect, the present application provides an OTA upgrade device for an electronic device, the OTA upgrade device for an electronic device comprising a processor and an interface circuit, the interface circuit being used to receive a computer program and transmit it to the processor; the processor runs the computer program to execute a method as described in any one of the first aspects.

[0048] In an eighth aspect, the present application provides a computer-readable storage medium for storing a computer program. When the computer program is executed, the method described in any one of the first aspects is implemented.

[0049] In a ninth aspect, the present application provides a computer program product comprising a computer program, which, when executed, enables the method described in any one of the first aspects to be implemented.

[0050] In the tenth aspect, an embodiment of the present application provides an electronic device OTA upgrade system, which includes at least one server and at least one terminal device, and the server is used to execute any step of the above-mentioned first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The following is an introduction to the drawings used in the embodiments of the present application.

[0052] Figure 1 It is a schematic diagram of the architecture of an electronic device OTA upgrade system provided by an embodiment of the present application;

[0053] Figure 2 This is a schematic diagram of an OTA upgrade interface of an electronic device provided in an embodiment of the present application;

[0054] Figure 3 This is a flow chart of an OTA upgrade method for an electronic device provided in an embodiment of the present application;

[0055] Figure 4 4 is a schematic diagram of the structure of an electronic device OTA upgrade device 400 provided in an embodiment of the present application;

[0056] Figure 5 It is a structural diagram of an electronic device OTA upgrade device 500 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.

[0058] See also Figure 1 , Figure 11 is a schematic diagram of the architecture of an electronic device OTA upgrade system provided in an embodiment of the present application, the system includes an electronic device 101, a terminal device 102, and a server 103, wherein:

[0059] The electronic device 101 is composed of electronic components such as integrated circuits, transistors, and electron tubes, and is a device that uses electronic technology software to function, and has processing capabilities and data transmission and reception capabilities. The electronic device 101 can include multiple device types, one device type corresponds to multiple device models, and one device model corresponds to multiple device modules. Therefore, the electronic device 101 can include multiple device modules. The original firmware version of multiple device modules in the electronic device 101 defaults to the firmware version at the time of leaving the factory. Due to production, warehousing, transportation, and sales, the firmware versions of multiple device modules in the electronic device 101 when they are connected to the network are different. The electronic device 101 can be a household device connected through the Internet of Things technology, such as audio and video equipment, lighting equipment, curtains, security equipment, digital cinema equipment, etc. The electronic device 101 can also be a related device based on electrical energy, such as computers, air conditioners, refrigerators, washing machines, door locks, microwave ovens, printers, all-in-one machines, fax machines, and other devices.

[0060] The terminal device 102 is a device with processing capabilities and data transmission and reception capabilities. The terminal device 102 can generate a sending instruction, receive an instruction, or run OTA upgrade software, thereby realizing the related services of OTA upgrade of electronic equipment. For example, the terminal device 102 can be a computer, a laptop, a tablet computer, a PDA, a desktop, a diagnostic instrument, a mobile phone, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc.

[0061] The server 103 can be a server cluster composed of one server or multiple servers, providing computing or application services for the terminal device 102, and at the same time deriving and calculating the hash values ​​of the OTA files of multiple modules in the electronic device 101, and determining the OTA versions of the OTA files of multiple modules in the electronic device 101 according to the hash values ​​of the OTA files, thereby realizing OTA upgrades of multiple modules in the electronic device 101.

[0062] See also Figure 2 , Figure 2 This is a schematic diagram of an OTA upgrade interface of an electronic device provided in an embodiment of the present application. The schematic diagram of the OTA upgrade interface of the electronic device includes: selecting a device, selecting a module, and selecting a strategy.

[0063] The above-mentioned selected equipment includes equipment type and equipment model, and the equipment model may include product model, product type, product subtype, batch year, batch week, batch number, serial number and other information. Equipment type is the category of electronic equipment, such as door locks, lighting lamps, computers, washing machines, etc.; product model corresponds to equipment type one by one, and product models of the same equipment type may be the same or different. Product model is generally composed of letters and numbers. For example, the product model of door locks is WFP01; product type and product subtype are the first-level subtype and second-level subtype in the equipment type; batch year, batch week, batch number and serial number are the production year, month and batch of electronic equipment. The above-mentioned equipment type and equipment model can uniquely identify electronic equipment.

[0064] The above-mentioned selection module includes a device module. The original firmware version of the device module defaults to the firmware version at the time of leaving the factory. Due to production, warehousing, transportation and sales, the firmware version of the device module when it is connected to the network is different, that is, the firmware version of the device module is different when the user starts to use the electronic device. The firmware version of the device module will be continuously updated and upgraded. Therefore, the firmware version of the device module presents a normal distribution, that is, the OTA version of the OTA file of the device module presents a normal distribution. The device module of the electronic device can be uniquely identified by the device type, device model and device module. The above-mentioned firmware refers to the device "driver" stored inside the device module. The operating system of the electronic device implements the operation of a specific electronic device according to the standard device driver through the firmware.

[0065] The above selection strategy is the OTA upgrade task configuration of the device module, which can configure the upgrade mode, upgrade priority, upgrade range, and OTA dependent version module of the OTA upgrade. The upgrade mode can include normal upgrade and forced upgrade. The upgrade priority is the priority order when the device module is upgraded. The upgrade range is the range of OTA versions that the device module can upgrade. The OTA dependent version module refers to the device module with the lowest dependent version relationship.

[0066] See also Figure 3 , Figure 3 This is a flow chart of an OTA upgrade method for an electronic device provided in an embodiment of the present application, the method includes but is not limited to the following steps:

[0067] S301: Obtaining OTA upgrade task information using the over-the-air technology.

[0068] The above OTA upgrade task information includes the device type, device model and device module of the electronic device, where one device type corresponds to multiple device models, and one device model corresponds to multiple device modules. The above device model may include product model, product type, product subtype, batch year, batch week, batch number, serial number and other information.

[0069] Specifically, the user can set the device type, device model and device module in the OTA upgrade task information through the terminal device. After receiving the OTA upgrade task information input by the user, the terminal device responds to the user's settings.

[0070] For example, through the above electronic device OTA upgrade interface, the user sets the device type of the electronic device to a door lock, the product model in the device model to WFP01, the product type to T0, the product subtype to 13, the batch year to 21, the batch week to 27, the batch number to 1, the serial number to 0042, the module 1 in the device module to be the front panel, the current OTA version of the front panel is V1.12.008, the module 2 to be the rear panel, the current OTA version of the rear panel is V1.12.021. After receiving the device type, device model, and device module input by the user, the terminal device responds to the user's settings.

[0071] S302: Determine a first hash value of an OTA file of each of the multiple device modules according to the OTA upgrade task information.

[0072] In some embodiments, a hash value corresponding to the device type of the electronic device, a hash value corresponding to the device model, and a hash value corresponding to the device module are added to determine a first hash value of the OTA file of each device module in the multiple device modules.

[0073] Specifically, the OTA file refers to the firmware of the device module, the first hash value refers to the hash value corresponding to the current OTA file of the device module, and the first hash value is a string of hexadecimal characters. The hash values ​​corresponding to the device type, device model, and device module in the OTA upgrade task information are added together to obtain the first hash value of the current OTA file of each device module.

[0074] For example, the hash value corresponding to the device type of door lock is d242f00aa3bc98, the hash value corresponding to the device model of WFP01T013212710042 is 866b32c6f76cd8, and the hash value corresponding to the device module of front panel is ca903df852d832. The hash value obtained after adding them together is 3e197758a56bde. Therefore, the first hash value of the OTA file of the front panel of device model WFP01 is 3e197758a56bde.

[0075] In an embodiment of the present application, each device type of the electronic device corresponds to a different hash value, each device model corresponds to a different hash value, and each device module corresponds to a different hash value. Therefore, by 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, the first hash value of the OTA file of each device module can be obtained. Each first hash value is unique, which facilitates the subsequent accurate OTA upgrade of the electronic device according to the first hash value, thereby improving the OTA upgrade efficiency of the device module.

[0076] S303: If the first hash value of the OTA file of a first device module among the multiple device modules is less than a preset threshold, determine a second hash value of the OTA file of the first device module according to the first hash value of the OTA file of the first device module.

[0077] Specifically, when the current OTA version of the OTA file of the first device module is less than the latest OTA version of the first device module, that is, when the first hash value of the OTA file of the first device module is less than a preset threshold, the second hash value is sequentially derived according to the first hash value of the OTA file of the first device module, and the second hash value is the hash value corresponding to the latest OTA version of the first device module. The specific process of derivation is: derive the hash value of the next OTA version according to the hash value of the previous OTA version, and recursively in sequence until the hash value of the latest OTA version is calculated.

[0078] 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, the first hash value can be determined to be 3a0de09cf69bfe826eca0d71cbbbb2c9044a2d2. From the first hash value, the hash value when the OTA version is V0.2.0 can be deduced to be e5ab531790a81e647f2f88ef9d7e85067b5ece1f. The hash value can be used to deduce that the hash value of the OTA version V0.3.0 is 7f48625dbe8ac92fa97351ce219e8ec40cf50a70. Recursively, the second hash value of the OTA file can be deduced to be 8798925dce8ac503a96351c2003a6339bae595c2, that is, the hash value corresponding to the latest OTA version of the device module is 8798925dce8ac503a96351c2003a6339bae595c2.

[0079] In the embodiment of the present application, no matter what the hash value of the current OTA version of the OTA file of the device module in the electronic device is, the hash value of the latest OTA version of the OTA file of the device module can be sequentially calculated through the rule.

[0080] S304: Perform OTA upgrade on the first device module based on the second hash value of the OTA file of the first device module.

[0081] In some embodiments, based on the second hash value of the OTA file of the first device module, an OTA version of the OTA file of the first device module is determined; and according to the OTA version, the first device module is OTA upgraded.

[0082] Specifically, according to the above method, the second hash value of the OTA file of the first device module is calculated, the OTA version of the OTA file corresponding to the second hash value is determined, and then the data packet of the OTA version is sent to the above-mentioned first device. After the first device receives the data packet of the OTA version, the first device module is OTA upgraded.

[0083] In the embodiment of the present application, the second hash value of the OTA file of each device module is the hash value corresponding to the latest OTA version of the device module. The second hash value can accurately find the latest OTA version of the device module, and the device module is OTA upgraded according to the latest OTA version. This method does not require manual operation, reduces the system risk caused by human factors in OTA upgrades, and improves the OTA upgrade efficiency of device modules.

[0084] In some embodiments, the first device module is OTA upgraded according to configuration information of the OTA upgrade task.

[0085] In this embodiment, the configuration information of the OTA upgrade task may include upgrade priority, upgrade scope, and OTA dependent version module. The upgrade priority is the priority order when upgrading the device module. The upgrade priority can be represented by numbers or letters. For example, the upgrade priority is 1, 2, 3, 4, 5, where 1 has the highest priority. For another example, the upgrade priority is a, b, c, d, e, where a has the highest priority. Generally, the upgrade priorities of multiple device modules may be the same or different. Multiple modules are upgraded according to the upgrade priority of each device module; the upgrade range is the range of OTA versions that the device module can upgrade. The above OTA version range includes all OTA versions between the current OTA version of the OTA file and the latest OTA version of the OTA file. According to a certain OTA version selected by the user, the device module is upgraded, and the upgraded OTA version is the above OTA version selected by the user; the OTA dependent version module refers to the device module with the lowest dependent version relationship. For example, the front panel and 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 OTA version one, which requires the OTA version of the OTA file of the rear panel to be at least OTA version two. The above OTA version one is a version of the OTA file of the front panel, and the above OTA version two is a version of the OTA file of the rear panel.

[0086] 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 device module 1 is a, the upgrade priority of device module 2 is a, the upgrade priority of device module 3 is b, and the upgrade priority of device module 4 is d. When performing OTA upgrade on the above four device modules, device module 1 and device module 2 are upgraded at the same time first, followed by device module 3, and finally device module 4.

[0087] 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, where all OTA versions are as follows: V0.12.2, V0.12.3, V0.12.4, V0.12.5, V0.12.6, V0.12.7. If the OTA file of device module 1 is set to be upgraded to V0.12.6, then device module 1 is upgraded from V0.12.2 of the OTA file to V0.12.6. If the OTA file of device module 1 is set to be upgraded to V0.12.7, then device module 1 is upgraded from V0.12.2 of the OTA file to V0.12.7.

[0088] 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, and 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 for upgrading device module 1 to V0.15.9 is that the version of the OTA file of device module 2 is not less 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.

[0089] In an embodiment of the present application, the configuration information of the OTA upgrade task can configure the OTA upgrade of electronic device modules with different production batches and network access times, solving the problem of complex and difficult upgrade management of OTA versions caused by a large number of production batches and different network access times, and realizing intelligent management and control of OTA upgrades.

[0090] In some embodiments, after performing OTA upgrade on the first device module, the method further includes:

[0091] Receive an OTA upgrade result of the first device module sent by the electronic device.

[0092] Specifically, the above OTA upgrade result includes upgrade success and upgrade failure. After the device module performs OTA upgrade, the electronic device sends the OTA upgrade result to the terminal device, and the terminal device receives the above OTA upgrade result.

[0093] In an embodiment of the present application, the intermediate status can be selectively reported during the OTA upgrade process, but the OTA upgrade result must be reported. The configuration information of the OTA upgrade task is reversely updated through the OTA upgrade result, the scheduling of the OTA upgrade task is completed, and the OTA upgrade of the device module is intelligently managed and controlled.

[0094] Optionally, when the OTA upgrade result is an upgrade failure, the data packet of the OTA version is resent to the electronic device.

[0095] Specifically, when the OTA upgrade result is an upgrade failure, the number of upgrade failures is counted. When the number of upgrade failures is less than the preset failure threshold, the OTA version of the data packet is re-sent to the electronic device, and the device module of the electronic device is re-OTA upgraded; when the number of upgrade failures is greater than or equal to the preset failure threshold, the sending of the OTA version of the data packet to the electronic device is terminated.

[0096] In the embodiment of the present application, multiple upgrade retries can avoid upgrade failures due to system or operation problems, thereby improving the OTA upgrade efficiency of the device module.

[0097] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

[0098] See also Figure 4 , Figure 4 It is a structural diagram of an electronic device OTA upgrade device 400 provided in an embodiment of the present application. The device may include an acquisition unit 401, a processing unit 402, a receiving unit 403 and a sending unit 404. The receiving unit 403 and the sending unit 404 can communicate with the outside, and the processing unit 402 is used for processing, such as determining the first hash value of the OTA file of each device module in the multiple device modules according to the OTA upgrade task information. The receiving unit 403 and the sending unit 404 can also be called a communication interface, a transceiver unit or a transceiver module. The receiving unit 403 and the sending unit 404 can be used to perform the actions performed by the terminal device in the above method embodiment.

[0099] For example, the receiving unit 403 and the sending unit 404 may also be referred to as transceiver modules or transceiver units (including a receiving unit and / or a sending unit), which are respectively used to execute the sending and receiving steps of the terminal device in the above method embodiment.

[0100] In one possible design, the electronic device OTA upgrade device can implement the steps or processes executed by the terminal device in the above method embodiment. The receiving unit 403 and the sending unit 404 are used to perform the sending and receiving related operations on the terminal device side in the above method embodiment, and the processing unit 402 is used to perform the processing related operations of the terminal device in the above method embodiment.

[0101] An acquisition unit 401 is used to acquire OTA upgrade task information of the over-the-air download technology, wherein the OTA upgrade task information includes a device type, a device model, and a device module of the electronic device, wherein one device type corresponds to multiple device models, and one device model corresponds to multiple device modules;

[0102] The processing unit 402 is used to determine a first hash value of the OTA file of each device module among the multiple device modules according to the OTA upgrade task information; if the first hash value of the OTA file of the first device module among the multiple device modules is less than a preset threshold, determine a second hash value of the OTA file of the first device module according to the first hash value of the OTA file of the first device module; and perform OTA upgrade on the first device module based on the second hash value of the OTA file of the first device module.

[0103] In one possible implementation, the processing unit 402 is specifically used to add the hash value corresponding to the device type of the electronic device, the hash value corresponding to the device model, and the hash value corresponding to the device module to determine the first hash value of the OTA file of each device module among the multiple device modules.

[0104] In a possible implementation, the processing unit 402 is specifically configured to determine 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 perform OTA upgrade on the first device module according to the OTA version.

[0105] In a possible implementation, the processing unit 402 is specifically configured to perform OTA upgrade on the first device module according to configuration information of the OTA upgrade task, where the configuration information includes an upgrade priority, an upgrade range, and an OTA dependent version module.

[0106] In a possible implementation, the receiving unit 403 is configured to receive an OTA upgrade result of the first device module sent by the electronic device.

[0107] In a possible implementation, the sending unit 404 is configured to resend the data packet of the OTA version to the electronic device when the OTA upgrade result is an upgrade failure.

[0108] It should be noted that the implementation and beneficial effects of each unit can also refer to Figure 3 The corresponding description of the method embodiment shown.

[0109] See also Figure 5 , Figure 5 1 is a schematic diagram of the structure of an electronic device OTA upgrade device 500 provided in an embodiment of the present application. The terminal device can be applied to Figure 1 In the system shown, the functions of the terminal device in the above method embodiment are executed, or the steps or processes executed by the terminal device in the above method embodiment are realized.

[0110] like Figure 5As shown, the terminal device includes a processor 501 and a transceiver 502. Optionally, the terminal device also includes a memory 503. The processor 501, the transceiver 502 and the memory 503 can communicate with each other through an internal connection path to transmit control and / or data signals. The memory 503 is used to store a computer program, and the processor 501 is used to call and run the computer program from the memory 503 to control the transceiver 502 to send and receive signals. Optionally, the terminal device may also include an antenna for sending the uplink data or uplink control signaling output by the transceiver 502 through a wireless signal.

[0111] The processor 501 and the memory 503 may be combined into a processing device, and the processor 501 is used to execute the program code stored in the memory 503 to implement the above functions. In specific implementation, the memory 503 may also be integrated into the processor 501, or independent of the processor 501. Figure 4 The processing units in .

[0112] The transceiver 502 can be used with Figure 4 The receiving unit and the sending unit in correspondence. The transceiver 502 may include a receiver (or receiver, receiving circuit) and a transmitter (or transmitter, transmitting circuit). The receiver is used to receive signals, and the transmitter is used to transmit signals.

[0113] It should be understood that Figure 5 The terminal equipment shown is capable of implementing Figure 3 The method embodiment shown involves various processes of the terminal device. The operations and / or functions of each module in the terminal device are respectively to implement the corresponding processes in the above method embodiment. For details, please refer to the description in the above method embodiment. To avoid repetition, the detailed description is appropriately omitted here.

[0114] The processor 501 can be used to execute the actions implemented by the terminal device in the previous method embodiment, and the transceiver 502 can be used to execute the actions of the terminal device sending or receiving to the electronic device described in the previous method embodiment. Please refer to the description in the previous method embodiment for details, which will not be repeated here.

[0115] Among them, the processor 501 can be 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 devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents disclosed in this application. The processor 501 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. The communication bus 504 can be a peripheral component interconnect standard PCI bus or an extended industrial standard structure EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used to represent it, but it does not mean that there is only one bus or one type of bus. The communication bus 504 is used to realize the connection communication between these components. Among them, the transceiver 502 in the embodiment of the present application is used to communicate signaling or data with other node devices. The memory 503 may include volatile memory, such as nonvolatile dynamic random access memory (NVRAM), phase change random access memory (PRAM), magnetoresistive random access memory (MRAM), etc., and may also include non-volatile memory, such as at least one disk storage device, electronically erasable programmable read-only memory (EEPROM), flash memory devices, such as NOR flash memory or NAND flash memory, semiconductor devices, such as solid state disk (SSD), etc. The memory 503 may also be at least one storage device located away from the aforementioned processor 501. The memory 503 may also optionally store a set of computer program codes or configuration information. Optionally, the processor 501 may also execute a program stored in the memory 503. The processor may cooperate with the memory and the transceiver to execute any method and function of the terminal device in the above-mentioned application embodiment.

[0116] An embodiment of the present application also provides a chip system, which includes a processor for supporting a terminal device to implement the functions involved in any of the above embodiments, such as performing an OTA upgrade on the first device module based on the second hash value of the OTA file of the first device module. In one possible design, the chip system may also include a memory, which is used for computer programs and data necessary for the terminal device. The chip system may be composed of a chip, or may include a chip and other discrete devices. Among them, the input and output of the chip system correspond to the receiving and sending operations of the terminal device of the method embodiment, respectively.

[0117] The present application also provides an electronic device OTA upgrade device, including a processor and an interface. The processor can be used to execute the method in the above method embodiment.

[0118] It should be understood that the above-mentioned electronic device OTA upgrade device can be a chip. For example, the electronic device OTA upgrade device can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0119] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0120] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can 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 devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0121] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, the computer program product comprising: a computer program, when the computer program is run on a computer, causes the computer to execute Figure 3 A method according to any one of the embodiments shown.

[0122] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable medium, which stores a computer program, and when the computer program is run on a computer, the computer executes Figure 3 A method according to any one of the embodiments shown.

[0123] According to the method provided in the embodiment of the present application, the present application also provides an electronic device OTA upgrade system, which includes the aforementioned one or more servers and one or more terminal devices.

[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).

[0125] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0126] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0127] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a positioning server, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0128] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An OTA upgrade method for an electronic device, characterized in that: include: Acquire OTA upgrade task information of the over-the-air download technology, where the OTA upgrade task information includes a device type, a device model, and a device module of the electronic device, where one device type corresponds to multiple device models, and one device model corresponds to multiple device modules; Determine, according to the OTA upgrade task information, a first hash value of an OTA file of each of the multiple device modules, where the first hash value is related to a current OTA version; When a current OTA version of the OTA file of a first device module among the multiple device modules is less than a latest OTA version of the OTA file of the first device module, determining a second hash value of the OTA file of the first device module according to a 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; Based on the second hash value of the OTA file of the first device module, the first device module is OTA upgraded.

2. The method according to claim 1, characterized in that Determining, according to the OTA upgrade task information, a first hash value of the OTA file of each of the plurality of device modules comprises: A hash value corresponding to the device type of the electronic device, a hash value corresponding to the device model, and a hash value corresponding to the device module are added together to determine a first hash value of the OTA file of each device module in the multiple device modules.

3. The method according to claim 1, characterized in that: The performing OTA upgrading 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; According to the OTA version, the first device module is OTA upgraded.

4. The method according to claim 1, characterized in that: The OTA upgrade of the first device module includes: The first device module is OTA upgraded according to configuration information of the OTA upgrade task, wherein the configuration information includes an upgrade priority, an upgrade range, and an OTA dependent version module.

5. The method according to claim 3 or 4, characterized in that: 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: Receive an OTA upgrade result of the first device module sent by the electronic device.

6. The method according to claim 5, characterized in that After receiving the OTA upgrade result of the first device module sent by the electronic device, the method further includes: When the OTA upgrade result is an upgrade failure, the data packet of the OTA version is resent to the electronic device.

7. An OTA upgrade device for electronic equipment, characterized in that: include: an acquisition unit, configured to acquire over-the-air (OTA) upgrade task information, wherein the OTA upgrade task information includes a device type, a device model, and a device module of the electronic device, wherein one device type corresponds to multiple device models, and one device model corresponds to multiple device modules; a processing unit, configured to determine, according to the OTA upgrade task information, a first hash value of an OTA file of each of the plurality of device modules; When a current OTA version of the OTA file of a first device module among the multiple device modules is less than a latest OTA version of the OTA file of the first device module, determining a second hash value of the OTA file of the first device module according to a 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; Based on the second hash value of the OTA file of the first device module, the first device module is OTA upgraded.

8. The device according to claim 7, characterized in that The processing unit is specifically used for: A hash value corresponding to the device type of the electronic device, a hash value corresponding to the device model, and a hash value corresponding to the device module are added together to determine a first hash value of the OTA file of each device module in the multiple device modules.

9. The device according to claim 7, characterized in that The processing unit is specifically used for: 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; According to the OTA version, the first device module is OTA upgraded.

10. The device according to claim 7, characterized in that The processing unit is specifically used for: The first device module is OTA upgraded according to configuration information of the OTA upgrade task, wherein the configuration information includes an upgrade priority, an upgrade range, and an OTA dependent version module.

11. The device according to claim 9 or 10, characterized in that The device also includes: The receiving unit is used to receive the OTA upgrade result of the first device module sent by the electronic device.

12. The device according to claim 11, characterized in that The device also includes: The sending unit is used to resend the data packet of the OTA version to the electronic device when the OTA upgrade result is an upgrade failure.

13. An OTA upgrade device for electronic equipment, characterized in that: The device comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program to execute the method according to any one of claims 1 to 6.

14. A chip, characterized in that: The chip is a chip in an OTA upgrade device of an electronic device, the chip includes a processor and an input interface and an output interface connected to the processor, the chip also includes a memory, and when the computer program in the memory is executed, the method described in any one of claims 1-6 is executed.

15. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 6.

16. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.