Updating method and device of electric tool, electric tool and storage medium
Through the multi-stage node power tool system and star flash module, the problems of machine downtime and storage space waste during power tool updates are solved, and efficient and flexible update strategies and user experience improvement are achieved.
Patent Information
- Application Number
- CN202510568047.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-12
AI Technical Summary
During the update process, existing power tools are prone to machine downtime or unavailable due to full coverage updates, and fail to effectively distinguish the update of local functional requirements, resulting in waste of storage space and degradation of user experience.
Through the multi-level node power tool system, target update strategies are generated in response to update inquiry instructions, local or global update packages are obtained and executed, and communication is optimized using the star flash module to ensure efficient transmission of update packages and reasonable utilization of storage space.
It realizes flexible meeting of local and global update requirements of power tools, improves update rate and user operation experience, and avoids waste of storage space and update exceptions.
Smart Images

Figure CN120469710A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric tools, and in particular to an updating method and device for an electric tool, an electric tool, and a storage medium. Background Art
[0002] Electric tools can replace or reduce manpower, are easy to operate, fully save manpower and time, and achieve environmental beautification, so they are widely used.
[0003] With the continuous development of technology, the intelligence level of power tools needs to be continuously improved to meet the market's demand for intelligent functions. Existing power tools complete intelligent updates by connecting to terminal applications, computer software, or USB / SD cards. These updates are generally performed in a full update mode, overwriting the update package to the target storage area of the file. This does not consider the situation where only a part of the power tool needs to be updated. If an anomaly occurs during the upgrade process or in the storage area, it will cause the entire machine to crash or, in worse cases, become unusable.
[0004] In view of this, it is indeed necessary to provide an improved method for updating a power tool to overcome the defects of the prior art. Summary of the Invention
[0005] Based on this, it is necessary to provide a power tool update method, device, power tool and storage medium that can cover global or local update needs in order to address the above technical problems.
[0006] In a first aspect, the present application provides a method for updating an electric tool, wherein the electric tool includes multiple nodes, each of the multiple nodes includes a functional module, and each of the multiple nodes controls an update operation through a processor, wherein the method for updating any node includes:
[0007] S11: In response to receiving the update query instruction, making an update request response, the update request response comprising: a target update strategy generated by the processor based on a functional module to be updated in at least one of the current node and the lower-level node;
[0008] S12: Based on the target update policy, a target update package is obtained, so that the processor controls the to-be-updated functional module to perform an update operation based on the target update package.
[0009] In one embodiment, the step of performing an update operation based on the target update package includes:
[0010] S121: Parse the target update package to obtain the first update file of the subordinate node and / or the second update file of the current node;
[0011] S122: Transmit the first update file to the lower-level node and / or overwrite the second update file to the storage area of the corresponding functional module in the current node for updating.
[0012] In one embodiment, the step S122 includes:
[0013] After obtaining a completion response of the subordinate node update operation, the update operation of the current node is performed.
[0014] In one embodiment, before the step S11, the following steps are included:
[0015] Based on the fact that the controller and the smart terminal are pre-configured with a star flash module, the star flash module is connected to a matching star flash interface to enable communication between the smart terminal and the controller, and between the controllers.
[0016] In one embodiment, the step S122 further includes:
[0017] Based on the data volume of the first update file, a corresponding Star Flash interface is selected to transmit the first update file to the subordinate node based on the Star Flash interface, and the subordinate node selects a matching Star Flash interface to receive the first update file. In one embodiment, the S11 step includes:
[0018] S111: Determine the function module to be updated in the current node according to the update query instruction;
[0019] S112: When there is a lower-level node, the update query instruction is transmitted to the lower-level node, and an update request response fed back by the lower-level node is obtained to determine the functional module to be updated of the lower-level node;
[0020] S113: After combining the functional modules to be updated to obtain a target update strategy, respond to the update requirement to the superior node.
[0021] In one embodiment, the step S111 includes:
[0022] Extracting the function modules and target version information in the update query instruction;
[0023] Comparing the target version information with the pre-stored version information according to the functional module to obtain a comparison result;
[0024] When the comparison results are inconsistent, the functional modules to be updated are determined.
[0025] In one embodiment, the step S11 further includes:
[0026] When all the comparison results are consistent, an update request response is made indicating that there is no update request.
[0027] The step S12, the step of obtaining the target update package, includes:
[0028] Obtaining a complete firmware package of the current power tool to perform a full update operation or an incremental update operation based on the complete firmware package; or
[0029] The target update package associated with the target update policy is obtained to perform an incremental update operation based on the target update package.
[0030] In a second aspect, the present application provides an update method, which is applied to a smart terminal, wherein the smart terminal is connected to a cloud and a power tool respectively, and the method includes:
[0031] S21: Obtaining the update message of the power tool pushed by the cloud;
[0032] S22: acquiring an update query instruction based on the update message, and transmitting the update query instruction to the power tool, so as to obtain an update demand response fed back by the power tool and determine a target update strategy;
[0033] S23: Downloading a target update package from the cloud according to the target update strategy, and transmitting the target update package to the power tool, so that the power tool performs an update operation based on the target update package.
[0034] In one embodiment, the step S23 includes:
[0035] When the update scope of the target update strategy meets the preset conditions, select full update and download the complete firmware package based on the full update; otherwise select incremental update and download the target update package after determining the functional modules to be updated in the target update strategy based on the incremental update.
[0036] In one embodiment, the step S23 further includes:
[0037] Get the data volume of the target update package / complete firmware package;
[0038] The Starflash interface corresponding to the Starflash module is selected according to the data volume to transmit the target update package / complete firmware package based on the Starflash interface.
[0039] In a third aspect, the present application provides an update device for an electric tool, the device comprising: a response module and an update module, wherein:
[0040] a response module, configured to respond to receiving the update query instruction and make an update request response, the update request response including a target update strategy generated by the processor based on at least one of the function module to be updated in the current node and the function module to be updated in the lower-level node;
[0041] The update module is configured to obtain a target update package based on the target update policy, so that the processor controls the function module to be updated to perform an update operation based on the target update package.
[0042] In a fourth aspect, the present application provides an electric tool equipped with the updating device described in the third aspect.
[0043] In a fifth aspect, the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the first aspect or the second aspect are implemented.
[0044] The power tool update method, apparatus, power tool, and storage medium provided above employ an update request response in response to receiving an update query instruction. The update request response includes a target update strategy generated based on at least one of the function modules to be updated in the current node and the function modules to be updated in the subordinate nodes. Based on the target update strategy, a target update package is obtained to perform an update operation based on the target update package. The implementation scheme of the present application can meet global and local update requirements, taking into account the limited storage space, eliminating the need to download redundant update packages to occupy storage space, and improving the update rate while focusing on the user's operational experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 FIG. 1 is an application environment diagram of an updating method for an electric tool in the first embodiment.
[0046] Figure 2 Schematic diagram of the structure of an electric tool in the first embodiment.
[0047] Figure 3 Schematic diagram of the structure of a lawn mower in one embodiment.
[0048] Figure 4 FIG. 4 is a flow chart of a method for updating a power tool in a second embodiment.
[0049] Figure 5 4 is a flow chart of a method for updating a power tool in a fifth embodiment.
[0050] Figure 6 FIG. 4 is a structural block diagram of an updating device for an electric tool in a sixth embodiment.
[0051] Figure 7FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0053] It should be noted that, in this document, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0054] It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are used solely to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the term "if," as used herein, may be interpreted as "upon," "when," or "in response to a determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprising" and "including" indicate the presence of the recited features, steps, operations, elements, components, items, types, and / or groups, but do not preclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups. The terms "or," "and / or," "including at least one of the following," etc., as used herein, may be interpreted as inclusive, meaning any one or any combination. For example, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”; and for another example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0055] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order, and they can be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0056] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0057] It should be noted that in this article, step codes such as S1 and S2 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial restriction on the order. When implementing the step, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.
[0058] It should be understood that the specific embodiments described herein are intended only to explain the present application and are not intended to limit the present application. In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are used solely to facilitate the description of the present application and have no specific meaning. Therefore, "module," "component," or "unit" may be used interchangeably.
[0059] Example 1
[0060] The updating method provided in this application can be applied to Figure 1 In the application environment shown, the application environment includes a cloud, a smart terminal, and an electric tool. Optionally, the electric tool is connected to the cloud via the smart terminal, or the electric tool is directly connected to the smart terminal, or the electric tool is directly connected to the cloud.
[0061] The cloud can be implemented using a standalone server or a server cluster consisting of multiple servers. The cloud in this embodiment provides various technical services for various power tools, including storing various versions of firmware packages for various power tools. When new services or new versions are available, corresponding update messages are pushed to users so that users can respond based on the corresponding update messages.
[0062] Smart terminals can be implemented in various forms. For example, the smart terminals described in this application may include smart terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0063] Power tools include chain saws, lawn mowers, trimmers, edge cutters, hedge trimmers, brush cutters, grass combers, high-pressure machines, handheld power tools (electric drills, electric hammer sanders, etc.), portable power tools (bench grinders, etc.), and garden tools (lawn mowers, hair dryers, high-pressure washers, etc.). Different power tools have different sizes and uses. Among them, handheld power tools are smaller in size and have fewer functions, so a single controller can meet basic needs. Garden tools are larger in size, and different components are usually arranged in different positions according to their different functions. For example, for lawn mowers, operating and monitoring components will be considered for deployment on the armrests, and motors, batteries, and other components will be considered for deployment on the main unit close to the ground. Therefore, in order to facilitate data management and signal transmission within the equipment, a controller will be deployed in different parts to operate the various functions of that part.
[0064] Optionally, the power tool is communicatively connected to the smart terminal. The power tool includes multiple levels of nodes, each of which includes a controller and / or a functional module, and the controllers between the nodes at each level are communicatively connected. Further, the power tool includes several controllers, each of which is used to control / manage functional modules with different functions. In this embodiment, the power tool includes multiple levels of nodes, each of which refers to a different controller or a different functional module. Accordingly, a functional module is a module used to perform a specific function of the power tool, such as a cutting function, a control function, a power supply function, a communication function, etc.; the functional module can be a hardware module or a software module.
[0065] Exemplarily, the electric tool is provided with two controllers. Figure 2-3 As shown, the power tool 100 includes a control panel 110 and a motor control board 120. The control panel 110 is a human-machine interface (HMI) used to operate and monitor the power tool, and the motor control board 120 is the physical carrier of the motor controller. A first controller 111 and a first functional module 112 are arranged on the control panel 110, and a second control board 121 and a second functional module 122 are arranged on the motor control board 120. In this embodiment, the smart terminal 200, the first controller 111, and the second controller 121 are used as different nodes for communication. In particular, the smart terminal 200 is communicatively connected to the first controller 111, and the first controller 111 is communicatively connected to the second controller 121.
[0066] The first functional module / second functional module may include program software / system software that needs to be updated, or may include the latest program software that does not need to be updated or upgraded. The intelligent terminal may be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers.
[0067] In one embodiment, after receiving the update query instruction, the current node determines whether there is a subordinate node. If there is a subordinate node, the update query instruction is passed to the subordinate node to obtain the update demand response fed back by the subordinate node, and a new update demand response is made based on the update demand response of the subordinate node; if there is no subordinate node, an update demand response is made according to the update query instruction.
[0068] Exemplarily, after receiving the update query instruction, the first controller first determines whether there is a subordinate node. In this embodiment, the second controller is the subordinate node. The update query instruction is passed to the second controller to obtain the update request response of the second controller. At the same time, the first controller also determines the functional module to be updated of the current node based on the update query instruction; then, based on the update request response of the second controller, the target update strategy of the second controller is obtained, and the functional module to be updated determined by the second controller is determined; the functional modules to be updated in the current node and the subordinate node are combined to generate a new target update strategy to make an update request response to the superior node.
[0069] Optionally, the target update strategy of the second controller may include the following: when the second controller has no subordinate nodes, the target update strategy of the second controller includes the functional modules to be updated in the second controller; when the second controller contains subordinate nodes, the target update strategy of the second controller includes the functional modules to be updated in the second controller and the functional modules to be updated in the subordinate nodes of the second controller.
[0070] To further illustrate, if the second controller contains a lower-level node, the update query instruction will be passed to the lower-level node, and so on, until there is no lower-level node and the transmission is stopped. Nodes at each level obtain the update demand response of the lower-level node based on the update query instruction. The update demand response may or may not include a target update strategy. After determining that there is no lower-level node, the second controller in this embodiment makes an update demand response to the first controller, so that the first controller determines the functional module to be updated in the second controller based on the update demand response fed back by the second controller, and then generates the target update strategy for the current node based on the functional module to be updated of the current node, and makes an update demand response to the upper node based on the target update strategy.
[0071] In one embodiment, in the first controller applied to the electric tool, based on the target update package of the update demand response transmitted from the smart terminal or the cloud, the target update strategy in the update demand response is parsed to determine the functional modules to be updated, and the target update packages are allocated one by one according to the location deployment of the functional modules to be updated, so as to complete the update operation of each functional module.
[0072] In another embodiment, a first controller used in a power tool obtains a complete firmware package in response to an update request command generated by a smart terminal or the cloud, splits the complete firmware package based on the target update policy in the update request response, and distributes the target update packages one by one to complete the update operation of each functional module. Thus, this embodiment does not require transmitting the update request response to the smart terminal or the cloud; the complete firmware package is transmitted at the same time as the update query command is issued by the smart terminal or the cloud.
[0073] In another embodiment, after the smart terminal or the cloud obtains the update demand response, the target update strategy in the update demand response is judged. When the update range meets the preset conditions, the complete firmware package is downloaded and then passed to the first controller so that the first controller can distribute the target update packages one by one based on the target update strategy.
[0074] When the current node is the first controller, its parent node is the smart terminal and its child node is the second controller; when the current node is the second controller, its parent node is the first controller and its child node can be the third controller, or no child node is required. This embodiment of the application can take into account the update requirements of local functions and the limited storage space of the system, eliminating the need to download redundant update packages to occupy storage space, improving the update rate while focusing on the user's operational experience.
[0075] Example 2
[0076] In one embodiment, Figure 4 As shown, a method for updating an electric tool is provided, wherein the method is applied to Figure 1 Taking the electric tool in the example, the electric tool includes a multi-level node, each node in the multi-level node includes at least one functional module, and each node in the multi-level node controls the update operation through a processor; wherein the update method of any node includes:
[0077] S11: In response to receiving the update query instruction, making an update request response, the update request response comprising: a target update strategy generated by the processor based on a functional module to be updated in at least one of the current node and the lower-level node;
[0078] S12: Based on the target update policy, a target update package is obtained, so that the processor controls the to-be-updated functional module to perform an update operation based on the target update package.
[0079] Further explanation: the controller can build transmission links between each node, so as to receive update query instructions and generate target update strategies.
[0080] Further explaining, in step S11, after determining the functional modules to be updated in the current node and / or lower-level nodes and generating a target update strategy, an update request response is made based on the target update strategy and fed back to the upper-level node. This functional module can be a functional module outside the controller or a functional module inside the controller.
[0081] The target update strategy in this embodiment can represent an update list consisting of at least one functional module to be updated. The controller is used to detect the update requirements of each functional module or receive the functional requirements sent by the subordinate node, thereby generating a target update strategy. Further explanation: after the current node obtains the update requirement response fed back by the subordinate node, when the subordinate node has an update requirement, the target update strategy in the update requirement response is obtained. If the current node also has an update requirement, the functional module to be updated determined in the current node is added to the target update strategy to obtain a new target update strategy, and an update requirement response is made to be fed back to the superior node.
[0082] The update query instruction in this embodiment means that the cloud or smart terminal actively initiates a query or a specific command or signal for information request to the power tool, so as to obtain the update demand information of the power tool and respond to the update demand. The update query instruction in this embodiment refers to the update service for the application / system program in the power tool, which is a query service issued to the power tool so that the power tool can respond to the update demand according to the update query instruction. Among them, the update service includes security updates, function optimization and addition, compatibility and hardware adaptation, user experience improvement, etc. For example, a security emergency update can be to immediately push a mandatory patch when a path planning vulnerability is discovered that causes a device collision risk; the user experience iteration can be to optimize the power tool application operation process based on user feedback and release it in the next version; hardware adaptation can be to optimize the charging algorithm for new high-capacity batteries to extend battery life.
[0083] The update demand response in this embodiment represents the reply to the update query instruction. After the electric tool receives the update query instruction, it makes an update demand judgment and makes an update demand response to reply to the cloud or smart terminal. The multi-level node in this application represents the node position of the controller or functional module in the electric tool, which is used to represent the order of receiving the update query instruction and the order of making the update demand response. It is further explained that after receiving the update query instruction, each node in the electric tool will perform the following actions: inquire whether there is a subordinate node, if so, pass the update query instruction, and obtain the update demand response of the subordinate node, and determine the functional module to be updated in the subordinate node based on the update demand response of the subordinate node; inquire whether the current node has an update demand, and after determining the functional module to be updated in the current node, generate a target update strategy with the functional module to be updated in the subordinate node, make an update demand response for the current node, and then feedback the update demand response to the superior node based on the generated target update strategy.
[0084] Optionally, step S11 includes:
[0085] S111: Determine the function module to be updated at the current node according to the update query instruction;
[0086] S112: When there is a subordinate node, the update query instruction is transmitted to the subordinate node, the update request response fed back by the subordinate node is obtained, and the functional module to be updated of the subordinate node is determined;
[0087] S113: Combine the functional modules to be updated, obtain the target update strategy, and respond to the update demand to the superior node.
[0088] Optionally, step S113 further includes: when the current node does not contain a lower-level node, the functional module to be updated in the current node obtains a target update strategy and makes an update demand response transmitted to the upper-level node.
[0089] It is further explained that when the current node contains a subordinate node, an update query instruction is passed to the subordinate node to obtain the update requirement response of the subordinate node, and the functional module to be updated in the current node is determined according to the update query instruction; according to the update requirement response of the subordinate node, the target update strategy of the subordinate node is obtained, and the functional module to be updated in the subordinate node is determined; the functional module to be updated in the current node is combined with the functional module to be updated in the subordinate node to generate the target update strategy of the current node, and then the update requirement response of the current node is made.
[0090] It can be seen from this that the prerequisite for any node in this embodiment to respond to an update demand is:
[0091] When there is a lower-level node, the lower-level node and the current node determine the functional module to be updated according to the update query instruction, generate the target update strategy and respond to the update demand;
[0092] When there is no subordinate node, the current node determines the functional module to be updated according to the update query instruction, generates the target update strategy and responds to the update demand.
[0093] It can be seen from this that when there is a subordinate node, the subordinate node needs to make an update demand response before the current node makes an update demand response of the current node based on the update demand response of the subordinate node.
[0094] Optionally, in step S12, the step of performing an update operation based on the target update package includes:
[0095] S121: Parse the target update package to obtain the first update file of the subordinate node and / or the second update file of the current node;
[0096] S122: Transmit the first update file to the lower-level node and / or overwrite the second update file to the storage area of the corresponding functional module in the current node for updating.
[0097] Preferably, if the first update file is assigned to the subordinate node, it is transmitted to the subordinate node in the form of the target update package of the subordinate node. If the second update file is assigned to the functional module associated with the current node, the second update file is overwritten to the corresponding storage area for updating. To further illustrate, during the use of the functional module, the corresponding data file will be stored in a fixed storage area. When the functional module in this embodiment is updated, the update file will be overwritten in the storage area of the original file. File overwriting means that when a new file is saved to an existing file location, the data of the new file will replace the data of the original file. When the operating system performs this operation, it does not directly delete the original file, but writes the new data to the disk area where the original file is located, resulting in the loss of the original file data or inaccessibility.
[0098] Further explanation, step S122 includes: after obtaining the completion response of the update operation of the lower-level node, executing the update operation of the current node. Therefore, it can be seen that the premise for any node in this embodiment to execute the update operation is that the lower-level node has completed the update operation.
[0099] Therefore, this embodiment adopts a bottom-up node order to respond to update requests and perform update operations in sequence, thereby ensuring the stability of the update process and avoiding the inability to confirm the current update position in the event of an update anomaly, such as a power outage. After the lower-level node completes the update operation, the current node is updated, and then the upper-level node is updated, thereby ensuring the continuity of the update operation and avoiding the omission of local updates.
[0100] Optionally, the upper-level node in step S11 may be a smart terminal or a controller within a device.
[0101] Optionally, step S11 includes: when the upper-level node is a smart terminal / cloud, making a final update demand response based on the generated target update strategy; when the upper-level node is a controller in the device, determining the functional modules to be updated of the current node and / or lower-level node, generating a target update strategy, and making an update demand response transmitted to the upper-level node.
[0102] In one embodiment, prior to step S11, the power tool is powered on and communicates with a smart terminal to execute an update operation on the power tool based on the smart terminal. Specifically, the power tool receives an update query instruction and a target update package / complete firmware package transmitted by the smart terminal. Further, after the power tool is powered on, it can communicate with the smart terminal using short-range communication technologies such as Bluetooth / Wi-Fi / StarFlash. Optionally, the smart terminal generates an update query instruction based on the user's update operation and transmits it to the power tool, thereby achieving the purpose of updating based on human instructions, thereby achieving the purpose of focusing on user experience and intelligent interaction.
[0103] Optionally, step S111, based on the update query instruction, determines the step of the functional module to be updated of the current node, including: extracting the functional module and its target version information in the update query instruction; comparing the target version information with the pre-stored version information according to the functional module to obtain the comparison result; when the comparison result is inconsistent, determining the functional module to be updated. Among them, the target version information may include a flag bit, which is a binary bit used to indicate the system or software status during the update process, helping the system to manage the update process, ensure that the update is executed correctly and roll back or recover when a problem occurs. Further explanation, in this application, the flag bit can be used to determine whether each functional module needs to be updated and upgraded. For example, by comparing the target flag bit in the update query instruction with the original flag bit pre-stored in each node, it is determined whether the current node has a functional module that needs to be updated and upgraded. If the comparison result is consistent, it is determined that no update is required, otherwise the functional module with update requirements is determined.
[0104] Optionally, step S111 further includes: when the comparison results are consistent, responding that there is no update requirement. Further, extracting the functional module and its target version information in the update query instruction, comparing the target version information with the pre-stored version information according to the functional module, and obtaining a comparison result; when the comparison results are inconsistent, determining that the functional module has an update requirement; when the comparison results are consistent, determining that the functional module does not have an update requirement.
[0105] In one embodiment, in step S12, the step of obtaining the target update package includes:
[0106] Obtain a complete firmware package of the current power tool to perform a full update operation or an incremental update operation based on the complete firmware package; or obtain a target update package associated with a target update policy to perform an incremental update operation based on the target update.
[0107] In this embodiment, the complete firmware package / target update package can be downloaded through a smart terminal. Specifically, one way is to download the complete firmware package of the power tool through a smart terminal, extract the target update package and distribute it. One way is to extract all the update packages in the complete firmware package and distribute them, wherein the complete firmware package includes the target update package associated with the target update policy. One way is to download the target update package associated with the target update policy through a smart terminal, and then distribute the target update packages one by one according to the target update policy. Therefore, when obtaining the complete firmware package of the current power tool, the current update operation is selected as a full update or an incremental update; when obtaining the target update package associated with the target update policy, the current update operation is determined to be an incremental update.
[0108] Optionally, the step of obtaining the target update package further illustrates that, when the upper-level node is a smart terminal, an update request response is used to provide feedback to the smart terminal indicating the functional modules of the current power tool that need to be updated. The smart terminal then determines the functional modules to be updated in the current power tool based on the target update strategy parsed from the update request response, and then determines the target update package to be transmitted. This achieves the purpose of updating and upgrading the local functional modules, reduces the storage space required for the update package, increases the update transmission rate, and enhances the user experience. Furthermore, since the smart terminal can interact with a remote server, the smart terminal can download the target update package in real time based on the update request response, thereby avoiding inefficient use of the smart terminal's storage space.
[0109] In the above-mentioned power tool update method, in response to receiving an update query instruction, an update requirement response is made, and the update requirement response includes a target update strategy generated based on at least one of the functional modules to be updated in the current node and the functional modules to be updated in the lower-level nodes; based on the target update strategy, a target update package is obtained to perform an update operation based on the target update package. The embodiment of the present application determines the local update requirement of the power tool based on the multi-level nodes in the power tool receiving the update query instruction in sequence and making the update requirement response, and obtains the update package or global update package corresponding to the local update requirement based on the target update strategy. It can meet global and local update requirements, avoid downloading redundant update packages to occupy transmission space, improve the update rate, and focus on the user operation experience.
[0110] Example 3
[0111] Based on the first and second embodiments, before step S11, a communication link is established between the smart terminal and the controller, and between the controllers. Optionally, a short-range wireless communication technology such as Bluetooth, WiFi, or StarFlash is used to establish the communication link.
[0112] Exemplarily, the power tool further includes a first communication module and a second communication module, and the first controller and the second controller interact via the first communication module and the second communication module. Specifically, the first controller is connected to the first communication module, the second controller is connected to the second communication module, and the first communication module is connected to the second communication module and the smart terminal, thereby respectively connecting the first controller to the second controller and the smart terminal. Preferably, the communication link is established using Starflash wireless communication technology.
[0113] In this embodiment, before step S11, it includes: based on the pre-configured Star Flash module in each controller and smart terminal, the Star Flash module is connected to the matching Star Flash interface to enable communication between the smart terminal and the controller, and between the controllers.
[0114] Optionally, based on the Star Flash module design, step S122 further includes: selecting a corresponding Star Flash interface based on the data volume of the first update file, transmitting the first update file to the subordinate node based on the Star Flash interface, and causing the subordinate node to select a matching Star Flash interface to receive the first update file. Further explanation: when the quantity of the first update file exceeds a predetermined data volume, the SLB interface is selected to transmit the first update file, and accordingly, the subordinate node selects the SLB interface to receive the first update file. When the quantity of the first update file does not exceed a predetermined range, the SLE interface is selected to receive the first update file.
[0115] To further illustrate, the first communication module / second communication module needs to achieve the purpose of receiving and sending signals. When using short-range wireless communication technologies such as Bluetooth and WiFi, a signal receiving module and a signal transmitting module are arranged at each node. Compared with the low power consumption advantages of Bluetooth technology and the high efficiency advantages of WiFi technology, this embodiment preferably uses Star Flash technology, which has the functions of receiving and sending signals. In addition to the advantages of low power consumption and high efficiency, it also has advantages such as stability and coverage.
[0116] In one embodiment, multiple power tools are connected simultaneously via a smart terminal to assist in the update and upgrade of multiple power tools. Furthermore, according to the IP address allocation rules, 1-256 power tools are pre-connected via the smart terminal. Thus, when a functional module has an update service, an update operation is executed in the smart terminal to generate an update query instruction. After the update query instruction is distributed to the power tools, the target demand response of each power tool is obtained. Then, based on the target demand response of each power tool, the corresponding target update package is transmitted. In this way, the purpose of controlling the batch upgrade of multiple power tools based on the smart terminal in the Star Flash communication environment is achieved.
[0117] Optionally, the Star Flash module includes a Star Flash access layer, which consists of two parts: basic access (SLB) and low-power access (SLE). The SLB interface is benchmarked against Wi-Fi technology, with faster speeds, lower latency, and higher data transmission efficiency; the SLE interface is benchmarked against Bluetooth technology, with lower power consumption. Different Star Flash interfaces are selected according to different business needs to provide different transmission services. Therefore, when real-time data transmission is required, the SLB interface can be selected; when the system is updated, the SLE interface can be selected.
[0118] Example 4
[0119] Based on Example 1, Example 2, and Example 3, the updating method provided in this application is further explained by taking a lawn mower as an example.
[0120] The lawn mower consists of a control panel, a motor control board, and a battery pack. The control panel uses a human-machine interface (HMI). Users operate and monitor the mower's operation through the control panel, which communicates with smart terminals via Bluetooth, StarFlash, and WiFi to receive update queries or send status information. The motor control board controls motor operation and communicates with the battery pack (BMS) and the control panel (HMI) via UART, Bluetooth, and StarFlash. The battery pack also communicates with the motor control board via UART, Bluetooth, and StarFlash, transmitting information such as the current battery level and operating status.
[0121] Furthermore, a communication link is established between the smart terminal and the lawn mower. An update query command is sent to the control panel (HMI) via an app on the smart terminal. Alternatively, a complete firmware package containing update files for all functional modules is retrieved from the cloud via the app on the smart terminal. After the lawn mower responds to the update query command, the complete firmware package is transmitted to the control panel (HMI).
[0122] Furthermore, the control panel sends an update query instruction to the motor control board, and the motor control board passes the update query instruction to the battery pack to inquire whether the battery pack needs to update the program, receives the update demand response of the battery pack, and then determines the functional modules to be updated in the battery pack based on the update demand response of the battery pack. At the same time, the functional modules and their target version information in the update query instruction are extracted, and the functional modules to be updated are determined according to the functional modules. Then, the functional modules to be updated in the battery pack and the functional modules to be updated in the motor control board are combined to generate a target update strategy, make an update demand response for the motor control board, and feed it back to the control panel. Then, the control panel generates a target update strategy according to the matching processing steps, and then makes an update demand response and feeds it back to the smart terminal.
[0123] As a result, the update query is sequentially transmitted to the control panel, motor control board, and battery pack, prompting the battery pack, motor control board, and control panel to respond to the update request. Further explaining, after receiving the target update package, the control panel parses it and assigns the corresponding update files to the functional modules. After the battery pack completes the update, it transmits an update completion response to the motor control board, triggering the motor control board to execute the update. The control panel then sends a completion response to the control panel, allowing it to execute the update. Thus, a bottom-up order is adopted, prioritizing the battery pack (BMS) to ensure a safe upgrade of the battery management logic and avoid the risk of power outages. Next, the modules in the motor control board are upgraded, adjusting the motor drive algorithm and fault protection strategy. Finally, the control panel (HMI) is upgraded to avoid end-user operation during the upgrade process.
[0124] The lawn mower in this embodiment preferably uses the StarFlash module for communication. With its ultra-low latency, high reliability, and anti-interference capabilities, the StarFlash module can play a significant role in upgrade scenarios with high real-time requirements and dense equipment density. For example, its ultra-low latency significantly shortens handshake, verification, and data transmission delays during the upgrade process, making it suitable for update scenarios that require real-time response. Its high reliability and anti-interference capabilities prevent update interruptions caused by interference in outdoor scenarios with crowded Wi-Fi or Bluetooth signals. Its high transmission rate supports the rapid transmission of large firmware packages, shortening upgrade time. Its support for simultaneous connection of hundreds of devices on a single network makes it suitable for batch updates of multiple lawn mowers. Its low power consumption prioritizes small incremental updates when the battery is low.
[0125] Example 5
[0126] Based on the first embodiment, in one embodiment, Figure 5 As shown, an update method is provided, which is applied to Figure 1Taking the smart terminal in the example, the smart terminal is connected to the cloud and the power tool respectively. The method includes the following steps:
[0127] S21: Obtaining power tool update information pushed from the cloud;
[0128] S22: obtaining an update query instruction based on the update message, and transmitting the update query instruction to the power tool, so as to obtain an update demand response fed back by the power tool and determine a target update strategy;
[0129] S23: Downloading a target update package from the cloud according to the target update policy and transmitting the package to the power tool so that the power tool performs an update operation based on the target update package.
[0130] Update messages involve updates to power tool applications and system programs, and may include security updates, feature optimization and additions, compatibility and hardware adaptation, and user experience enhancements. Emergency security updates refer to the immediate push of mandatory patches when a path planning vulnerability is discovered, leading to a device collision risk. User experience iterations involve optimizing the power tool application's operating procedures based on user feedback and releasing the next version. Hardware adaptations involve optimizing charging algorithms for new high-capacity batteries to extend battery life.
[0131] To further illustrate, in this embodiment, a download service of a target update package is provided based on the published update message.
[0132] Optionally, step S23 includes: when the update range in the target update policy meets preset conditions, selecting a full update and downloading the complete firmware package based on the full update; otherwise, selecting an incremental update, and downloading the target update package after determining the functional modules to be updated in the target update policy based on the incremental update. The preset conditions may include update range parameters, update type, etc. For example, when the range of functional modules to be updated exceeds 80%, a full update is selected; otherwise, incremental updates are selected based on the modules to be updated; for another example, when updating system files, a full update is selected.
[0133] Optionally, when the electric tool samples the Star Flash module design, step S23 also includes: obtaining the data volume of the target update package / complete firmware package; selecting the Star Flash interface corresponding to the Star Flash module according to the data volume, so as to transmit the target update package / complete firmware package based on the Star Flash interface. Further explanation: when the quantity of the target update package / complete firmware package exceeds the predetermined data volume, the SLB interface is selected to transmit the target update package / complete firmware package, and accordingly, the electric tool selects the SLB interface to receive the target update package / complete firmware package. When the quantity of the target update package / complete firmware package does not exceed the predetermined range, the SLE interface is selected to transmit the target update package / complete firmware package. When the functional modules to be updated in the target update policy exceed the preset range, select full update, that is, select the complete firmware package; when the functional modules to be updated in the target update policy are lower than the preset range, select incremental update, that is, download the target update package according to the functional modules to be updated in the target update policy. Further explanation: when selecting full update, the complete firmware package is downloaded, overwriting the old version content. Therefore, it is simple and reliable, directly overwrites the old firmware, has strong compatibility, no version dependency, high security, and the signature verification process of a single complete package is simpler, reducing the risk of intermediate tampering, large resource consumption, and transmitting a complete firmware package. When selecting incremental updates, only the difference files between the old and new versions are downloaded, and a new version of the firmware package is generated by merging. It can be seen that incremental updates are resource-friendly, consume less resources, and are suitable for outdoor power tools with unstable networks; adapt to fast iteration scenarios, such as optimization of small functions that are suitable for frequent releases; improve user experience, and the user-perceived download time is short, especially for low-power devices. Preferably, when regular function iterations are performed, incremental updates are used to save resources and update time; when it is detected that the span between the device version and the target version is too large or the incremental merge fails more than a certain number of times, switch to a full update; when this update involves major security of the underlying core module (such as motor control), use a full update.
[0134] Example 6
[0135] In one embodiment, Figure 6 As shown, an updating device is provided, comprising: a response module 11 and an updating module 12, wherein:
[0136] The response module 11 is configured to: in response to receiving an update query instruction, make an update demand response, the update demand response comprising: a target update strategy generated by the processor based on a functional module to be updated in at least one of the current node and the lower-level node;
[0137] The updating module 12 is configured to obtain a target updating package based on the target updating policy, so that the processor controls the function module to be updated to perform an updating operation based on the target updating package.
[0138] In one embodiment, a power tool is provided that is equipped with the updating device of the sixth embodiment. For example, the power tool is the lawn mower 100 of the first embodiment, and the lawn mower 100 is equipped with the system updating device provided in the above embodiment.
[0139] The specific definition of the system update device can be found in the definition of the update method above and will not be repeated here. Each module in the above-mentioned system update device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.
[0140] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store system update data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an update method is implemented.
[0141] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0143] In response to receiving the update query instruction, making an update request response, the update request response including a target update strategy generated based on at least one of the function module to be updated in the current node and the function module to be updated in the lower-level node;
[0144] Based on the target update policy, a target update package is obtained, so that the processor controls the to-be-updated functional module to perform an update operation based on the target update package.
[0145] In one embodiment, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0146] In response to receiving the update query instruction, making an update demand response, the update demand response including: a target update strategy generated based on at least one of the function module to be updated in the current node and the function module to be updated in the lower-level node;
[0147] Based on the update requirement response, a target update package is obtained, so that the processor controls the to-be-updated functional module to perform an update operation based on the target update package.
[0148] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0149] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0150] The above embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A method for updating a power tool, characterized in that: The electric tool includes multiple nodes, each node in the multiple nodes includes a functional module, and each node in the multiple nodes is updated by a processor. The update method of any node includes: S11: In response to receiving the update query instruction, making an update request response, the update request response comprising: a target update strategy generated by the processor based on a functional module to be updated in at least one of the current node and the lower-level node; S12: Based on the target update policy, a target update package is obtained, so that the processor controls the to-be-updated functional module to perform an update operation based on the target update package.
2. The method for updating a power tool according to claim 1, wherein: The step of performing an update operation based on the target update package includes: S121: Parse the target update package to obtain the first update file of the subordinate node and / or the second update file of the current node; S122: Transmit the first update file to the lower-level node and / or overwrite the second update file to the storage area corresponding to the functional module in the current node for updating.
3. The method for updating a power tool according to claim 1 or 2, wherein: The step S122 includes: After obtaining a completion response of the subordinate node update operation, the update operation of the current node is performed.
4. The method for updating a power tool according to claim 2, wherein: Before the step S11, the following steps are included: Based on the fact that the controller and the smart terminal are pre-configured with a star flash module, the smart terminal and the controller are communicated with each other.
5. The method for updating a power tool according to claim 4, wherein: The step S122 further includes: Based on the data volume of the first update file, a corresponding Star Flash interface is selected to transmit the first update file to the subordinate node based on the Star Flash interface, and the subordinate node selects a matching Star Flash interface to receive the first update file.
6. The method for updating a power tool according to claim 1, wherein: The step S11 includes: S111: Determine the function module to be updated in the current node according to the update query instruction; S112: When there is a lower-level node, the update query instruction is transmitted to the lower-level node, and an update request response fed back by the lower-level node is obtained to determine the functional module to be updated of the lower-level node; S113: After combining the functional modules to be updated to obtain a target update strategy, respond to the update requirement to the superior node.
7. The method for updating a power tool according to claim 6, wherein: The step S111 includes: Extracting the function modules and target version information in the update query instruction; Comparing the target version information with the pre-stored version information according to the functional module to obtain a comparison result; When the comparison results are inconsistent, the functional modules to be updated are determined.
8. The method for updating a power tool according to claim 7, wherein: The step S11 further includes: When all the comparison results are consistent, an update request response is made indicating that there is no update request.
9. The method for updating a power tool according to claim 1, wherein: The step S12, the step of obtaining the target update package, includes: Obtaining a complete firmware package of the current power tool to perform a full update operation or an incremental update operation based on the complete firmware package; or The target update package associated with the target update policy is obtained to perform an incremental update operation based on the target update package.
10. A method for updating a power tool, applied to a smart terminal, wherein the smart terminal is connected to a cloud and at least one power tool, wherein: The method comprises: S21: Obtaining the update message of the power tool pushed by the cloud; S22: acquiring an update query instruction based on the update message, and transmitting the update query instruction to the power tool, so as to obtain an update demand response fed back by the power tool and determine a target update strategy; S23: Downloading a target update package from the cloud according to the target update strategy, and transmitting the target update package to the power tool, so that the power tool performs an update operation based on the target update package.
11. The updating method according to claim 10, characterized in that: The step S23 includes: When the update scope of the target update strategy meets the preset conditions, select full update and download the complete firmware package based on the full update; otherwise select incremental update and download the target update package after determining the functional modules to be updated in the target update strategy based on the incremental update.
12. The updating method according to claim 11, characterized in that: The step S23 further includes: Get the data volume of the target update package / complete firmware package; The Starflash interface corresponding to the Starflash module is selected according to the data volume to transmit the target update package / complete firmware package based on the Starflash interface.
13. A power tool updating device, characterized in that: The updating device comprises: a response module configured to make an update demand response in response to receiving an update query instruction, the update demand response comprising: a target update strategy generated by the processor based on a functional module to be updated in at least one of the current node and the lower-level nodes; An update module is used to obtain a target update package based on the target update strategy. Make the processor The function module to be updated is controlled to perform an update operation based on the target update package.
14. An electric tool, characterized in that: The updating device according to claim 13 is provided.
15. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.