Equipment software upgrading method and device, intelligent equipment and storage medium
The device triggers an automatic upgrade strategy in a designated area, uses the ultra-wideband module to determine the location and connect the upgraded device to download the software package, and enables wireless hotspots for other devices to download, which solves the problem of low efficiency in equipment software upgrade and realizes efficient automatic upgrade , reducing labor and resource consumption.
Patent Information
- Application Number
- CN202411096018.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2025-01-03
AI Technical Summary
The existing equipment software upgrade method is inefficient, manual operation takes time and effort, and the hardware configuration and network bandwidth requirements are high when batch equipment connects to servers concurrently, which affects efficiency.
The device triggers an automatic upgrade policy in the specified area, determines the location through the ultra-wideband module, searches and connects the upgraded device to download the software package, and then opens the wireless hotspot for other devices to download it, realizing automated upgrades within the device group.
It greatly improves the efficiency of automatic upgrade of batch equipment software, reduces labor consumption, reduces network bandwidth and server performance requirements, and reduces upgrade costs.
Smart Images

Figure CN119248301A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart devices, and in particular to a device software upgrade method, apparatus, smart device and storage medium. Background Art
[0002] At present, there are two common ways to upgrade the software of devices. One is manual upgrade, that is, manually upgrading devices one by one, which is very inefficient; the other is to let the devices to be upgraded connect to the server in batches through the network, and the server will upgrade them in batches. Although this method saves manpower investment to a great extent, it has high requirements for server hardware configuration and network bandwidth due to the concurrent connection of multiple devices to the server. Otherwise, it will take a long time for the device to download the software upgrade firmware from the server, which also seriously affects the efficiency of the upgrade.
[0003] In view of this, how to effectively improve the efficiency of automatic upgrade of batch equipment software and save manpower is an issue that needs to be considered at present. Summary of the invention
[0004] The embodiments of the present application provide a device software upgrade method, apparatus, intelligent device and storage medium, which can effectively improve the efficiency of automatic upgrade of batch device software and save manpower.
[0005] In a first aspect, an embodiment of the present application provides a device software upgrade method, which is applied to any device to be upgraded in a device group, and the method includes:
[0006] When the device to be upgraded determines that the device is located in the specified area, triggering the automatic upgrade strategy of the device;
[0007] Based on the automatic upgrade strategy, determining an upgraded target device in the device group;
[0008] Downloading a software upgrade package from the target device, and automatically upgrading according to the software upgrade package;
[0009] After the upgrade is completed, the wireless hotspot of the device is turned on, and the wireless hotspot is used for other devices to be upgraded in the device group to connect and download the software upgrade package.
[0010] In a possible implementation manner of the first aspect, before the step of triggering an automatic upgrade policy of the device when the device to be upgraded determines that the device is located in a specified area, the step includes:
[0011] Determine the distance between the device and the preset ultra-wideband tag in the specified area;
[0012] If the distance is less than or equal to the preset distance threshold, it is determined that the device is located in the specified area;
[0013] If the distance is greater than the preset distance threshold, it is determined that the device is not within the specified area.
[0014] In a possible implementation manner of the first aspect, the step of determining an upgraded target device in the device group based on the automatic upgrade policy includes:
[0015] Based on the automatic upgrade strategy, searching for wireless hotspots;
[0016] When a target wireless hotspot is searched, a device providing the target wireless hotspot is determined as a target device, wherein the target wireless hotspot refers to a wireless hotspot that matches a preset wireless hotspot rule.
[0017] In a possible implementation of the first aspect, after the upgrade is completed, after the step of enabling the wireless hotspot of the device, the method includes:
[0018] When a wireless hotspot connection request sent by another device to be upgraded is detected, verifying the wireless hotspot rule carried in the wireless hotspot connection request;
[0019] If the wireless hotspot rule matches the preset wireless hotspot rule, the verification is successful;
[0020] Based on the wireless hotspot, a connection with the other devices to be upgraded is established.
[0021] In a possible implementation manner of the first aspect, after the step of enabling the wireless hotspot of the device after the upgrade is completed, the method further includes:
[0022] When more than one wireless hotspot connection request sent by the other devices to be upgraded is detected at the same time, the wireless hotspot rule carried in the wireless hotspot connection request sent by the device to be upgraded closest to the wireless hotspot rule is verified according to the distance between the present device and the other devices to be upgraded.
[0023] In a possible implementation manner of the first aspect, after the step of establishing a connection with the other to-be-upgraded device based on the wireless hotspot, the method further includes:
[0024] Marking the connection status of the wireless hotspot described in the device as unconnectable;
[0025] When the other devices to be upgraded complete downloading of the software upgrade package, the connection status of the wireless hotspot of the device is marked as connectable.
[0026] In a possible implementation manner of the first aspect, after the step of enabling the wireless hotspot of the device after the upgrade is completed, the method further includes:
[0027] When a restart instruction is detected, the device is restarted based on the restart instruction, and the software upgrade package is deleted.
[0028] In a second aspect, an embodiment of the present application provides a device software upgrade apparatus, which is applied to any device to be upgraded in a device group, and the apparatus includes:
[0029] An upgrade trigger unit, configured to trigger an automatic upgrade strategy of the device when the device to be upgraded determines that the device is located in a specified area;
[0030] a target determination unit, configured to determine an upgraded target device in the device group based on the automatic upgrade strategy;
[0031] A software upgrade unit, used to download a software upgrade package from the target device and automatically upgrade according to the software upgrade package;
[0032] The hotspot activation unit is used to activate the wireless hotspot of the device after the upgrade is completed. The wireless hotspot is used for other devices to be upgraded in the device group to connect and download the software upgrade package.
[0033] In a third aspect, an embodiment of the present application provides an intelligent device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the device software upgrade method as described in the first aspect above is implemented.
[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device software upgrade method as described in the first aspect above is implemented.
[0035] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a smart device, enables the smart device to execute the device software upgrade method as described in the first aspect above.
[0036] In an embodiment of the present application, when any device to be upgraded in the device group determines that the device is located in a designated area, the automatic upgrade strategy of its own device is triggered. Based on the automatic upgrade strategy, the upgraded target device is determined in the device group, and then the software upgrade package is downloaded from the target device, and the upgrade is automatically performed according to the software upgrade package. After the upgrade is completed, the wireless hotspot of the device is turned on, and other devices to be upgraded in the device group can be upgraded after connecting to the wireless hotspot to download the software upgrade package, thereby realizing the "infectious" automatic upgrade of the devices to be upgraded, which greatly reduces the consumption of manpower and material resources, can effectively improve the efficiency of automatic upgrade of batch device software, and reduce the upgrade cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 is a flowchart of the implementation of the device software upgrade method provided in the embodiment of the present application;
[0039] Figure 2 It is a specific implementation flow chart of determining whether the device is in a specified area in the device software upgrade method provided in the embodiment of the present application;
[0040] Figure 3 It is a specific implementation flow chart of step S102 in the device software upgrade method provided in the embodiment of the present application;
[0041] Figure 4 This is a specific implementation flow chart of establishing a connection between the device and other devices to be upgraded in the device software upgrade method provided in the embodiment of the present application;
[0042] Figure 5 It is a structural block diagram of a device software upgrade apparatus provided in an embodiment of the present application;
[0043] Figure 6 It is a schematic diagram of a smart device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0045] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0046] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0047] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0048] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0049] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0050] For most devices, after they are produced in the factory, they need to be tested and verified for each hardware part of the device. This test verification process requires a specific production test software. After the test verification is completed, the production test software needs to be upgraded to the official shipping software before the device can be completely generated and officially shipped. The production test software is batch burned into the device through the chip batch burning tool before the device chip is mounted. The efficiency of batch burning can meet the requirements, but when upgrading from the production test software to the official shipping software, since the chip has been mounted on the device hardware, the production test software can only be upgraded to the official shipping software through software upgrade. For the software upgrade of a small number of devices, the impact of manual operation upgrade on the upgrade efficiency is not great, but when the number of devices is large, manual operation upgrade will take a long time and effort.
[0051] In order to solve the above problems, the embodiments of the present application provide a device software upgrade method, apparatus, smart device and storage medium, which are described below for details.
[0052] It should be understood that the device software upgrade method provided in the embodiment of the present application is applicable to various types of smart devices and servers that need to perform software upgrades, and the embodiment of the present application does not impose any restrictions on the specific types of smart devices and servers.
[0053] Figure 1 The implementation process of the device software upgrade method provided in the embodiment of the present application is shown. The execution end of the method is any device to be upgraded in the device group. The method flow includes steps S101 to S104. The specific implementation principle of each step is as follows:
[0054] Step S101: When the device to be upgraded determines that the device is located in a designated area, an automatic upgrade strategy of the device is triggered.
[0055] The above-mentioned designated area may be an equipment upgrade area pre-designated by the factory.
[0056] In this embodiment, the device group includes a number of devices to be upgraded, which may be devices in the same batch that need to be upgraded, and the device group also includes at least one upgraded device. When any device to be upgraded in the device group determines that it is located in the specified area, its automatic upgrade strategy is triggered.
[0057] The automatic upgrade policy is used to guide the device to be upgraded to automatically download the software upgrade package and upgrade.
[0058] As a possible implementation of this application, Figure 2 A specific implementation process of determining whether the device is in a specified area in the device software upgrade method provided in an embodiment of the present application is shown, and is described in detail as follows:
[0059] A1: Determine the distance between the device and the preset ultra-wideband tag in the specified area.
[0060] Each device in the device group (including devices to be upgraded and upgraded devices) is equipped with an ultra-wideband (UWB) module. The UWB module is a wireless communication technology module used for precise positioning and distance measurement. Different from the principle of the GPS module, it calculates the distance based on the transmission time between the two modules and the propagation speed of the signal in the air. The preset ultra-wideband tag is an electronic tag that can communicate wirelessly with the UWB module in the above-mentioned specified area to achieve high-precision distance measurement.
[0061] A2: If the distance is less than or equal to a preset distance threshold, it is determined that the device is located within the specified area.
[0062] A3: If the distance is greater than the preset distance threshold, it is determined that the device is not within the specified area.
[0063] In this embodiment, the device to be upgraded sends a signal through the UWB module. After the preset ultra-wideband tag receives the signal, it returns the signal to the device to be upgraded. The device to be upgraded calculates the distance between itself and the preset ultra-wideband tag based on the time difference of the return signal. When the distance is less than or equal to the preset distance threshold, it can be determined that the device to be upgraded is located in the specified area, and when the distance is greater than the preset distance threshold, it can be determined that the device is not in the specified area.
[0064] The designated area may be an area with a preset ultra-wideband tag as the center and a preset distance threshold as the radius.
[0065] In some implementations, there are multiple preset ultra-wideband tags in a designated area, and the designated area may be composed of multiple sub-areas, each of which has a preset ultra-wideband tag as a center and a preset distance threshold as a radius.
[0066] In this embodiment, the ultra-wideband module is used to send and receive signals, so as to accurately determine the distance between the device to be upgraded and the preset ultra-wideband tag, and accurately judge whether the device is located in the specified area, thereby improving the effectiveness of triggering the automatic upgrade strategy.
[0067] Step S102: Based on the automatic upgrade strategy, determine the upgraded target device in the device group.
[0068] The target device is a device in the device group that has been upgraded and has a software upgrade package. After the device to be upgraded triggers its own automatic upgrade strategy, the target device is determined from the device group so that the software upgrade package can be obtained from the target device.
[0069] As a possible implementation of this application, Figure 3 A specific implementation process of step S102 in the device software upgrade method provided in the embodiment of the present application is shown, and is described in detail as follows:
[0070] B1: Searching for wireless hotspots based on the automatic upgrade strategy.
[0071] In this embodiment, based on the automatic upgrade strategy, the hotspot search mode is turned on to search for wireless hotspots in the above-specified area. For example, the device to be upgraded turns on the STA mode to continuously scan the surrounding wireless hotspots.
[0072] B2: When a target wireless hotspot is searched, a device providing the target wireless hotspot is determined as a target device, wherein the target wireless hotspot refers to a wireless hotspot that matches a preset wireless hotspot rule.
[0073] The target device is an upgraded device. After the device to be upgraded is upgraded to an upgraded device, a wireless hotspot can be opened for other devices to be upgraded to search. In this embodiment, after the device to be upgraded triggers the automatic upgrade strategy, it continuously searches for wireless hotspots in the specified area, and determines the wireless hotspot that matches the preset hotspot rule as the target wireless hotspot to be connected, and the device that provides the target wireless hotspot is determined as the target device.
[0074] The above-mentioned preset hotspot rule may include a wireless hotspot name and may also include a wireless hotspot password. The wireless hotspot name may be named according to the device name and the device serial number. The wireless hotspot password may be empty or a unified preset password. In this embodiment, when a wireless hotspot whose device name and device serial number match the device is searched, it is determined that the target wireless hotspot is searched.
[0075] Exemplarily, the device to be upgraded continuously searches for wireless hotspots, performs preliminary screening on the searched wireless hotspots based on the device names in the wireless hotspot names, retains the wireless hotspots whose device names match the current device, and then determines the device model based on the device serial number in the wireless hotspot name, and determines the wireless hotspot whose device model matches the current device model as the target wireless hotspot.
[0076] In a possible implementation, the wireless hotspot is marked with a connection status. When more than one wireless hotspot matching the preset wireless hotspot rule is searched at the same time, the wireless hotspot with the connection status marked as connectable is preferentially selected as the target wireless hotspot. That is, the target wireless hotspot is the wireless hotspot with the connection status marked as connectable.
[0077] If there are multiple wireless hotspots that match the preset wireless hotspot rule and whose connection status is marked as connectable, a wireless hotspot may be randomly selected as the target wireless hotspot; or, the target wireless hotspot may be determined based on the signal strength of the wireless hotspot and / or the distance between the device providing the wireless hotspot and the device. For example, the wireless hotspot with the strongest signal strength and / or the shortest device distance may be determined as the target wireless hotspot.
[0078] In this embodiment, by searching for a wireless hotspot that matches the preset wireless hotspot rules as the target wireless hotspot, the effectiveness of the wireless connection can be improved, avoiding the failure of software upgrade package downloading caused by connecting to other devices that do not have a software upgrade package or whose software upgrade package does not match, thereby affecting the upgrade success rate and efficiency.
[0079] Step S103: downloading a software upgrade package from the target device, and automatically upgrading according to the software upgrade package.
[0080] In this embodiment, the device to be upgraded is connected to the target file server of the target device based on the wireless hotspot provided by the target device, and searches for the software upgrade package from the specified directory of the target file server; if the software upgrade package is found, the software upgrade package is downloaded to the specified directory of the file server of this device, and the upgrade is automatically performed according to the software upgrade package.
[0081] In some embodiments, when a software upgrade package is found in a specified directory of a target file server, the device model in the header of the software upgrade package is read. If the device model in the header of the software upgrade package contains the device model of the current device, the software upgrade package is downloaded to the specified directory of its own file server. This avoids downloading invalid software upgrade packages that may affect the normal upgrade of the current device, and can effectively ensure the success rate of batch upgrades.
[0082] Step S104: After the upgrade is completed, the wireless hotspot of the device is turned on, and the wireless hotspot is used for other devices to be upgraded in the device group to connect and download the software upgrade package.
[0083] In this embodiment, after the upgrade is completed, the device to be upgraded can be switched to become the target device for other devices to be upgraded to connect and download the software upgrade package. After the upgrade is completed, the device to be upgraded automatically switches from the hotspot search mode to the hotspot mode, that is, automatically switches from the STA mode to the AP mode, and provides a wireless hotspot for other devices to be upgraded in the device group to connect and download the software upgrade package.
[0084] As a possible implementation of this application, Figure 4 A specific implementation process of establishing a connection between the device and other devices to be upgraded in the device software upgrade method provided in the embodiment of the present application is shown, and is described in detail as follows:
[0085] C1: When a wireless hotspot connection request sent by another device to be upgraded is detected, the wireless hotspot rule carried in the wireless hotspot connection request is verified.
[0086] C2: If the wireless hotspot rule matches the preset wireless hotspot rule, the verification is passed. The preset wireless hotspot rule can refer to the above content and will not be described here.
[0087] C3: Establishing a connection with the other devices to be upgraded based on the wireless hotspot.
[0088] In this embodiment, the connection between the device to be upgraded and the target device is a two-way selection. When the device to be upgraded searches for and determines the target wireless hotspot, the scanned wireless hotspot is screened based on preset wireless hotspot rules. When the device to be upgraded is upgraded and can serve as a target device for other devices to be upgraded to connect to and download software upgrade packages, the device to be upgraded that sends a wireless hotspot connection request is also verified based on the preset wireless hotspot rules. The two-way verification is beneficial to ensuring the validity of the connection, avoiding the validity of the software upgrade package download caused by device connection errors, and can indirectly improve the efficiency of automatic software upgrades.
[0089] In a possible implementation, when more than one wireless hotspot connection request sent by the other devices to be upgraded is detected at the same time, the wireless hotspot rule carried in the wireless hotspot connection request sent by the closest device to be upgraded is verified according to the distance between the device and the other devices to be upgraded. That is, determining the connected device to be upgraded based on the distance priority principle is conducive to improving the speed of software upgrade package downloading, thereby improving the efficiency of automatic software upgrade of the device to be upgraded.
[0090] In a possible implementation, after establishing a connection with the other devices to be upgraded based on the wireless hotspot, the connection status of the wireless hotspot of the present device is marked as unconnectable; when the other devices to be upgraded complete downloading the software upgrade package, the connection status of the wireless hotspot of the present device is marked as connectable. In this embodiment, by marking the connection status of the wireless hotspot, the number of other devices to be upgraded that are connected to the present device to download the software upgrade package can be limited, which is conducive to improving the speed of downloading the software upgrade package, and further improving the efficiency of automatic software upgrade of the devices to be upgraded.
[0091] In this embodiment, when the upgrade of the device to be upgraded is completed, the connection status of the wireless hotspot of the target device is marked as connectable, and the download of the software upgrade package can continue to be provided for other devices to be upgraded.
[0092] In a possible implementation, if the software upgrade package fails to be downloaded, a new upgraded target device is determined; and the software upgrade package is re-downloaded from the new upgraded target device. By re-determining the target device and downloading the software upgrade package again for upgrading, the upgrade interruption caused by download failure can be avoided, thereby ensuring the efficiency of automatic device upgrade.
[0093] In a possible implementation, when a restart instruction is detected, the device is restarted based on the restart instruction, and the software upgrade package is deleted. The restart instruction may be triggered regularly, or may be triggered by a user, which is not limited here.
[0094] In this embodiment, the device to be upgraded will restart after the upgrade is successful, and after restarting, the hotspot mode is turned on, and the wireless hotspot is turned on for other devices to be upgraded to connect and download the software upgrade package. The software upgrade package stored in the device is only used for the upgrade of this device and other devices to be upgraded. By restarting the device to delete the software upgrade package and closing the connection to the file server, the storage space of the device can be reduced, and the software upgrade package can be prevented from affecting other devices in the future.
[0095] In this embodiment, only one upgraded device is needed in the device group, and the device to be upgraded can connect to download the software upgrade package to achieve automatic downloading. Moreover, after each device to be upgraded is successfully upgraded, it can provide a wireless hotspot for other devices to be upgraded that have not yet been upgraded to connect and download the software upgrade package. Based on this method, within a period of time, one upgraded device in the device group can help one device to be upgraded to upgrade, which becomes two upgraded devices, two upgraded devices can help two devices to be upgraded to upgrade, which becomes four upgraded devices, and four upgraded devices can help four devices to be upgraded to upgrade, which becomes eight upgraded devices. The upgraded device can be 2 n The software upgrade of all devices can be completed in less than 10 upgrade cycles for a group of 1,000 devices, which greatly improves the efficiency of batch upgrades of devices, reduces manual reliance, and greatly reduces the requirements for network bandwidth and server performance, reducing the consumption of manpower and material resources. The more devices to be upgraded, the more obvious the efficiency improvement.
[0096] In an embodiment of the present application, when any device to be upgraded in the device group determines that the device is located in a designated area, the automatic upgrade strategy of its own device is triggered. Based on the automatic upgrade strategy, the upgraded target device is determined in the device group, and then the software upgrade package is downloaded from the target device, and the upgrade is automatically performed according to the software upgrade package. After the upgrade is completed, the wireless hotspot of the device is turned on, and other devices to be upgraded in the device group can be upgraded after connecting to the wireless hotspot to download the software upgrade package, thereby realizing the "infectious" automatic upgrade of the devices to be upgraded, which greatly reduces the consumption of manpower and material resources, can effectively improve the efficiency of automatic upgrade of batch device software, and reduce the upgrade cost.
[0097] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0098] Corresponding to the device software upgrade method described in the above embodiment, Figure 5 A structural block diagram of a device software upgrade apparatus provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0099] Reference Figure 5 The device software upgrade device is applied to any device to be upgraded in the device group, and the device includes: an upgrade trigger unit 51, a target determination unit 52, a software upgrade unit 53, and a hotspot opening unit 54, wherein:
[0100] An upgrade trigger unit 51, configured to trigger an automatic upgrade strategy of the device when the device to be upgraded determines that the device is located in a specified area;
[0101] A target determination unit 52, configured to determine an upgraded target device in the device group based on the automatic upgrade strategy;
[0102] A software upgrade unit 53, configured to download a software upgrade package from the target device and automatically upgrade the device according to the software upgrade package;
[0103] The hotspot activation unit 54 is used to activate the wireless hotspot of the device after the upgrade is completed. The wireless hotspot is used for other devices to be upgraded in the device group to connect and download the software upgrade package.
[0104] As a possible implementation of the present application, the above-mentioned device further includes:
[0105] A preset distance judgment unit is used to judge the distance between the device and the preset ultra-wideband tag in the specified area; if the distance is less than or equal to the preset distance threshold, it is determined that the device is located in the specified area; if the distance is greater than the preset distance threshold, it is determined that the device is not in the specified area.
[0106] As a possible implementation of the present application, the target determination unit 52 includes:
[0107] A hotspot search module, used to search for wireless hotspots based on the automatic upgrade strategy;
[0108] The target device determination module is used to determine the device providing the target wireless hotspot as the target device when a target wireless hotspot is searched, wherein the target wireless hotspot refers to a wireless hotspot that matches a preset wireless hotspot rule.
[0109] As a possible implementation of the present application, the above-mentioned device further includes:
[0110] A connection verification unit, configured to verify the wireless hotspot rule carried in the wireless hotspot connection request when a wireless hotspot connection request sent by other devices to be upgraded is detected; if the wireless hotspot rule matches the preset wireless hotspot rule, the verification is successful;
[0111] A connection establishing unit is used to establish a connection with the other devices to be upgraded based on the wireless hotspot.
[0112] As a possible implementation manner of the present application, the connection verification unit is further used for:
[0113] When more than one wireless hotspot connection request sent by the other devices to be upgraded is detected at the same time, the wireless hotspot rule carried in the wireless hotspot connection request sent by the device to be upgraded closest to the wireless hotspot rule is verified according to the distance between the present device and the other devices to be upgraded.
[0114] As a possible implementation of the present application, the above-mentioned device further includes:
[0115] A connection status marking unit is used to mark the connection status of the wireless hotspot of this device as unconnectable after establishing a connection with the other devices to be upgraded based on the wireless hotspot; when the other devices to be upgraded complete the download of the software upgrade package, mark the connection status of the wireless hotspot of this device as connectable.
[0116] As a possible implementation of the present application, the above-mentioned device further includes:
[0117] The initialization restart unit is used to restart the device based on the restart instruction when a restart instruction is detected, and delete the software upgrade package.
[0118] In an embodiment of the present application, when any device to be upgraded in the device group determines that the device is located in a designated area, the automatic upgrade strategy of its own device is triggered. Based on the automatic upgrade strategy, the upgraded target device is determined in the device group, and then the software upgrade package is downloaded from the target device, and the upgrade is automatically performed according to the software upgrade package. After the upgrade is completed, the wireless hotspot of the device is turned on, and other devices to be upgraded in the device group can be upgraded after connecting to the wireless hotspot to download the software upgrade package, thereby realizing the "infectious" automatic upgrade of the devices to be upgraded, which greatly reduces the consumption of manpower and material resources, can effectively improve the efficiency of automatic upgrade of batch device software, and reduce the upgrade cost.
[0119] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0120] The present application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, Figures 1 to 4 Indicates the steps of any device software upgrade method.
[0121] The embodiment of the present application also provides an intelligent device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, Figures 1 to 4 Indicates the steps of any device software upgrade method.
[0122] The present application also provides a computer program product, which, when executed on a server, enables the server to execute the following Figures 1 to 4 Indicates the steps of any device software upgrade method.
[0123] Figure 6 Schematic diagram of a smart device provided by an embodiment of the present application. Figure 6 As shown, the smart device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, the steps in the above-mentioned device software upgrade method embodiments are implemented, such as Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5 The functions of units 51 to 54 are shown.
[0124] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the smart device 6.
[0125] The smart device 6 may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the smart device 6 and does not constitute a limitation of the smart device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the smart device 6 may also include input and output devices, network access devices, buses, etc.
[0126] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0127] The memory 61 may be an internal storage unit of the smart device 6, such as a hard disk or memory of the smart device 6. The memory 61 may also be an external storage device of the smart device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the smart device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the smart device 6. The memory 61 is used to store the computer program and other programs and data required by the smart device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0128] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0129] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0131] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0132] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A device software upgrade method, characterized in that: Applied to any device to be upgraded in a device group, the method comprises: When the device to be upgraded determines that the device is located in the specified area, triggering the automatic upgrade strategy of the device; Based on the automatic upgrade strategy, determining an upgraded target device in the device group; Downloading a software upgrade package from the target device, and automatically upgrading according to the software upgrade package; After the upgrade is completed, the wireless hotspot of the device is turned on, and the wireless hotspot is used for other devices to be upgraded in the device group to connect and download the software upgrade package.
2. The device software upgrade method according to claim 1, characterized in that: Before the step of triggering the automatic upgrade strategy of the device when the device to be upgraded determines that the device is located in the designated area, the method includes: Determine the distance between the device and the preset ultra-wideband tag in the specified area; If the distance is less than or equal to the preset distance threshold, it is determined that the device is located in the specified area; If the distance is greater than the preset distance threshold, it is determined that the device is not within the specified area.
3. The device software upgrade method according to claim 1, characterized in that: The step of determining the upgraded target device in the device group based on the automatic upgrade strategy includes: Based on the automatic upgrade strategy, searching for wireless hotspots; When a target wireless hotspot is searched, a device providing the target wireless hotspot is determined as a target device, wherein the target wireless hotspot refers to a wireless hotspot that matches a preset wireless hotspot rule.
4. The device software upgrade method according to claim 1, characterized in that: After the upgrade is completed, the step of turning on the wireless hotspot of the device includes: When a wireless hotspot connection request sent by another device to be upgraded is detected, verifying the wireless hotspot rule carried in the wireless hotspot connection request; If the wireless hotspot rule matches the preset wireless hotspot rule, the verification is successful; Based on the wireless hotspot, a connection with the other devices to be upgraded is established.
5. The device software upgrade method according to claim 4, characterized in that: After the upgrade is completed, after the step of turning on the wireless hotspot of the device, the method further includes: When more than one wireless hotspot connection request sent by the other devices to be upgraded is detected at the same time, the wireless hotspot rule carried in the wireless hotspot connection request sent by the device to be upgraded closest to the wireless hotspot rule is verified according to the distance between the present device and the other devices to be upgraded.
6. The device software upgrade method according to claim 4, characterized in that: After the step of establishing a connection with the other devices to be upgraded based on the wireless hotspot, the method further includes: Marking the connection status of the wireless hotspot described in the device as unconnectable; When the other devices to be upgraded complete downloading of the software upgrade package, the connection status of the wireless hotspot of the device is marked as connectable.
7. The device software upgrade method according to any one of claims 1 to 6, characterized in that: After the step of turning on the wireless hotspot of the device after the upgrade is completed, the method further includes: When a restart instruction is detected, the device is restarted based on the restart instruction, and the software upgrade package is deleted.
8. A device software upgrade apparatus, characterized in that: Applied to any device to be upgraded in a device group, the device comprises: An upgrade triggering unit, configured to trigger an automatic upgrade strategy of the device when the device to be upgraded determines that the device is located in a specified area; a target determination unit, configured to determine an upgraded target device in the device group based on the automatic upgrade strategy; A software upgrade unit, used to download a software upgrade package from the target device and automatically upgrade according to the software upgrade package; The hotspot activation unit is used to activate the wireless hotspot of the device after the upgrade is completed. The wireless hotspot is used for other devices to be upgraded in the device group to connect and download the software upgrade package.
9. An intelligent device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the device software upgrade method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the device software upgrade method according to any one of claims 1 to 7 is implemented.