Software package upgrading method, system and device, electronic equipment and computer readable storage medium

The target customer ID is determined through the device IMEI and upgrade control is carried out based on the software package version information, which solves the upgrade problem of equipment of different customers when using the same version of the software package, and realizes accurate software package upgrade and version management.

CN120295649APending Publication Date: 2025-07-11TCL COMM TECH (CHENGDU) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510302535.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

Different customers have different timings for remote firmware upgrades to software packages, making it difficult to upgrade the target customer's equipment when using the same version of the software package.

Method used

Upload the IMEI to the cloud server through the device, determine the target customer ID, and determine whether to issue the upgrade software package based on the software package version information and the target customer's upgrade software package to achieve accurate upgrade control of the device.

Benefits of technology

Ensure that only the equipment of the target customer receives upgrade packages that meet the needs, solves the upgrade problem when customized equipment of different customers uses the same version of the software package, reduces the number of software versions, and reduces the cost of testing and development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295649A_ABST
    Figure CN120295649A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a software package upgrading method, system and device, electronic equipment and a computer readable storage medium. The method comprises the steps that a client identifier and software package version information uploaded by the equipment are acquired; determining a target customer to which the equipment belongs according to the customer identifier uploaded by the equipment; and according to the software package version information uploaded by the device and the upgrading software package of the target client, determining whether to issue the upgrading software package to the device. According to the scheme, the upgrading software package of the target client can be only issued to the equipment of the target client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and particularly to a software package upgrade method, system, device, electronic device and computer-readable storage medium. Background Art

[0002] Different customers may have different customization requirements for devices. In order to meet the customization requirements of more customers with as few software version numbers as possible, customized devices using the same version of the software package can be shipped to customers. However, the timing of the firmware over-the-air (FOTA) upgrade of the software package for different customers is not necessarily the same. In the case where customized devices of different customers use the same version of the software package, it is difficult to upgrade only the software package of the customized device of the target customer. Summary of the Invention

[0003] The embodiments of the present application provide a software package upgrade method, system, device, electronic device and computer-readable storage medium, which can only send the upgrade software package of the target customer to the device of the target customer.

[0004] In a first aspect, the embodiments of the present application provide a software package upgrade method, which is applied to an upgrade server; the method includes:

[0005] Obtain the customer identifier and software package version information uploaded by the device;

[0006] Determine the target customer to which the device belongs according to the customer identifier uploaded by the device; and

[0007] Determine whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer.

[0008] In one of the embodiments, the determining whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer includes:

[0009] Obtain the version information of the upgrade software package;

[0010] Determine whether to send an upgrade software package to the device according to whether the version information of the upgrade software package is consistent with the software package version information uploaded by the device.

[0011] In one of the embodiments, the determining whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer includes:

[0012] When the version information of the upgrade software package is inconsistent with the software package version information uploaded by the device, send the upgrade software package to the device;

[0013] When the version information of the upgrade software package is consistent with the software package version information uploaded by the device, do not send the upgrade software package to the device.

[0014] In a second aspect, an embodiment of the present application provides a software package upgrade method, which is applied to a device; the method includes:

[0015] Upload the customer identifier and software package version information to the upgrade server;

[0016] Obtain the upgrade software package sent by the upgrade server; wherein, the upgrade software package is sent by the server when it determines the target customer to which the device belongs according to the customer identifier, and determines to send the upgrade software package according to the software package version information and the upgrade software package of the target customer.

[0017] In one embodiment, before uploading the customer identifier to the upgrade server, the method further includes:

[0018] Send the International Mobile Equipment Identity (IMEI) to the target server;

[0019] Obtain the customer identifier corresponding to the IMEI returned by the target server; the customer identifier is determined by the target server according to the IMEI by querying the corresponding relationship between the IMEI and the customer identifier.

[0020] In a third aspect, an embodiment of the present application provides a software package upgrade system, which includes an upgrade server and a device;

[0021] The device is used to upload the customer identifier and software package version information to the upgrade server;

[0022] The upgrade server is used to determine the target customer to which the device belongs according to the customer identifier uploaded by the device, and determine whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer.

[0023] In a fourth aspect, an embodiment of the present application provides a software package upgrade device, which is applied to an upgrade server; the device includes:

[0024] A first acquisition module, configured to acquire the customer identifier and software package version information uploaded by the device;

[0025] A first determination module, configured to determine the target customer to which the device belongs according to the customer identifier uploaded by the device; and

[0026] A second determination module, configured to determine whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer.

[0027] In a fifth aspect, an embodiment of the present application provides a software package upgrade device, which is applied to a device; the device includes:

[0028] An upload module, configured to upload a customer identifier and software package version information to an upgrade server;

[0029] A second acquisition module, configured to acquire the upgrade software package sent by the upgrade server; wherein, the upgrade software package is sent by the server when determining the target customer to which the device belongs according to the customer identifier, and determining to send the upgrade software package according to the software package version information and the upgrade software package of the target customer.

[0030] In a sixth aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above software package upgrade method are implemented.

[0031] In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above software package upgrade method are implemented.

[0032] In an eighth aspect, an embodiment of the present application further provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementation manners of the embodiments of the present application.

[0033] In summary, in the embodiments of the present application, the target customer to which the device belongs can be determined through the customer identifier uploaded by the device, and then, according to the software package version information uploaded by the device and the upgrade software package of the target customer, it is determined whether to send an upgrade software package to the device, so as to ensure that only the software packages of the devices whose software package version information meets the requirements in the devices of the target customer are upgraded. In this way, even when customized devices of different customers use the same version of the software package, it is possible to send only the upgrade software package of the target customer to the devices of the target customer. Description of the Drawings

[0034] To more clearly illustrate the technical solutions in the present application, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0035] Figure 1 is a schematic diagram of the principle for meeting customer customization requirements in the related art;

[0036] Figure 2 is a schematic diagram of the principle for merging device software packages provided by an embodiment of the present application;

[0037] Figure 3 is a schematic diagram of the principle for identifying a customer ID provided by an embodiment of the present application;

[0038] Figure 4 is a schematic diagram of the principle for software package upgrade in the related art;

[0039] Figure 5 is a schematic diagram of the steps for a software package upgrade method provided by an embodiment of the present application;

[0040] Figure 6 is a schematic diagram of the principle for software package upgrade provided by an embodiment of the present application;

[0041] Figure 7 is a schematic diagram of the steps for another software package upgrade method provided by an embodiment of the present application;

[0042] Figure 8 is a schematic diagram of the structure of a software package upgrade system provided by an embodiment of the present application;

[0043] Figure 9 is a schematic diagram of the structure of a software package upgrade device provided by an embodiment of the present application;

[0044] Figure 10 is a schematic diagram of the structure of another software package upgrade device provided by an embodiment of the present application;

[0045] Figure 11 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0046] The following will clearly and completely describe the technical solutions in the present application in conjunction with the drawings in the present application. 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 skilled in the art without creative efforts fall within the protection scope of the present invention.

[0047] In the related art, different customers have different customization requirements. To meet these different customization requirements, different customized devices need to be provided to different customers, resulting in a large number of versions of the software packages of the devices, low reuse rate of device software, high consumption of testing and development manpower, troublesome cross-regional goods diversion, the need for rework flashing and high costs. Among them, the software package is the operating system software, that is, the system image.

[0048] Figure 1 It is a schematic diagram of the principle of meeting customer customization requirements in the related art. Each customer corresponds to a software package version. The factory produces devices, and different devices correspond to different software packages. To ship to different customers, the corresponding customer identification (ID) is written into different devices, and then the devices with the customer identification written are shipped to the corresponding customers.

[0049] To solve the above technical problems, an embodiment of the present application proposes the merging of device software packages. In the related art, the customer ID is written when the device is produced in the factory, that is, the target shipping customer of the device is fixed when the device is produced in the factory. An embodiment of the present application places the work of determining the target customer ID in the cloud. After the device is powered on, it uploads the International Mobile Equipment Identity (IMEI) information to the target server. The target server confirms the real target customer ID of this device through the IMEI, and then returns the customer ID to the device side, and then the device side locks the returned customer ID. The corresponding relationship between the IMEI and the customer ID is stored in the target server.

[0050] Figure 2 It is a schematic diagram of the principle of device software package merging provided by an embodiment of the present application. As Figure 2 shown, a unified software package 01 is shipped to different customers A, B, and C, and the customer ID is not written during the production process, that is, the target shipping customer is not locked during production, so that this device can be shipped to different customers.

[0051] Figure 3 It is a schematic diagram of the principle of identifying the customer ID provided by an embodiment of the present application. As Figure 3 shown, the customer ID is not pre-written in the device, and the shipping customer is not locked. When the device is powered on and connected to the network for the first time, the device will upload the IMEI to the target server. The target server determines the customer ID corresponding to the IMEI uploaded by this device according to the stored corresponding relationship between the IMEI and the customer ID, and returns the customer ID to this device. The device locks the customer ID returned by the target server and writes the customer ID into the device, so that the device becomes a device with the shipping customer locked. According to the written customer ID, the customer customization requirements corresponding to the customer ID are activated, so that the device becomes a customer-customized device.

[0052] In this way, the time point for the device to confirm the target customer information (customer ID) can be changed from being fixed during factory production to being determined after the device is powered on and matched through cloud services (the customer ID is determined after uploading the IMEI). Through the above changes, it is possible to meet the shipping requirements of different customers (such as operators like Vodafone, Orange, TIM, etc.) with a single device software package (flash image), and finally merge the device software versions into one version.

[0053] However, after the device software packages are merged, since the FOTA upgrade timing of the software packages for different customers is inconsistent, it is necessary to manage and control according to the actual development rhythm of the device software for different customers. Before the software packages were merged, three different software packages were used for Customer A, Customer B, and Customer C respectively, and it was very easy to manage and control which customer to push the FOTA upgrade software to. After the software packages are merged, Customer A, Customer B, and Customer C all use the same software package 01, and it is difficult to manage and control which customer to push the FOTA upgrade software to.

[0054] Figure 4 It is a schematic diagram of the principle of software package upgrade in the related art. Before the software packages were merged, the FOTA logic was as Figure 4 , and different software was shipped to different customers respectively. The software version number could be directly used to determine and control whether FOTA upgrade could be performed. For example, Customer A used Software 1 and Customer B used Software 2; if the upgrade software 1.1 for Customer A was ready, and the upgrade software 2.1 for Customer B was not ready yet, then the upgrade server could directly execute "allow Software 1 to be upgraded to 1.1" and "do not allow Software 2 to be upgraded to 2.1".

[0055] But when the device software packages are merged, then both Customer A and Customer B use the same software 01, and it becomes difficult to perform separate FOTA control for Customer A and Customer B, and it is difficult to make the device of Customer A perform FOTA upgrade while preventing the device of Customer B from performing FOTA upgrade.

[0056] To solve this technical problem, an embodiment of the present application provides a software package upgrade method. As Figure 5 shown, a software package upgrade method is provided. Although the logical order is shown in the step schematic diagram, in some cases, the steps shown or described can be executed in a different order from that shown in the drawings. Specifically, the software package upgrade method can be applied to an upgrade server, which is a server used to distribute upgrade software packages and perform FOTA upgrades for devices.

[0057] Among them, the upgrade server can be a physical server or a cloud server that provides various cloud services. It should be noted that the present application does not limit the number of servers. According to the implementation requirements, there can be any number of servers. For example, the server can be a single server or a server cluster composed of multiple servers, etc.

[0058] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the priority order of the embodiments.

[0059] According to Figure 5 The software package upgrade method shown, this method at least includes steps S110 to S130, which are introduced in detail as follows:

[0060] In step S110, obtain the customer identification and software package version information uploaded by the device.

[0061] The customer identification of the device is used to determine the customized customer corresponding to the device. The customer identification is used to distinguish customers. One customer can correspond to multiple devices, and multiple devices corresponding to the same customer can be uniformly managed. The customer identification uploaded by the device can be a customer ID. The software package version information uploaded by the device is the version information of the software package used by the device itself. The version information can be a version number.

[0062] In step S120, according to the customer identification uploaded by the device, determine the target customer to which the device belongs.

[0063] The device uploads its own customer identification and software package version information to the upgrade server. The upgrade server knows the customers corresponding to each customer identification. The upgrade server can determine the target customer to which the device belongs according to the customer identification uploaded by the device.

[0064] In step S130, according to the software package version information uploaded by the device and the upgrade software package of the target customer, determine whether to send the upgrade software package to the device.

[0065] The upgrade software package refers to the upgraded software package. The upgrade software package of the target customer is the software package for upgrading the devices of the target customer.

[0066] According to the software package version information uploaded by the device, determine whether the software package of the device is consistent with the upgrade software package of the target customer, so as to determine whether the software package of the device needs to be upgraded. In the case where the software package of the device needs to be upgraded, send the upgrade software package to the target device so that the device upgrades the software package to the upgrade software package.

[0067] By adopting the technical solution of the embodiment of the present application, the target customer to which the device belongs can be determined through the customer identifier uploaded by the device. Furthermore, based on the software package version information uploaded by the device and the upgraded software package of the target customer, it is determined whether to send the upgraded software package to the device, so as to ensure that only the software packages of the devices whose software package version information meets the requirements in the devices of the target customer are upgraded. In this way, even when the customized devices of different customers use the same version of the software package, it is possible to only send the upgraded software package of the target customer to the devices of the target customer.

[0068] Based on the above technical solution, as an embodiment, the determining whether to send the upgraded software package to the device according to the software package version information uploaded by the device and the upgraded software package of the target customer may include: obtaining the version information of the upgraded software package; and determining whether to send the upgraded software package to the device according to whether the version information of the upgraded software package is consistent with the software package version information uploaded by the device.

[0069] It is possible to determine whether the software package of the device is consistent with the upgraded software package by determining whether the version information of the software package of the device is consistent with the version information of the upgraded software package of the target customer, and further determine whether the software package of the device needs to be upgraded. Therefore, obtain the version information of the upgraded software package. Determine whether to send the upgraded software package to the device according to whether the version information of the upgraded software package is consistent with the software package version information uploaded by the device.

[0070] By adopting the technical solution of the embodiment of the present application, by comparing whether the version information of the software package of the device is consistent with the version information of the upgraded software package, it is determined whether the software package of the device is consistent with the upgraded software package. Compared with directly comparing whether the device is consistent with the upgraded software package, the amount of calculation and the amount of data transmitted can be greatly saved.

[0071] Based on the above technical solution, as an embodiment, the determining whether to send the upgraded software package to the device according to the software package version information uploaded by the device and the upgraded software package of the target customer may include: when the version information of the upgraded software package is inconsistent with the software package version information uploaded by the device, sending the upgraded software package to the device; when the version information of the upgraded software package is consistent with the software package version information uploaded by the device, not sending the upgraded software package to the device.

[0072] By determining whether the version information of the software package of the device is consistent with the version information of the upgrade software package for the target customer, it is determined whether the software package of the device needs to be upgraded. When the version information of the upgrade software package is inconsistent with the version information of the software package uploaded by the device, it proves that the software package of the device is inconsistent with the upgrade software package, so the software package of the device needs to be upgraded. Therefore, the upgrade software package is sent to the device.

[0073] When the version information of the upgrade software package is consistent with the version information of the software package uploaded by the device, it proves that the software package of the device is consistent with the upgrade software package, so the software package of the device does not need to be upgraded. Therefore, the upgrade software package is not sent to the device.

[0074] Adopting the technical solution of the embodiment of the present application, when the version information of the upgrade software package is inconsistent with the version information of the software package uploaded by the device, the upgrade software package is sent to the device; when the version information of the upgrade software package is consistent with the version information of the software package uploaded by the device, the upgrade software package is not sent to the device. In this way, it is possible to avoid sending the upgrade software package to all devices, thereby greatly saving transmission resources.

[0075] Figure 6 It is a schematic diagram of the principle of software package upgrade provided by an embodiment of the present application. As Figure 6 shown, the customer ID is not pre-written in the device, and the shipping customer is not locked. When the device is powered on and connected to the network for the first time, the device uploads the IMEI to the target server. The target server determines the customer ID corresponding to the IMEI uploaded by the device according to the stored correspondence between the IMEI and the customer ID, and returns the customer ID to the device. The device locks the customer ID returned by the target server and writes the customer ID into the device, so that the device becomes a device with the shipping customer locked. According to the written customer ID, the customer customization requirements corresponding to the customer ID are activated, so that the device becomes a customer-customized device. Multiple customer-customized devices activate their respective customer customization requirements and become customized devices of different customized customers, and the software package versions of the customized devices of different customized customers are the same. When the upgrade software package for customer A is ready in the upgrade server, the corresponding upgrade software package can be pushed to the customized device of customer A to complete the upgrade of the software package version of the customized device of customer A. When the upgrade software package for customer B is not ready in the upgrade server, the corresponding upgrade software package is not pushed to the customized device of customer B, so that the software package version of the customized device of customer B remains unchanged.

[0076] By adopting the technical solution of the embodiment of the present application, through software package merging, the number of software versions can be greatly reduced, solving problems such as low software reuse rate caused by excessive software package versions, large consumption of testing and development human resources; troublesome cross-regional goods diversion, requiring rework flashing, high costs; inflexible stockpiling, unable to achieve unified regional stockpiling; fragmented factory production, and low production efficiency. Through the software package upgrade method, the software package upgrade problem caused by software package merging can be solved, thus ensuring the implementation of the software package merging scheme.

[0077] In one embodiment, as Figure 7 shown, a software package upgrade method is provided. Although the logical order is shown in the step schematic diagram, in some cases, the steps shown or described may be executed in a different order than that shown in the drawings. Specifically, the software package upgrade method can be applied to a device, where the device may include, but is not limited to, one or more of a smart phone, a tablet computer, a portable computer, a desktop computer, and a vehicle-mounted computer. The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the priority order of the embodiments.

[0078] According to Figure 7 the software package upgrade method shown, the method at least includes step S210 to step S220, which are introduced in detail as follows:

[0079] In step S210, upload the customer identifier and software package version information to the upgrade server;

[0080] In step S220, obtain the upgraded software package sent by the upgrade server.

[0081] Among them, the upgraded software package is sent by the server when determining the target customer to which the device belongs according to the customer identifier, and determining to send the upgraded software package according to the software package version information and the upgraded software package of the target customer.

[0082] The customer identifier of the device is used to determine the customized customer corresponding to the device. The customer identifier is used to distinguish customers. The customer identifier uploaded by the device can be a customer ID. The software package version information uploaded by the device is the version information of the software package used by the device itself. The version information can be a version number.

[0083] The device uploads its own customer identifier and software package version information to the upgrade server. The upgrade server knows the customers corresponding to each customer identifier. The upgrade server can determine the target customer to which the device belongs according to the customer identifier uploaded by the device.

[0084] The upgraded software package refers to the software package after upgrade. The upgraded software package of the target customer is the software package for upgrading the device of the target customer.

[0085] Based on the software package version information uploaded by the device, determine whether the software package of the device is consistent with the upgrade software package of the target customer, so as to determine whether the software package of the device needs to be upgraded. In the case where the software package of the device needs to be upgraded, send the upgrade software package to the target device so that the device upgrades the software package to the upgrade software package.

[0086] The server can determine whether the software package of the device is consistent with the upgrade software package by determining whether the version information of the software package of the device is consistent with the version information of the upgrade software package of the target customer, and further determine whether the software package of the device needs to be upgraded. Therefore, obtain the version information of the upgrade software package. Determine whether to send the upgrade software package to the device according to whether the version information of the upgrade software package is consistent with the software package version information uploaded by the device.

[0087] When the version information of the upgrade software package is inconsistent with the software package version information uploaded by the device, it proves that the software package of the device is inconsistent with the upgrade software package, so the software package of the device needs to be upgraded. Therefore, send the upgrade software package to the device.

[0088] When the version information of the upgrade software package is consistent with the software package version information uploaded by the device, it proves that the software package of the device is consistent with the upgrade software package, so the software package of the device does not need to be upgraded. Therefore, do not send the upgrade software package to the device.

[0089] Adopting the technical solution of the embodiment of the present application, the target customer to which the device belongs can be determined through the customer identifier uploaded by the device, and then whether to send the upgrade software package to the device is determined according to the software package version information uploaded by the device and the upgrade software package of the target customer, so as to ensure that only the software packages of the devices with software package version information meeting the requirements in the devices of the target customer are upgraded. In this way, even when customized devices of different customers use the same version of the software package, it is also possible to only send the upgrade software package of the target customer to the devices of the target customer.

[0090] On the basis of the above technical solution, as an embodiment, before uploading the customer identifier to the upgrade server, the method may further include: sending the International Mobile Equipment Identity (IMEI) to the target server; obtaining the customer identifier corresponding to the IMEI returned by the target server; the customer identifier is determined by the target server querying the corresponding relationship between the IMEI and the customer identifier according to the IMEI.

[0091] When the device is powered on and connected to the network for the first time, the device uploads the IMEI to the target server. The corresponding relationship between the IMEI and the customer identification is stored in the target server. The target server determines the customer identification corresponding to the IMEI uploaded by the device according to the stored corresponding relationship between the IMEI and the customer identification, and returns the customer identification to the device.

[0092] The device locks the customer identification returned by the target server and writes the customer identification into the device, so that the device becomes a device with the shipped customer locked. According to the written customer identification, the customer customization requirements corresponding to the customer identification are activated, so that the device becomes a customer-customized device.

[0093] By adopting the technical solution of the embodiment of the present application, the time point for the device to confirm the customer identification can be changed from being fixed during factory production to being determined after matching through cloud services after the device is powered on, so that different customer shipment requirements can be met by one device software package, and finally the device software versions can be merged into one version.

[0094] Figure 8 It is a schematic structural diagram of a software package upgrade system provided by an embodiment of the present application. As Figure 8 shown, the system includes an upgrade server and a device.

[0095] The device is used to upload the customer identification and the software package version information to the upgrade server;

[0096] The upgrade server is used to determine the target customer to which the device belongs according to the customer identification uploaded by the device, and determine whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer.

[0097] The customer identification of the device is used to determine the customized customer corresponding to the device. The customer identification is used to distinguish customers. The customer identification uploaded by the device can be the customer ID. The software package version information uploaded by the device is the version information of the software package used by the device itself. The version information can be the version number.

[0098] The device uploads its own customer identification and software package version information to the upgrade server. The upgrade server knows the customers corresponding to each customer identification. The upgrade server can determine the target customer to which the device belongs according to the customer identification uploaded by the device.

[0099] The upgrade software package refers to the upgraded software package. The upgrade software package of the target customer is the software package for upgrading the device of the target customer.

[0100] Determine whether the software package of the device is consistent with the upgrade software package of the target customer according to the software package version information uploaded by the device, so as to determine whether the software package of the device needs to be upgraded. When the software package of the device needs to be upgraded, send the upgrade software package to the target device so that the device upgrades the software package to the upgrade software package.

[0101] The server can determine whether the software package of the device is consistent with the upgrade software package by determining whether the version information of the software package of the device is consistent with the version information of the upgrade software package of the target customer, and further determine whether the software package of the device needs to be upgraded. Therefore, obtain the version information of the upgrade software package. Determine whether to send the upgrade software package to the device according to whether the version information of the upgrade software package is consistent with the software package version information uploaded by the device.

[0102] When the version information of the upgrade software package is inconsistent with the software package version information uploaded by the device, it proves that the software package of the device is inconsistent with the upgrade software package, then the software package of the device needs to be upgraded. Therefore, send the upgrade software package to the device.

[0103] When the version information of the upgrade software package is consistent with the software package version information uploaded by the device, it proves that the software package of the device is consistent with the upgrade software package, then the software package of the device does not need to be upgraded. Therefore, do not send the upgrade software package to the device.

[0104] Adopting the technical solution of the embodiment of the present application, the target customer to which the device belongs can be determined through the customer identifier uploaded by the device, and then whether to send the upgrade software package to the device is determined according to the software package version information uploaded by the device and the upgrade software package of the target customer, so as to ensure that only the software packages of the devices with software package version information meeting the requirements in the devices of the target customer are upgraded. In this way, even when the customized devices of different customers use the same version of the software package, it is also possible to only send the upgrade software package of the target customer to the devices of the target customer.

[0105] To facilitate better implementation of the software package upgrade method of the present application, the present application also provides a software package upgrade device based on the above software package upgrade method. The meanings of the nouns are the same as those in the above software package upgrade method, and the specific implementation details can refer to the description in the method embodiment.

[0106] Please refer to Figure 9 , Figure 9 is the structural schematic diagram of the software package upgrade device provided by the embodiment of the present application. The software package upgrade device is applied to an upgrade server, and the software package upgrade device includes:

[0107] The first acquisition module 901 is used to acquire the customer identifier and software package version information uploaded by the device;

[0108] The first determination module 902 is configured to determine a target customer to which the device belongs according to a customer identifier uploaded by the device; and

[0109] The second determination module 903 is configured to determine whether to send an upgrade software package to the device according to the software package version information uploaded by the device and an upgrade software package of the target customer.

[0110] In one embodiment, the second determination module 903 includes:

[0111] A version information acquisition unit, configured to acquire version information of the upgrade software package;

[0112] A first determination unit, configured to determine whether to send an upgrade software package to the device according to whether the version information of the upgrade software package is consistent with the software package version information uploaded by the device.

[0113] In one embodiment, the second determination module 903 includes:

[0114] A sending unit, configured to send the upgrade software package to the device when the version information of the upgrade software package is inconsistent with the software package version information uploaded by the device;

[0115] A non-sending unit, configured to not send the upgrade software package to the device when the version information of the upgrade software package is consistent with the software package version information uploaded by the device.

[0116] By adopting the technical solution of the embodiment of the present application, the target customer to which the device belongs can be determined through the customer identifier uploaded by the device, and then, according to the software package version information uploaded by the device and the upgrade software package of the target customer, it is determined whether to send an upgrade software package to the device, so as to ensure that only the software packages of the devices with software package version information meeting the requirements in the devices of the target customer are upgraded. In this way, even when customized devices of different customers use the same version of the software package, the upgrade software package of the target customer can be sent only to the devices of the target customer.

[0117] Please refer to Figure 10 , Figure 10 which is a schematic structural diagram of a software package upgrade device provided by an embodiment of the present application. The software package upgrade device is applied to a device, and the software package upgrade device includes:

[0118] An upload module 1001, configured to upload a customer identifier and software package version information to an upgrade server;

[0119] A second acquisition module 1002, configured to acquire the upgrade software package sent by the upgrade server; wherein, the upgrade software package is sent by the server when determining the target customer to which the device belongs according to the customer identifier, and determining to send the upgrade software package according to the software package version information and the upgrade software package of the target customer.

[0120] In one embodiment, before uploading the customer identifier to the upgrade server, the device further includes:

[0121] A sending module, configured to send the International Mobile Equipment Identity (IMEI) to a target server;

[0122] An identifier acquisition module, configured to acquire the customer identifier corresponding to the IMEI returned by the target server; the customer identifier is determined by the target server according to the IMEI by querying the corresponding relationship between the IMEI and the customer identifier.

[0123] By adopting the technical solution of the embodiment of the present application, the target customer to which the device belongs can be determined through the customer identifier uploaded by the device, and then whether to send an upgrade software package to the device is determined according to the software package version information uploaded by the device and the upgrade software package of the target customer, so as to ensure that only the software packages of the devices whose software package version information meets the requirements in the devices of the target customer are upgraded. In this way, even when the customized devices of different customers use the same version of the software package, the upgrade software package of the target customer can be sent only to the devices of the target customer.

[0124] For the specific limitations on the software package upgrade device, reference can be made to the limitations on the software package upgrade method in the foregoing text, which will not be elaborated here. Each module in the above software package upgrade device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or be independent of it, or be stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0125] In addition, the present application further provides an electronic device, as Figure 11 shown, which shows a schematic structural diagram of the electronic device involved in the present application. Specifically:

[0126] The electronic device may include a processor 101 with one or more processing cores and a memory 102 with one or more computer-readable storage media and other components. Those skilled in the art can understand that Figure 11 the structural diagram of the electronic device shown in

[0127] The processor 101 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 102, and by invoking the data stored in the memory 102, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 101 may include one or more processing cores; preferably, the processor 101 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 101 either.

[0128] The memory 102 can be used to store software programs and modules. The processor 101 executes various functional applications and data processing by running the software programs and modules stored in the memory 102. The memory 102 mainly includes a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for functions (such as sound playback function, image playback function, etc.); the data storage area can store data created according to the use of the electronic device. In addition, the memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as disk storage devices, flash memory devices, or other volatile solid-state storage devices. Correspondingly, the memory 102 may also include a memory controller to provide the processor 101 with access to the memory 102.

[0129] In one embodiment, the electronic device further includes a power supply 103 that powers each component. Preferably, the power supply 103 can be logically connected to the processor 101 through a power management system, thereby implementing functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 103 may also include any components such as one or more DC or AC power supplies, a recharge system, a power device debugging circuit, a power converter or inverter, and a power status indicator.

[0130] In one embodiment, the electronic device may further include an input unit 104, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.

[0131] Although not shown, the electronic device may also include a display unit, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 101 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 102 according to the following instructions, and the processor 101 will run the application programs stored in the memory 102, thereby implementing the steps in any of the software package upgrade methods provided by the embodiments of the present application.

[0132] Those skilled in the art can understand that Figure 11 the structure shown in Figure 11 is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0133] In one embodiment, an electronic device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the method described in any embodiment of the present application is implemented.

[0134] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present application is implemented.

[0135] In some embodiments, a computer program product is further proposed, including a computer program or instruction. When the computer program or instruction is executed by a processor, the method described in any embodiment of the present application is implemented.

[0136] For the specific implementation of the above operations, reference can be made to the previous embodiments, which will not be elaborated here.

[0137] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0138] Therefore, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any software package upgrade method provided by the present application.

[0139] For the specific implementation of the above operations, reference can be made to the previous embodiments, which will not be elaborated here.

[0140] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

[0141] Since the instructions stored in the computer-readable storage medium can execute the steps in any software package upgrade method provided by the present application, the beneficial effects that can be achieved by any software package upgrade method provided by the present application can be realized. For details, reference can be made to the previous embodiments, which will not be elaborated here.

[0142] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or terminal device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising the said element.

[0143] The above has introduced in detail a software package upgrade method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used in this text to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A software package upgrade method, characterized in that, Applied to an upgrade server; the method includes: Obtaining a customer identifier and software package version information uploaded by a device; Determining a target customer to which the device belongs according to the customer identifier uploaded by the device; and Determining whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer.

2. The method according to claim 1, wherein The determining whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer includes: Obtaining the version information of the upgrade software package; Determining whether to send an upgrade software package to the device according to whether the version information of the upgrade software package is consistent with the software package version information uploaded by the device.

3. The method according to claim 2, wherein The determining whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer includes: When the version information of the upgrade software package is inconsistent with the software package version information uploaded by the device, sending the upgrade software package to the device; When the version information of the upgrade software package is consistent with the software package version information uploaded by the device, not sending the upgrade software package to the device.

4. A software package upgrade method, characterized in that, Applied to a device; the method includes: Uploading a customer identifier and software package version information to an upgrade server; Obtaining an upgrade software package sent by the upgrade server; wherein, the upgrade software package is sent by the server when determining the target customer to which the device belongs according to the customer identifier, and determining to send the upgrade software package according to the software package version information and the upgrade software package of the target customer.

5. The method according to claim 4, characterized in that Before uploading the customer identifier to the upgrade server, the method further includes: Sending an International Mobile Equipment Identity (IMEI) to a target server; Obtaining the customer identifier corresponding to the IMEI returned by the target server; the customer identifier is determined by the target server according to the IMEI by querying the corresponding relationship between the IMEI and the customer identifier.

6. A software package upgrade system, characterized in that, The system includes an upgrade server and a device; The device is used for uploading a customer identifier and software package version information to the upgrade server; The upgrade server is used for determining the target customer to which the device belongs according to the customer identifier uploaded by the device, and determining whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer.

7. A software package upgrade device, characterized in that, Applied to an upgrade server; the apparatus includes: A first obtaining module, configured to obtain a customer identifier and software package version information uploaded by a device; A first determining module, configured to determine a target customer to which the device belongs according to the customer identifier uploaded by the device; and A second determining module, configured to determine whether to send an upgrade software package to the device according to the software package version information uploaded by the device and the upgrade software package of the target customer.

8. A software package upgrade device, characterized in that, Applied to a device; the apparatus includes: An uploading module, configured to upload a customer identifier and software package version information to an upgrade server; A second acquisition module, configured to acquire the upgrade software package sent by the upgrade server; wherein, the upgrade software package is sent by the server when determining the target customer to which the device belongs according to the customer identifier, and determining to send the upgrade software package according to the software package version information and the upgrade software package of the target customer.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps in the software package upgrade method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps in the software package upgrade method according to any one of claims 1 to 5 are implemented.