Automatic firmware update method, robotic vacuum cleaner and computer-readable storage medium
By using a robotic vacuum cleaner to work in conjunction with a base station to download the firmware installation package, the problem of firmware update failures was resolved, resulting in faster installation speeds and a better user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2026-03-06
AI Technical Summary
Existing robotic vacuum cleaners are prone to firmware update failures due to insufficient download speed, which reduces the user experience.
After receiving a new firmware update request, the robot vacuum cleaner enters standby mode, obtains the download address, and monitors the download speed in real time. If it is less than 10 Mbps, it will download and send the new firmware installation package in cooperation with the base station, taking advantage of the base station's high download speed to speed up the installation process.
In cases of poor download quality, base station-coordinated downloading speeds up firmware installation and improves user experience.
Smart Images

Figure CN116321111B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robotic vacuum cleaners, and more particularly to an automatic firmware update method, a robotic vacuum cleaner, and a computer-readable storage medium. Background Technology
[0002] Intelligent robotic vacuum cleaners, also known as automatic cleaning robots, intelligent vacuums, or robotic vacuums, are a type of smart home appliance that uses artificial intelligence to automatically clean floors both indoors and outdoors. They typically use a combination of brushing and vacuuming to collect debris into their dustbin, thus completing the cleaning process. Generally, robots that perform mopping, vacuuming, and wiping are also categorized as intelligent robotic vacuum cleaners.
[0003] Generally, smart robotic vacuum cleaners require regular updates. When a smart robotic vacuum cleaner receives a new firmware update request, if the download speed is insufficient, the firmware update may fail, resulting in the inability to update the firmware and reducing the user experience. Summary of the Invention
[0004] Therefore, it is necessary to provide a firmware automatic update method, a robotic vacuum cleaner, and a computer-readable storage medium to address the aforementioned technical problems and solve the technical problem of firmware update failure in existing robotic vacuum cleaner technologies.
[0005] An automatic firmware update method for a robotic vacuum cleaner, the automatic firmware update method comprising:
[0006] Get a new firmware update request;
[0007] Control the robotic vacuum cleaner to enter standby mode;
[0008] Get the download address for the new firmware installation package;
[0009] Start downloading the new firmware installation package and monitor the download speed of the new firmware installation package in real time;
[0010] Determine if the download speed is less than 10 Mbps;
[0011] If so, control the base station corresponding to the sweeping robot to synchronously download the new firmware installation package;
[0012] Once the base station has completed downloading the new firmware installation package, the new firmware installation package will be sent to the sweeping robot via the communication module.
[0013] The automatic firmware update method of this invention, when the robotic vacuum cleaner receives a new firmware update request, first enters a standby state. After entering the standby state, it retrieves the address for downloading the new firmware installation package and begins downloading the new firmware installation package while continuously monitoring the download speed. If the download speed is less than 10 Mbps, the robotic vacuum cleaner sends information to the base station to synchronously download the new firmware installation package. After the base station finishes downloading the new firmware installation package, it sends the package to the robotic vacuum cleaner via the communication module. This setup, in cases of poor download quality, utilizes the base station to collaboratively download the new firmware installation package. After the base station completes its download, it sends the package to the robotic vacuum cleaner via the communication module, thus accelerating the installation speed of the new firmware, improving usability, and enhancing the user experience.
[0014] Furthermore, the communication module includes a 433 communication module.
[0015] Further, after the base station has completed downloading the new firmware installation package, sending the new firmware installation package to the robotic vacuum cleaner via the communication module includes:
[0016] Enable the pre-installation mechanism for new firmware installation packages;
[0017] Determine whether the current disk storage space of the robotic vacuum cleaner is greater than the file size of the new firmware installation package;
[0018] If so, control the robotic vacuum cleaner to directly install the new firmware package.
[0019] Further, determining whether the current disk storage space of the robotic vacuum cleaner is greater than the file size of the new firmware installation package includes:
[0020] If not, scan the local disk for historical cleanup map data;
[0021] Arrange the historical cleaning map data according to time;
[0022] The process begins by finding the historical cleaning map data furthest from the current time and then deleting the historical cleaning map data closest to the current time, until the current disk storage space is greater than the file size of the new firmware installation package.
[0023] Furthermore, the process of finding the historical cleaning map data furthest from the current time and then deleting the historical cleaning map data most recent to the current time, until the current disk storage space is greater than the file size of the new firmware installation package, includes:
[0024] Obtain the file size of the new firmware installation package;
[0025] Get the current storage space size of the disk;
[0026] Obtain the file size for each of the historical sweep map data files;
[0027] The file accumulation value is obtained by accumulating the historical cleaning map data that is furthest from the current time towards the historical cleaning map data that is closest to the current time;
[0028] Determine whether the current disk storage space plus the accumulated file value is greater than the file size of the new firmware installation package;
[0029] If so, delete the file corresponding to the accumulated file value.
[0030] Further, if so, after controlling the robotic vacuum cleaner to directly install the new firmware package, it includes:
[0031] The robot vacuum cleaner is controlled to transfer the old firmware installation package to the local disk of the base station and then delete the old firmware installation package.
[0032] Control the robotic vacuum cleaner to perform a trial run according to the new firmware installation package;
[0033] Determine whether the operation is normal;
[0034] If so, control the base station to delete the old firmware installation package.
[0035] Furthermore, determining whether the operation is normal includes:
[0036] If not, control the robotic vacuum cleaner to delete the new firmware installation package;
[0037] The base station is controlled to send the old firmware installation package to the sweeping robot;
[0038] Control the robotic vacuum cleaner to install the old firmware installation package;
[0039] The robot vacuum cleaner is controlled to operate according to the old firmware installation package.
[0040] Furthermore, determining whether the operation is normal includes:
[0041] The base station controls the robot vacuum cleaner to send task commands such as cleaning, returning to charging, and pausing.
[0042] Determine whether the robotic vacuum cleaner can complete the tasks such as cleaning, returning to charging, and pausing.
[0043] If so, control the robotic vacuum cleaner to operate according to the new firmware installation package.
[0044] A robotic vacuum cleaner, the robotic vacuum cleaner comprising:
[0045] The first acquisition module is used to acquire a new firmware update request;
[0046] A first control module is used to control the sweeping robot to enter a standby state.
[0047] The second acquisition module is used to acquire the address for downloading the new firmware installation package.
[0048] The download module is used to start downloading the new firmware installation package and detect the download speed of the new firmware installation package in real time.
[0049] The judgment module is used to determine whether the download speed is less than 10 Mbps;
[0050] The second control module is used to control the base station corresponding to the sweeping robot to synchronously download the new firmware installation package when the judgment module determines that the download speed is less than 10 Mbps.
[0051] A sending module is configured to send the new firmware installation package to the sweeping robot via a communication module when the base station has finished downloading the new firmware installation package.
[0052] The robotic vacuum cleaner of this invention, upon receiving a new firmware update request, first enters a standby state. After entering standby, it retrieves the address for downloading the new firmware installation package and begins downloading the new firmware installation package, while simultaneously monitoring the download speed. If the download speed is less than 10 Mbps, the robotic vacuum cleaner sends information to the base station to synchronously download the new firmware installation package. After the base station finishes downloading the new firmware installation package, it sends it to the robotic vacuum cleaner via the communication module. This configuration, in cases of poor download quality, utilizes the base station to collaboratively download the new firmware installation package. After the base station completes its download, it sends the new firmware installation package to the robotic vacuum cleaner via the communication module, thus accelerating the installation speed of the new firmware, improving usability, and enhancing the user experience.
[0053] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described automatic firmware update method.
[0054] The computer-readable storage medium of this invention, when a robotic vacuum cleaner receives a new firmware update request, first enters a standby state. After entering standby, it retrieves the address for downloading the new firmware installation package and begins downloading the new firmware installation package, while simultaneously monitoring the download speed. If the download speed is less than 10 Mbps, the robotic vacuum cleaner sends information to the base station to synchronously download the new firmware installation package. After the base station finishes downloading the new firmware installation package, it sends the package to the robotic vacuum cleaner via the communication module. This configuration, in cases of poor download quality, utilizes the base station to collaboratively download the new firmware installation package. After the base station completes its download, it sends the package to the robotic vacuum cleaner via the communication module, thus accelerating the installation speed of the new firmware, improving usability, and enhancing the user experience. Attached Figure Description
[0055] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 This is a flowchart illustrating the firmware automatic update method in an embodiment of the present invention;
[0057] Figure 2 This is another flowchart illustrating the firmware automatic update method in an embodiment of the present invention;
[0058] Figure 3 This is another flowchart illustrating the firmware automatic update method in an embodiment of the present invention;
[0059] Figure 4 This is another flowchart illustrating the firmware automatic update method in an embodiment of the present invention;
[0060] Figure 5 This is another schematic diagram of the firmware automatic update method in the embodiments of the present invention;
[0061] Figure 6 This is another flowchart illustrating the firmware automatic update method in an embodiment of the present invention;
[0062] Figure 7 This is another schematic diagram of the firmware automatic update method in the embodiments of the present invention;
[0063] Figure 8 This is a schematic diagram of a sweeping robot according to an embodiment of the present invention. Detailed Implementation
[0064] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0065] Please see Figure 1 This invention provides a firmware automatic update method for a robotic vacuum cleaner. The firmware automatic update method includes:
[0066] Step S10: Obtain a new firmware update request;
[0067] Step S20: Control the robot vacuum cleaner to enter standby mode;
[0068] Step S30: Obtain the download address for the new firmware installation package;
[0069] Step S40: Start downloading the new firmware installation package and monitor the download speed of the new firmware installation package in real time;
[0070] Step S50: Determine if the download speed is less than 10 Mbps;
[0071] If so, in step S60, control the base station corresponding to the robot vacuum cleaner to synchronously download the new firmware installation package;
[0072] Step S70: After the base station has finished downloading the new firmware installation package, the new firmware installation package is sent to the robot vacuum cleaner via the communication module.
[0073] The automatic firmware update method of this invention, when the robotic vacuum cleaner receives a new firmware update request, first enters a standby state. After entering the standby state, it retrieves the address for downloading the new firmware installation package and begins downloading the new firmware installation package while continuously monitoring the download speed. If the download speed is less than 10 Mbps, the robotic vacuum cleaner sends information to the base station to synchronously download the new firmware installation package. After the base station finishes downloading the new firmware installation package, it sends the package to the robotic vacuum cleaner via the communication module. This setup, in cases of poor download quality, utilizes the base station to collaboratively download the new firmware installation package. After the base station completes its download, it sends the package to the robotic vacuum cleaner via the communication module, thus accelerating the installation speed of the new firmware, improving usability, and enhancing the user experience.
[0074] In this embodiment of the invention, the CPU (Central Processing Unit) in the base station is superior to the CPU in the robot vacuum cleaner. Therefore, the download speed of the base station is better than that of the robot vacuum cleaner. Thus, by having the robot vacuum cleaner and the base station work together to download the new firmware installation package, the download speed of the new firmware installation package can be improved, thereby achieving the effect of quickly downloading the new firmware installation package and bringing greater practicality.
[0075] Specifically, the download speed can be achieved through the built-in sensors of the robot vacuum cleaner, which is simple in structure and easy to implement.
[0076] Furthermore, the communication module includes a 433 communication module.
[0077] The 433 communication module is a 433MHz wireless transceiver module, employing high-frequency radio frequency technology, hence also called the RF433 RF small module. It consists of a single-IC RF front-end manufactured by AllDigital Technology and an AVR microcontroller from Atmel, enabling high-speed data signal transmission and handling data packetization, error detection, and error correction. Adopting industrial-grade standards, it is stable and reliable in operation, and its small size facilitates installation. Using the 433 communication module is a preferred choice, although other types of communication modules can be used in other implementations, depending on the specific requirements; no limitations are imposed here.
[0078] Please see Figure 2 Furthermore, after the base station has completed downloading the new firmware installation package, the process of sending the new firmware installation package to the robot vacuum cleaner via the communication module includes:
[0079] Step S701: Enable the pre-installation mechanism for the new firmware installation package;
[0080] Step S702: Determine whether the current disk storage space of the robot vacuum cleaner is greater than the file size of the new firmware installation package;
[0081] If so, in step S703, control the robot vacuum cleaner to directly install the new firmware package.
[0082] Specifically, if the current disk storage space is less than the file size of the new firmware installation package, the installation of the new firmware package may fail. Therefore, a judgment process needs to be added to achieve accurate installation, thereby improving the success rate of installation and thus improving the usability of the robot vacuum cleaner.
[0083] Please see Figure 3 Furthermore, it determines whether the current disk storage space of the robot vacuum cleaner is greater than the file size of the new firmware installation package, including:
[0084] If not, step S7021: Scan the historical cleanup map data in the local disk;
[0085] Step S7022: Arrange the historical cleaning map data according to time;
[0086] Step S7023: Find the historical cleaning map data that is furthest from the current time and start deleting the historical cleaning map data that is closest to the current time until the current disk storage space is greater than the file size of the new firmware installation package.
[0087] In this embodiment, if it is determined that the current disk storage space is less than the file size of the firmware installation package, the new firmware installation package cannot be installed on the current disk. In this case, it is necessary to delete the historical data in the current disk storage space to free up the current disk storage space so that the new firmware installation package can be installed successfully.
[0088] Specifically, if the current disk contains multiple historical cleaning map data, these data are sorted by time, and then the oldest historical cleaning map data is deleted. Since the oldest historical cleaning map data is not very usable, this method of deletion can free up the current disk storage space and will not affect the operation of the robot vacuum cleaner.
[0089] For example, if the current time is December 5th, and there are 5 data entries in the cleanup map: A was recorded on November 8th, B on October 7th, C on October 3rd, D on May 12th, and E on April 23rd. So, arranged by time from oldest to newest, they are E, D, C, B, and A. According to step S7023, we should start deleting from E, and then delete in the following order: D, C, B, and A.
[0090] Please see Figure 4 Furthermore, starting with the historical cleaning map data furthest from the current time, deletion proceeds towards the historical cleaning map data most recent than the current time, continuing until the current disk storage space exceeds the file size of the new firmware installation package. This includes:
[0091] Step S7024: Obtain the file size of the new firmware installation package;
[0092] Step S7025: Obtain the current disk storage space size;
[0093] Step S7026: Obtain the file size of each historical cleaning map data file;
[0094] Step S7027: Start accumulating the historical cleaning map data from the furthest point in time to the historical cleaning map data most recent in time to obtain the file accumulation value;
[0095] Step S7028: Determine whether the current disk storage space plus the accumulated file size is greater than the file size of the new firmware installation package;
[0096] If so, in step S7029, delete the file corresponding to the file's accumulated value.
[0097] In this embodiment, the deletion of historical cleaning map data is designed based on the file size of the new firmware installation package, which can avoid incorrect deletion, deletion of too few or too many data, and improve the intelligence of the robot vacuum cleaner.
[0098] For example, the new firmware installation package is 200,000KB in size, the current date is December 5th, and the current disk storage space is 160,000KB. There are five map data entries: A (recorded November 8th, 50,000KB), B (recorded October 7th, 50,000KB), C (recorded October 3rd, 60,000KB), D (recorded May 12th, 100,000KB), and E (recorded April 23rd, 50,000KB). Arranged chronologically from oldest to newest, these entries are E, D, C, B, and A. As shown above, the current disk storage space plus the file size of E equals 160,000KB plus 50,000KB, which is 210,000KB. Since 210,000KB is greater than 200,000KB, only file E needs to be deleted.
[0099] For example, the new firmware installation package is 300,000KB in size, the current date is December 5th, and the current disk storage space is 160,000KB. At this time, there are 5 pieces of map data: A was recorded on November 8th (50,000KB), B was recorded on October 7th (50,000KB), C was recorded on October 3rd (60,000KB), and D was recorded on May 12th (10,000KB). 0KB and E were recorded on April 23rd, with a file size of 50,000KB. Thus, arranged chronologically from oldest to newest, they are E, D, C, B, and A. As mentioned above, the current disk storage space plus the file size of E is 160,000KB. Adding the size of file E (50,000KB) and the size of file D (100,000KB) equals 310,000KB. Since 310,000KB is greater than 300,000KB, only files E and D need to be deleted.
[0100] Please see Figure 5 Furthermore, if the robot vacuum cleaner is directly installed with the new firmware package, it will include:
[0101] Step S7031: Control the robot vacuum cleaner to transfer the old firmware installation package to the base station's local disk and delete the old firmware installation package.
[0102] Step S7032: Control the robot vacuum cleaner to perform a trial run according to the new firmware installation package;
[0103] Step S7033: Determine if the operation is normal;
[0104] If so, in step S7034, control the base station to delete the old firmware installation package.
[0105] In this embodiment, after the robot vacuum cleaner installs the new firmware package, it sends the old firmware package to the base station's local disk and deletes the old firmware package from the robot vacuum cleaner's current disk. Then, it controls the robot vacuum cleaner to run with the new firmware package. If the operation is determined to be normal, it means that the new firmware package is compatible with the robot vacuum cleaner. At this time, the old firmware package on the base station can be directly deleted to release the disk storage space of both the robot vacuum cleaner and the base station, which is beneficial for future firmware updates.
[0106] Please see Figure 6 Furthermore, determining whether the operation is normal includes:
[0107] If not, in step S70331, control the robot vacuum cleaner to delete the new firmware installation package;
[0108] Step S70332: Control the base station to send the old firmware installation package to the robot vacuum cleaner;
[0109] Step S70333: Control the robot vacuum cleaner to install the old firmware installation package;
[0110] Step S70334: Control the robot vacuum cleaner to work according to the old firmware installation package.
[0111] In this embodiment, if the robot vacuum cleaner cannot operate normally after installing the new firmware package, it is determined that the new firmware package is incompatible with the robot vacuum cleaner. In this case, the robot vacuum cleaner will delete the new firmware package and then accept and install the old firmware package sent by the base station. This can avoid the robot vacuum cleaner from becoming unusable and is beneficial to the operation of the robot vacuum cleaner.
[0112] Please see Figure 7 Furthermore, determining whether the operation is normal includes:
[0113] Step S70335: Control the base station to send task instructions such as cleaning, returning to charging station, and pausing to the robot vacuum cleaner;
[0114] Step S70336: Determine whether the robot vacuum cleaner can complete tasks such as cleaning, returning to charging station, and pausing.
[0115] If so, in step S70337, control the robot vacuum cleaner to work according to the new firmware installation package.
[0116] In this embodiment, the base station sends cleaning, recharging, and pause task instructions to the robot vacuum cleaner. The robot vacuum cleaner then performs its work according to these instructions. If there are no abnormalities in its operation, it is determined that the robot vacuum cleaner is compatible with the new firmware installation package. The determination method is simple and convenient, which improves the working efficiency of the robot vacuum cleaner.
[0117] Please see Figure 8 A robotic vacuum cleaner, comprising:
[0118] First acquisition module 100, the first acquisition module is used to acquire new firmware update requests;
[0119] First control module 200, the first control module is used to control the sweeping robot to enter standby state;
[0120] The second acquisition module 300 is used to acquire the address for downloading the new firmware installation package.
[0121] Download module 400 is used to start downloading the new firmware installation package and monitor the download speed of the new firmware installation package in real time.
[0122] Module 500 is used to determine whether the download speed is less than 10 Mbps.
[0123] The second control module 600 is used to control the base station corresponding to the robot vacuum cleaner to synchronously download the new firmware installation package when the judgment module determines that the download speed is less than 10 Mbps.
[0124] The sending module 700 is used to send the new firmware installation package to the robot vacuum cleaner via the communication module after the base station has finished downloading the new firmware installation package.
[0125] The robotic vacuum cleaner of this invention, upon receiving a new firmware update request, first enters a standby state. After entering standby, it retrieves the address for downloading the new firmware installation package and begins downloading the new firmware installation package, while simultaneously monitoring the download speed. If the download speed is less than 10 Mbps, the robotic vacuum cleaner sends information to the base station to synchronously download the new firmware installation package. After the base station finishes downloading the new firmware installation package, it sends it to the robotic vacuum cleaner via the communication module. This configuration, in cases of poor download quality, utilizes the base station to collaboratively download the new firmware installation package. After the base station completes its download, it sends the new firmware installation package to the robotic vacuum cleaner via the communication module, thus accelerating the installation speed of the new firmware, improving usability, and enhancing the user experience.
[0126] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described automatic firmware update method.
[0127] The computer-readable storage medium of this invention, when a robotic vacuum cleaner receives a new firmware update request, first enters a standby state. After entering standby, it retrieves the address for downloading the new firmware installation package and begins downloading the new firmware installation package, while simultaneously monitoring the download speed. If the download speed is less than 10 Mbps, the robotic vacuum cleaner sends information to the base station to synchronously download the new firmware installation package. After the base station finishes downloading the new firmware installation package, it sends the package to the robotic vacuum cleaner via the communication module. This configuration, in cases of poor download quality, utilizes the base station to collaboratively download the new firmware installation package. After the base station completes its download, it sends the package to the robotic vacuum cleaner via the communication module, thus accelerating the installation speed of the new firmware, improving usability, and enhancing the user experience.
[0128] Those skilled in the art will understand that all or part of the processes in the above-described embodiments can be implemented by instructing related hardware with computer-readable instructions. These computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When executed, these computer-readable instructions can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0129] Those skilled in the art will understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.
[0130] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method of automatic updating of firmware, characterized by, The firmware automatic updating method for a sweeping robot comprises the following steps: acquiring a new firmware updating request; controlling the sweeping robot to enter a standby state; acquiring a new firmware installation package address; starting to download the new firmware installation package and detecting the downloading speed of the new firmware installation package in real time; judging whether the downloading speed is less than 10 mbps; if yes, controlling the corresponding base station of the sweeping robot to download the new firmware installation package synchronously; in the case that the new firmware installation package is downloaded in the base station, sending the new firmware installation package to the sweeping robot through a communication module; after the step of sending the new firmware installation package to the sweeping robot through the communication module, the method further comprises the following steps: starting a new firmware installation package pre-installation mechanism; judging whether the current disk storage space of the sweeping robot is greater than the file size of the new firmware installation package; if yes, controlling the sweeping robot to directly install the new firmware installation package; the step of judging whether the current disk storage space of the sweeping robot is greater than the file size of the new firmware installation package comprises the following steps: if no, scanning historical sweeping map data in the local disk; arranging the historical sweeping map data according to time; finding the historical sweeping map data farthest from the current time and starting to delete the historical sweeping map data closest to the current time until the current disk storage space is greater than the file size of the new firmware installation package; after the step of controlling the sweeping robot to directly install the new firmware installation package, the method further comprises the following steps: controlling the sweeping robot to transfer an old firmware installation package to the local disk of the base station and delete the old firmware installation package; controlling the sweeping robot to perform a trial operation according to the new firmware installation package; judging whether the operation is normal; if yes, controlling the base station to delete the old firmware installation package.
2. The firmware automatic update method of claim 1, wherein, The communication module comprises a 433 communication module.
3. The firmware automatic update method of claim 1, wherein, the step of finding the historical sweeping map data farthest from the current time and starting to delete the historical sweeping map data closest to the current time until the current disk storage space is greater than the file size of the new firmware installation package comprises the following steps: acquiring the file size of the new firmware installation package; acquiring the storage space size of the disk at the current time; acquiring the file size of each historical sweeping map data; starting to accumulate the size of the historical sweeping map data farthest from the current time to the historical sweeping map data closest to the current time to obtain a file accumulation value; judging whether the storage space size of the disk at the current time plus the file accumulation value is greater than the file size of the new firmware installation package; if yes, deleting the file corresponding to the file accumulation value.
4. The firmware automatic update method of claim 1, wherein, the step of judging whether the operation is normal comprises the following steps: if no, controlling the sweeping robot to delete the new firmware installation package; controlling the base station to send the old firmware installation package to the sweeping robot; controlling the sweeping robot to install the old firmware installation package; Control the sweeping robot to work according to the old firmware installation package.
5. The firmware automatic update method of claim 1, wherein, The judging whether the running is normal includes: Control the base station to send the sweeping robot cleaning, back charging, and pausing task instructions; Judge whether the sweeping robot can complete the cleaning, back charging, and pausing task instructions; If yes, control the sweeping robot to work according to the new firmware installation package.
6. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 5. The computer program is executed by the processor to realize the steps of the firmware automatic updating method in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for updating firmware based on device management command
CN103380415A
Firmware upgrading method, device and system of Internet of Things equipment and storage medium
CN111510323A