Equipment control method and device, auxiliary module, self-moving equipment and system
By introducing the communication unit of the auxiliary module into the mobile device, the problem of difficulty for users to control the device is solved, convenient control and safe operation of the device are realized, and the user experience is improved.
Patent Information
- Application Number
- CN202310179810.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for users to control their mobile devices conveniently and quickly through the control device, which affects the user experience.
An equipment control method is provided, which communicates with the control equipment through the communication unit of the auxiliary module. The auxiliary module can obtain and execute control information while being connected and separated from the main body of the equipment, thereby realizing mapping operations and mobile control of the equipment.
It improves the user's convenience in controlling mobile devices, improves the user experience, and ensures that the device completes tasks safely and accurately in the work area.
Smart Images

Figure CN118567260A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent devices, and in particular to a device control method, apparatus, auxiliary module, self-moving device and system. Background Art
[0002] Self-moving equipment mainly refers to intelligent equipment that can perform related work tasks according to pre-set control programs, such as robots that perform various tasks in industry, and automatic lawn mowers and sweeping robots commonly used in life. Since the working process of self-moving equipment usually requires very little human operation and interference, it can save a lot of manpower and has been widely used in recent years.
[0003] Most self-moving devices include multiple functional modules for implementing different functions, such as a positioning module, a moving module, and an operation module. The modules cooperate with each other to achieve the intended functions of the self-moving device.
[0004] In actual applications, it is difficult for users to control their mobile devices conveniently and quickly through control devices, which affects the user experience. Summary of the invention
[0005] In view of this, the present application is committed to providing a device control method, apparatus, auxiliary module, self-moving equipment and system. The auxiliary module is provided with a communication unit. The auxiliary module receives control information through the communication unit, so that the user can control the self-moving equipment through the control device, effectively improving the user experience.
[0006] In a first aspect, the present application provides a device control method, which is applied to an auxiliary module of a self-moving device, wherein the self-moving device further comprises a device body, the auxiliary module is detachably connected to the device body, the auxiliary module is provided with a communication unit, and the communication unit is configured to communicate with a control device, the method comprising:
[0007] Determining a current connection status of the auxiliary module;
[0008] When the connection state is that the auxiliary module is separated from the device body, obtaining, through the communication unit, first control information sent by the control device;
[0009] Perform a mapping operation according to the first control information.
[0010] In a possible implementation manner, the device control method provided in the first aspect of the present invention further includes:
[0011] When the connection state is that the auxiliary module is connected to the device body, obtaining, through the communication unit, second control information sent by the control device;
[0012] The device body is controlled to move within the working area according to the second control information.
[0013] In a possible implementation, when the connection state is that the auxiliary module is separated from the device body and connected to the surveying and mapping device, the first control information sent by the control device is acquired.
[0014] In a possible implementation manner, the device control method provided in the first aspect of the present invention further includes:
[0015] After performing a mapping operation according to the first control information and obtaining a target map, sending the target map to the control device; or,
[0016] receiving an upload instruction, wherein the upload instruction includes a target address;
[0017] After performing a mapping operation according to the first control information and obtaining a target map, the target map is sent to the target address so that the control device downloads the target map from the target address, and the target address indicates a target user account.
[0018] In a possible implementation manner, determining the current connection state of the auxiliary module includes:
[0019] If no notification information indicating that the auxiliary module is connected to the surveying and mapping device is received within a preset time after power-on, it is determined that the auxiliary module is currently connected to the device body, wherein the notification information is provided by the surveying and mapping device;
[0020] If the notification information is received within a preset time period after power-on, it is determined that the auxiliary module is currently connected to the surveying and mapping device.
[0021] In a possible implementation manner, the second control information is obtained based on a message subscription mechanism;
[0022] The first control information is obtained based on a message subscription mechanism.
[0023] In a possible implementation manner, the acquiring the second control information based on a message subscription mechanism includes:
[0024] Determining a second communication channel corresponding to the device body from a plurality of preset communication channels;
[0025] Acquire second control information sent by the control device through the second communication channel;
[0026] The acquiring the first control information based on the message subscription mechanism includes:
[0027] Determining a first communication channel corresponding to the auxiliary module from a plurality of preset communication channels;
[0028] The first control information sent by the control device is acquired through the first communication channel.
[0029] In a possible implementation manner, the second control information includes an operation instruction and / or an operation map;
[0030] The first control information includes a map construction instruction and / or a map to be continued.
[0031] In a possible implementation manner, the second control information further includes a subject identifier of the device subject;
[0032] The first control information also includes a module identifier of the auxiliary module.
[0033] In a possible implementation, the control device includes one or more of a user terminal, a cloud platform, the surveying and mapping device, and the device body.
[0034] In a second aspect, the present invention provides a device control method, which is applied to a control device, wherein the control device communicates with the auxiliary module through a communication unit provided in the auxiliary module, the auxiliary module is detachably connected to a device body of the self-moving device, and the device body is used to move within a working area, the method comprising:
[0035] When the auxiliary module is separated from the device body, sending first control information to the auxiliary module;
[0036] The first control information is used to trigger the auxiliary module to perform mapping operations according to the first control information.
[0037] In a possible implementation manner, the device control method provided in the second aspect of the present invention further includes:
[0038] When the auxiliary module is connected to the device body, sending second control information to the communication unit or the communication module of the device body;
[0039] The second control information is used to trigger the auxiliary module to control the device body to move within the working area according to the second control information.
[0040] In a possible implementation manner, the device control method provided in the first aspect of the present invention further includes:
[0041] Send upload command;
[0042] The upload instruction includes a target address indicating a target user account, and the upload instruction is used to trigger the auxiliary device to send the target map to the target address after performing a mapping operation according to the first control information and obtaining the target map;
[0043] The target map is downloaded from the target address.
[0044] In a third aspect, the present invention provides an equipment control device, which is applied to an auxiliary module of a self-moving device, wherein the self-moving device further comprises an equipment body, the auxiliary module is detachably connected to the equipment body, the auxiliary module is provided with a communication unit, and the communication unit is configured to communicate with a control device, the device comprising:
[0045] a determining unit, configured to determine a current connection state of the auxiliary module;
[0046] an acquiring unit, configured to acquire, through the communication unit, first control information sent by the control device when the connection state is that the auxiliary module is separated from the device body;
[0047] A control unit is used to perform a mapping operation according to the first control information.
[0048] In a fourth aspect, the present invention provides an auxiliary module, comprising: a memory, a processor, and a computer program stored in the memory and executed by the processor, wherein the processor implements the steps of the device control method as described in any one of the first aspects of the present invention when executing the computer program.
[0049] In a fifth aspect, the present invention provides a self-moving device, comprising: a device body and the auxiliary module as described in the fourth aspect of the present invention;
[0050] When the self-moving device is operating, the auxiliary module is installed on the main module.
[0051] In a sixth aspect, the present invention provides an automatic working system, comprising: a control device and a self-moving device, wherein the self-moving device comprises a device body and an auxiliary module as described in the fourth aspect of the present invention, and the auxiliary module is detachably connected to the device body.
[0052] Based on the above content, the device control method provided by the present application is applied to the auxiliary module of the self-mobile device. The auxiliary module is provided with a communication unit, which can communicate with the control device through the communication unit. The auxiliary module first determines the current connection status of the auxiliary module, and when the connection status is that the auxiliary module is separated from the device body, the auxiliary module obtains the first control information sent by the control device through the communication unit, and then continues to perform mapping operations according to the first control information. In the control method provided by the present application, the auxiliary module is provided with a communication unit, which can be connected to the control device for communication. The auxiliary module receives the first control information sent by the control device and can perform mapping operations according to the first control information. Therefore, through this method, the user can control the self-mobile device through the control device, improve the convenience of use, and help improve the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 It is a structural schematic diagram of an automatic working system provided by an embodiment of the present invention.
[0055] Figure 2 It is a flow chart of a device control method provided by an embodiment of the present invention.
[0056] Figure 3 It is a schematic diagram of a working scenario of a self-moving device provided by an embodiment of the present invention.
[0057] Figure 4 It is a flow chart of another device control method provided by an embodiment of the present invention.
[0058] Figure 5 It is a schematic diagram of an application scenario of an auxiliary module provided by an embodiment of the present invention.
[0059] Figure 6 It is a structural schematic diagram of a device control device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0061] As mentioned above, the self-moving equipment mentioned in this application mainly refers to intelligent equipment that can perform relevant work tasks according to pre-set control programs. In actual applications, self-moving equipment includes robots that perform various tasks in industry, as well as automatic lawn mowers, sweeping robots, automatic snow sweepers, automatic irrigation machines, etc. commonly used in life.
[0062] The self-moving device includes a positioning module, a moving module, an operation module, etc. Usually, the normal operation of the self-moving device is ensured by the mutual cooperation of various parts.
[0063] In actual applications, although the operation process of the self-moving device does not require much human involvement, necessary control operations are still required. For example, before the automatic lawn mower starts mowing, the automatic lawn mower needs to obtain the operation map and set necessary working parameters such as the mowing time and the equipment travel speed. Alternatively, during the operation of the automatic lawn mower, the automatic lawn mower needs to be controlled to stop running or recalled. In the prior art, the self-moving device usually does not have the ability to communicate directly with the control device, such as a smart phone. Therefore, it is difficult for users to control the self-moving device conveniently and quickly through the control device, which affects the user experience.
[0064] To solve this problem, the present invention provides an automatic working system, see Figure 1 As shown, the automatic working system provided by the present invention includes: a self-moving device 10 and a control device 20. The self-moving device 10 includes an auxiliary module 101 and a device body 102, and the auxiliary module 101 is detachably connected to the device body 102. As for the control device 20, Figure 1 Two optional implementations are given as examples, that is, the control device 20 can be an intelligent terminal, such as a smart phone, a tablet computer, etc., and can also be located on a cloud platform on the network side. Furthermore, according to the subsequent content, the control device 20 can also be the device body of a self-mobile device or a surveying and mapping device used in a mapping operation. The surveying and mapping device can also provide an installation location and power supply for the auxiliary module 101, and the user can push the surveying and mapping device to move. The selection of the control device 20 in different application scenarios will be specifically expanded in the subsequent content and will not be described in detail here.
[0065] It should be emphasized that the auxiliary module 101 itself is provided with a communication unit ( Figure 1 (not shown in the figure), the communication unit is configured to communicate with the control device 20, based on which the auxiliary module 101 can be connected to the control device 20 through the communication unit.
[0066] In practical applications, the auxiliary module 101 can be configured as an RTK (Real Time Kinematic) module. When combined with the device body 102 to form a self-moving device 10, the auxiliary module 101 can be used to obtain positioning signals, determine the position of the self-moving device 10 in the corresponding operation map based on the positioning signals, and further control the operation process of the self-moving device 10. Furthermore, the auxiliary module 101 configured as an RTK module can also perform mapping operations. Of course, in practical applications, the positioning technology used by the auxiliary module 101 is not limited to RTK technology, but can also be other positioning technologies. The auxiliary module 101 can also be configured as a module with other functions. As long as it is a module that can execute the device control method provided in the subsequent embodiments of the present invention, it is optional, and, under the premise of not exceeding the core idea of the present invention, it also belongs to the scope of protection of the present invention.
[0067] As for the device body 102, it is used to move in the working area and may include a housing, wheels, and a drive motor, etc. The drive motor may be used to drive the wheels to rotate. The device body 102 may be any device body that can cooperate with the auxiliary module 101 in practical applications, such as the device body of the automatic lawn mower and the device body of the automatic snow sweeper mentioned in the above content. The present invention does not limit the specific selection of the device body 102.
[0068] based on Figure 1 The automatic working system shown in the figure, the embodiment of the present invention provides a device control method, which is applied to the auxiliary module and the control device in the self-mobile device. The auxiliary module first determines the current connection state of the auxiliary module, and when the connection state is that the auxiliary module is connected to the device body, obtains the second control information sent by the control device through the communication unit, and then controls the device body to move in the working area according to the second control information. The communication unit can be a 4G / 5G unit, a wifi unit, a Bluetooth unit or other wireless communication unit. Through this method, the user can control the device body through the control device, improve the convenience of using the device body, and help improve the user's experience.
[0069] See also Figure 2 The process of the device control method provided by the embodiment of the present invention at least includes:
[0070] S100: The auxiliary module determines its current connection status.
[0071] As mentioned above, in each embodiment of the present application, the auxiliary module is provided with a communication unit, and the auxiliary module can communicate with the control device through its own communication unit. In addition, the auxiliary module is detachably connected to the device body, so the connection state of the auxiliary module at least includes the following situations: one is connected to the device body, and the other is separated from the device body. Among them, when the auxiliary module has an RTK function or a similar navigation and positioning function, the state in which the auxiliary module is separated from the device body can be further subdivided into two situations: not connected to any device and connected to a surveying and mapping device used for mapping operations. Furthermore, the auxiliary module itself is usually not provided with a power module and does not have the ability to work independently. Only when it is connected to the device body or to the surveying and mapping device, the device body or the surveying and mapping device to which it is connected provides power, and the auxiliary module can be powered on and started normally.
[0072] Based on the above content, in a possible implementation, when the auxiliary module is connected to the surveying and mapping device, the main control chip of the surveying and mapping device will actively send notification information to the auxiliary module after establishing the connection relationship, and when the auxiliary module is connected to the device body, the main control chip of the device body will not send notification information of similar functions to the auxiliary module. Therefore, for the auxiliary module, it can be determined whether it is currently connected to the device body or the surveying and mapping device according to whether the notification information is received after power-on. Specifically, if the auxiliary module does not receive the notification information indicating that the auxiliary module is connected to the surveying and mapping device within the preset time after power-on, it is determined that the auxiliary module is currently connected to the device body, that is, in the case of no notification information, the auxiliary module is connected to the device body by default. On the contrary, if the auxiliary module receives the notification information within the preset time after power-on, it is determined that the auxiliary module is currently connected to the surveying and mapping device.
[0073] It should be noted that the aforementioned preset duration can be set based on the performance parameters of the surveying and mapping equipment and the auxiliary module, the communication mechanism between the surveying and mapping equipment and the auxiliary module, and the control requirements in actual applications. The present invention does not limit the specific value of the preset duration.
[0074] S110. When the auxiliary module is connected to the device body, the control device sends second control information to the auxiliary module.
[0075] First of all, it should be noted that the auxiliary module mentioned in this step is connected to the device body, which is not necessarily a restriction condition for the control device to send the second control information to the auxiliary module, and can only be regarded as a possible situation for sending the second control information. In other words, whether the control device sends the second control information to the auxiliary module has no direct constraint relationship with whether the auxiliary module is connected to the device body. The user operates the control device and sends the second control information to the auxiliary module through the control device. For the user, whether the auxiliary module is connected to the device body does not affect its behavior of sending the second control instruction. For example, in a possible application scenario, the user inadvertently triggers the control device to send the second control information. In this case, it is very likely that the auxiliary module is not connected to the device body.
[0076] Based on the above, in a possible implementation, the auxiliary module may be configured to refuse to receive the second control information when not connected to the device body, or to not respond to the received second control information and discard it as invalid information.
[0077] In another possible implementation, the connection between the auxiliary module and the control device can be used as a restriction condition. Specifically, the control device can formulate a communication protocol with the auxiliary module. For example, after the auxiliary module determines that it is currently connected to the device body, it sends preset information to the control device. After receiving the preset information, the control device will send the second control information to the auxiliary module. In the case of not receiving the preset information, even if the user operates the control device to try to send the second control information, the control device may not respond to the control operation.
[0078] As an optional implementation method, the control device can send the second control information to the auxiliary module based on the message subscription mechanism. According to the basic principle of the message subscription mechanism, TOPIC (topic) as a communication channel needs to be pre-set, and TOPIC exists in pairs, and a two-way communication includes two unidirectional TOPICs. In the application scenario of this embodiment, multiple TOPICs are usually pre-set by the control device, that is, multiple preset communication channels are provided. When sending the second control information, it is only necessary to determine the communication channel corresponding to the device body.
[0079] Taking the cloud platform as a control device as an example, before the auxiliary module and the device body leave the factory, the cloud platform needs to generate a module configuration file for the auxiliary module and a main configuration file for the device body.
[0080] Specifically, the manufacturer's management device generates the module serial number of the auxiliary module and the software version number of the auxiliary module system software, and then the management device uploads the obtained module serial number and software version number to the cloud platform. The cloud platform generates an encrypted module configuration file based on the obtained module serial number, software version number and pre-agreed configuration requirements (file size, format, etc.). The module configuration file records the module serial number, first communication certificate, software version number, machine model and other related information of the auxiliary module. Correspondingly, the manufacturer's management device will also upload the main serial number and software version number of the device main body to the cloud platform, and the cloud platform will generate an encrypted main configuration file. The main configuration file includes the main serial number, the main software version number, machine model and other related information. In short, for the cloud platform, any information about the auxiliary module and the device main body is clearly known.
[0081] Furthermore, before the auxiliary module and the main device are shipped out of the factory, the cloud platform sends their respective configuration files to the manufacturer's management device, and the management device sends the module configuration file to the auxiliary module storage space and the main configuration file to the storage space of the main device.
[0082] Based on the above content, the control device can establish a preset communication channel according to the pre-stored auxiliary module and the relevant information of the device body. In actual application, it only needs to send the second control information to the corresponding preset communication channel.
[0083] S120: When the auxiliary module is connected to the device body, obtain second control information sent by the control device through the communication unit.
[0084] Similar to the process of the control device sending the second control information, the auxiliary module described in this step is connected to the device body, which is also not necessarily a restriction condition for the auxiliary module to obtain the second control information, but is only a possible situation for receiving the second control information. For the auxiliary module, it can choose to activate the communication unit and obtain the second control information sent by the control device through the communication unit when it is connected to the device body; of course, it can also obtain the second control information through the communication unit in any case.
[0085] It is understandable that, although the connection between the auxiliary module and the device body may not be a restriction on whether the auxiliary module receives the second control information, it must be a prerequisite for whether the auxiliary module can control the device body according to the second control information, because only when the auxiliary module is connected to the device body can the auxiliary module control the device body.
[0086] In a possible implementation, the control device sends the second control information to the auxiliary module based on a message subscription mechanism, and correspondingly, the auxiliary module also needs to receive the second control information based on the message subscription mechanism.
[0087] Specifically, the auxiliary module also obtains its own module parameter information based on the module configuration file stored in itself during operation. At the same time, since the auxiliary module is connected to the device body, the auxiliary module can also obtain the main body parameter information recorded in the main body configuration file of the device body.
[0088] As a possible implementation, the auxiliary module is connected to the device body through a wired communication method, such as serial communication or CAN interface communication, and the auxiliary module can obtain the main body parameter information based on the wired communication method. For example, after the auxiliary module is powered on, it sends an information acquisition request to the device body, and the device body responds to the information acquisition request and provides the auxiliary module with the aforementioned main body parameter information.
[0089] Based on the foregoing content, it can be known that the module configuration file of the auxiliary module includes a first communication certificate, and the first communication certificate is used to establish a communication connection between the auxiliary module and the cloud platform. Based on this, in a possible implementation, the auxiliary module first establishes a communication connection with the cloud platform based on the first communication certificate, and determines a second communication channel corresponding to the device body from multiple preset communication channels, and finally obtains the second control information of the cloud platform through the second communication channel.
[0090] S130. The auxiliary module controls the device body to move within the working area according to the second control information.
[0091] As mentioned above, autonomous equipment can complete work tasks with very little human intervention. In practical applications, in order to ensure the safe operation of autonomous equipment and to ensure that the autonomous equipment does not collide with other people or objects during operation and cause work accidents, it is often necessary to limit the working area of the autonomous equipment.
[0092] See also Figure 3 As shown, Figure 3 The closed area corresponding to the closed curve L1 is the working area of the self-moving device 100, and the self-moving device 100 moves in the working area. Taking an automatic lawn mower as an example, the automatic lawn mower moves within the range of the closed curve L1 and performs lawn mowing operations in the working area. Figure 3In the figure, two operating paths commonly used by the self-moving device 100 are also given, namely the spiral operating path shown by L2 and the bow-shaped operating path shown by L3. Of course, L1 is not only the boundary of the working area, but also the operating path when the self-moving device 100 works along the edge, that is, the self-moving device also needs to move according to L1 to complete the operating task of the entire working area. Of course, in actual applications, the working area of the self-moving device can also be limited by other means. When the auxiliary module controls the movement of the device body according to the second control information, it should ensure that the device body is always within the working area.
[0093] Usually, the working area is recorded in the form of a work map. Therefore, when the auxiliary module is connected to the device body, the second control information includes the work map. After obtaining the second control information, the auxiliary module can control the device body to move within the working area defined in the work map according to the work map in the second control information. In a possible implementation, the second control information specifically includes a map identifier of the work map. The auxiliary module can store at least one work map locally. After obtaining the map identifier in the second control information, the auxiliary module uses the work map corresponding to the map identifier as the work map required for the current operation among the multiple work maps stored locally. Of course, in order to save the internal storage space of the auxiliary module, the auxiliary module may not store any work maps locally, but store all work maps in the cloud platform. After obtaining the second control information, the auxiliary module downloads the work map corresponding to the map identifier from the cloud platform according to the obtained map identifier. This is also optional.
[0094] Furthermore, during the movement of the self-mobile device, the user may need to adjust the movement of the self-mobile device according to the actual situation, such as controlling the self-mobile device to stop running, accelerate or decelerate, etc. Therefore, the second control information may also include operation instructions. As for the specific operation instructions included in the second control information, it needs to be determined in combination with the actual control requirements, and will not be listed here one by one. If it does not exceed the scope of the core idea of the present invention, it also belongs to the scope of protection of the present invention.
[0095] Of course, the second control information may also include both the operation map and the operation instruction, so as to control the operation process of the self-equipped device more accurately and more in line with the user's own needs. For example, the user may specify the operation map based on which the self-equipped device operates in the second control information, and at the same time, limit the time or location of the start of the operation.
[0096] In a possible implementation, the second control information may also include a subject identifier of the device subject. The subject identifier should be selected to ensure that it can uniquely represent the device subject, that is, there is a one-to-one correspondence between the subject identifier and the device subject. For example, the serial number of the device subject or the universally unique identifier (UUID) of the device subject may be selected.
[0097] In the present application, the subject identifier in the second control information is mainly used for matching verification. In a possible implementation, after the auxiliary module is connected to the device body, it interacts with the device body in a wired communication mode to obtain the subject identifier of the currently connected device body. Based on this, after obtaining the subject identifier in the second control information, the subject identifier of the currently connected device body is compared with the subject identifier in the second control information. If the two are consistent, it means that the second control information matches the currently connected device body, and the second control information can be further responded to. On the contrary, if the two are inconsistent, it can be determined that the second control information does not match the currently connected device body. In this case, the auxiliary module can not respond to the second control information.
[0098] For the auxiliary module, the connected device body can also be matched and verified according to the body identification in the second control information. As mentioned above, after the auxiliary module is connected to the device body, the body identification of the currently connected device body is obtained by wired communication, and it is compared with the body identification in the second control information. If the two are consistent, the auxiliary module can determine that the currently connected device body is correct, and then control the device body according to the second control information. On the contrary, if the two are inconsistent, it means that the device body currently connected to the auxiliary module is wrong, and then the device body is no longer controlled.
[0099] In another possible implementation, after acquiring the second control information, the auxiliary module sends the second control information to the device body. The device body extracts the body identifier in the second control information, and compares the obtained body identifier with the body identifier recorded in its own configuration file. If the two are consistent, the device body responds to subsequent control instructions from the auxiliary module. On the contrary, if the two are inconsistent, it means that the obtained second control information does not match the device body, and the device body may not respond to subsequent control instructions from the auxiliary module.
[0100] Of course, in any of the above embodiments, if it is determined that the auxiliary module, the device body, and the second control information do not match, the auxiliary module may further feedback an alarm message to the control device, prompting the control device that there is a matching problem.
[0101] Taking into account that in actual applications, the control device usually communicates directly with the auxiliary module. For the control device, the device body to which the auxiliary module is specifically connected may be uncertain. By carrying the body identifier in the second control information, the match between the second control information and the device body can be effectively ensured, thereby avoiding the self-mobile device responding to erroneous control information and causing control confusion between different self-mobile devices.
[0102] To sum up, in the control method provided in the embodiment of the present invention, the auxiliary module is provided with a communication unit, which can be connected to the control device for communication. The auxiliary module receives the second control information sent by the control device, and can control the operation of the device body according to the second control information. Therefore, through this method, the user can control the device body through the control device, thereby improving the convenience of using the device body and helping to improve the user's experience.
[0103] In another possible implementation, the device body may be provided with a communication module, and the device body may obtain the second control information through its own communication module. The communication module of the device body may be a wireless communication module or a wired communication module.
[0104] The above embodiments focus on the control process when the auxiliary module is connected to the device body. The following describes how the control device controls the auxiliary module and the surveying and mapping equipment connected to the auxiliary module to perform mapping operations when the auxiliary module is separated from the device body.
[0105] See also Figure 4 , Figure 4 is a flow chart of another device control method provided by an embodiment of the present invention. The process of the device control method provided by this embodiment may include:
[0106] S200: The auxiliary module determines its current connection status.
[0107] The specific implementation of the auxiliary module to determine its current connection status can be referred to Figure 2 The relevant contents of S100 in the illustrated embodiment will not be repeated here. It should be emphasized that the separation of the auxiliary module from the device body includes at least two situations, one of which is that the auxiliary module is not connected to any device, and the other is that the auxiliary module is connected to the surveying and mapping device when it is separated from the device body. The control process of the auxiliary module will be specifically expanded for these two situations later.
[0108] S210: When the auxiliary module is separated from the device body, the control device sends first control information to the auxiliary module.
[0109] and Figure 2The specific implementation process of S110 in the illustrated embodiment is similar. The separation of the auxiliary module from the device body described in this step is not necessarily a limiting condition for the control device to send the first control information to the auxiliary module, and can only be regarded as a possible situation for sending the first control information. In other words, the control device can send the first control information to the auxiliary module under any circumstances. Under this premise, if the first control information is sent when the auxiliary module is separated from the device body, the first control information can be effectively responded to, and the control effect is better.
[0110] Based on the above, in a possible implementation, the auxiliary module may be configured to refuse to receive the first control information when connected to the device body, or to not respond to the received first control information and discard it as invalid information.
[0111] In another possible implementation, the auxiliary module can be separated from the control device as a restriction condition. Specifically, the control device can formulate a communication protocol with the auxiliary module. For example, after the auxiliary module is powered on and started, if it is determined to be separated from the device body, that is, it is not currently connected to any device body, it can be broadcast to send preset information to the control device according to a preset period. The preset information is used to indicate that the auxiliary module is currently separated from the device body. After the control device receives the preset information, it can send the first control information to the auxiliary module. Of course, if the preset information is not received, even if the user operates the control device to try to send the first control information, the control device may not respond to the control operation.
[0112] Similar to the process of sending the second control information, the control device can also send the first control information to the auxiliary module based on the message subscription mechanism. Of course, when sending the first control information, the control device needs to select a preset communication channel different from that when sending the second control information. The specific sending process can be referred to the above content and will not be repeated here.
[0113] S220: When the auxiliary module is separated from the device body, the auxiliary module obtains first control information of the control device through the communication unit.
[0114] Similar to the case of obtaining the second control information, the auxiliary module is separated from the device body, which is also not necessarily a limiting condition for the auxiliary module to obtain the first control information, but is only a possible case of receiving the first control information. For the auxiliary module, it can choose to activate the communication unit and obtain the first control information sent by the control device through the communication unit when it is separated from the device body; of course, it can also obtain the first control information through the communication unit in any case.
[0115] It can be understood that in this embodiment, the first control information is mainly used for mapping operations. Therefore, when the auxiliary module is connected to the device body, the auxiliary module can receive the first control information, but even if the auxiliary module receives the first control information, it cannot respond to the first control information. Based on this, the separation of the auxiliary module from the device body may not be a restriction on whether the auxiliary module receives the first control information, but it must be a prerequisite for whether the auxiliary module can perform mapping operations according to the first control information, that is, only when the auxiliary module is separated from the device body can the auxiliary module build a map according to the first control information.
[0116] In a possible implementation, the control device sends the first control information to the auxiliary module based on a message subscription mechanism, and accordingly, the auxiliary module also needs to receive the first control information based on the message subscription mechanism. Referring to the aforementioned process of receiving the second control information, the auxiliary module can determine the first communication channel corresponding to the auxiliary module from a plurality of preset communication channels, and obtain the first control information sent by the control device through the first communication channel. As for the specific implementation process of obtaining the first control information based on the message subscription mechanism, please refer to the aforementioned content and will not be described in detail here.
[0117] In a possible implementation, the efficiency of determining the first communication channel can be improved by constructing a preset mapping relationship (of course, it can also be used to determine the aforementioned second communication channel). Specifically, the preset mapping relationship records the correspondence between the module identifiers of different auxiliary modules and the preset communication channels, and the module identifier of the auxiliary module is recorded in the module configuration file. By querying the preset mapping relationship, the auxiliary module can determine the preset communication channel corresponding to its own module identifier, and then determine the first communication channel.
[0118] S230: The auxiliary module performs a mapping operation according to the first control information.
[0119] In a possible implementation, the auxiliary module is configured with a power module, and the auxiliary module can work independently without being connected to the device body or the mapping device through the power provided by the power module. In this case, the user can move the auxiliary module by holding the auxiliary module or mounting the auxiliary module on other mobile devices (such as remote control cars), so that the auxiliary module can obtain the location data during the movement. The subsequent process of generating a map based on the location data can be completed by the auxiliary module, or the auxiliary module can transmit the location data to the device body or the control device, and the device body or the control device generates the map data based on the location data.
[0120] In another possible implementation, the working power of the auxiliary module is provided by the device body or the surveying and mapping device. Therefore, the auxiliary module can effectively respond to the first control information only when the auxiliary module is separated from the device body and connected to the surveying and mapping device. Figure 5 As shown, the auxiliary module 101 is connected to the surveying and mapping device 30, performs power transmission and related information exchange with the surveying and mapping device 30, and at the same time, the auxiliary module 101 is connected to the control device 20 through the communication unit. In actual application, the auxiliary module 101 is connected to the surveying and mapping device 30 and completes power-on startup. The user pushes the surveying and mapping device 30 to move according to the operation requirements, and the auxiliary module 101 records the position data during the movement.
[0121] The first control information includes at least one of the mapping instructions and the map to be constructed, and the auxiliary module completes the mapping operation according to the specific information in the first control information and the location data collected during the movement. It should be noted that in the above two embodiments, the auxiliary module collects location data during the movement, and the auxiliary module further performs the mapping operation based on the location data and the first control information.
[0122] In a possible implementation, after completing the mapping operation according to the first control information and obtaining the target map, the auxiliary module may actively send the target map to the control device.
[0123] In a possible implementation, after completing the mapping operation according to the first control information and obtaining the target map, the control device may send an upload instruction to the auxiliary module.
[0124] In a possible implementation, the user terminal and the cloud platform serve together as control devices. Specifically, the user terminal is connected to the cloud platform in communication, and the user can send control information by operating the user terminal, and the control information reaches the auxiliary module after being forwarded by the cloud platform. Based on this, the user terminal is provided with a user operation interface, and the user can enter the target user account at a preset position of the user operation interface. At the same time, the user operation interface is also provided with a map upload button. In response to the user clicking the map upload button, the user terminal generates an upload instruction, and the upload instruction includes a target address indicating the target user account. Further, the user terminal sends the upload instruction to the cloud platform, and the cloud platform sends the upload instruction to the auxiliary module.
[0125] Of course, the upload instruction can also be issued by other control devices, such as directly by the cloud platform, or by surveying and mapping equipment, which is feasible in practical applications.
[0126] After receiving the upload instruction, the auxiliary module extracts the target address in the upload instruction and sends the constructed target map to the target address.
[0127] In subsequent applications, the control device can download the target map from the target address according to the operation requirements, and further operate according to the target map.
[0128] In a possible implementation, the first control information includes a new creation instruction for instructing the auxiliary module to create a new map. The new map may include a map of a portion of the locations in the working area, or may include a map of all the locations in the working area. For example, a user's home has two lawns, the front yard and the back yard. When creating a new map, the auxiliary module may first collect the location data related to the front yard to obtain the area map of the front yard, and then the auxiliary module may send the area map of the front yard to the control device, and the user may view the area map of the front yard through the control device. Alternatively, when creating a new map, the auxiliary module may also collect all the location data related to the two lawns of the user's home (such as the location data related to the front yard, the back yard, and the passage between the front yard and the back yard, etc.) to obtain a complete work area map of the user's home.
[0129] In a possible implementation, the first control information includes a construction continuation instruction and a map to be continued (identification information or map data of the map to be continued), which is used to instruct the auxiliary module to continue construction on the basis of the map to be continued, and obtain a map after the construction is continued. For example, the user's home has two lawns, the front yard and the back yard. The user only builds the regional map of the front yard when building the new lawn. The user can view the regional map of the front yard through the control device. If the user believes that the regional map of the front yard is correct and the backyard map can be continued, the user can send a construction continuation instruction to the auxiliary module through the control device, instructing the auxiliary module to continue building the regional map of the backyard based on the regional map of the front yard, obtain the map after the construction is continued, and send it to the control device. In the process of the auxiliary module sending the regional map of the front yard, the control device sending the construction continuation instruction, and the auxiliary module sending the map after the construction is continued, since the auxiliary module can communicate with the control device independently, the auxiliary module can complete the process independently when separated from the device body, without the help of the device body, and without frequent connection / disconnection with the device body during the process, and the user experience is better.
[0130] In a possible implementation, the first control information also includes a module identifier of the auxiliary module. The selection of the module identifier should ensure that the auxiliary module can be uniquely represented, that is, there is a one-to-one correspondence between the module identifier and the auxiliary module. For example, the serial number of the auxiliary module or the UUID of the auxiliary module can be selected.
[0131] In the present application, the module identifier in the first control information is mainly used for matching verification. In a possible implementation, after the auxiliary module is connected to the surveying and mapping device block, the surveying and mapping device obtains the module identifier of the currently connected auxiliary module by wired communication. At the same time, the auxiliary module forwards the first control information to the surveying and mapping device, and the surveying and mapping device extracts the module identifier in the first control information and compares it with the module identifier of the currently connected auxiliary module. If the two are consistent, the surveying and mapping device can determine that the currently connected auxiliary module is correct, and then cooperate with the auxiliary module to complete the subsequent mapping operation. On the contrary, if the two are inconsistent, it means that the currently connected auxiliary module is wrong and will not respond to subsequent instructions.
[0132] In another possible implementation, after acquiring the first control information, the auxiliary module extracts the module identifier in the first control information, and compares the obtained module identifier with the module identifier recorded in its own configuration file. If the two are consistent, it means that the obtained first control information matches the auxiliary module, and the auxiliary module responds to subsequent control instructions of the control device. On the contrary, if the two are inconsistent, it means that the obtained first control information does not match the auxiliary module, and the auxiliary module may not respond to subsequent control instructions.
[0133] Of course, in any of the above embodiments, if it is determined that the auxiliary module, the surveying and mapping device, and the first control information do not match, the auxiliary module may further feedback an alarm message to the control device, prompting the control device that there is a matching problem.
[0134] Taking into account that in actual applications, the control device usually communicates directly with the auxiliary module. For the control device, the surveying and mapping device to which the auxiliary module is specifically connected may be uncertain. By carrying the module identifier in the first control information, the matching between the first control information and the auxiliary module, and the auxiliary module and the surveying and mapping device can be effectively ensured, thereby avoiding the self-mobile device responding to erroneous control information and causing control confusion between different self-mobile devices.
[0135] To sum up, in the control method provided in the embodiment of the present invention, the auxiliary module is provided with a communication unit, which can be communicated with the surveying and mapping equipment. The auxiliary module receives the first control information sent by the control equipment and can perform mapping operations according to the first control information, which helps to improve the efficiency of the mapping operation.
[0136] As mentioned above, both the device body and the surveying and mapping device can be used as control devices. In one possible implementation, the auxiliary module is connected to the device body or the surveying and mapping device via wired communication. In this case, the auxiliary module can obtain control information of the device body or the surveying and mapping device through a wired data channel.
[0137] The following is an introduction to the device control device provided by the present invention. The device control device provided by the present invention belongs to the same application concept as the device control method provided in the embodiment of the present application, can execute the device control method provided in any embodiment of the present application, and has the corresponding auxiliary modules and beneficial effects of executing the device control method. For technical details not fully described in this embodiment, please refer to the device control method provided in the embodiment of the present application, and will not be repeated here.
[0138] See also Figure 6 , Figure 6 : is a structural block diagram of a device control device provided by an embodiment of the present invention. The device control device provided by this embodiment is applied to an auxiliary module of a self-moving device. The self-moving device also includes a device body. The auxiliary module is detachably connected to the device body. The auxiliary module is provided with a communication unit. The communication unit is configured to communicate with the control device. The device includes:
[0139] A determination unit 10, used to determine the current connection status of the auxiliary module;
[0140] An acquisition unit 20, configured to acquire, through a communication unit, first control information sent by a control device when the connection state is that the auxiliary module is separated from the device body;
[0141] The control unit 30 is used to perform a mapping operation according to the first control information.
[0142] The present invention also provides an auxiliary module including: a memory, a processor, and a computer program stored in the memory and executed by the processor. When the processor executes the computer program, the steps of the device control method provided in any of the aforementioned embodiments are implemented.
[0143] Furthermore, the present invention also provides a self-moving device, comprising: a device body and the auxiliary module provided in the above embodiment;
[0144] When the work is performed from the mobile device, the auxiliary module is mounted on the main module.
[0145] In some embodiments, this embodiment further provides a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash disk, an SD (Secure Digital Memory Card) card, an MMC (Multimedia Card) card, etc., in which one or more instructions for implementing the above steps are stored. When the one or more instructions are executed by one or more processors, the processors execute the device control method described above. For the relevant specific implementation, please refer to the above description, which will not be repeated here.
[0146] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the device control method according to various embodiments of the present application described in the above content of this specification.
[0147] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0148] Those skilled in the art will appreciate that the contents disclosed in this disclosure may be subject to various modifications and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.
[0149] In addition, although the present disclosure makes various references to certain units in the system according to embodiments of the present disclosure, any number of different units can be used and run on the client and / or server. The units are only illustrative, and different aspects of the system and method can use different units.
[0150] Flowcharts are used in this disclosure to illustrate the steps of the method according to the embodiments of the present disclosure. It should be understood that the preceding or following steps are not necessarily performed precisely in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes.
[0151] A person of ordinary skill in the art will appreciate that all or part of the steps in the above method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, etc. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software-assisted module. The present disclosure is not limited to any particular form of combination of hardware and software.
[0152] Unless otherwise defined, all terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.
[0153] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.
Claims
1. A device control method, It is characterized in that An auxiliary module applied to a self-moving device, the self-moving device further comprising a device body, the auxiliary module being detachably connected to the device body, the auxiliary module being provided with a communication unit, the communication unit being configured to communicate with a control device, the method comprising: Determining a current connection status of the auxiliary module; When the connection state is that the auxiliary module is separated from the device body, obtaining, through the communication unit, first control information sent by the control device; Perform a mapping operation according to the first control information.
2. The method according to claim 1, It is characterized in that Also includes: When the connection state is that the auxiliary module is connected to the device body, obtaining the second control information sent by the control device through the communication unit or the communication module of the device body; The device body is controlled to move within the working area according to the second control information.
3. The method according to claim 1, It is characterized in that When the connection state is that the auxiliary module is separated from the device body and connected to the surveying and mapping device, the first control information sent by the control device is obtained.
4. The method according to claim 1, It is characterized in that The method further comprises: After performing a mapping operation according to the first control information and obtaining a target map, sending the target map to the control device; or, receiving an upload instruction, wherein the upload instruction includes a target address; After performing a mapping operation according to the first control information and obtaining a target map, the target map is sent to the target address so that the control device downloads the target map from the target address, and the target address indicates a target user account.
5. The method according to claim 3, It is characterized in that Determining the current connection state of the auxiliary module includes: If no notification information indicating that the auxiliary module is connected to the surveying and mapping device is received within a preset time after power-on, it is determined that the auxiliary module is currently connected to the device body, wherein the notification information is provided by the surveying and mapping device; If the notification information is received within a preset time period after power-on, it is determined that the auxiliary module is currently connected to the surveying and mapping device.
6. The method according to claim 1, It is characterized in that Acquire the second control information based on a message subscription mechanism; The first control information is obtained based on a message subscription mechanism.
7. The method according to claim 6, It is characterized in that The acquiring the second control information based on a message subscription mechanism includes: Determining a second communication channel corresponding to the device body from a plurality of preset communication channels; Acquire second control information sent by the control device through the second communication channel; The acquiring the first control information based on the message subscription mechanism includes: Determining a first communication channel corresponding to the auxiliary module from a plurality of preset communication channels; The first control information sent by the control device is acquired through the first communication channel.
8. The method according to claim 1, It is characterized in that The second control information includes an operation instruction and / or an operation map; The first control information includes a map construction instruction and / or a map to be continued.
9. The method according to claim 8, It is characterized in that The second control information also includes a subject identification of the device subject; The first control information also includes a module identifier of the auxiliary module.
10. The method according to any one of claims 1 to 9, It is characterized in that The control device includes one or more of a user terminal, a cloud platform, the surveying and mapping device, and the device body.
11. A device control method, It is characterized in that Applied to a control device, the control device communicates with the auxiliary module through a communication unit provided in the auxiliary module, the auxiliary module is detachably connected to a device body of a self-moving device, and the device body is used to move in a working area, the method comprising: When the auxiliary module is separated from the device body, sending first control information to the auxiliary module; The first control information is used to trigger the auxiliary module to perform mapping operations according to the first control information.
12. The method according to claim 11, It is characterized in that Also includes: When the auxiliary module is connected to the device body, sending second control information to the communication unit or the communication module of the device body; The second control information is used to trigger the auxiliary module to control the device body to move within the working area according to the second control information.
13. The method according to claim 12, It is characterized in that Also includes: Send upload command; The upload instruction includes a target address indicating a target user account, and the upload instruction is used to trigger the auxiliary device to send the target map to the target address after performing a mapping operation according to the first control information and obtaining the target map; The target map is downloaded from the target address.
14. A device control device, It is characterized in that An auxiliary module applied to a self-moving device, the self-moving device further comprising a device body, the auxiliary module being detachably connected to the device body, the auxiliary module being provided with a communication unit, the communication unit being configured to communicate with a control device, the device comprising: a determining unit, configured to determine a current connection state of the auxiliary module; an acquiring unit, configured to acquire, through the communication unit, first control information sent by the control device when the connection state is that the auxiliary module is separated from the device body; A control unit is used to perform a mapping operation according to the first control information.
15. An auxiliary module, include: A memory, a processor, and a computer program stored in the memory and executed by the processor, wherein the processor implements the steps of the device control method according to any one of claims 1 to 10 when executing the computer program.
16. A self-propelled device, It is characterized in that include: The device body and the auxiliary module as claimed in claim 15; When the self-moving device is operating, the auxiliary module is installed on the main module.
17. An automatic working system, It is characterized in that include: A control device and a self-moving device, wherein the self-moving device comprises a device body and an auxiliary module as claimed in claim 15, wherein the auxiliary module is detachably connected to the device body.
