Device location determination method, device, self-propelled device, and readable storage medium

The method and device ensure timely upload of self-propelled device location by comparing target and preset sleep periods, facilitating user location through an application terminal.

JP2026502967APending Publication Date: 2026-01-27BEIJING ROBOROCK INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025538697
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-12-30
Filing Date
2023-12-14
Publication Date
2026-01-27

AI Technical Summary

Technical Problem

Self-propelled devices, such as vacuum cleaners and window cleaners, enter a sleep state when unable to return to a charging station and eventually shut down, making them difficult to locate when needed due to the inability to upload their location in a shutdown state.

Method used

A method and device that record a target sleep period and compare it with a preset sleep period, transmitting positioning information to a storage address when the target period equals the preset, ensuring timely upload before shutdown, and allowing the user to find the device's location via an application terminal.

Benefits of technology

Ensures sufficient time for self-propelled devices to upload positioning information before shutting down, maintaining information timeliness, and enabling the user to locate the device through an application terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026502967000001_ABST
    Figure 2026502967000001_ABST
Patent Text Reader

Abstract

The present application discloses a device location determination method, device, self-propelled device, and readable storage medium, which relate to the technical field of device control. The method includes: recording a target sleep period and comparing the target sleep period with a preset sleep period, where the target sleep period is used to indicate a time for which the self-propelled device is continuously in a sleep state; and if the comparison determines that the target sleep period is equal to the preset sleep period, sending positioning information to a storage address, so that a user can know the actual location of the device based on the positioning information.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on December 30, 2022, bearing application number 202211732828.7 and entitled "Device location determination method, device, self-propelled device and readable storage medium," the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the technical field of device control, and in particular to a device location determination method, device, self-propelled device, and readable storage medium. [Background technology]

[0003] A self-propelled device is a device that can move automatically under program control, such as a self-propelled vacuum cleaner, a self-propelled mop cleaner, or a self-propelled window cleaner. A self-propelled device can perform tasks autonomously. If the self-propelled device remains stationary outside a charging station and cannot return to the charging station for a certain period of time, such as 10 minutes, due to a standby state, paused state, or error state, the self-propelled device enters a sleep state to conserve as much power as possible. If the sleep state continues for a certain period of time, such as 12 hours, the self-propelled device shuts down to further conserve power and prevent the self-propelled device from running out of power and being unable to start up again because it is not on a charging station. In these situations, the self-propelled device is not on a charging station, and the user may not be able to find the corresponding self-propelled device the next time they use it.

[0004] In the related art, an application terminal can send control information to a self-propelled device, and the self-propelled device can upload its current location in response to the control information, and the current location of the self-propelled device can be displayed on a scene map of the application terminal. However, if the self-propelled device is already in a shutdown state when the application terminal sends the control information to the self-propelled device, the self-propelled device cannot upload its current location in response to the control information, which can prevent the user from finding the self-propelled device. Therefore, there is an urgent need to determine the location of a self-propelled device that is outside a charging station before shutting down. Summary of the Invention

[0005] In view of this, the present application provides a method, a device, a self-propelled device, and a readable storage medium for locating an equipment, the main purpose of which is to solve the current problem of how to locate a self-propelled device when it is outside a charging station before shutting down.

[0006] According to a first aspect of the present application, there is provided a method for locating a device, the method comprising: recording a target sleep period and comparing the target sleep period with a preset sleep period, the target sleep period being used to indicate the time the self-propelled device will continuously be in the sleep state; If the comparison determines that the target sleep period is equal to the preset sleep period, transmitting the positioning information to a storage address so that a user can determine the actual location of the device based on the positioning information.

[0007] In some embodiments, before recording the target sleep duration, the method further comprises: When a network connection is detected, transmitting device information to a server so that the server identifies stored information associated with the self-propelled device based on the device information; receiving the stored information transmitted from the server and storing the stored information.

[0008] In some embodiments, after comparing the target sleep duration with the preset sleep duration, the method further comprises: If the comparison determines that the target sleep period is shorter than the preset sleep period, the target sleep period at the next point in time is continuously recorded, and the target sleep period is compared with the preset sleep period until the comparison determines that the recorded target sleep period is equal to the preset sleep period.

[0009] In some embodiments, transmitting the positioning information to the stored address comprises: packaging the positioning information to obtain a positioning packet, the positioning information being map information and position coordinates read in the sleep state; reading stored information associated with the self-propelled device, and encrypting the positioning packet using a key recorded in the stored information to obtain an encrypted packet; and transmitting the encrypted packet to a storage address recorded in the storage information.

[0010] In some embodiments, after transmitting the positioning information to the storage address, the method further comprises: Recognizing the upload status sent by the server; If the upload status indicates a successful upload, setting an upload success indicator in the local memory.

[0011] In some embodiments, after transmitting the positioning information to the storage address, the method further comprises: sensing the local memory in real time or periodically; If there is no upload success indicator in the local memory, retransmitting the positioning information to the storage address until the upload success indicator is detected in the local memory or the self-propelled device is in a shutdown state.

[0012] In some embodiments, the method further comprises: Deleting the upload success indicator in the local memory when a direct operation command is detected, the direct operation command being used to indicate a command issued by a user on the self-propelled device; When it is detected that a network connection exists, sending a deletion request to the server, and controlling the server to delete the positioning information in the storage address based on the deletion request.

[0013] According to a second aspect of the present application, there is provided an apparatus for locating a device, the apparatus comprising: a recording module used to record a target sleep period and compare the target sleep period with a preset sleep period, the target sleep period being used to indicate the time the self-propelled device will be continuously in the sleep state; and an upload module used to send the positioning information to a storage address when the comparison determines that the target sleep period is equal to the preset sleep period so that a user can know the actual location of the device based on the positioning information.

[0014] In some embodiments, the apparatus further comprises: a detection module used to transmit device information to a server when a network connection is detected to exist, so that the server can identify stored information associated with the self-propelled device based on the device information; a storage module used to receive the stored information sent from the server and store the stored information.

[0015] In some embodiments, the upload module is further configured to, if the comparison determines that the target sleep period is shorter than the preset sleep period, continuously record the target sleep period at the next point in time and compare the target sleep period with the preset sleep period until the comparison determines that the recorded target sleep period is equal to the preset sleep period.

[0016] In some embodiments, the upload module packages the positioning information to obtain a positioning packet, the positioning information being map information and location coordinates read in the sleep state, and is used to read storage information associated with the self-propelled device, encrypt the positioning packet using a key recorded in the storage information, obtain an encrypted packet, and send the encrypted packet to the storage address recorded in the storage information.

[0017] In some embodiments, the apparatus further comprises: a recognition module used to recognize the upload status sent by the server; a setting module used for setting an upload success indicator in the local memory if the upload status indicates a successful upload.

[0018] In some embodiments, the upload module is further used to detect the local memory in real time or periodically, and if there is no upload success indicator in the local memory, to retransmit the positioning information to the storage address until the upload success indicator is detected in the local memory or the self-propelled device is shut down.

[0019] In some embodiments, the apparatus further comprises: a deletion module used to delete the upload success indicator in the local memory when a direct operation command is detected, the direct operation command being used to indicate a command issued by a user on the self-propelled device; and a sending module used to send a deletion request to the server when it is detected that a network connection exists, and to control the server to delete the positioning information in the storage address based on the deletion request.

[0020] According to a third aspect of the present application, there is provided an electronic device including a memory in which a computer program is stored and a processor, the processor implementing the steps of the method according to any one of the first aspects when executing the computer program.

[0021] According to a fourth aspect of the present application, there is provided a computer-readable storage medium having a computer program stored thereon, the computer program implementing the steps of the method according to any one of the first aspects when executed by a processor.

[0022] According to the above technical solution, the device location determination method, device, self-propelled device, and readable storage medium provided by the present application record a target sleep period during which the self-propelled device will continue to sleep when the present application detects that the self-propelled device has entered a sleep state. Furthermore, the target sleep period is compared with a preset sleep period. If the comparison determines that the target sleep period is equal to the preset sleep period, positioning information is sent to a storage address. Thus, after a user starts an application terminal, the control plug-in of the application terminal can display the corresponding location of the self-propelled device based on the positioning information. By defining the upload time of the positioning information according to the preset sleep period, the present application not only ensures that the self-propelled device has enough time to upload the positioning information before shutting down, but also ensures the timeliness of the positioning information. After the positioning information is successfully uploaded to the server's storage address, the application terminal can obtain the positioning information from the storage address, allowing the user to check the location of the corresponding self-propelled device in the control plug-in of the application terminal, thereby helping the user find the self-propelled device. The above description is merely an outline of the technical solution of the present application. In order to make the technical solution of the present application more clearly understood and implemented in accordance with the content of the specification, and to make the above and other objectives, features and advantages of the present application more clearly and easily understood, specific embodiments of the present application are given below. [Brief explanation of the drawings]

[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the present application. Also, the same reference numerals are used throughout the drawings to refer to the same elements. [Figure 1] 1 is a flowchart of a device location method provided by an embodiment of the present application; [Figure 2] 1 is a flowchart of a device location method provided by an embodiment of the present application; [Figure 3] 1 is a structural schematic diagram of an equipment location device provided by an embodiment of the present application; FIG. [Figure 4] 1 is a structural schematic diagram of an equipment location device provided by an embodiment of the present application; FIG. [Figure 5] 1 is a structural schematic diagram of an equipment location device provided by an embodiment of the present application; FIG. [Figure 6] 1 is a structural schematic diagram of an equipment location device provided by an embodiment of the present application; FIG. [Figure 7] 1 is a schematic diagram of the device structure of an electronic device provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0024]

[0023] Exemplary embodiments of the present application will now be described in more detail with reference to the drawings. While exemplary embodiments of the present application are illustrated in the drawings, it should be understood that the present application may be embodied in various forms and is not limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more complete understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0025] Self-propelled devices, such as self-propelled vacuum cleaners, mop cleaners, and window cleaners, are devices that can move automatically under program control. Self-propelled devices can operate autonomously. When a self-propelled device is idle, paused, or in an error state, remaining outside a charging station and unable to return to the charging station for a certain period of time (e.g., 10 minutes), it enters a sleep state to conserve power as much as possible. When the sleep state reaches a certain period of time (e.g., 12 hours), the self-propelled device shuts down to further conserve power and prevent the self-propelled device from running out of power and subsequently being unable to start up because it is not on a charging station. In such a situation, the self-propelled device may not be on a charging station, causing the user to be unable to find the corresponding self-propelled device the next time they are used. Currently, an application terminal can send control information to the self-propelled device, which then uploads its current location in response to the control information. The current location of the self-propelled device is then displayed on a scene map on the application terminal. However, if the self-propelled device is already in a shutdown state when the application terminal sends control information to the self-propelled device, the self-propelled device cannot upload its current location in response to the control information, which can prevent the user from finding the self-propelled device. Therefore, to locate the self-propelled device when it is outside a charging station before shutting down, the present application provides a device location method. When the present application detects that the self-propelled device has entered a sleep state, the method records a target sleep period during which the self-propelled device will continue to sleep. The method then compares the target sleep period with a preset sleep period. If the comparison determines that the target sleep period is equal to the preset sleep period, the method sends positioning information to a storage address. After the user launches the application terminal, the control plug-in of the application terminal can display the corresponding location of the self-propelled device based on the positioning information. By defining the upload time of the positioning information according to the preset sleep period, the present application not only ensures that the self-propelled device has enough time to upload positioning information before shutting down, but also ensures the timeliness of the positioning information.After the positioning information is successfully uploaded to the storage address of the server, the application terminal can obtain the positioning information from the storage address, allowing the user to check the location of the corresponding self-propelled device through the control plug-in of the application terminal, thereby helping the user find the self-propelled device.

[0026] An embodiment of the present application provides a device location method, as shown in FIG. 1, the method includes:

[0027] 101, record a target sleep period, and compare the target sleep period with a preset sleep period, where the target sleep period is used to indicate the time the self-propelled device will be continuously in a sleep state.

[0028] This method is applicable to a self-propelled device, which enters a sleep state when the self-propelled device remains stationary outside a charging station, unable to return to the charging station, for 10 minutes, such as in a standby state, paused state, or error state. In actual operation, the self-propelled device may be equipped with a timer, which continuously records the amount of time the self-propelled device remains in sleep mode after entering the sleep state, thereby obtaining a target sleep period. Furthermore, to better determine when the self-propelled device should upload positioning information, relevant technicians can set a preset sleep period. Specifically, the default preset sleep period for the self-propelled device is 11 hours and 50 minutes, i.e., the self-propelled device starts uploading positioning information 10 minutes before shutdown. This preset sleep period not only ensures sufficient time for the self-propelled device to upload positioning information before shutdown, but also ensures the timeliness of the positioning information. In addition, the user may change the preset sleep period on the application terminal according to actual circumstances, and the self-propelled device will compare the preset sleep period set by the user with the target sleep period, and upload the positioning information if it is determined through comparison that the target sleep period is equal to the preset sleep period.

[0029] 102, if the comparison determines that the target sleep period is equal to the preset sleep period, send the positioning information to a storage address so that the user can know the actual location of the device based on the positioning information.

[0030] In the sleep state, the self-propelled device does not autonomously move or change its position. Therefore, after entering the sleep state, the self-propelled device can acquire positioning information, such as one or more pieces of information that can describe the location of the self-propelled device, including a real-time map, a traveled path, a virtual wall, a no-entry area, a robot position, a stand position, a recognized obstacle, and furniture. Furthermore, if the comparison determines that the target sleep period is equal to the preset sleep period, the positioning information is packaged into a packet and sent to a stored address on the server. When the user next opens the application terminal, if the device is offline, the application terminal can acquire the positioning information of the self-propelled device from the stored address on the server via a network connection. If the positioning information corresponding to the stored address exists, the application terminal can access a control plug-in corresponding to the self-propelled device and display the corresponding position of the self-propelled device to the user in the control plug-in based on the positioning information, thereby facilitating the user's location. Each self-propelled device has a corresponding storage address on the server, which is used to store the positioning information uploaded by the self-propelled device. The application terminal may be a mobile phone client of a self-propelled device downloaded from an application market, and a user can connect to multiple self-propelled devices through the application terminal, and the operation interface in the application terminal of the self-propelled device is a control plug-in.

[0031] The method provided by the embodiment of the present application can record a target sleep period during which the self-propelled device will continue to sleep when it detects that the self-propelled device has entered a sleep state. Furthermore, the target sleep period is compared with a preset sleep period. If the comparison determines that the target sleep period is equal to the preset sleep period, the positioning information is sent to a storage address. After the user starts the application terminal, the control plug-in of the application terminal can display the corresponding location of the self-propelled device based on the positioning information. By defining the upload time of the positioning information according to the preset sleep period, the present application can ensure sufficient time for the self-propelled device to upload the positioning information before shutting down, as well as ensure the timeliness of the positioning information. After the positioning information is successfully uploaded to the storage address of the server, the application terminal can obtain the positioning information from the storage address, allowing the user to check the location of the corresponding self-propelled device in the control plug-in of the application terminal, thereby helping the user find the self-propelled device.

[0032] An embodiment of the present application provides a device location method, as shown in FIG. 2, the method includes:

[0033] 201, when it is detected that a network connection exists, transmit device information to a server, receive stored information transmitted from the server, and store the stored information;

[0034] In an embodiment of the present application, when a user owns multiple self-propelled devices, in order to accurately determine which self-propelled device the received positioning information belongs to, the IoT (Internet of Things) server in the present application assigns dedicated storage information to each self-propelled device based on the device information uploaded by the self-propelled device, and associates the storage information with the corresponding self-propelled device, where the storage information includes a storage address and a key. Furthermore, to facilitate the self-propelled device to timely obtain the storage information, after receiving the storage information sent from the server, the self-propelled device stores the received storage information in its local memory.

[0035] Specifically, the self-propelled device first detects its network connection status. If the network connection status is online, i.e., if a network connection exists between the self-propelled device and the server, it sends information such as the self-propelled device's device ID, device model, offline information type, and storage file name to the server as device information and requests a signed cloud storage address (pre-signed URL), i.e., storage address, from the server. Each self-propelled device has its own storage address. When a new packet is uploaded, the new packet overwrites the data information of the previous packet, thereby maintaining the timeliness of the data information. The server also assigns a designated key, a Local key, to the self-propelled device for data encryption upon network connection. There are two types of network connection status: online and offline. The online state indicates that a network connection exists between the self-propelled device and the server, while the offline state indicates that no network connection exists between the self-propelled device and the server. The server then sends the assigned storage address and the designated key to the self-propelled device. The self-propelled device can receive the storage address and the designated key and store it in local memory.

[0036] 202, recording a target sleep period and comparing the target sleep period with a preset sleep period;

[0037] When the self-propelled device is in sleep mode, power is supplied to only a few sensors (drop sensor, ACC acceleration sensor, GYRO gyroscope, dust box, water tank, and vibration mop plate) to reduce power consumption, and the main control MCU is notified to enter a suspend mode. After 12 hours of sleep mode, the self-propelled device will automatically shut down to save as much power as possible and prevent the self-propelled device from running out of power due to not being on the charging station and being unable to start up later. Therefore, in this application, the self-propelled device can choose to upload positioning information after sleeping for a certain period of time to make it easier for the user to find the self-propelled device later. To determine whether the current time has reached the set upload time, the self-propelled device needs to record the target sleep period during which it has been continuously in sleep mode and compare the target sleep period with the preset sleep period.

[0038] In actual operation, to determine when the self-propelled device uploads positioning information, relevant technicians can set a preset sleep period. Specifically, the default preset sleep period of the self-propelled device is 11 hours and 50 minutes, i.e., it starts uploading positioning information 10 minutes before shutdown. This preset sleep period not only ensures sufficient time for the self-propelled device to upload positioning information before shutdown, but also ensures the timeliness of the positioning information. The user can also change the preset sleep period on the application terminal according to actual circumstances, and the self-propelled device compares the preset sleep period set by the user with the target sleep period. Furthermore, the self-propelled device can set a timer to compare the target sleep period with the preset sleep period. Specifically, when the self-propelled device detects that the mobile device has entered a sleep state, the timer is started to count, and the counting period of the timer at each point in time becomes the target sleep period at the current point in time. When the counting period of the timer reaches the preset sleep period, the positioning information is uploaded. Alternatively, a timer is used to compare the target sleep period with a preset sleep period, specifically, the preset sleep period is obtained, a timer is set using the preset sleep period, and the positioning information is uploaded when the timer countdown ends. Note that the user may change the preset sleep period on the application terminal according to actual circumstances, and the self-propelled device compares the preset sleep period set by the user with the target sleep period and uploads the positioning information.

[0039] 203, if the comparison determines that the target sleep period is equal to the preset sleep period, transmit the positioning information to the storage address.

[0040] If the comparison determines that the target sleep period is shorter than the preset sleep period, the timer of the self-propelled device continues to record the target sleep period and compares the target sleep period with the preset sleep period until the comparison determines that the target sleep period is equal to the preset sleep period, at which point the self-propelled device can upload positioning information to a storage address of the server, so that the application terminal can subsequently obtain the positioning information at the storage address and display the location of the self-propelled device to the user based on the positioning information.

[0041] Specifically, after entering the sleep state, the self-propelled device can acquire positioning information, which can describe the location of the self-propelled device, such as one or more of information including a real-time map, a traveled path, a virtual wall, a no-entry area, a robot position, a stand position, a recognized obstacle, and furniture. Next, if the comparison determines that the target sleep period is equal to the preset sleep period, the positioning information is packaged into a positioning information packet, and the positioning information packet is encrypted using a key recorded in the storage information to obtain an encrypted packet, thereby improving the security of data transmission. Finally, the self-propelled device uploads the encrypted packet to a server, i.e., transmits it to a storage address recorded in the storage information. After receiving the positioning information, the server performs secondary authentication on the positioning information based on the storage information associated with the self-propelled device, and stores the positioning information in the storage address after successful authentication.

[0042] During actual operation, a user can use the application terminal to find the actual location of the self-propelled device. Specifically, after a user launches the application terminal, if the self-propelled device is online, the self-propelled device and the server can communicate with each other. In this case, the user accesses the control plugin corresponding to the self-propelled device and obtains real-time map information of the self-propelled device through the get_map interface, successfully obtaining information such as the user map, thereby learning various information, including the location of the self-propelled device. If the device is offline, the self-propelled device and the server cannot communicate with each other. The self-propelled device cannot upload information, and the application terminal cannot successfully send commands to the self-propelled device. However, because the application terminal and the server can communicate, the application terminal can request from the server the offline packets, i.e., the positioning information, that the self-propelled device uploaded before shutting down. If the server has offline packets, the application terminal can access the control plugin corresponding to the self-propelled device and display the location of the self-propelled device based on the offline packet information. Furthermore, if there are no offline packets in the server, the application terminal cannot obtain the positioning information of the self-propelled equipment before it went offline. In this case, the application terminal will display to the user the reason why the self-propelled equipment went offline. The specific reasons include an active shutdown by the user, a situation where an immediate shutdown is required for protection such as a battery abnormality, a shutdown due to an excessively long sleep period, or poor network conditions in the environment when the robot needs to send a packet after going to sleep.

[0043] 204, recognize the upload status sent by the server, and if the upload status indicates a successful upload, set an upload success indicator in the local memory.

[0044] In an embodiment of the present application, in order to avoid the burden on the server caused by repeated uploads, the self-propelled device sets an upload success indicator after determining that the positioning information has been successfully uploaded to the server, so that the self-propelled device can subsequently determine whether it needs to re-upload the positioning information to the server based on the presence or absence of the upload success indicator.

[0045] Specifically, the self-propelled device receives the upload status feedback from the server and recognizes the upload status to determine what the upload status indicates. If the upload status indicates that the upload of the positioning information is successful, the self-propelled device sets an upload success indicator in the local memory. If the upload status indicates that the upload of the positioning information is unsuccessful, the self-propelled device does not need to perform any operation. Next, the self-propelled device detects the local memory in real time or periodically to determine whether the upload success indicator is present in the local memory. If the upload success indicator is detected in the local memory, the self-propelled device stops re-uploading the positioning information. If the upload success indicator is not detected in the local memory, the self-propelled device attempts to upload again at regular intervals until the upload is successful or shuts down. For example, when the self-propelled device is in real-time detection mode, if the upload success indicator is not detected, the self-propelled device queries the local memory for a second preset period during the actual operation process and sets a timer using the second preset period (counting starts from the time when the self-propelled device does not detect the upload success indicator in the local memory). Then, when the counting period of the timer reaches a second preset period, the positioning information is repackaged and sent to the storage address until an upload success indicator is detected in the local memory or the self-propelled device is shut down. When the self-propelled device is in a periodic detection mode, the local memory is checked for a second preset period and a timer is set using the second preset period (counting from the time when the positioning information is sent). When the counting period of the timer reaches the second preset period, the local memory is detected. If an upload success indicator is not detected, the positioning information is repackaged and sent to the storage address until an upload success indicator is detected in the local memory or the self-propelled device is shut down.

[0046] By setting the second preset period, the self-propelled device can continuously attempt to upload positioning information before shutting down, increasing the probability of successful uploading while not affecting the robot's inherent setting of shutting down after reaching the set sleep time value, and avoiding excessive power consumption in the event of an unsuccessful upload, which would cause difficulties in future use.

[0047] 205, when a direct operation command is detected, delete the upload success indicator in the local memory, and when it is detected that a network connection exists, send a deletion request to the server, so that the server deletes the corresponding positioning information in the storage address based on the deletion request.

[0048] In an embodiment of the present application, in order to prevent upload failure due to the existence of the upload success indicator in the local memory during subsequent upload of positioning information, the self-propelled device deletes the upload success indicator in the local memory after the user directly operates the device.

[0049] Specifically, when a direct operation command on the self-propelled device by the user is detected, for example, when the self-propelled device is restarted or the user reconfigures the network, the upload success indicator in the local memory is deleted. Note that startup (the user operates the robot's power button) and network configuration (the user operates the robot's network connection) mean that the user has already found the robot and performed the corresponding operation, and the previous positioning information is no longer needed, so the upload success indicator must be deleted in advance to prepare for subsequent re-uploading.

[0050] In this case, although the uploaded packets also need to be deleted, they can be deleted by communicating with the server via the network only when the self-propelled device is normally connected to the network through the network setting operation (i.e., when the robot is online). Specifically, the self-propelled device first detects the network connection status. Then, if the network connection status is online, it sends a deletion request to the server, so that the server deletes the corresponding positioning information in the storage address in response to the deletion request.

[0051] The method provided by the embodiment of the present application can record a target sleep period during which the self-propelled device will continue to sleep when it detects that the self-propelled device has entered a sleep state. Furthermore, the target sleep period is compared with a preset sleep period. If the comparison determines that the target sleep period is equal to the preset sleep period, the positioning information is sent to a storage address. After the user starts the application terminal, the control plug-in of the application terminal can display the corresponding location of the self-propelled device based on the positioning information. By defining the upload time of the positioning information according to the preset sleep period, the present application can ensure sufficient time for the self-propelled device to upload the positioning information before shutting down, as well as ensure the timeliness of the positioning information. After the positioning information is successfully uploaded to the storage address of the server, the application terminal can obtain the positioning information from the storage address, allowing the user to check the location of the corresponding self-propelled device in the control plug-in of the application terminal, thereby helping the user find the self-propelled device.

[0052] Furthermore, as a specific implementation of the method described in FIG. 1, an embodiment of the present application provides a device location determination device, which includes a recording module 301 and an uploading module 302, as shown in FIG.

[0053] The recording module 301 is used to record the target sleep period and compare the target sleep period with a preset sleep period, and the target sleep period is used to indicate the time the self-propelled device will be continuously in the sleep state.

[0054] If the comparison determines that the target sleep period is equal to the preset sleep period, the upload module 302 is used to send the positioning information to a storage address so that the user can know the actual location of the device based on the positioning information.

[0055] In some embodiments, as shown in FIG. 4, the device further includes a detection module 401 and a storage module 402.

[0056] The detection module 401 is used to transmit the device information to the server when a network connection is detected to exist, so that the server can identify stored information associated with the self-propelled device based on the device information.

[0057] The storage module 402 is used to receive the storage information sent from the server and store the storage information.

[0058] In some embodiments, the upload module 302 is further configured to, if the comparison determines that the target sleep period is shorter than the preset sleep period, continuously record the target sleep period at the next point in time and compare the target sleep period with the preset sleep period until the comparison determines that the recorded target sleep period is equal to the preset sleep period.

[0059] In some embodiments, the upload module 303 packages the positioning information to obtain a positioning packet, where the positioning information is map information and location coordinates read in the sleep state, and is used to read storage information associated with the self-propelled device, encrypt the positioning packet using a key recorded in the storage information, obtain an encrypted packet, and send the encrypted packet to the storage address recorded in the storage information.

[0060] In some embodiments, as shown in FIG. 5, the device further includes a recognition module 501 and a setting module 502.

[0061] The recognition module 501 is used to recognize the upload status sent from the server.

[0062] The setting module 502 is used to set an upload success indicator in the local memory if the upload status indicates a successful upload.

[0063] In some embodiments, the upload module 303 is further used to detect the local memory in real time or periodically, and if there is no upload success indicator in the local memory, to retransmit the positioning information to the storage address until the upload success indicator is detected in the local memory or the self-propelled device is shut down.

[0064] In some embodiments, as shown in FIG. 6, the device further includes a deleting module 601 and a sending module 602.

[0065] The deletion module 601 is used to delete the upload success indicator in the local memory when a direct operation command is detected, and the direct operation command is used to indicate the command issued by the user on the self-propelled device.

[0066] The sending module 602 is used to send a deletion request to the server when it is detected that a network connection exists, and control the server to delete the positioning information in the storage address based on the deletion request.

[0067] When the device provided by the embodiment of the present application detects that the self-propelled device has entered a sleep state, it can record a target sleep period during which the self-propelled device will continue to sleep. Furthermore, it compares the target sleep period with a preset sleep period. If the comparison determines that the target sleep period is equal to the preset sleep period, it sends positioning information to a storage address. Thus, after a user starts the application terminal, the control plug-in of the application terminal can display the corresponding location of the self-propelled device based on the positioning information. By defining the upload time of the positioning information according to the preset sleep period, the present application not only ensures that the self-propelled device has enough time to upload the positioning information before shutting down, but also ensures the timeliness of the positioning information. After the positioning information is successfully uploaded to the storage address of the server, the application terminal can obtain the positioning information from the storage address, allowing the user to check the location of the corresponding self-propelled device in the control plug-in of the application terminal, thereby helping the user find the self-propelled device.

[0068] For other corresponding descriptions of each functional unit related to the device location identification device provided by the embodiment of the present application, please refer to the corresponding descriptions in Figures 1 and 2, and the description will be omitted here.

[0069] 7, an exemplary embodiment further provides an electronic device including a communication bus, a processor, a memory, a communication interface, and optionally an input / output interface and a display device, wherein each functional unit can communicate with each other through the bus, the memory stores a computer program, and the processor executes the program stored in the memory to perform the device location method in the embodiment.

[0070] A computer-readable storage medium having a computer program stored thereon, the computer program implementing the steps of the device location method when executed by a processor.

[0071] In one embodiment, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, it realizes the steps in each of the above method embodiments. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a portable hard disk, etc.), and includes some commands to make an electronic device (which can be a personal computer, a server, a network device, etc.) execute the method described in each implementation scenario of the present application.

[0072] Those skilled in the art will understand that the drawings are merely schematic diagrams of preferred implementation scenes, and the modules or processes in the drawings are not necessarily required to implement the present application.

[0073] Those skilled in the art can understand that the modules in the devices in the implementation scenario may be distributed among the devices in the implementation scenario according to the description of the implementation scenario, or may be arranged in one or more devices different from the implementation scenario with corresponding changes. The modules in the implementation scenario may be integrated into one module or further divided into multiple sub-modules.

[0074] The numbers in the above application are for explanation purposes only and do not represent the superiority or inferiority of the implementation scenes.

[0075] The above disclosure is merely some specific implementation scenes of the present application, but the present application is not limited thereto, and any modifications that can be conceived by a person skilled in the art should be included in the scope of the claims of the present application.

Claims

1. A method for locating a device, comprising: recording a target sleep period and comparing the target sleep period with a preset sleep period, the target sleep period being used to indicate the time the self-propelled device will continuously be in the sleep state; If the comparison determines that the target sleep period is equal to the preset sleep period, transmitting the positioning information to a storage address so that a user can know the actual location of the device based on the positioning information. How the device is located.

2. Before recording the target sleep duration, the method further comprises: When a network connection is detected, transmitting device information to a server so that the server identifies stored information associated with the self-propelled device based on the device information; receiving the stored information transmitted from the server and storing the stored information; The method of claim 1.

3. After comparing the target sleep duration with the preset sleep duration, the method further comprises: if the comparison determines that the target sleep period is shorter than the preset sleep period, continuously recording the target sleep period at a next point in time, and comparing the target sleep period with the preset sleep period until the comparison determines that the recorded target sleep period is equal to the preset sleep period. The method of claim 1.

4. Sending positioning information to a stored address packaging the positioning information to obtain a positioning packet, the positioning information being map information and position coordinates read in the sleep state; reading stored information associated with the self-propelled device, and encrypting the positioning packet using a key recorded in the stored information to obtain an encrypted packet; transmitting the encrypted packet to a storage address recorded in the storage information. The method of claim 1.

5. After transmitting the positioning information to the storage address, the method further comprises: Recognizing the upload status sent by the server; If the upload status indicates a successful upload, setting an upload success indicator in a local memory. The method of claim 1.

6. After transmitting the positioning information to the storage address, the method further comprises: sensing the local memory in real time or periodically; If there is no upload success indicator in the local memory, retransmitting the positioning information to the storage address until the upload success indicator is detected in the local memory or the self-propelled device is in a shutdown state. The method of claim 1.

7. The method further comprises: Deleting the upload success indicator in the local memory when a direct manipulation command is detected, the direct manipulation command being used to indicate a command issued by a user on the self-propelled device; When it is detected that a network connection exists, sending a deletion request to the server, and controlling the server to delete the positioning information in the storage address based on the deletion request. The method of claim 1.

8. A device for identifying the location of a device, a recording module used to record a target sleep period and compare the target sleep period with a preset sleep period, the target sleep period being used to indicate the time the self-propelled device is continuously in the sleep state; and an upload module, which is used to send the positioning information to a storage address when the comparison determines that the target sleep period is equal to the preset sleep period, so that a user can know the actual location of the device based on the positioning information. Equipment location device.

9. An electronic device including a memory in which a computer program is stored and a processor, the electronic device implementing the steps of the method according to any one of claims 1 to 7 when the processor executes the computer program. electronic equipment.

10. A computer program product including a computer program that, when executed by a processor, recording a target sleep period and comparing the target sleep period with a preset sleep period, the target sleep period being used to indicate the time the self-propelled device will continuously be in the sleep state; and if it is determined by the comparison that the target sleep period is equal to the preset sleep period, transmitting the positioning information to a storage address so that a user can know the actual location of the device based on the positioning information. Computer program products.

11. Before recording the target sleep period, When a network connection is detected, transmitting device information to a server so that the server identifies stored information associated with the self-propelled device based on the device information; receiving the stored information transmitted from the server and storing the stored information; 11. The computer program product of claim 10.

12. After comparing the target sleep period with the preset sleep period, if the comparison determines that the target sleep period is shorter than the preset sleep period, continuously recording the target sleep period at a next point in time, and comparing the target sleep period with the preset sleep period until the comparison determines that the recorded target sleep period is equal to the preset sleep period.

11. The computer program product of claim 10.

13. Sending positioning information to a stored address packaging the positioning information to obtain a positioning packet, the positioning information being map information and position coordinates read in the sleep state; reading stored information associated with the self-propelled device, and encrypting the positioning packet using a key recorded in the stored information to obtain an encrypted packet; transmitting the encrypted packet to a storage address recorded in the storage information.

11. The computer program product of claim 10.

14. After transmitting the positioning information to the storage address, Recognizing the upload status sent by the server; If the upload status indicates a successful upload, setting an upload success indicator in a local memory.

11. The computer program product of claim 10.

15. After transmitting the positioning information to the storage address, sensing the local memory in real time or periodically; If there is no upload success indicator in the local memory, retransmitting the positioning information to the storage address until the upload success indicator is detected in the local memory or the self-propelled device is in a shutdown state.

11. The computer program product of claim 10.

16. A self-propelled device including a memory in which a computer program is stored and a processor, the processor including an image acquisition assembly used for performing image acquisition, a communication unit used for data transmission with a maintenance station or a terminal, and an analysis transport unit used for performing image recognition analysis, the processor implementing the steps of the method according to any one of claims 1 to 7 when executing the computer program. Self-propelled equipment.

17. A computer-readable storage medium on which a computer program is stored, the computer program being capable of executing the following functions when executed by a processor: recording a target sleep period and comparing the target sleep period with a preset sleep period, the target sleep period being used to indicate the time the self-propelled device will continuously be in the sleep state; and if it is determined by the comparison that the target sleep period is equal to the preset sleep period, transmitting the positioning information to a storage address so that a user can know the actual location of the device based on the positioning information. A computer-readable storage medium.

18. Before recording the target sleep period, When a network connection is detected, transmitting device information to a server so that the server identifies stored information associated with the self-propelled device based on the device information; receiving the stored information transmitted from the server and storing the stored information; 18. The computer-readable storage medium of claim 17.

19. After comparing the target sleep period with the preset sleep period, if the comparison determines that the target sleep period is shorter than the preset sleep period, continuously recording the target sleep period at a next point in time, and comparing the target sleep period with the preset sleep period until the comparison determines that the recorded target sleep period is equal to the preset sleep period.

18. The computer-readable storage medium of claim 17.

20. Sending positioning information to a stored address packaging the positioning information to obtain a positioning packet, the positioning information being map information and position coordinates read in the sleep state; reading stored information associated with the self-propelled device, and encrypting the positioning packet using a key recorded in the stored information to obtain an encrypted packet; transmitting the encrypted packet to a storage address recorded in the storage information.

18. The computer-readable storage medium of claim 17.