Webpage-based firmware updating method, system and device
Through the web-based firmware update method, the identity information of the terminal device is obtained and matched with the preset identity information list of the back-end management page, the problem of high operating pressure on the computer and inability to be unified when upgrading the firmware of semi-intelligent terminal devices is solved, and unified firmware upgrades and reduced computer operation pressures are achieved.
Patent Information
- Application Number
- CN202510219289.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-06-13
AI Technical Summary
In the prior art, when upgrading the firmware of semi-intelligent terminal devices, the computer runs heavily and the upgrade program cannot be unified, resulting in users needing to download desktop applications and target firmware of multiple different series of terminal devices.
A firmware update method based on web page is proposed, by obtaining the identity information of the terminal device and the preset identity information list of the backend, judging and establishing a communication connection, obtaining the target firmware and upgrading or falling back.
It realizes a unified upgrade of terminal equipment firmware, reduces the operating pressure of computers, and allows different series of terminal equipment to upgrade or fallback on the web page.
Smart Images

Figure CN120144152A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of firmware upgrade, and particularly relates to a web-based firmware update method, system and device. Background Art
[0002] Firmware is a software program embedded in semi-intelligent terminal devices, usually stored in non-volatile memories such as read-only memories or flash memories, and is used to control and manage the basic functions and operations of terminal devices. With the continuous development of computer technology and the continuous improvement of user requirements for terminal devices, the firmware in terminal devices needs to be continuously upgraded and updated to enrich the functions of products and meet the needs of users.
[0003] However, for the firmware upgrade of semi-intelligent terminal devices currently, first, according to the characteristics and software protocols of such devices, desktop applications and target firmware are customized and developed, and different series of products will have different desktop applications and corresponding target firmware. Therefore, when different series of terminal devices upgrade the firmware, different desktop applications and corresponding target firmware need to be downloaded. If a user has multiple series of terminal devices, multiple desktop applications and target firmware need to be downloaded, and the desktop applications are also system-specific and cannot be shared among different computer systems; this causes a large operating pressure on the computer when upgrading the firmware of multiple terminal devices and the problem that the upgrade programs cannot be unified.
[0004] Therefore, there is still an urgent need for a firmware upgrade method that can reduce the operating pressure of the computer and unify the upgrade program. Summary of the Invention
[0005] The main purpose of the present invention is to propose a web-based firmware update method, system and device, to solve the problems of large operating pressure on the computer and non-unifiable upgrade programs when upgrading the firmware of multiple terminal devices with existing defects.
[0006] To achieve the above purpose, the present invention proposes a web-based firmware update method. The web is communicatively connected to the terminal device and the backend. The web-based firmware update method includes:
[0007] Obtain the identity information of the terminal device and a preset identity information list of the backend, wherein the terminal device is configured with device firmware;
[0008] Judge whether the identity information of the terminal device is saved in the preset identity information list;
[0009] If the identity information of the terminal device is saved in the preset identity information list, add the terminal device to the device list and establish a communication connection with the terminal device;
[0010] Obtain the corresponding target firmware from the backend according to the identity information of the terminal device;
[0011] Upgrade or roll back the device firmware according to the target firmware.
[0012] In some embodiments, before obtaining the identity information of the terminal device and the preset identity information list of the backend, it further includes:
[0013] Receive the identity information of multiple terminal devices;
[0014] Save the identity information of multiple terminal devices in the preset identity information list.
[0015] In some embodiments, before obtaining the identity information of the terminal device and the preset identity information list of the backend, it further includes:
[0016] Receive the target firmware corresponding to multiple terminal devices;
[0017] Associate the multiple target firmwares with the identity information of the corresponding terminal devices.
[0018] In some embodiments, the upgrading or rolling back of the device firmware according to the target firmware includes:
[0019] Obtain the version number of the target firmware and the version number of the device firmware;
[0020] Compare the version number of the target firmware with the version number of the device firmware;
[0021] If the version number of the target firmware is greater than the version number of the device firmware, upgrade the device firmware according to the target firmware;
[0022] If the version number of the target firmware is less than the version number of the device firmware, roll back the device firmware according to the target firmware.
[0023] In some embodiments, after determining whether the identity information of the terminal device is saved in the preset identity information list, it further includes:
[0024] If the identity information of the terminal device is not saved in the preset identity information list, output a prompt message.
[0025] In some embodiments, adding the terminal device to the device list and establishing a communication connection with the terminal device includes:
[0026] Add the terminal device to the device list and display the terminal device in the device list;
[0027] Determine the terminal device from the device list according to the connection instruction, and establish a communication connection with the terminal device.
[0028] In some embodiments, upgrading or rolling back the device firmware according to the target firmware includes:
[0029] Display an update progress bar for upgrading or rolling back the device firmware according to the target firmware, where the value range of the update progress bar is from 0% to 100%;
[0030] Determine whether the value of the update progress bar reaches 100%;
[0031] If the value of the update progress bar reaches 100%, restart the terminal device and display that the upgrade or rollback of the device firmware of the terminal device is successful.
[0032] In some embodiments, after determining whether the value of the update progress bar reaches 100%, it further includes:
[0033] If the value of the update progress bar does not reach 100%, wait for the value of the update progress bar to reach 100%, and execute the steps of restarting the terminal device and displaying that the upgrade or rollback of the device firmware of the terminal device is successful; or,
[0034] If the value of the update progress bar does not reach 100%, display that the upgrade or rollback of the device firmware of the terminal device fails.
[0035] The present invention also provides a web-based firmware update system, which includes a host computer and a terminal device. The host computer is used to configure and run a web page; the web-based firmware update system can execute the web-based firmware update method described in any one of the above.
[0036] The present invention also provides a web-based firmware update device, including:
[0037] At least one processor; and,
[0038] A memory communicatively connected to the at least one processor; wherein,
[0039] The memory stores instructions executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the web-based firmware update method described in any one of the above.
[0040] In the present invention, by pre-configuring a target firmware associated with identity information on a backend management page, when the identity information of a terminal device is the same as the identity information associated with the target firmware, the device firmware of the terminal device can be upgraded or rolled back according to the target firmware; enabling the upgrade or rollback of the device firmware of the terminal device to be performed in a web page, reducing the operating pressure of the computer; and enabling different series of terminal devices to achieve firmware upgrade or rollback on the web page. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic flowchart of a web-based firmware update method in an embodiment of the present invention;
[0042] Figure 2 It is another schematic flowchart of a web-based firmware update method in an embodiment of the present invention;
[0043] Figure 3 It is another schematic flowchart of a web-based firmware update method in an embodiment of the present invention;
[0044] Figure 4 It is another schematic flowchart of a web-based firmware update method in an embodiment of the present invention;
[0045] Figure 5 It is another schematic flowchart of a web-based firmware update method in an embodiment of the present invention;
[0046] Figure 6 It is another schematic flowchart of a web-based firmware update method in an embodiment of the present invention;
[0047] Figure 7 It is a schematic structural diagram of a web-based firmware update system according to an embodiment of the present invention;
[0048] Figure 8 It is a schematic structural diagram of a web-based firmware update device according to an embodiment of the present invention.
[0049] The realization, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0050] Next, the solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0051] It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.
[0052] It should also be noted that when an element is referred to as "fixed to" or "disposed on" another element, it can be directly on the other element or there may be an intermediate element at the same time. When an element is referred to as "connected to" another element, it can be directly connected to the other element or there may be an intermediate element at the same time.
[0053] In addition, the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes and should not be construed as indicating or implying their relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between various embodiments can be combined with each other, but it must be based on the ability of those of ordinary skill in the art to implement. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0054] To achieve the above object, the present invention proposes a web-based firmware update method. The web page is communicatively connected to the terminal device and the backend. The web-based firmware update method includes:
[0055] Step S110, obtaining the identity information of the terminal device and the preset identity information list of the backend, wherein the terminal device is configured with device firmware;
[0056] Step S120, determining whether the identity information of the terminal device is saved in the preset identity information list;
[0057] Step S130, if the identity information of the terminal device is saved in the preset identity information list, adding the terminal device to the device list and establishing a communication connection with the terminal device;
[0058] Step S140, obtaining the corresponding target firmware from the backend according to the identity information of the terminal device;
[0059] Step S150, upgrading or rolling back the device firmware according to the target firmware.
[0060] In this embodiment, referring to Figure 1 and Figure 7, The web-based firmware update method is applied to a web-based firmware update system; the web-based firmware update system is used to update the device firmware of a terminal device. The web-based firmware update system includes a host computer and a terminal device. The host computer is used to configure and run a web page and a backend; the web-based firmware update method is configured on the web page. The terminal device is configured with device firmware. The web page is configured with a backend management page; the backend management page can configure the backend. In this application, the user can update the device firmware of the terminal device by operating on the web page. In this embodiment, the execution subject of the method steps is the web page running in the host computer.
[0061] It can be understood that a preset identity information list and a target firmware are pre-configured on the backend; the web page can have a backend management page set, and the backend management page can configure the backend. Among them, the preset identity information list and the target firmware can be directly uploaded to the backend management page by the system administrator. The device firmware is a software program used to control and manage the basic functions and operations of the terminal device. Among them, updating the device firmware of the terminal device can include upgrading the device firmware of the terminal device and rolling back the device firmware of the terminal device. Specifically, when the target firmware is an upgraded version of the device firmware, the target firmware can be used to upgrade the device firmware. When the target firmware is an old and specific version of the device firmware, the target firmware can be used to roll back the device firmware.
[0062] The host computer can be provided with a peripheral interface; the peripheral interface can include a USB (Universal Serial Bus) interface, and of course can also include other interfaces. The backend can be configured with the peripheral interface through the interface; the web page can directly call the interface configuration of the backend. When the user wants to upgrade the device firmware of the terminal device, the terminal device can be connected to the peripheral interface of the host computer. Then open the web page configured with the web-based firmware update method; at this time, the web page can scan the peripheral interface to obtain the identity information of the terminal device. Among them, a scan button can be set on the web page; when the user clicks the scan button, the web page will generate a scan instruction, and then the web page will scan the peripheral interface according to the scan instruction to obtain the identity information of the terminal device connected to the peripheral interface. And the web page can directly call the data of the backend to obtain the preset identity information list from the backend.
[0063] After the web page obtains the identity information of the terminal device and the preset identity information list, it can compare the identity information of the terminal device with the identity information stored in the preset identity information list. Among them, multiple different identity information can be stored in the preset identity information list. Determine whether the identity information of the terminal device is stored in the preset identity information list. Among them, if the identity information of the terminal device is the same as one of the identity information stored in the preset identity information list, it can be determined that the identity information of the terminal device is stored in the preset identity information list. If the identity information of the terminal device is different from all the identity information stored in the preset identity information list, it can be determined that the identity information of the terminal device is not stored in the preset identity information list.
[0064] If it is determined that the identity information of the terminal device is stored in the preset identity information list, the web page can add the terminal device to the device list and establish a communication connection with the terminal device. Among them, after the web page establishes a communication connection with the terminal device, it will perform data interaction with the terminal device.
[0065] Among them, the backend management page can be configured with a firmware library at the backend, and multiple different target firmware can be stored in the firmware library. In particular, after the system administrator creates a preset identity information list on the backend management page, the target firmware can be created according to the identity information in the preset identity information list. For example: The system administrator first saves the identity information of the terminal device in the preset identity information list, and then uploads the corresponding target firmware to the firmware library according to the identity information of the terminal device.
[0066] After the web page establishes a communication connection with the terminal device, the web page will obtain the target firmware corresponding to the identity information of the terminal device from the firmware library at the backend according to the identity information of the terminal device.
[0067] After the web page obtains the target firmware, it can upgrade or roll back the device firmware according to the target firmware. For example: If the version number of the target firmware is higher, the device firmware can be upgraded according to the target firmware; if the version number of the target firmware is lower, the device firmware can be rolled back according to the target firmware.
[0068] For example: When the user feels that the version of the device firmware installed on the terminal device is old, after successfully connecting the device through the web page, the user can directly click Update. After the update progress is completed and the terminal device restarts, it will run the latest firmware. If the user feels that the updated device firmware is not easy to use, after successfully connecting the device through the web page, the user can switch the firmware version in the firmware drop-down box and then click Update. After the update progress is completed and the terminal device restarts, it will run the selected rollback version firmware.
[0069] In this embodiment, the target firmware associated with the identity information is pre-configured on the back-end management page. When the identity information of the terminal device is the same as the identity information associated with the target firmware, the device firmware of the terminal device can be upgraded or rolled back according to the target firmware; the upgrade or rollback of the device firmware of the terminal device is performed in the web page, reducing the operating pressure of the computer; and enabling the firmware upgrade or rollback of different series of terminal devices to be realized on the web page.
[0070] In some embodiments, before obtaining the identity information of the terminal device and the preset identity information list at the back end, it further includes:
[0071] Step S160, receiving the identity information of multiple terminal devices;
[0072] Step S161, saving the identity information of multiple terminal devices in the preset identity information list.
[0073] In this embodiment, referring to Figure 2 , before the web page executes step S110, it is necessary to configure the preset identity information list. The preset identity information list is set on the back-end management page of the web page; the system administrator can input the identity information of the terminal device in advance on the back-end management page. The preset identity information list can have multiple rows; each row can save the identity information of one terminal device. Among them, the identity information can include the name of the terminal device, the serial number of the terminal device, the device type of the terminal device, etc. Each row of the preset identity information list can have multiple columns for saving the identity information of the terminal device such as the name of the terminal device, the serial number of the terminal device, and the device type of the terminal device.
[0074] The system administrator can input the identity information of multiple terminal devices at the same time; at this time, the web page will receive the identity information of multiple terminal devices.
[0075] The system administrator will configure the preset identity information list on the back-end management page before updating the device firmware using the web page. Then when the web page updates the device firmware, the obtained identity information of the terminal device can be compared with the preset identity information list. If the comparison is successful, the terminal device will be added to the device list and a communication connection will be established with the terminal device.
[0076] In some embodiments, before obtaining the identity information of the terminal device and the preset identity information list at the back end, it further includes:
[0077] Step S170, receiving the target firmware corresponding to multiple terminal devices;
[0078] Step S171, associating the multiple target firmwares with the identity information of the corresponding terminal devices.
[0079] In this embodiment, referring toFigure 3 Before the web page executes step S110, the target firmware also needs to be configured. A firmware library can also be set on the back-end management page of the web page to save the target firmware. Before using the web page to update the device firmware, the system administrator uploads the corresponding target firmware to the firmware library on the back-end management page according to the identity information in the preset identity information list. After that, after the user successfully connects the terminal device to the web page, the user can search for the corresponding target firmware in the firmware library according to the identity information of the terminal device.
[0080] In another embodiment, the web page also associates multiple target firmwares with the identity information of the corresponding terminal device and the identity information in the preset identity information list. At this time, the corresponding target firmware can be directly searched from the firmware library according to the identity information in the preset identity information list. In addition, after associating multiple target firmwares with the identity information of the corresponding terminal device and the identity information in the preset identity information list, the target firmware can be displayed in the preset identity information list for the user to directly select.
[0081] In some embodiments, upgrading or rolling back the device firmware according to the target firmware as described above includes:
[0082] Step S180, obtaining the version number of the target firmware and the version number of the device firmware;
[0083] Step S181, comparing the size of the version number of the target firmware and the version number of the device firmware;
[0084] Step S182, if the version number of the target firmware is greater than the version number of the device firmware, upgrade the device firmware according to the target firmware;
[0085] Step S183, if the version number of the target firmware is less than the version number of the device firmware, roll back the device firmware according to the target firmware.
[0086] In this embodiment, referring to Figure 4 , when the web page executes step S150, it determines whether to upgrade or roll back the device firmware according to the version number. The firmware will carry a version number; among them, the larger the value of the version number, the more advanced the firmware corresponding to the version number. The web page first obtains the version number of the target firmware and the version number of the device firmware; then compares the size of the version number of the target firmware and the version number of the device firmware to determine whether the target firmware is more advanced than the device firmware.
[0087] If the web page determines that the version number of the target firmware is greater than the version number of the device firmware, it can upgrade the device firmware according to the target firmware. For example: when the version number of the target firmware is greater than the version number of the device firmware, the web page can display that the device firmware needs to be upgraded, and the web page can upgrade the device firmware according to the upgrade instruction triggered by the user.
[0088] If the version number of the target firmware is less than the version number of the device firmware, the device firmware can be rolled back according to the target firmware. For example, when the version number of the target firmware is less than the version number of the device firmware, the web page can display that the version of the device firmware is higher than the target firmware; at this time, the web page can roll back the device firmware according to the version rollback instruction triggered by the user based on the target firmware.
[0089] Among them, if the version number of the target firmware is equal to the version number of the device firmware, the web page can display that the device firmware does not need to be updated.
[0090] For example, when the user feels that the version of the device firmware installed on the terminal device is old, after successfully connecting the device through the web page, the user can directly click to update. After the upgrade progress is completed and the terminal device is restarted, it will be the latest firmware. If the user feels that the updated device firmware is not easy to use, after successfully connecting the device through the web page, the user can switch the firmware version in the firmware drop-down box and then click to update. After the upgrade progress is completed and the terminal device is restarted, it will be the selected rollback version firmware.
[0091] In some embodiments, after determining whether the identity information of the terminal device is saved in the preset identity information list as described above, it further includes:
[0092] If the identity information of the terminal device is not saved in the preset identity information list, a prompt message is output.
[0093] In this embodiment, after the web page executes step S120, a prompt message is also output. If the web page determines that the identity information of the terminal device is not saved in the preset identity information list, a prompt message will be output to prompt the user that the identity information of the terminal device is not saved in the preset identity information list and the web page cannot update the device firmware of the terminal device; among them, the prompt message can be that the identity information is not saved and there is no update resource.
[0094] In some embodiments, adding the terminal device to the device list and establishing a communication connection with the terminal device as described above includes:
[0095] Step S190, adding the terminal device to the device list and displaying the terminal device in the device list;
[0096] Step S191, determining the terminal device from the device list according to the connection instruction and establishing a communication connection with the terminal device.
[0097] In this embodiment, referring to Figure 5When the web page executes step S130, it establishes a communication connection with the terminal device according to the connection instruction. After the web page adds the terminal device to the device list, the web page does not directly establish a communication connection with the terminal device; instead, the web page first displays the terminal device on the device list. Multiple terminal devices can be displayed on the device list at the same time; at this time, the web page needs to determine the terminal device from the device list according to the connection instruction, and then establish a communication connection with the terminal device.
[0098] In some embodiments, upgrading or downgrading the device firmware according to the target firmware as described above includes:
[0099] Step S200, display an update progress bar for upgrading or downgrading the device firmware according to the target firmware, where the value range of the update progress bar is 0% to 100%;
[0100] Step S201, determine whether the value of the update progress bar reaches 100%;
[0101] Step S202, if the value of the update progress bar reaches 100%, then restart the terminal device and display that the device firmware of the terminal device has been successfully upgraded or downgraded.
[0102] In this embodiment, referring to Figure 6 When the web page executes step S150, it determines whether the upgrade is successful according to the update progress bar. During the process of upgrading the device firmware according to the target firmware, the web page can display an update progress bar for updating the device firmware according to the target firmware on the page; where the value of the update progress bar can vary within the range of 0% to 100%; updating the device firmware according to the target firmware includes upgrading the device firmware according to the target firmware and downgrading the device firmware according to the target firmware. The web page can determine whether the device firmware has been successfully updated by judging whether the value of the update progress bar reaches 100%; where successful update includes successful upgrade and successful downgrade.
[0103] If the web page determines that the value of the update progress bar reaches 100%, it will restart the terminal device and display that the device firmware of the terminal device has been successfully updated. Among them, restarting the terminal device enables the terminal device to run the updated device firmware again to prevent some functions of the device firmware before the update from still running and conflicting with the updated device firmware.
[0104] In some embodiments, after determining whether the value of the update progress bar reaches 100% as described above, it further includes:
[0105] If the value of the update progress bar does not reach 100%, then wait for the value of the update progress bar to reach 100%, and execute the steps of restarting the terminal device and displaying that the device firmware of the terminal device has been successfully upgraded or downgraded; or,
[0106] If the value of the update progress bar does not reach 100%, it indicates that the device firmware upgrade or rollback of the terminal device fails.
[0107] In this embodiment, after the web page executes step S112, if the value of the update progress bar does not reach 100%, there are two processing methods. If the web page determines that the value of the update progress bar does not reach 100%, it can wait for the value of the update progress bar to reach 100%, then execute the step of restarting the terminal device and display that the device firmware upgrade or rollback of the terminal device is successful; or it can directly display that the device firmware upgrade of the terminal device fails.
[0108] In another embodiment, which specific processing method to execute can be determined according to the upgrade duration. That is: if the value of the update progress bar does not reach 100%, obtain the upgrade duration, and determine whether the upgrade duration exceeds the preset time; if the upgrade duration exceeds the preset time, display that the device firmware upgrade of the terminal device fails; if the upgrade duration does not exceed the preset time, wait for the value of the update progress bar to reach 100%, and execute the step of restarting the terminal device and display that the device firmware upgrade or rollback of the terminal device is successful.
[0109] In the present invention, by pre-configuring the target firmware associated with the identity information on the back-end management page of the web page, when the identity information of the terminal device is the same as the identity information associated with the target firmware, the device firmware of the terminal device can be upgraded or rolled back according to the target firmware; enabling the device firmware upgrade or rollback of the terminal device to be performed in the web page, reducing the computer operation pressure; and enabling different series of terminal devices to achieve firmware update on the web page.
[0110] The present invention also proposes a web-based firmware update system. The web-based firmware update system includes a host computer and a terminal device. The host computer is used to configure and run the web page and the back end; the web-based firmware update system can execute the web-based firmware update method described in any one of the above.
[0111] In this embodiment, referring to Figure 7 , the web-based firmware update system includes a host computer and a terminal device. The host computer is used to configure and run the web page and the back end. The terminal device is configured with device firmware. The web page is provided with a back-end management page; the back-end management page can configure the back end. In this application, the user can upgrade the device firmware of the terminal device by operating on the web page.
[0112] The present invention also proposes a web-based firmware update device. Refer to Figure 8 , Figure 8 is a schematic structural diagram of the web-based firmware update device in the hardware operating environment involved in the embodiment solution of the present invention.
[0113] The web-based firmware update device according to an embodiment of the present invention may be a processor capable of running the web-based firmware update method; there is at least one processor. As Figure 8 shown, the web-based firmware update device may include: a processor 1001 (such as a CPU), a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit, such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0114] Those skilled in the art can understand that Figure 8 the structure of the web-based firmware update device shown in
[0115] does not constitute a limitation on the web-based firmware update device, and may include more or fewer components than those shown, or combine some components, or have different component arrangements. Figure 8 shown, the memory 1005, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a computer program.
[0116] In Figure 8 the web-based firmware update device shown, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (user side) and perform data communication with the client; and the processor 1001 may be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the above-mentioned web-based firmware update method are implemented.
[0117] Based on the computer program proposed in the foregoing embodiments, the present invention also proposes a storage medium. The storage medium stores a computer program, and when the computer program is executed by a controller, the web-based firmware update method described in the foregoing embodiments is implemented.
[0118] The present invention also proposes a storage medium. A computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the web-based firmware update method in any one of the above technical solutions are implemented.
[0119] The above are only some or preferred embodiments of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. Any equivalent structural transformation made by using the content of the specification and drawings of the present invention under the overall concept of the present invention, or any direct / indirect application in other related technical fields, is included in the scope of protection of the present invention.
Claims
1. A firmware update method based on a web page, characterized in that: The webpage is connected to the terminal device and the backend for communication, and the webpage-based firmware update method includes: Acquire the identity information of the terminal device and a preset identity information list of the backend, wherein the terminal device is configured with device firmware; Determining whether the identity information of the terminal device is stored in the preset identity information list; If the identity information of the terminal device is stored in the preset identity information list, adding the terminal device to the device list and establishing a communication connection with the terminal device; Acquire the corresponding target firmware from the backend according to the identity information of the terminal device; The device firmware is upgraded or rolled back according to the target firmware.
2. The web-based firmware update method according to claim 1, characterized in that: Before obtaining the identity information of the terminal device and the preset identity information list of the backend, the method further includes: Receiving identity information of multiple terminal devices; The identity information of the plurality of terminal devices is stored in the preset identity information list.
3. The web-based firmware update method according to claim 2, characterized in that: Before obtaining the identity information of the terminal device and the preset identity information list of the backend, the method further includes: Receiving target firmware corresponding to a plurality of terminal devices; The plurality of target firmwares are associated with the identity information of the corresponding terminal devices.
4. The web-based firmware update method according to claim 1, characterized in that: The step of upgrading or rolling back the device firmware according to the target firmware includes: Obtaining the version number of the target firmware and the version number of the device firmware; Comparing the version number of the target firmware with the version number of the device firmware; If the version number of the target firmware is greater than the version number of the device firmware, upgrading the device firmware according to the target firmware; If the version number of the target firmware is smaller than the version number of the device firmware, the device firmware is rolled back according to the target firmware.
5. The web-based firmware update method according to claim 1, characterized in that: After determining whether the identity information of the terminal device is stored in the preset identity information list, the method further includes: If the identity information of the terminal device is not saved in the preset identity information list, a prompt message is output.
6. The web-based firmware update method according to claim 1, characterized in that: The adding the terminal device to the device list and establishing a communication connection with the terminal device includes: Adding the terminal device to a device list and displaying the terminal device in the device list; According to the connection instruction, the terminal device is determined from the device list, and a communication connection is established with the terminal device.
7. The web-based firmware update method according to claim 1, characterized in that: The step of upgrading or rolling back the device firmware according to the target firmware includes: Displaying an update progress bar for upgrading or rolling back the device firmware according to the target firmware, wherein the value range of the update progress bar is 0% to 100%; Determine whether the value of the update progress bar reaches 100%; If the value of the update progress bar reaches 100%, the terminal device is restarted, and it is displayed that the device firmware of the terminal device has been successfully upgraded or rolled back.
8. The web-based firmware update method according to claim 7, characterized in that: After determining whether the value of the update progress bar reaches 100%, the method further includes: If the value of the update progress bar has not reached 100%, wait for the value of the update progress bar to reach 100%, and execute the steps of restarting the terminal device and displaying that the device firmware of the terminal device has been successfully upgraded or rolled back; or, If the value of the update progress bar does not reach 100%, it indicates that the device firmware upgrade or rollback of the terminal device has failed.
9. A web-based firmware update system, characterized in that: The web-based firmware update system includes a host computer and a terminal device, wherein the host computer is used to configure and run a web page and a backend; the web-based firmware update system can execute the web-based firmware update method described in any one of claims 1 to 8.
10. A web-based firmware update device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the web-based firmware update method according to any one of claims 1 to 8.