Device upgrade method, device and server

Through communication between the platform server, the storage server and the equipment to be upgraded, upgrade files are generated and stored, which solves the problem of low equipment upgrade efficiency in the existing technology and realizes a more efficient equipment upgrade process.

CN112783541BActive Publication Date: 2024-08-27CHENGDU LUXINGTONG INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110085076.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-21
Publication Date
2024-08-27
Estimated Expiration
2041-01-21

AI Technical Summary

Technical Problem

The differential upgrade method of equipment upgrade in the existing technology has low efficiency, large storage capacity, and lacks effective solutions to improve equipment upgrade efficiency.

Method used

Through communication between the platform server, storage server and the device to be upgraded, the upgrade command is received, the system information of the device to be upgraded is obtained, an upgrade file is generated and sent to the storage server, and an upgrade instruction is generated based on the upgrade file to instruct the device to be upgraded from The storage server is acquired and upgraded.

Benefits of technology

The efficiency of device upgrade is improved. By generating and saving the upgrade file in the storage server, the device to be upgraded obtains the file from the storage service and then performs the upgrade. This solves the problems of large storage volume and low efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112783541B
    Figure CN112783541B
Patent Text Reader

Abstract

The present invention provides a device upgrade method, device and server. After receiving an upgrade command, the system information of the device to be upgraded is obtained; then an upgrade file is generated according to the system information, a pre-established operating system database and the upgrade command; and the upgrade file is sent to a storage server so that the storage server stores the upgrade file; then an upgrade instruction is generated based on the upgrade file, and the upgrade instruction is sent to the device to be upgraded so that the device to be upgraded obtains the upgrade file from the storage server through the upgrade instruction and performs device upgrade based on the upgrade file. The present invention generates a corresponding upgrade file for the device to be upgraded, and stores the upgrade file in the storage server. The device to be upgraded obtains the upgrade file from the storage service and then upgrades, thereby improving the efficiency of device upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular to a device upgrading method, device and server. Background Art

[0002] In the related art, a differential upgrade method is usually used to upgrade devices with operating systems. This method generates a differential upgrade package for each device to be upgraded, and then sends the differential upgrade package to the device to be upgraded for upgrading. This method requires storing the differential upgrade package, which has a large storage volume and low efficiency. Summary of the invention

[0003] In view of this, an object of the present invention is to provide a device upgrading method, apparatus and server to improve the efficiency of device upgrading.

[0004] In the first aspect, an embodiment of the present invention provides a device upgrade method, which is applied to a platform server, and the platform server, a storage server and a device to be upgraded are communicatively connected in pairs; the method includes: receiving an upgrade command; obtaining system information of the device to be upgraded; generating an upgrade file according to the system information, a pre-established operating system database and an upgrade command; sending the upgrade file to a storage server so that the storage server stores the upgrade file; generating an upgrade instruction based on the upgrade file, and sending the upgrade instruction to the device to be upgraded, so that the device to be upgraded obtains the upgrade file from the storage server through the upgrade instruction, and performs a device upgrade based on the upgrade file.

[0005] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation method of the first aspect, wherein the above-mentioned upgrade command includes the device identification to be upgraded; before obtaining the system information of the device to be upgraded, it includes: if it is detected that the device logs in to the platform server, obtain the device identification of the device; determine whether the device identification to be upgraded includes the device identification of the device; if included, determine the device as a device to be upgraded.

[0006] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein the above-mentioned upgrade command also includes an upgrade version corresponding to the device identifier to be upgraded; the system information of the device to be upgraded includes the current version of the device to be upgraded; the step of generating an upgrade file according to the system information, a pre-established operating system database and the upgrade instruction includes: obtaining an upgrade version file corresponding to the upgrade version and a current version file corresponding to the current version from the pre-established operating system database; and generating an upgrade file based on the upgrade version file and the current version file.

[0007] In combination with the second possible implementation of the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein the above-mentioned upgrade command also includes the current version verification code of the device to be upgraded; the system information of the device to be upgraded also includes the local file verification code of the device to be upgraded; based on the upgrade version file and the current version file, the step of generating the upgrade file includes: based on the current version file, generating a system verification code; judging whether the local file verification code is consistent with the current version verification code; if they are consistent, generating a differential file based on the upgrade version file and the current version file, and determining the differential file as the upgrade file; if they are consistent, determining the upgrade version file as the upgrade file.

[0008] In combination with the first aspect, an embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein the step of generating an upgrade instruction based on the upgrade file includes: generating a storage address corresponding to the upgrade file based on a preset storage method; and generating an upgrade instruction based on the storage address.

[0009] In a second aspect, an embodiment of the present invention further provides a device upgrade method, which is applied to a device to be upgraded; a platform server, a storage server and the device to be upgraded are communicatively connected in pairs; the method comprises: receiving an upgrade instruction; the upgrade instruction is generated by the platform server based on an upgrade file; the upgrade file is generated by the platform server according to system information of the device to be upgraded, a pre-established operating system database and an upgrade command; through the upgrade instruction, the upgrade file is obtained from the storage server; the upgrade file is sent from the platform server to the storage server and stored by the storage server; and the device is upgraded based on the upgrade file.

[0010] In a third aspect, an embodiment of the present invention further provides a device upgrade apparatus, which is arranged on a platform server, and the platform server, the storage server and the device to be upgraded are communicatively connected in pairs; the apparatus comprises: a command receiving module, for receiving an upgrade command; an information acquisition module, for acquiring system information of the device to be upgraded; a file generation module, for generating an upgrade file according to the system information, a pre-established operating system database and an upgrade command; a file storage module, for sending the upgrade file to the storage server so that the storage server stores the upgrade file; an instruction generation module, for generating an upgrade instruction based on the upgrade file, and sending the upgrade instruction to the device to be upgraded, so that the device to be upgraded acquires the upgrade file through the upgrade instruction and performs device upgrade based on the upgrade file.

[0011] In a fourth aspect, an embodiment of the present invention further provides a device upgrade apparatus, which is arranged on the device to be upgraded; the platform server, the storage server and the device to be upgraded are communicatively connected in pairs; the apparatus comprises: an instruction receiving module, which is used to receive upgrade instructions; the upgrade instructions are generated by the platform server based on upgrade files; the upgrade files are generated by the platform server according to system information of the device to be upgraded, a pre-established operating system database and upgrade commands; a file acquisition module, which is used to acquire upgrade files from the storage server through the upgrade instructions; the upgrade files are sent from the platform server to the storage server and stored by the storage server; an upgrade module, which is used to perform device upgrade based on the upgrade files.

[0012] In a fifth aspect, an embodiment of the present invention further provides a server, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above method.

[0013] In a sixth aspect, an embodiment of the present invention further provides a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method described in the claim.

[0014] The embodiments of the present invention bring the following beneficial effects:

[0015] The embodiment of the present invention provides a device upgrade method, device and server. After receiving an upgrade command, the system information of the device to be upgraded is obtained; then, according to the system information, a pre-established operating system database and the upgrade command, an upgrade file is generated; and the upgrade file is sent to a storage server so that the storage server stores the upgrade file; then, based on the upgrade file, an upgrade instruction is generated, and the upgrade instruction is sent to the device to be upgraded, so that the device to be upgraded obtains the upgrade file from the storage server through the upgrade instruction, and performs device upgrade based on the upgrade file. This method generates a corresponding upgrade file for the device to be upgraded, and stores the upgrade file in the storage server. The device to be upgraded obtains the upgrade file from the storage service and then upgrades, thereby improving the efficiency of device upgrade.

[0016] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0017] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 A schematic diagram of the structure of a device upgrade system provided by an embodiment of the present invention;

[0020] Figure 2 A flow chart of a device upgrade method provided by an embodiment of the present invention;

[0021] Figure 3 A flowchart of another device upgrade method provided by an embodiment of the present invention;

[0022] Figure 4 A flowchart of another device upgrade method provided by an embodiment of the present invention;

[0023] Figure 5 A schematic diagram of the structure of a device upgrade apparatus provided by an embodiment of the present invention;

[0024] Figure 6 A schematic diagram of the structure of a device upgrade apparatus provided by an embodiment of the present invention;

[0025] Figure 7 A schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0027] In related technologies, upgrading a device usually refers to upgrading the device's operating system. For example, a vehicle-mounted smart recorder has an independent operating system and independent operating space. The platform (also called the "platform server") issues version upgrade files to remotely upgrade the system of the recorder. Compared with general operating software, system version files have a large amount of data and complex data verification.

[0028] There is no good solution to the above technical problems in the prior art. Based on this, an embodiment of the present invention provides a device upgrade method, apparatus and server, which can be used in various device upgrade scenarios.

[0029] To facilitate understanding of this embodiment, a device upgrading method disclosed in an embodiment of the present invention is first introduced in detail.

[0030] The embodiment of the present invention provides a device upgrade method, which is applied to a platform server; Figure 1 As shown, the device upgrade system includes a platform server, a storage server and a device to be upgraded, which are connected in pairs; Figure 2 As shown, the method comprises the following steps:

[0031] Step S100, receiving an upgrade command; the upgrade command can be sent by a relevant operator to the platform server via an electronic device, or can be generated by a pre-set algorithm program to achieve regular upgrades. The upgrade command usually includes the identifier of the device to be upgraded, and the upgrade version corresponding to the device to be upgraded.

[0032] Step S102: Obtain system information of the device to be upgraded.

[0033] The system information of the device to be upgraded may include the current version information of the device to be upgraded. The acquisition process may be to send a query to the device to be upgraded and receive information returned by the device to be upgraded; or the current version information of the device to be upgraded may be saved in a preset storage location in advance, and when the identifier of the device to be upgraded is obtained from the upgrade command, the current version information corresponding to the device to be upgraded may be queried from the preset storage location.

[0034] Step S104, generating an upgrade file according to the system information, a pre-established operating system database and an upgrade command.

[0035] The upgrade instruction may include an upgrade version corresponding to the device to be upgraded, and the files of the upgrade version and the current version are searched from a pre-established operating system database. Then, an upgrade file is generated based on the files of the upgrade version and the current version. The files of the current version may be included in the system information, which is sent by the device to be upgraded to the platform server. The files of the current version sent by the device to be upgraded are verified. If the verification result indicates that the current version in the device to be upgraded is intact, the differential file of the files of the upgrade version and the current version is used as the upgrade file; if the verification result indicates that the current version in the device to be upgraded is damaged, the files of the upgrade version are used as the upgrade file.

[0036] Step S106: Send the upgrade file to the storage server so that the storage server stores the upgrade file.

[0037] Step S108: Generate an upgrade instruction based on the upgrade file, and send the upgrade instruction to the device to be upgraded, so that the device to be upgraded obtains the upgrade file from the storage server through the upgrade instruction and performs device upgrade based on the upgrade file.

[0038] The upgrade instruction usually includes the storage location of the upgrade file in the storage server, and the storage location can be generated based on the upgrade file according to a preset storage path format. The upgrade instruction is sent to the device to be upgraded. The device to be upgraded parses the upgrade instruction to obtain the storage location of the upgrade file in the storage server, and then obtains the upgrade file from the storage server, and performs device upgrade based on the upgrade file.

[0039] The embodiment of the present invention provides a device upgrade method, which obtains system information of a device to be upgraded after receiving an upgrade command; then generates an upgrade file according to the system information, a pre-established operating system database and the upgrade command; and sends the upgrade file to a storage server so that the storage server stores the upgrade file; then generates an upgrade instruction based on the upgrade file, and sends the upgrade instruction to the device to be upgraded, so that the device to be upgraded obtains the upgrade file from the storage server through the upgrade instruction, and performs device upgrade based on the upgrade file. This method generates a corresponding upgrade file for the device to be upgraded, and stores the upgrade file in the storage server. The device to be upgraded obtains the upgrade file from the storage service and then performs the upgrade, thereby improving the efficiency of device upgrade.

[0040] The embodiment of the present invention also provides another device upgrade method. Figure 2 The method shown is implemented based on Figure 3 As shown, the method comprises the following steps:

[0041] Step S200, receiving an upgrade command; the upgrade command includes an identifier of a device to be upgraded.

[0042] Step S202: If it is detected that the device has logged into the platform server, the device identification of the device is obtained. The above device identification is also called device ID (Identity document), and the device identification of each device is usually unique.

[0043] Step S204, determining whether the device identification to be upgraded includes the device identification of the above device; if so, executing step S206; if not, executing step S202.

[0044] Step S206, determining the above device as a device to be upgraded; specifically, if the identifier of the device to be upgraded includes the device identifier of the current device, the device needs to be upgraded, and the device can be determined as a device to be upgraded.

[0045] Step S208: obtaining system information of the device to be upgraded.

[0046] Step S210, acquiring an upgraded version file corresponding to the upgraded version and a current version file corresponding to the current version from a pre-established operating system database.

[0047] Specifically, the upgrade command includes the upgrade version corresponding to the device identifier to be upgraded, and the system information of the device to be upgraded includes the current version of the device to be upgraded. At this time, the upgrade version file corresponding to the upgrade version and the current version file corresponding to the current version can be searched from the operating system database.

[0048] Step S212: Generate an upgrade file based on the upgrade version file and the current version file.

[0049] Specifically, the upgrade command also includes a local file verification code of the device to be upgraded; the local file verification code can be generated according to the local system file of the device to be upgraded after the platform server determines that the device to be upgraded is the device to be upgraded. The above step S212 is specifically implemented in the following manner:

[0050] (1) Determine whether the system verification code is consistent with the current version verification code; if they are consistent, execute step (2); if they are consistent, execute step (3).

[0051] (2) Based on the upgraded version file and the current version file, a differential file is generated, and the differential file is determined as the upgraded file.

[0052] (3) The upgraded version file is determined as the upgraded file.

[0053] Step S214, based on the preset storage method, generates a storage address corresponding to the upgrade file. The above storage address may include cURL, which is also the address of the specific path. cURL can be generated according to URL (Uniform Resource Locator) syntax. For example, the storage server can use an ftp (File Transfer Protocol) server. When the upgrade file is stored in the ftp: / / 10.9.1.78 / klicenfirmware / KlicenS5 / file location of the storage server, ftp: / / 10.9.1.78 is an ftp server address, and / klicenfirmware / KlicenS5 / file is the address of the specific path, i.e., cURL. The two addresses can accurately locate the upgrade file.

[0054] Step S216: Generate an upgrade instruction based on the storage address, and send the upgrade instruction to the device to be upgraded, so that the device to be upgraded obtains the upgrade file from the storage server through the upgrade instruction and performs device upgrade based on the upgrade file.

[0055] The above method verifies the current version of the device to be upgraded to determine whether the current operating system of the device to be upgraded is complete. If it is complete, a differential upgrade is adopted. If the current operating system is incomplete, all upgrade version files are adopted for upgrading, thereby improving the success rate of the upgrade and the efficiency of the device upgrade.

[0056] The embodiment of the present invention also provides another device upgrade method, which is applied to a device to be upgraded; the platform server, the storage server and the device to be upgraded are connected in communication with each other; Figure 4 As shown, the method comprises the following steps:

[0057] Step S300, receiving an upgrade instruction; the upgrade instruction is generated by the platform server based on the upgrade file; the upgrade file is generated by the platform server according to the system information of the device to be upgraded, a pre-established operating system database and the upgrade command.

[0058] Step S302, obtaining the upgrade file from the storage server through the upgrade instruction; the upgrade file is sent from the platform server to the storage server and stored by the storage server.

[0059] Step S304: perform device upgrade based on the upgrade file.

[0060] This method obtains the corresponding upgrade file generated for the device to be upgraded from the storage service, and then performs the upgrade based on the upgrade file, thereby improving the efficiency of device upgrade.

[0061] In the related art, the types of files downloaded and upgraded by the vehicle-mounted smart recorder are divided into: full version package download, differential upgrade package download; in the two types of upgrade file downloads, the differential upgrade package is usually much smaller than the full version package. Although the differential upgrade method has download advantages, the existing technology uses differential tools to create differential packages for each platform and each chip, which is inefficient and requires large storage space. There is no perfect verification of the local system version of the vehicle-mounted recorder and the integrity of the system files, which leads to the possibility of upgrade failure or device downtime.

[0062] Based on the above technical problems, the embodiment of the present invention also provides another device upgrade method. Figure 1 The method is implemented based on the method shown in the figure. The method can provide a universal differential method to realize dynamic differential package generation and recorder system version and version file integrity verification.

[0063] The method mainly includes the management of system historical version files, the collection of system versions and system file verification codes of vehicle-mounted intelligent recorders, the dynamic generation of differential files for device upgrades based on the information platform uploaded by the vehicle-mounted intelligent recorders, and the temporary cache version differential upgrade files for the platform to batch upgrade the recorder system version.

[0064] In this method, the management process of the system historical version files based on the platform server is specifically implemented in the following ways:

[0065] (1) Verify the correctness of the system file based on the file structure content; the system file is usually sent to the platform server by the recorder device (equivalent to the above-mentioned "device to be upgraded").

[0066] (2) Record the system file information path, version, and file content verification code in a file.

[0067] (3) Push the above files to the FTP service, the path is recorder device type / version number / .

[0068] The above method is executed according to the upgrade task created by the user, wherein the upgrade task includes the device ID, the target version and the verification code; the method is specifically implemented in the following way:

[0069] (1) Recording device system information: After logging into the platform, the recorder will use an algorithm to calculate the checksum of the local system file, and upload the result and the local system version to the platform. The platform will structure the device and the system information and store it in the database. When the device logs into the platform, the platform will determine whether to execute the device upgrade task based on the device ID.

[0070] (2) Dynamically generate differential files: The platform compares the system version of the logged-in recorder (i.e., the original version information uploaded when the device logged in) with the corresponding checksum of the system version on the platform to determine the integrity of the recorder's local files and the strategy for generating upgrade files. a. If the recorder's local files are missing, the target version is fully updated; b. If the recorder's local files are complete, a differential file is generated from the recorder version to the target version. The platform caches the upgrade files of all target versions of the recorder device in the source file directory of the database within the platform.

[0071] (3) Customize the effective time of the differential upgrade package according to the number of devices to be upgraded on the platform, upload the file to FTP, use curl to cache the database, and send the file address to the device via TCP (Transmission Control Protocol) command or SMS (this process is to send the upgrade information to the device).

[0072] (4) After receiving the upgrade command, the recorder device will download the upgrade file according to curl, verify the file, and perform local upgrade.

[0073] The above method can verify the integrity of the local system files of the recorder, dynamically generate a differential upgrade package of the target upgrade version, temporarily cache the differential files of a specific version, improve the efficiency of differential package generation, and avoid the burden of dynamic generation.

[0074] Corresponding to the above method embodiment, the embodiment of the present invention further provides a device upgrade apparatus, which is arranged on a platform server, and the platform server, the storage server and the device to be upgraded are connected to each other in communication; Figure 5 As shown, the device comprises:

[0075] A command receiving module 500, used for receiving an upgrade command;

[0076] The information acquisition module 502 is used to acquire system information of the device to be upgraded;

[0077] A file generation module 504, for generating an upgrade file according to system information, a pre-established operating system database and an upgrade command;

[0078] The file storage module 506 is used to send the upgrade file to the storage server so that the storage server stores the upgrade file;

[0079] The instruction generation module 508 is used to generate an upgrade instruction based on the upgrade file, and send the upgrade instruction to the device to be upgraded, so that the device to be upgraded obtains the upgrade file through the upgrade instruction and performs device upgrade based on the upgrade file.

[0080] The device upgrade apparatus provided in the platform server in the embodiment of the present invention has the same technical features as the device upgrade method provided in the platform server in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0081] Corresponding to the above method embodiment, the embodiment of the present invention further provides a device upgrade device, which is arranged in the device to be upgraded; the platform server, the storage server and the device to be upgraded are connected in communication with each other; Figure 6 As shown, the device comprises:

[0082] The instruction receiving module 600 is used to receive an upgrade instruction; the upgrade instruction is generated by the platform server based on the upgrade file; the upgrade file is generated by the platform server according to the system information of the device to be upgraded, the pre-established operating system database and the upgrade command;

[0083] The file acquisition module 602 is used to acquire the upgrade file from the storage server through the upgrade instruction; the upgrade file is sent from the platform server to the storage server and stored by the storage server;

[0084] The upgrade module 604 is used to perform device upgrade based on the upgrade file.

[0085] The device upgrading apparatus provided in the device to be upgraded provided in the embodiment of the present invention has the same technical features as the device upgrading method provided in the device to be upgraded provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0086] The embodiment of the present invention also provides a server, see Figure 7 As shown, the server includes a processor 130 and a memory 131 , wherein the memory 131 stores machine executable instructions that can be executed by the processor 130 , and the processor 130 executes the machine executable instructions to implement the above-mentioned device upgrade method.

[0087] Further, Figure 7 The server shown also includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected via the bus 132 .

[0088] The memory 131 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 132 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0089] The processor 130 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 130. The above processor 130 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the above embodiment in combination with its hardware.

[0090] An embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned device upgrade method. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0091] The computer program products of the device upgrade method, apparatus and server provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.

[0092] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a gateway server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A device upgrading method, characterized in that: The method is applied to a platform server, wherein the platform server, the storage server and the device to be upgraded are connected in communication with each other; the method comprises: Receive upgrade command; Get the system information of the device to be upgraded; Generate an upgrade file according to the system information, a pre-established operating system database and the upgrade command; Sending the upgrade file to the storage server so that the storage server stores the upgrade file; Generate an upgrade instruction based on the upgrade file, and send the upgrade instruction to the device to be upgraded, so that the device to be upgraded obtains the upgrade file from the storage server through the upgrade instruction, and performs device upgrade based on the upgrade file; The step of generating an upgrade instruction based on the upgrade file includes: Based on a preset storage method, generating a storage address corresponding to the upgrade file; Based on the storage address, generating the upgrade instruction; The upgrade command includes the identifier of the device to be upgraded; before obtaining the system information of the device to be upgraded, it includes: If it is detected that a device logs in to the platform server, obtaining a device identification of the device; Determine whether the device identifier to be upgraded includes the device identifier of the device; If included, determining the device as a device to be upgraded; The upgrade command also includes the upgrade version corresponding to the identifier of the device to be upgraded; the system information of the device to be upgraded includes the current version of the device to be upgraded; The step of generating an upgrade file according to the system information, a pre-established operating system database and the upgrade instruction comprises: Acquire an upgraded version file corresponding to the upgraded version and a current version file corresponding to the current version from a pre-established operating system database; Generate an upgrade file based on the upgrade version file and the current version file; The upgrade command also includes a current version verification code of the device to be upgraded; the system information of the device to be upgraded also includes a local file verification code of the device to be upgraded; Based on the upgraded version file and the current version file, the step of generating the upgraded file comprises: Determine whether the local file verification code is consistent with the current version verification code; If they are consistent, generating a differential file based on the upgraded version file and the current version file, and determining the differential file as the upgraded file; If they are consistent, the upgraded version file is determined as the upgraded file; The method is also applied to the device to be upgraded; the platform server, the storage server and the device to be upgraded are connected in communication with each other; when the method is applied to the device to be upgraded, the method includes: receiving an upgrade instruction; the upgrade instruction is generated by the platform server based on an upgrade file; the upgrade file is generated by the platform server according to system information of the device to be upgraded, a pre-established operating system database, and an upgrade command; Obtaining the upgrade file from the storage server through the upgrade instruction; the upgrade file is sent from the platform server to the storage server and stored by the storage server; The device is upgraded based on the upgrade file.

2. A device upgrading apparatus, characterized in that: The device is arranged on a platform server, and the platform server, the storage server and the device to be upgraded are connected in communication with each other; the device comprises: A command receiving module, used for receiving an upgrade command; An information acquisition module is used to obtain system information of the device to be upgraded; A file generation module, used to generate an upgrade file according to the system information, a pre-established operating system database and the upgrade command; A file storage module, used for sending the upgrade file to the storage server so that the storage server stores the upgrade file; the upgrade file is sent from the platform server to the storage server and stored by the storage server; An instruction generation module, configured to generate an upgrade instruction based on the upgrade file, and send the upgrade instruction to the device to be upgraded, so that the device to be upgraded obtains the upgrade file through the upgrade instruction and performs device upgrade based on the upgrade file; The instruction generation module is further used to generate a storage address corresponding to the upgrade file based on a preset storage method; and generate the upgrade instruction based on the storage address; The upgrade command includes the identification of the device to be upgraded; before obtaining the system information of the device to be upgraded, it includes: if it is detected that the device logs in to the platform server, obtaining the device identification of the device; judging whether the identification of the device to be upgraded includes the device identification of the device; if it includes, determining the device as the device to be upgraded; The upgrade command also includes an upgrade version corresponding to the identifier of the device to be upgraded; the system information of the device to be upgraded includes the current version of the device to be upgraded; the step of generating an upgrade file according to the system information, a pre-established operating system database and the upgrade instruction includes: obtaining an upgrade version file corresponding to the upgrade version and a current version file corresponding to the current version from the pre-established operating system database; generating an upgrade file based on the upgrade version file and the current version file; the upgrade command also includes a current version verification code of the device to be upgraded; the system information of the device to be upgraded also includes a local file verification code of the device to be upgraded; The step of generating an upgrade file based on the upgrade version file and the current version file includes: determining whether the local file verification code is consistent with the current version verification code; if they are consistent, generating a differential file based on the upgrade version file and the current version file, and determining the differential file as the upgrade file; if they are consistent, determining the upgrade version file as the upgrade file; The device is also arranged in the device to be upgraded; the platform server, the storage server and the device to be upgraded are connected in communication with each other; when the device is arranged in the device to be upgraded, the device includes: An instruction receiving module, used to receive an upgrade instruction; the upgrade instruction is generated by the platform server based on an upgrade file; the upgrade file is generated by the platform server according to the system information of the device to be upgraded, a pre-established operating system database and an upgrade command; A file acquisition module, used to acquire the upgrade file from the storage server according to the upgrade instruction; An upgrade module is used to upgrade the device based on the upgrade file.

3. A server, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method of claim 1.

4. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method of claim 1.