Terminal upgrading method, device, equipment, medium and product
By establishing a LAN and automatically comparing the access time and version trees of terminal devices, the automated upgrade of terminal devices is achieved, solving the problems of low efficiency and high cost of traditional upgrades, and achieving efficient upgrades without manual and additional equipment.
Patent Information
- Application Number
- CN202510338353.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-07-08
AI Technical Summary
The upgrade efficiency of traditional terminal equipment is low, requires manual participation, is costly, and depends on specific equipment and places, so flexible automation upgrade cannot be achieved.
By establishing a LAN, identifying the access time and version tree of terminal devices, automatically comparing and upgrading the terminal to be upgraded, and using a method that requires no additional equipment and manual participation to achieve automatic upgrade of terminal devices.
Improve upgrade efficiency, reduce costs, and realize automated upgrade of terminal equipment without manual and additional equipment.
Smart Images

Figure CN120276749A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a method, device, equipment, medium and product for terminal upgrade. Background Art
[0002] Terminal upgrade is a key link to ensure continuous update of device functions, performance optimization and security vulnerability repair. Against the backdrop of rapidly evolving technology, upgrading terminal software or firmware is crucial for enhancing the user experience, system stability and security.
[0003] Traditional terminal device upgrades can only be carried out manually. Manual upgrades are time-consuming and laborious, requiring one device after another to be located. It may only be possible to complete the upgrade of two or three devices in a day, resulting in low upgrade efficiency and high labor costs. In response to this, some manufacturers have developed separate upgrade modules, which are installed in specific locations to upgrade the devices. For example, upgrade gateways are installed at bus depots to upgrade the devices entering the depot. However, although this method is effective for upgrading terminals with fixed patterns, it will introduce new equipment and installation and maintenance costs, and is too dependent on the gateway. Summary of the Invention
[0004] The present invention provides a method, device, equipment, medium and product for terminal upgrade, providing a method for automatic upgrade and update of terminal devices without the need for additional equipment assistance or on-site manual participation, improving upgrade efficiency and reducing upgrade costs.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for terminal upgrade, including:
[0006] Determine a target terminal, and establish a local area network with the target terminal as the core;
[0007] Identify the access time of the current terminal device accessing the local area network and the version tree of the current terminal device;
[0008] Based on the access time and the version tree, determine the terminal to be upgraded from the target terminal and each of the current terminal devices, and upgrade the terminal to be upgraded.
[0009] In a second aspect, an embodiment of the present disclosure provides a terminal upgrade device, including:
[0010] A local area network creation module, configured to determine a target terminal and establish a local area network with the target terminal as the core;
[0011] An access terminal identification module, configured to identify the access time of the current terminal device accessing the local area network and the version tree of the current terminal device;
[0012] A terminal upgrade module, configured to determine, based on the access time and the version tree, a terminal to be upgraded from the target terminal and each of the current terminal devices, and upgrade the terminal to be upgraded.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0014] At least one processor; and
[0015] A memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute a terminal upgrade method provided in the first aspect embodiment above.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing computer instructions for causing a processor to implement a terminal upgrade method provided in the first aspect embodiment above when executed.
[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, the computer program product including a computer program that implements a terminal upgrade method provided in the first aspect embodiment above when executed by a processor.
[0019] An embodiment of the present invention provides a terminal upgrade method, apparatus, device, medium and product, including determining a target terminal, establishing a local area network with the target terminal as the core; identifying the access time of the current terminal device accessing the local area network and the version tree of the current terminal device; determining, based on the access time and the version tree, a terminal to be upgraded from the target terminal and each of the current terminal devices, and upgrading the terminal to be upgraded. The above technical solution provides a method for automatically upgrading and updating terminal devices without the assistance of additional devices and without manual on-site participation, improving the upgrade efficiency and reducing the upgrade cost.
[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Description of the Drawings
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0022] Figure 1 It is a flowchart of a terminal upgrade method provided in Embodiment 1 of the present invention;
[0023] Figure 2 It is a connection diagram of a local area network provided in Embodiment 1 of the present invention;
[0024] Figure 3 It is a flowchart of a terminal upgrade method provided in Embodiment 2 of the present invention;
[0025] Figure 4 It is a connection diagram of a local area network provided in Embodiment 2 of the present invention;
[0026] Figure 5 It is another connection diagram of a local area network provided in Embodiment 2 of the present invention;
[0027] Figure 6 It is a schematic structural diagram of a terminal upgrade device provided in Embodiment 3 of the present invention;
[0028] Figure 7 It is a schematic structural diagram of an electronic device provided in Embodiment 4 of the present invention. Detailed implementation manners
[0029] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0030] It should be noted that the terms "first", "second", "target", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data used can be interchanged under appropriate circumstances, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment 1
[0032] Figure 1 It is a flowchart of a terminal upgrade method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of remotely and automatically upgrading multiple terminal devices. This method can be executed by a terminal upgrade device, and the terminal upgrade device can be implemented in the form of hardware and / or software.
[0033] As Figure 1 shown, the method includes:
[0034] S101. Determine the target terminal, and establish a local area network with the target terminal as the core.
[0035] In this embodiment, the target terminal can be understood as a terminal device that turns on the hotspot and serves as the upgrade host. The terminal device can be, for example, a terminal vehicle.
[0036] Specifically, determine the reference device that turns on the hotspot from multiple terminal devices, and then determine the only target terminal that meets the core conditions from at least one reference device. With the target terminal as the core, establish a local area network based on the hotspot of the target terminal, so that other terminal devices can access the local area network, and further realize the upgrade of each terminal device.
[0037] S102. Identify the access time of the current terminal device accessing the local area network and the version tree of the current terminal device.
[0038] In this embodiment, the current terminal device can be understood as the terminal device that accesses the local area network among all terminals. Figure 2 It is a connection diagram of a local area network provided by Embodiment 1 of the present invention. As Figure 2As shown, C0 is the target terminal, and C1, C2, C3, and C4 are all current terminal devices accessing the local area network. The access time can be understood as the time when the current terminal device accesses the local area network. The version tree can be understood as the set of version information corresponding to each software module and hardware module on the current terminal device. Each branch node in the version tree corresponds to the version information of a module. The version tree includes at least: the version information of the software module and the version information of the hardware module; the software module at least includes: the loader module, the universal bootloader (uboot) module, the kernel module, the root file system (rootfs) module, the system data (sysdata) module, the algorithm data (algdata) module, and the application program (APP) module; the hardware module at least includes: the positioning (Global Positioning System, GPS) module, the mobile communication (Fourth Generation Mobile Network, 4G) module, the Bluetooth module, and the wireless local area network (WiFi) module; the version information of the software module at least includes: the module name, the project number, the chip manufacturer, the chip type, and the version time; the version information of the hardware module at least includes: the module name, the chip manufacturer, the chip type, and the version number.
[0039] Specifically, there are several terminal devices. Each terminal device defaults to enabling the function of searching for WiFi upgrade hotspots. These terminal devices have pre-stored configuration information, or have connected to the same local area network before, or are of the same type as the target terminal. When these terminal devices are close to the target terminal, they can directly connect to the hotspot of the target terminal and then automatically access the local area network. For each terminal device accessing the local area network, it is determined as the current terminal device. For each current terminal device, the access time when it accesses the local area network is identified, and its version tree is identified to obtain the version information of its corresponding loader module, universal bootloader module, kernel module, root file system module, system data module, algorithm data module, application program module, positioning module, mobile communication module, Bluetooth module, and wireless local area network module.
[0040] It can be understood that each terminal device can turn on its own WiFi hotspot to become the target terminal, or only turn on the WiFi hotspot search function and act as the current terminal device accessing the local area network.
[0041] S103. Based on the access time and the version tree, determine the terminal to be upgraded from the target terminal and each current terminal device, and upgrade the terminal to be upgraded.
[0042] In this embodiment, the terminal to be upgraded can be understood as the terminal where a certain module to be upgraded is located. The terminal to be upgraded can be the target terminal or the current terminal device.
[0043] Specifically, as Figure 2 shown, the target terminal C0 will exchange version information with the current terminal devices C1, C2, C3, and C4 respectively. If it is found that the version information of any module of the current terminal device is newer than the current version of the corresponding module of C0, C0 will automatically upgrade to that version. At the same time, if other vehicles find that their versions are lower than C0, they will automatically upgrade to the version of C0. Eventually, the versions within the entire local area network will be unified to the latest version. The upgrade process is to automatically upgrade the old (version number) version to the new (version number) version and the old date version to the new date version. It can be understood that the terminal will be locked during the upgrade, and even if a newer version arrives, it will wait until the upgrade is complete before continuing to compare to prevent upgrade chaos.
[0044] Exemplarily, the old and new situations of a certain module version in each of the terminals C0, C1, C2, C3, and C4 are: C4 > C0 = C1 = C2 > C3 (the larger the value, the newer the version); the access times of each terminal to the local area network are: C0 = C1 = C2 > C3 > C4 (the larger the value, the earlier the access time to the local area network). Therefore, when C1 and C2 connect to the network, no upgrade request will be triggered. When C3 connects to the local area network, C3 will request C0 to upgrade the version. During the upgrade process, when C4 connects to the local area network, it will wait until C3 has completed the upgrade, and then C0 will request the latest version from C4. After C0 has completed the upgrade, C0 will send the latest version to C1, C2, and C3 at the same time, and these three vehicles can synchronously send upgrade requests. Eventually, the versions of this module of the four terminal devices will be unified with C4.
[0045] Specifically, based on the access times of each current terminal device to the local area network, the target terminal and the current terminal devices are compared pairwise in the order of access time. The terminal with a lower version of a certain module among the two compared parties is used as the terminal to be upgraded. The terminal to be upgraded sends an upgrade request to the other terminal. After the other terminal receives the upgrade request for the module to be upgraded, it identifies the version information corresponding to the module to be upgraded through the version tree, accesses the flash memory to obtain the original file of the current version of the module to be upgraded, generates an upgrade installation package for the module to be upgraded in reverse based on the original file, and feeds back the upgrade installation package to the terminal to be upgraded. After receiving the upgrade installation package, the terminal to be upgraded upgrades the module to be upgraded based on the upgrade installation package. After the upgrade is completed, the version tree of the device to be upgraded is updated, and the original file of the upgraded version is stored in the flash memory to facilitate providing upgrade files for other devices and the basis for judgment in the next upgrade.
[0046] A terminal upgrade method provided by an embodiment of the present invention includes determining a target terminal, establishing a local area network with the target terminal as the core, identifying the access time of the current terminal device accessing the local area network and the version tree of the current terminal device, and determining the terminal to be upgraded from the target terminal and each current terminal device based on the access time and the version tree, and upgrading the terminal to be upgraded. In the above technical solution, a new upgrade management mechanism and project version management mechanism are adopted, and the concept of an upgrade server is abandoned. Each terminal device can be used as an upgrade host or a device to be upgraded. Any two or more terminal devices can form a local area network to implement version comparison and automatic update between devices, enabling offline vehicles to achieve the purpose of automatic version update under any conditions without additional auxiliary devices and without human on-site participation as long as certain requirements are met, improving the upgrade efficiency, facilitating after-sales maintenance of devices, and reducing maintenance and upgrade costs.
[0047] Embodiment 2
[0048] Figure 3 It is a flowchart of a terminal upgrade method provided by Embodiment 2 of the present invention. This embodiment is a further optimization of any of the above embodiments and is applicable to the situation of remotely and automatically upgrading multiple terminal devices. This method can be executed by a terminal upgrade device, and the terminal upgrade device can be implemented in the form of hardware and / or software.
[0049] As Figure 3 shown, the method includes:
[0050] S201. Determine a reference device with a hotspot enabled from multiple terminal devices.
[0051] In this embodiment, the reference device can be understood as a terminal device with a hotspot enabled. Among them, the terminal device enabling the hotspot can be automatically enabled in response to conditions such as a specific time, can be enabled in response to remote control, or can be manually enabled on-site. This embodiment does not make any limitations in this regard.
[0052] Specifically, there may be multiple terminal devices on-site. Some terminal devices do not have the WiFi hotspot enabled, and some terminal devices have the WiFi hotspot enabled. The terminal device with the WiFi hotspot enabled is determined as the reference device.
[0053] S202. If there is one reference device, determine the reference device as the target terminal.
[0054] In this embodiment, if there is only one reference device with the WiFi hotspot enabled among multiple terminal devices, then directly use this reference device as the target terminal.
[0055] S203. If there are multiple reference devices, compare the serial numbers of each reference device, and determine the reference device with the largest serial number as the target terminal.
[0056] In this embodiment, for the case where there are at least two upgrade hotspots in the local area network, the following definitions are made: Each terminal device that has not enabled the hotspot can only connect to one upgrade hotspot, and each vehicle that has enabled the upgrade hotspot can also connect to other upgrade hotspots and can connect to multiple. Thus, if there are at least two reference devices among multiple terminal devices, then compare the serial numbers (Serial Number, SN) of these reference devices, and determine the reference device with the largest serial number as the target terminal.
[0057] Exemplarily, Figure 4 is a connection diagram of a local area network provided in the second embodiment of the present invention. As Figure 4 shown, both C0 and C5 have enabled the WiFi hotspot. C0 is connected to the WiFi hotspot of C5, and at the same time C5 is connected to the WiFi hotspot of C0. At this time, there is a duplicate connection, and the device needs to automatically complete the silence (not handle any services) of one link. In this case, it is automatically processed through the SN of the device, and the reference terminal with the larger SN is used as the target terminal, that is, the main upgrade hotspot. If the SN value: C0 > C5, then C0 is determined as the target terminal, the connection from C5 to C0 remains active, and the connection from C0 to C5 remains silent.
[0058] Figure 5 is another connection diagram of a local area network provided in the second embodiment of the present invention. Similarly, the reference device with the largest SN value among C0, C5, and C8 is taken as the target terminal.
[0059] S204. Establish a local area network with the target terminal as the core.
[0060] S205. Identify the access time of the current terminal device accessing the local area network and the version tree of the current terminal device.
[0061] S206. Compare the version tree of the target terminal and the version tree of the current terminal device according to the access time to obtain a version comparison result.
[0062] In this embodiment, the version comparison result can be understood as the result representing the new and old relationship of the versions obtained after comparing the version tree of the target terminal and the version tree of the current terminal device. There are multiple version comparison results, and each module in the version tree has its corresponding version comparison result.
[0063] Specifically, according to the access time, compare the version tree of the current terminal device that first accesses the local area network with the target terminal to obtain a version comparison result, which includes at least one of the following: a. The versions of each module of the target terminal are the same as those of each module of the current terminal device; b. There is at least one module of the target terminal whose version number (version time) is higher than that of the corresponding module of the current terminal device; c. There is at least one module of the target terminal whose version number (version time) is lower than that of the corresponding module of the current terminal device; d. The version information for the same module does not match; e. The version information for the same module matches. Among them, version information matching can be, for example, for a software module, the module name, project number, chip manufacturer, and chip type of the module in the target terminal and the current terminal device are all the same; for a hardware module, the module name, chip manufacturer, and chip type of the module in the target terminal and the current terminal device are the same.
[0064] Optionally, according to the access time, compare the version tree of the target terminal with the version tree of the current terminal device to obtain a version comparison result, including:
[0065] S2061. Compare the access times of each current terminal device to obtain an access time ranking.
[0066] In this embodiment, the access time ranking can be understood as the ranking of the access times of current terminal devices to the local area network in sequence.
[0067] Specifically, compare the access times of each current terminal device to the local area network to obtain an access time ranking, and the number of current terminal devices within the access time ranking is the same as the number of current terminal devices accessing the local area network.
[0068] S2062. Determine the current terminal device corresponding to the access time ranked first as the device to be compared, and compare the version tree of the device to be compared with the version tree of the target terminal to obtain a version comparison result.
[0069] In this embodiment, the device to be compared can be understood as the current terminal device to be compared with the target terminal. It can be understood that during the upgrade process, the version tree of the target terminal is always updated fastest so that the target terminal always remains the highest version among the terminal devices that have been compared before the next comparison.
[0070] Specifically, according to the access time, determine the current terminal device that first accesses the local area network as the device to be compared, and compare the version tree of the device to be compared with the version tree of the target terminal to obtain the version comparison result for the current iteration.
[0071] S207. Determine whether the current upgrade condition is met according to the version comparison result. If it is met, determine the terminal to be upgraded from the target terminal and each current terminal device.
[0072] In this embodiment, the upgrade condition can be understood as the condition for determining that version upgrade can be performed, including at least version information matching and differences in version numbers (or version times), that is, the version comparison result is e and b, or e and c.
[0073] Specifically, for the version comparison result of a certain module, if the version comparison result is that the version information of the same module matches, and the version number (version time) of this module in the target terminal and the current terminal device (device to be compared) is inconsistent, it is determined that the current upgrade condition is met. When the upgrade condition is met, the party with the lower version among the target terminal and the device to be compared is determined as the terminal to be upgraded.
[0074] S208. Upgrade the terminal to be upgraded. After the upgrade is completed, update the version tree of the terminal to be upgraded.
[0075] Specifically, if the terminal to be upgraded is the target device, generate an upgrade request for the module to be upgraded with a version difference, and send the upgrade request to the device to be compared, so that the device to be compared accesses the flash memory based on the upgrade request and the version tree, determines the original file of the module to be upgraded, reversely generates an upgrade installation package for the module to be upgraded based on the original file, and feeds back the upgrade installation package to the terminal to be upgraded. The terminal to be upgraded upgrades the module to be upgraded based on the upgrade installation package. After the upgrade is completed, store the original file of the upgraded version in the flash memory. Similarly, if the terminal to be upgraded is the device to be compared, generate a corresponding upgrade request and send it to the target terminal, and receive the upgrade installation package of the module to be upgraded returned by the target terminal after corresponding processing, so as to perform terminal upgrade based on the upgrade installation package.
[0076] Optionally, after step S208 is completed, return to step S2061 in step S206 and iterate downward in the ranking order according to the access time, return to re-determine the device to be compared until the end of the ranking is iterated.
[0077] Specifically, after comparing the target device with the first current terminal device to complete the first terminal update, at this time, both the target device and the first current terminal device have the version tree of the latest version. At this time, iterate downward according to the ranking order ranked by access time, determine the second current terminal device accessing the local area network as the device to be compared, compare the version tree of the device to be compared with the version tree of the target terminal to obtain the version comparison result in this round of iteration, and then determine the device to be upgraded in this round of iteration, execute the upgrade process of the device to be upgraded, and update the version tree of the device to be upgraded; then return to step S2062 to execute again until the end of the ranking in the access time ranking is iterated. It can be understood that after comparing the target terminal with the device to be compared in each round of iteration, it is also necessary to compare the version tree of the target terminal with the version tree of the historical device to be compared (the device to be compared in each previous round of iteration), and perform the corresponding terminal upgrade on the historical device to be compared when the upgrade condition is met to ensure the synchronous upgrade of all terminal devices in the local area network.
[0078] A terminal upgrade method provided by an embodiment of the present invention includes determining a reference device with a hotspot enabled from multiple terminal devices; if there is one reference device, determining the reference device as the target terminal; if there are multiple reference devices, comparing the serial numbers of each reference device and determining the reference device with the largest serial number as the target terminal; establishing a local area network with the target terminal as the core; identifying the access time of the current terminal device accessing the local area network and the version tree of the current terminal device; comparing the version tree of the target terminal and the version tree of the current terminal device according to the access time to obtain a version comparison result; determining whether the current upgrade condition is met according to the version comparison result, and if so, determining the terminal to be upgraded from the target terminal and each current terminal device; upgrading the terminal to be upgraded, and after the upgrade is completed, updating the version tree of the terminal to be upgraded. In the above technical solution, each terminal device is both a client and can also be an upgrade server. The terminal device maintains its own version tree, which includes the types and version numbers of all its own versions, and through this version tree, it can directly access the original files and reverse generate upgradeable files. If different devices need to upgrade each other, they can turn on the WiFi upgrade hotspot of one of the devices. After other devices connect to it, they will automatically exchange their respective version situations. When it is determined that the version needs to be upgraded, the version request and self-upgrade will be automatically completed. Exemplarily, there is a terminal device that has been offline for a month, and the terminal devices in the same fleet are all online normally. It is necessary to upgrade the 4G module version. According to the traditional solution, it is necessary to send someone to the site to manually upgrade the 4G module. However, by using the terminal upgrade method of the embodiment of the present invention, the problem terminal device can automatically complete the module upgrade and go online after a period of time by turning on the upgrade hotspot function of another terminal device in the same fleet. The problem of this terminal device is solved, the work of going to the site is eliminated, and the labor and time costs are saved; it has good economic benefits under certain conditions. In addition, the present invention is also applicable to single and batch upgrades in the case of being offline all year round, or using a low-speed network (with a high failure probability) and limited traffic. It realizes a simple upgrade strategy in more adaptable scenarios without additional hardware devices.
[0079] Embodiment III
[0080] Figure 6 It is a schematic structural diagram of a terminal upgrade device provided by Embodiment III of the present invention. As Figure 6 shown, the device includes:
[0081] A local area network creation module 31, configured to determine a target terminal and establish a local area network with the target terminal as the core;
[0082] An access terminal identification module 32, configured to identify the access time of the current terminal device accessing the local area network and the version tree of the current terminal device;
[0083] The terminal upgrade module 33 is used to determine the terminal to be upgraded from the target terminal and each of the current terminal devices based on the access time and the version tree, and upgrade the terminal to be upgraded.
[0084] The terminal upgrade device adopted in this technical solution provides a method for automatically upgrading and updating terminal devices without the assistance of additional devices and without on-site manual participation, improving the upgrade efficiency and reducing the upgrade cost.
[0085] Optionally, the local area network creation module 31 is specifically used for:
[0086] Determine a reference device with a hotspot enabled from multiple terminal devices;
[0087] If there is one such reference device, determine the reference device as the target terminal;
[0088] If there are multiple such reference devices, compare the serial numbers of each reference device, and determine the reference device with the largest serial number as the target terminal.
[0089] Optionally, the terminal upgrade module 33 includes:
[0090] The version comparison unit is used to compare the version tree of the target terminal and the version tree of the current terminal device according to the access time to obtain a version comparison result;
[0091] The terminal to be upgraded determination unit is used to determine whether the current upgrade condition is met according to the version comparison result. If it is met, determine the terminal to be upgraded from the target terminal and each of the current terminal devices;
[0092] The terminal upgrade unit is used to upgrade the terminal to be upgraded. After the upgrade is completed, update the version tree of the terminal to be upgraded.
[0093] Optionally, the version comparison unit is specifically used for:
[0094] Compare the access times of each of the current terminal devices to obtain an access time ranking;
[0095] Determine the current terminal device corresponding to the access time ranked first as the device to be compared, and compare the version tree of the device to be compared with the version tree of the target terminal to obtain a version comparison result.
[0096] Optionally, the terminal upgrade module 33 further includes an iterative update unit for:
[0097] After upgrading the terminal to be upgraded, iterate downward in the order of the access time ranking, return to re-determine the device to be compared until the end of the ranking is reached.
[0098] Optionally, the version tree at least includes: version information of software modules and version information of hardware modules;
[0099] The software modules at least include: a loader module, a general bootloader module, a kernel module, a root file system module, a system data module, an algorithm data module, and an application module;
[0100] The hardware modules at least include: a positioning module, a mobile communication module, a Bluetooth module, and a wireless local area network module;
[0101] The version information of the software modules at least includes: module name, project number, chip manufacturer, chip type, and version time;
[0102] The version information of the hardware modules at least includes: module name, chip manufacturer, chip type, and version number.
[0103] The terminal upgrade device provided by the embodiments of the present invention can execute the terminal upgrade method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0104] Embodiment 4
[0105] Figure 7 FIG. is a schematic structural diagram of an electronic device provided by Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0106] As Figure 7 shown, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc. Among them, the memory stores a computer program executable by at least one processor. The processor 41 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 into the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. The input / output (I / O) interface 45 is also connected to the bus 44.
[0107] Multiple components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disc, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0108] The processor 41 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 41 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the terminal upgrade method.
[0109] In some embodiments, the terminal upgrade method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the terminal upgrade method described above can be executed. Alternatively, in other embodiments, the processor 41 can be configured to execute the terminal upgrade method by any other suitable means (e.g., by means of firmware).
[0110] The various embodiments of the systems and technologies described above in this article can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, the programmable processor can be a dedicated or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0111] A computer program for implementing the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs may be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.
[0112] In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0113] In order to provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0114] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0115] A computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0116] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.
[0117] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A terminal upgrade method, characterized in that, Including: Determine a target terminal, and establish a local area network with the target terminal as the core; Identify the access time of the current terminal device accessing the local area network and the version tree of the current terminal device; Based on the access time and the version tree, determine the terminal to be upgraded from the target terminal and each current terminal device, and upgrade the terminal to be upgraded.
2. The method according to claim 1, characterized in that, The determining the target terminal includes: Determine a reference device with a hotspot enabled from multiple terminal devices; If there is one such reference device, determine the reference device as the target terminal; If there are multiple such reference devices, compare the serial numbers of each reference device, and determine the reference device with the largest serial number as the target terminal.
3. The method according to claim 1, characterized in that, The based on the access time and the version tree, determine the terminal to be upgraded from the target terminal and each current terminal device, and upgrade the terminal to be upgraded, includes: Compare the version tree of the target terminal and the version tree of the current terminal device according to the access time to obtain a version comparison result; Determine whether the upgrade condition is currently met according to the version comparison result. If so, determine the terminal to be upgraded from the target terminal and each current terminal device; Upgrade the terminal to be upgraded. After the upgrade is completed, update the version tree of the terminal to be upgraded.
4. The method according to claim 3, characterized in that, The compare the version tree of the target terminal and the version tree of the current terminal device according to the access time to obtain a version comparison result, includes: Compare the access times of each current terminal device to obtain an access time ranking; Determine the current terminal device corresponding to the access time ranked first as the device to be compared, and compare the version tree of the device to be compared with the version tree of the target terminal to obtain a version comparison result.
5. The method according to claim 4, wherein After upgrading the terminal to be upgraded, further includes: Iterate downward in the ranking order of the access time ranking, and return to re-determine the device to be compared until the last position in the ranking is iterated to.
6. The method according to claim 1, wherein The version tree at least includes: version information of software modules and version information of hardware modules; The software modules at least include: loader module, general bootloader module, kernel module, root file system module, system data module, algorithm data module, and application program module; The hardware modules at least include: positioning module, mobile communication module, Bluetooth module, and wireless local area network module; The version information of the software modules at least includes: module name, project number, chip manufacturer, chip type, and version time; The version information of the hardware modules at least includes: module name, chip manufacturer, chip type, and version number.
7. A terminal upgrade device, characterized in that, Including: Local area network creation module, used to determine a target terminal and establish a local area network with the target terminal as the core; Access terminal identification module, used to identify the access time of the current terminal device accessing the local area network and the version tree of the current terminal device; Terminal upgrade module, used to determine the terminal to be upgraded from the target terminal and each current terminal device based on the access time and the version tree, and upgrade the terminal to be upgraded.
8. An electronic device, characterized in that, Including: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute a terminal upgrade method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement a terminal upgrade method according to any one of claims 1-6 when executed.
10. A computer program product, characterized in that, The computer program product includes a computer program which, when executed by a processor, implements a terminal upgrade method according to any one of claims 1-6.