Embedded Linux system software upgrading method, device, equipment, medium and product

By using the communication between the host computer and the terminal device in the embedded Linux system, automatically unblocking and logging into the terminal device, it solves the problems of professional operation and user name leakage in the existing technology, and realizes a safe and automated embedded Linux system. Software upgrades.

CN118656091APending Publication Date: 2024-09-17SHANGHAI ZHUOYANG ENERGY STORAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410697040.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing embedded Linux system software upgrade process requires professionals to operate, and there is a risk of incorrect updates and leakage of user names and passwords.

Method used

By communicating between the host computer and the terminal device, using message broadcast to send an IP address reporting request, the decryption key extracts the user name and login password from the sealed file, logs in to the Linux system of the terminal device, and pulls the upgrade from the server based on the SN code. The package is automatically upgraded.

Benefits of technology

It realizes automated upgrades without human operation, reduces the misoperation rate, enhances the security of the system, and avoids the exposure of user names and passwords.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656091A
    Figure CN118656091A
Patent Text Reader

Abstract

The invention discloses an embedded Linux system software upgrading method, device and equipment, a medium and a product, and relates to the technical field of software upgrading. The method comprises the following steps of: firstly requesting terminal equipment to report an IP address and a deblocking key, then deblocking from an upper computer side sealing file based on the IP address and the deblocking key to obtain a user name and a login password of the terminal equipment, then logging in a Linux system of the terminal equipment by using the IP address, the user name and the password, and logging in the Linux system of the terminal equipment according to an SN code fed back by the system. According to the method, the server is accessed, the embedded Linux system software upgrading package of the terminal equipment is pulled, finally, the upgrading package is sent to the Linux system of the terminal equipment, and a software upgrading result is waited, output and displayed, so that an upgrading file does not need to be manually operated, the automation degree is improved, the user operation experience requirement and the misoperation rate are reduced, and the user experience is improved. And information such as an IP address, a user name and a login password of the terminal can be prevented from being exposed, and the safety and reliability of a product are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software upgrade, and in particular relates to an embedded Linux system software upgrade method, device, equipment, medium and product. Background Art

[0002] Embedded Linux system refers to an operating system that can run on embedded computer devices by cutting and modifying the open source Linux operating system. Embedded Linux system inherits the unlimited open source resources on the Internet and has the characteristics of embedded operating system. Because embedded Linux system has the characteristics of free copyright, excellent performance, easy software transplantation, open code, many application software support and short application product development cycle, it is particularly conducive to the rapid listing of new products and is generally welcomed by product manufacturers.

[0003] At present, for EMS (Energy Management System) devices based on embedded Linux systems, in the early stage of R&D and market launch, if problems occur, the installed embedded Linux system software needs to be upgraded in batches; or because the actual field control requirements are different, the same hardware and software framework requires the equipment to be updated and upgraded to adapt to more requirements. In the existing embedded Linux system software upgrade process of EMS equipment, the general practice is to let some staff who understand Linux system operation log in to the Linux system of the EMS equipment through the open source Linux remote connection tool, and then manually replace the program and update and upgrade; usually these tools need to fill in the IP (Internet Protocol) address, user name and login password of the Linux system to log in to the system, so that this practice not only requires professional personnel to operate, but also has the situation of incorrect update when manually replacing the program, and there is also the risk of the user name and login password of the Linux system being leaked (once the user name and login password of the Linux system are leaked, it will be a devastating blow to the EMS equipment). Summary of the invention

[0004] The purpose of the present invention is to provide an embedded Linux system software upgrade method, device, computer equipment, computer-readable storage medium and computer program product, so as to solve the problems that in the existing embedded Linux system software upgrade process of EMS equipment, not only professional personnel are required to operate, but also erroneous updates may occur when the program is manually replaced, and there is also a risk of leakage of the user name and login password of the Linux system.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, a method for upgrading embedded Linux system software is provided, which is executed by a host computer that is respectively connected to a server and a terminal device that has installed the embedded Linux system software, and includes:

[0007] Sending an IP address reporting request message to the terminal device in the form of a message broadcast;

[0008] Upon receiving an IP address reporting response message corresponding to the IP address reporting request message and carrying the IP address and unsealing key of the terminal device, a pre-stored sealed file of the terminal device is locally queried according to the IP address of the terminal device, and the unsealing key of the terminal device is used to unseal and extract the user name and login password of the terminal device from the sealed file;

[0009] Use the IP address, user name and login password of the terminal device to log in to the Linux system of the terminal device;

[0010] When successfully logging into the Linux system of the terminal device, sending an SN code query request message to the Linux system of the terminal device;

[0011] Upon receiving an SN code query response message corresponding to the SN code query request message and carrying the SN code file, extracting the SN code of the terminal device from the SN code file;

[0012] According to the SN code of the terminal device, access the server and pull the embedded Linux system software upgrade package of the terminal device;

[0013] Sending the embedded Linux system software upgrade package of the terminal device to the Linux system of the terminal device, and waiting for the Linux system of the terminal device to apply the embedded Linux system software upgrade package of the terminal device to perform software upgrade;

[0014] When receiving a software upgrade success / failure message from the Linux system of the terminal device, output and display the software upgrade success / failure message.

[0015] Based on the above invention content, a new solution is provided that can automatically and safely upgrade the embedded Linux system software, that is, first requesting the terminal device to report the IP address and the unsealing key, then unsealing the user name and login password of the terminal device from the sealed file on the upper computer side based on the IP address and the unsealing key, and then using the IP address, user name and login password to log in to the Linux system of the terminal device, and according to the SN code fed back by the system, access the server and pull the embedded Linux system software upgrade package of the terminal device, and finally send the upgrade package to the Linux system of the terminal device, wait and output and display the software upgrade result, so that not only can the upgrade file be upgraded without manual operation, the degree of automation is improved, the user operation experience requirements and the error operation rate are reduced, but also the exposure of the terminal's IP address, user name and login password and other information can be avoided, the safety and reliability of the product are enhanced, and the practical application and promotion are facilitated.

[0016] In one possible design, the method further includes:

[0017] When the IP address reporting response message corresponding to the IP address reporting request message is not received within a timeout period, the default IP address, default user name and default login password pre-stored locally are used to log in to the Linux system of the terminal device.

[0018] In one possible design, the sealed file is an encrypted file encrypted using a private key of an asymmetric encryption algorithm, and the decryption key is a public key that matches the private key.

[0019] In one possible design, the method further includes:

[0020] When the SN code query response message corresponding to the SN code query request message is not received within the time limit, or an SN code query response message corresponding to the SN code query request message but not carrying an SN code file is received, a window pops up and prompts the user to manually enter or scan the code to enter the SN code, so that the SN code of the terminal device can be obtained after the user's operation.

[0021] In a possible design, according to the SN code of the terminal device, accessing the server and pulling the embedded Linux system software upgrade package of the terminal device includes:

[0022] According to the SN code of the terminal device, the server is accessed and inquiries are made as to whether there is an embedded Linux system software upgrade file corresponding to the SN code of the terminal device. If so, the embedded Linux system software upgrade file is pulled from the server and used as the embedded Linux system software upgrade package for the terminal device. Otherwise, a software upgrade failure message is output.

[0023] In a possible design, the embedded Linux system software upgrade package of the terminal device is used to perform software upgrade, including the following steps S71 to S73:

[0024] S71. Check whether there is an environment upgrade subfile in the embedded Linux system software upgrade package of the terminal device. If so, apply the environment upgrade subfile to upgrade the environment, and execute step S72 after the environment upgrade is completed, otherwise directly execute step S72;

[0025] S72. Check whether there is a program upgrade subfile in the embedded Linux system software upgrade package of the terminal device. If so, the program upgrade subfile is applied to upgrade the program, and after the program upgrade is completed, a software upgrade success message is sent to the host computer, otherwise, step S73 is executed;

[0026] S73. If the environment upgrade has been completed, a software upgrade success message is sent to the host computer; otherwise, a software upgrade failure message is sent to the host computer.

[0027] In a second aspect, an embedded Linux system software upgrade device is provided, which is arranged in a host computer that is respectively connected to a server and a terminal device that has installed embedded Linux system software, and includes a first transceiver unit, a query and unblocking unit, a system login unit, a second transceiver unit, an SN code extraction unit, an upgrade package pulling unit, a third transceiver unit, and an output display unit that are sequentially connected to each other;

[0028] The first transceiver unit is used to send an IP address reporting request message to the terminal device in the form of message broadcast, and receive an IP address reporting response message corresponding to the IP address reporting request message;

[0029] The query and unsealing unit is used to query a pre-stored sealed file of the terminal device locally according to the IP address of the terminal device when receiving an IP address reporting response message corresponding to the IP address reporting request message and carrying the IP address and unsealing key of the terminal device, and use the unsealing key of the terminal device to unseal and extract the user name and login password of the terminal device from the sealed file;

[0030] The system login unit is used to log in to the Linux system of the terminal device using the IP address, user name and login password of the terminal device;

[0031] The second transceiver unit is used to send an SN code query request message to the Linux system of the terminal device when successfully logging into the Linux system of the terminal device, and receive an SN code query response message corresponding to the SN code query request message;

[0032] The SN code extraction unit is configured to extract the SN code of the terminal device from the SN code file when receiving an SN code query response message corresponding to the SN code query request message and carrying an SN code file;

[0033] The upgrade package pulling unit is used to access the server and pull the embedded Linux system software upgrade package of the terminal device according to the SN code of the terminal device;

[0034] The third transceiver unit is used to send the embedded Linux system software upgrade package of the terminal device to the Linux system of the terminal device, wait for the Linux system of the terminal device to apply the embedded Linux system software upgrade package of the terminal device to perform software upgrade, and receive a software upgrade success / failure message from the Linux system of the terminal device;

[0035] The output display unit is used to output and display the software upgrade success / failure message when receiving the software upgrade success / failure message from the Linux system of the terminal device.

[0036] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the embedded Linux system software upgrade method as described in the first aspect or any possible design of the first aspect.

[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed on a computer, executes the embedded Linux system software upgrade method as described in the first aspect or any possible design of the first aspect.

[0038] In a fifth aspect, the present invention provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the embedded Linux system software upgrade method as described in the first aspect or any possible design of the first aspect.

[0039] Beneficial effects of the above scheme:

[0040] (1) The present invention creatively provides a new solution for automatically and securely upgrading the embedded Linux system software, that is, first requesting the terminal device to report the IP address and unsealing key, then unsealing the user name and login password of the terminal device from the sealed file on the upper computer side based on the IP address and the unsealing key, and then using the IP address, user name and login password to log in to the Linux system of the terminal device, and according to the SN code fed back by the system, access the server and pull the embedded Linux system software upgrade package of the terminal device, and finally send the upgrade package to the Linux system of the terminal device, wait and output and display the software upgrade result. In this way, not only can the upgrade file be upgraded without manual operation, the degree of automation is improved, the user operation experience requirements and the error rate are reduced, but also the information such as the IP address, user name and login password of the terminal can be avoided to be exposed, and the safety and reliability of the product can be enhanced;

[0041] (2) Users do not need any experience and can perform a one-click upgrade simply by opening the implementation software created by the present invention, which greatly enhances the subsequent maintainability of the product;

[0042] (3) For EMS equipment that has embedded Linux system software installed, it can be upgraded remotely or only using commands, which is convenient for practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flowchart of an embedded Linux system software upgrade method provided in an embodiment of the present application.

[0045] Figure 2 A schematic diagram of the structure of an embedded Linux system software upgrade device provided in an embodiment of the present application.

[0046] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0048] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.

[0049] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.

[0050] Example

[0051] like Figure 1 As shown, the embedded Linux system software upgrade method provided in the first aspect of this embodiment can be, but is not limited to, executed by a host computer with certain computing resources that is connected to the server and the terminal device that has the embedded Linux system software installed, for example, by a remote management host of an EMS device. Figure 1 As shown, the embedded Linux system software upgrade method may include but is not limited to the following steps S1 to S8.

[0052] S1. Send an IP address reporting request message to the terminal device in the form of a message broadcast.

[0053] In step S1, the IP address reporting request message is used to request the receiving device to upload the IP address of the device side and the decryption key for decrypting the sealed file on the host computer side, and the sending timing can be triggered by a one-key operation of the user. In addition, the terminal device can be, but is not limited to, an EMS device, and can be connected to the host computer through conventional wired communication or wireless communication.

[0054] S2. When an IP address reporting response message corresponding to the IP address reporting request message is received and carrying but not limited to the IP address and unsealing key of the terminal device, the pre-stored sealed file of the terminal device is queried locally (i.e., the host computer) based on the IP address of the terminal device, and the unsealing key of the terminal device is used to unseal the sealed file and extract the username and login password of the terminal device.

[0055] In step S2, the sealed file of the terminal device is used to securely encapsulate the user name and login password of the terminal device, which needs to be stored in the host computer and bound to the IP address of the terminal device when the terminal device is initially deployed for local query; specifically, the sealed file can be, but is not limited to, an encrypted file encrypted by a private key of an asymmetric encryption algorithm (in this case, the decryption key is a public key that matches the private key). In addition, when there are multiple terminal devices, the IP address reporting response message can be sent to the host computer through a conventional channel competition mechanism.

[0056] S3. Use the IP address, user name and login password of the terminal device to log in to the Linux system of the terminal device.

[0057] In the step S3, considering that there is a situation where the host computer may not receive the IP address report response message, in order to also try to log in to the Linux system of the terminal device in time, preferably, the method also includes but is not limited to: when the IP address report response message corresponding to the IP address report request message is not received after timeout, the default IP address, default user name and default login password pre-stored locally (i.e., the host computer) are used to log in to the Linux system of the terminal device. Since the IP address, user name and login password of the same product are all default (i.e., the same IP address, the same user name and the same login password) when leaving the factory, they will only be modified to different IP addresses, different user names and different login passwords by the deployment personnel after arriving at the project site, that is, a single terminal device may also adopt the default IP address, default user name and default login password without modification, so when the IP address report response message corresponding to the IP address report request message is not received after timeout, the default IP address, default user name and default login password pre-stored locally can be used to try to log in to the Linux system of the terminal device. In addition, the time threshold required for judging the aforementioned timeout can be exemplified as 15 seconds, that is, after sending the IP address reporting request message to the terminal device, if the IP address reporting response message corresponding to the IP address reporting request message is not received within 15 seconds, it is determined that a timeout exists.

[0058] S4. When the Linux system of the terminal device is successfully logged in, an SN code query request message is sent to the Linux system of the terminal device.

[0059] In step S4, the SN code query request message is used to request the receiving device to query and upload the SN (Serial Number) code file (i.e., a text file recording the SN code) on the device side. In addition, if the Linux system of the terminal device is not successfully logged in, since the software upgrade task cannot be completed, it is necessary to output a software upgrade failure message to prompt the software upgrade failure and end the upgrade.

[0060] S5. When an SN code query response message corresponding to the SN code query request message and carrying but not limited to an SN code file is received, the SN code of the terminal device is extracted from the SN code file.

[0061] In step S5, considering the possibility that the host computer may not receive the SN code query response message or may receive an SN code query response message that does not carry an SN code file (which is sent when the SN code file does not exist on the device side), in order to be able to obtain the SN code required for the upgrade in a timely manner, preferably, when the SN code query response message corresponding to the SN code query request message is not received after the timeout or the SN code query response message corresponding to the SN code query request message and does not carry an SN code file is received, a pop-up window is displayed to prompt the user to manually enter or scan the code to enter the SN code, so that the SN code of the terminal device can be obtained after the user's operation. In addition, the time threshold required for the aforementioned timeout judgment can also be exemplified as 15 seconds; and after it is found that the manual input or scanning of the SN code has timed out, a software upgrade failure message is also output to indicate that the software upgrade has failed and the upgrade is terminated.

[0062] S6. According to the SN code of the terminal device, access the server and pull the embedded Linux system software upgrade package of the terminal device.

[0063] In step S6, the server is used to bind and store the embedded Linux system software upgrade files of each device to be used for software upgrade based on the SN code, and it can be connected to the host computer through conventional wired communication or wireless communication. Specifically, according to the SN code of the terminal device, the server is accessed and the embedded Linux system software upgrade package of the terminal device is pulled, including but not limited to: according to the SN code of the terminal device, the server is accessed and inquiries are made as to whether there is an embedded Linux system software upgrade file corresponding to the SN code of the terminal device, if so, the embedded Linux system software upgrade file is pulled from the server and used as the embedded Linux system software upgrade package of the terminal device, otherwise the software upgrade failure message is output.

[0064] S7. Sending the embedded Linux system software upgrade package of the terminal device to the Linux system of the terminal device, and waiting for the Linux system of the terminal device to apply the embedded Linux system software upgrade package of the terminal device to perform software upgrade.

[0065] In step S7, the specific process of the software upgrade generally includes an environment upgrade process and / or a program upgrade process. Therefore, specifically, the embedded Linux system software upgrade package of the terminal device is used to perform software upgrade, including but not limited to the following steps S71 to S73.

[0066] S71. Check whether there is an environment upgrade sub-file in the embedded Linux system software upgrade package of the terminal device. If so, apply the environment upgrade sub-file to perform environment upgrade, and execute step S72 after the environment upgrade is completed, otherwise directly execute step S72.

[0067] S72. Check whether there is a program upgrade sub-file in the embedded Linux system software upgrade package of the terminal device. If so, apply the program upgrade sub-file to upgrade the program, and send a software upgrade success message to the host computer after the program upgrade is completed. Otherwise, execute step S73.

[0068] S73. If the environment upgrade has been completed, a software upgrade success message is sent to the host computer; otherwise, a software upgrade failure message is sent to the host computer.

[0069] S8. When receiving a software upgrade success / failure message from the Linux system of the terminal device, output and display the software upgrade success / failure message.

[0070] Therefore, based on the embedded Linux system software upgrade method described in the aforementioned steps S1 to S8, a new solution is provided that can automatically and securely upgrade the embedded Linux system software, that is, first requesting the terminal device to report the IP address and the unsealing key, then unsealing the user name and login password of the terminal device from the sealed file on the upper computer side based on the IP address and the unsealing key, and then using the IP address, user name and login password to log in to the Linux system of the terminal device, and according to the SN code fed back by the system, access the server and pull the embedded Linux system software upgrade package of the terminal device, and finally send the upgrade package to the Linux system of the terminal device, wait and output and display the software upgrade result, so that not only can the upgrade file be upgraded without manual operation, the degree of automation is improved, the user operation experience requirements and the error rate are reduced, but also the exposure of the terminal's IP address, user name and login password and other information can be avoided, the safety and reliability of the product are enhanced, and the practical application and promotion are facilitated.

[0071] like Figure 2 As shown, the second aspect of this embodiment provides a virtual device for implementing the embedded Linux system software upgrade method described in the first aspect, which is arranged in a host computer that is respectively connected to a server and a terminal device that has installed embedded Linux system software, and includes a first transceiver unit, a query and unblocking unit, a system login unit, a second transceiver unit, an SN code extraction unit, an upgrade package pulling unit, a third transceiver unit, and an output display unit that are sequentially connected;

[0072] The first transceiver unit is used to send an IP address reporting request message to the terminal device in the form of message broadcast, and receive an IP address reporting response message corresponding to the IP address reporting request message;

[0073] The query and unsealing unit is used to query a pre-stored sealed file of the terminal device locally according to the IP address of the terminal device when receiving an IP address reporting response message corresponding to the IP address reporting request message and carrying the IP address and unsealing key of the terminal device, and use the unsealing key of the terminal device to unseal and extract the user name and login password of the terminal device from the sealed file;

[0074] The system login unit is used to log in to the Linux system of the terminal device using the IP address, user name and login password of the terminal device;

[0075] The second transceiver unit is used to send an SN code query request message to the Linux system of the terminal device when successfully logging into the Linux system of the terminal device, and receive an SN code query response message corresponding to the SN code query request message;

[0076] The SN code extraction unit is configured to extract the SN code of the terminal device from the SN code file when receiving an SN code query response message corresponding to the SN code query request message and carrying an SN code file;

[0077] The upgrade package pulling unit is used to access the server and pull the embedded Linux system software upgrade package of the terminal device according to the SN code of the terminal device;

[0078] The third transceiver unit is used to send the embedded Linux system software upgrade package of the terminal device to the Linux system of the terminal device, wait for the Linux system of the terminal device to apply the embedded Linux system software upgrade package of the terminal device to perform software upgrade, and receive a software upgrade success / failure message from the Linux system of the terminal device;

[0079] The output display unit is used to output and display the software upgrade success / failure message when receiving the software upgrade success / failure message from the Linux system of the terminal device.

[0080] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be found in the embedded Linux system software upgrade method described in the first aspect, and will not be described in detail here.

[0081] like Figure 3As shown, the third aspect of this embodiment provides a computer device for executing the embedded Linux system software upgrade method as described in the first aspect, including a memory, a processor and a transceiver connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the embedded Linux system software upgrade method as described in the first aspect. For example, the memory may include, but is not limited to, a random access memory (Random-Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a first-in-first-out memory (First Input First Output, FIFO) and / or a first-in-last-out memory (First Input Last Output, FILO), etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0082] The working process, working details and technical effects of the aforementioned computer device provided in the third aspect of this embodiment can be found in the embedded Linux system software upgrade method described in the first aspect, and will not be described in detail here.

[0083] In a fourth aspect of this embodiment, there is provided a computer-readable storage medium storing instructions including the embedded Linux system software upgrade method as described in the first aspect, that is, the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the embedded Linux system software upgrade method as described in the first aspect is executed. Wherein, the computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memories, USB flash drives, and / or memory sticks, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0084] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the embedded Linux system software upgrade method described in the first aspect, and will not be repeated here.

[0085] A fifth aspect of this embodiment provides a computer program product, including a computer program or instructions, wherein the computer program or instructions, when executed by a computer, implement the embedded Linux system software upgrade method as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0086] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for upgrading embedded Linux system software, characterized in that: The process is executed by a host computer that is connected to the server and the terminal device that has the embedded Linux system software installed, including: Sending an IP address reporting request message to the terminal device in the form of a message broadcast; Upon receiving an IP address reporting response message corresponding to the IP address reporting request message and carrying the IP address and unsealing key of the terminal device, a pre-stored sealed file of the terminal device is locally queried according to the IP address of the terminal device, and the unsealing key of the terminal device is used to unseal and extract the user name and login password of the terminal device from the sealed file; Use the IP address, user name and login password of the terminal device to log in to the Linux system of the terminal device; When successfully logging into the Linux system of the terminal device, sending an SN code query request message to the Linux system of the terminal device; Upon receiving an SN code query response message corresponding to the SN code query request message and carrying the SN code file, extracting the SN code of the terminal device from the SN code file; According to the SN code of the terminal device, access the server and pull the embedded Linux system software upgrade package of the terminal device; Sending the embedded Linux system software upgrade package of the terminal device to the Linux system of the terminal device, and waiting for the Linux system of the terminal device to apply the embedded Linux system software upgrade package of the terminal device to perform software upgrade; When receiving a software upgrade success / failure message from the Linux system of the terminal device, output and display the software upgrade success / failure message.

2. The embedded Linux system software upgrade method according to claim 1, characterized in that: The method further comprises: When the IP address reporting response message corresponding to the IP address reporting request message is not received within a timeout period, the default IP address, default user name and default login password pre-stored locally are used to log in to the Linux system of the terminal device.

3. The embedded Linux system software upgrade method according to claim 1, characterized in that: The sealed file is an encrypted file encrypted using a private key of an asymmetric encryption algorithm, and the decryption key is a public key that matches the private key.

4. The embedded Linux system software upgrade method according to claim 1, characterized in that: The method further comprises: When the SN code query response message corresponding to the SN code query request message is not received within the time limit, or an SN code query response message corresponding to the SN code query request message but not carrying an SN code file is received, a window pops up and prompts the user to manually enter or scan the code to enter the SN code, so that the SN code of the terminal device can be obtained after the user's operation.

5. The embedded Linux system software upgrade method according to claim 1, characterized in that: According to the SN code of the terminal device, access the server and pull the embedded Linux system software upgrade package of the terminal device, including: According to the SN code of the terminal device, the server is accessed and inquiries are made as to whether there is an embedded Linux system software upgrade file corresponding to the SN code of the terminal device. If so, the embedded Linux system software upgrade file is pulled from the server and used as the embedded Linux system software upgrade package for the terminal device. Otherwise, a software upgrade failure message is output.

6. The embedded Linux system software upgrade method according to claim 1, characterized in that: Using the embedded Linux system software upgrade package of the terminal device to perform software upgrade includes the following steps S71 to S73: S71. Check whether there is an environment upgrade subfile in the embedded Linux system software upgrade package of the terminal device. If so, apply the environment upgrade subfile to upgrade the environment, and execute step S72 after the environment upgrade is completed, otherwise directly execute step S72; S72. Check whether there is a program upgrade subfile in the embedded Linux system software upgrade package of the terminal device. If so, the program upgrade subfile is applied to upgrade the program, and after the program upgrade is completed, a software upgrade success message is sent to the host computer, otherwise, step S73 is executed; S73. If the environment upgrade has been completed, a software upgrade success message is sent to the host computer; otherwise, a software upgrade failure message is sent to the host computer.

7. An embedded Linux system software upgrade device, characterized in that: Arranged in the host computer which is respectively connected to the server and the terminal device which has installed the embedded Linux system software, it includes a first transceiver unit, a query and unblocking unit, a system login unit, a second transceiver unit, an SN code extraction unit, an upgrade package pulling unit, a third transceiver unit and an output display unit which are sequentially connected to each other; The first transceiver unit is used to send an IP address reporting request message to the terminal device in the form of message broadcast, and receive an IP address reporting response message corresponding to the IP address reporting request message; The query and unsealing unit is used to query a pre-stored sealed file of the terminal device locally according to the IP address of the terminal device when receiving an IP address reporting response message corresponding to the IP address reporting request message and carrying the IP address and unsealing key of the terminal device, and use the unsealing key of the terminal device to unseal and extract the user name and login password of the terminal device from the sealed file; The system login unit is used to log in to the Linux system of the terminal device using the IP address, user name and login password of the terminal device; The second transceiver unit is used to send an SN code query request message to the Linux system of the terminal device when successfully logging into the Linux system of the terminal device, and receive an SN code query response message corresponding to the SN code query request message; The SN code extraction unit is configured to extract the SN code of the terminal device from the SN code file when receiving an SN code query response message corresponding to the SN code query request message and carrying an SN code file; The upgrade package pulling unit is used to access the server and pull the embedded Linux system software upgrade package of the terminal device according to the SN code of the terminal device; The third transceiver unit is used to send the embedded Linux system software upgrade package of the terminal device to the Linux system of the terminal device, wait for the Linux system of the terminal device to apply the embedded Linux system software upgrade package of the terminal device to perform software upgrade, and receive a software upgrade success / failure message from the Linux system of the terminal device; The output display unit is used to output and display the software upgrade success / failure message when receiving the software upgrade success / failure message from the Linux system of the terminal device.

8. A computer device, characterized in that: It comprises a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the embedded Linux system software upgrade method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the embedded Linux system software upgrade method as described in any one of claims 1 to 6 is executed.

10. A computer program product comprising a computer program or instructions, characterized in that The computer program or the instruction, when executed by a computer, implements the embedded Linux system software upgrade method as claimed in any one of claims 1 to 6.