Position warning method, device, electronic device and storage medium

By measuring the distance between equipment and determining the location in the tourism scenario, the problem of the inability to accurately determine whether tourists leave the safe area in the prior art is solved, and monitoring and early warning of tourists' safety is achieved.

CN114640945BActive Publication Date: 2025-06-20GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210202404.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-03
Publication Date
2025-06-20
Estimated Expiration
2042-03-03

AI Technical Summary

Technical Problem

The prior art cannot accurately determine whether tourists leave the safe area in tourism scenarios, and it is impossible to confirm tourists leaving the safe area.

Method used

By measuring the spacing between the master and slave devices in the first cluster, the location of each device is determined and an early warning signal is issued when an early warning condition is triggered. The warning condition is determined based on the distance threshold, and an early warning is triggered when the distance between the master and slave devices exceeds the threshold.

Benefits of technology

It realizes an accurate judgment on whether tourists leave the safe area, and can identify and issue early warnings when situations beyond the safe area occur, improving tourists' safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114640945B_ABST
    Figure CN114640945B_ABST
Patent Text Reader

Abstract

The present application discloses a position warning method, device, electronic device and storage medium. Among them, the method is applied to the master device in the first cluster, and the first cluster includes at least one master device and at least one slave device. The method includes: determining first information, second information and third information of the first cluster; wherein, the first information represents the first distance between each master device and each slave device; the second information represents the second distance between every two slave devices; the third information represents the position of at least one master device; and when a warning condition is triggered, a warning signal is sent; the warning condition is determined based on the third information, and represents that there is a first distance and / or a second distance greater than the corresponding distance threshold in the determined information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of positioning technology, and in particular, to a position warning method, device, electronic device, and storage medium. Background Art

[0002] In related technologies, different positioning technologies can be used to determine whether a tourist has left a safe area. When a tourist leaves the safe area, a warning is sent to the tourist. However, in practical applications, in a tourism scenario, different positioning technologies all have certain defects, resulting in an inability to accurately determine whether a tourist has left the safe area and an inability to identify the tourist who has left the safe area. Summary of the Invention

[0003] In view of this, embodiments of this application provide a position warning method, device, electronic device, and storage medium to at least solve the problems in the related technologies of being unable to accurately determine whether a tourist has left the safe area and being unable to identify the tourist who has left the safe area.

[0004] The technical solution of the embodiments of this application is implemented as follows:

[0005] Embodiments of this application provide a position warning method, which is applied to a master device in a first cluster. The first cluster includes at least one master device and at least one slave device. The method includes:

[0006] Determine first information, second information, and third information of the first cluster; wherein, the first information represents the first distance between each master device and each slave device; the second information represents the second distance between every two slave devices; the third information represents the position of at least one master device;

[0007] When a warning condition is triggered, send a warning signal; the warning condition is determined based on the third information and represents that there is a first distance and / or a second distance greater than the corresponding distance threshold in the determined information.

[0008] Embodiments of this application provide another position warning method, which is applied to a server. The method includes:

[0009] Receive the first information, second information, and third information reported by the master device; the first information represents the first distance between each master device and each slave device in the first cluster; the second information represents the second distance between every two slave devices; the third information represents the position of at least one master device;

[0010] Determine the position of each device in the first cluster according to the first information, second information, and third information;

[0011] Return the position of each device in the first cluster to the master device.

[0012] An embodiment of the present application further provides a position warning device, which is applied to a master device in a first cluster. The first cluster includes at least one master device and at least one slave device. The device includes:

[0013] A first determination unit, configured to determine first information, second information, and third information of the first cluster; wherein, the first information represents a first distance between each master device and each slave device; the second information represents a second distance between every two slave devices; the third information represents the position of at least one master device.

[0014] A warning unit, configured to send a warning signal when a warning condition is triggered; the warning condition is determined based on the third information, and represents that there is a first distance and / or a second distance greater than a corresponding distance threshold in the determined information.

[0015] An embodiment of the present application further provides another position warning device, which is applied to a server. The device includes:

[0016] A receiving unit, configured to receive the first information, the second information, and the third information reported by the master device; the first information represents a first distance between each master device and each slave device in the first cluster; the second information represents a second distance between every two slave devices; the third information represents the position of at least one master device.

[0017] A second determination unit, configured to determine the position of each device in the first cluster according to the first information, the second information, and the third information.

[0018] A sending unit, configured to return the position of each device in the first cluster to the master device.

[0019] An embodiment of the present application further provides an electronic device, including: a processor and a memory for storing a computer program that can run on the processor.

[0020] Wherein, when the processor is used to run the computer program, it executes the steps of any of the above methods.

[0021] An embodiment of the present application further provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of any of the above methods.

[0022] In an embodiment of the present application, the first cluster includes at least one master device and at least one slave device. The master device determines the first information, the second information, and the third information of the first cluster, and sends a warning signal when a warning condition is triggered, so as to accurately determine whether there is a device far from the distance threshold in the first cluster, and be able to identify the device far from the distance threshold when there is a device far from the distance threshold. Brief Description of the Drawings

[0023] Figure 1 Schematic diagram of the implementation process of the location warning method provided by an embodiment of the present application;

[0024] Figure 2 Schematic diagram of device interaction of a first cluster provided by an embodiment of the present application;

[0025] Figure 3 Another schematic diagram of device interaction of a first cluster provided by an embodiment of the present application;

[0026] Figure 4 Schematic diagram of the implementation process of the location warning method provided by an embodiment of the present application;

[0027] Figure 5 Schematic diagram of a first cluster provided by an embodiment of the present application;

[0028] Figure 6 Another schematic diagram of a first cluster provided by an embodiment of the present application;

[0029] Figure 7 Schematic diagram of the implementation process of the location warning method provided by an embodiment of the present application;

[0030] Figure 8 Schematic diagram of the implementation process of the location warning method provided by another embodiment of the present application;

[0031] Figure 9 Schematic diagram of a location map provided by an embodiment of the present application;

[0032] Figure 10 Schematic diagram of a reference line provided by an embodiment of the present application;

[0033] Figure 11 Schematic diagram of the position of slave device b in the location map provided by an embodiment of the present application;

[0034] Figure 12 Schematic diagram of the positions of slave device b and slave device c in the location map provided by an embodiment of the present application;

[0035] Figure 13 Schematic diagram of realizing dialing connection based on the location map provided by an embodiment of the present application

[0036] Figure 14 Schematic diagram of the functional modules of a device provided by an embodiment of the present application;

[0037] Figure 15 Schematic diagram of the interaction between a device and a mobile terminal provided by an embodiment of the present application;

[0038] Figure 16 Schematic diagram of the implementation process of another position warning method provided by an embodiment of this application;

[0039] Figure 17 Schematic diagram of the implementation process of another position warning method provided by another embodiment of this application;

[0040] Figure 18 Schematic diagram of the functional modules of a server provided by an embodiment of this application;

[0041] Figure 19 Schematic diagram of the structure of a position warning device provided by an embodiment of this application;

[0042] Figure 20 Schematic diagram of the structure of a position warning device provided by another embodiment of this application;

[0043] Figure 21 Schematic diagram of the hardware composition structure of an electronic device according to an embodiment of this application. Detailed implementation manners

[0044] The present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0045] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of this application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, and methods are omitted to avoid unnecessary details from interfering with the description of this application.

[0046] It should be noted that the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.

[0047] In addition, in the examples of this application, "first", "second", etc. are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence.

[0048] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" in this article represents any one or any combination of at least two of multiple ones. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set composed of A, B, and C.

[0049] The present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0050] An embodiment of the present application provides a location warning method. Figure 1 As shown in the flowchart of the location warning method according to an embodiment of the present application, the method is applied to the master device in the first cluster, such as Figure 1 shown, the method includes:

[0051] S101: Determine the first information, second information, and third information of the first cluster; wherein, the first information represents the first distance between each master device and each slave device; the second information represents the second distance between every two slave devices; the third information represents the location of at least one master device.

[0052] The first information and the third information of the first cluster can be measured by the master device, and the second information is measured by the slave device. The slave device then sends the measured second information to the master device, so that the master device can determine the first information, the second information, and the third information. Among them, the first information and the second information also carry the identification information of the measured device. The identification information of the measured device can be the MAC address (Media Access Control Address). For example, in addition to the first distance, the first information also includes the MAC address of slave device a. Thus, through the MAC address, it can be determined that the first distance in the first information corresponds to the first distance between the master device and slave device a. In practical applications, the master device and the slave device can perform periodic measurements, so that the master device can periodically determine the first information, the second information, and the third information.

[0053] In practical applications, the master device and the number of master devices in the first cluster can be configured according to the application scenario. For example, in a tourism scenario, the device assigned to the tour guide can be used as the master device, and the devices assigned to the tourists can be used as slave devices.

[0054] In one embodiment, Wi-Fi modules are configured on the master device and the slave device. Wi-Fi signals are sent through the Wi-Fi modules, and the round-trip communication delay of the Wi-Fi signals is calculated to determine the first information and the second information. Specifically, the master device determines the first distance between the master device and the slave device through the Wi-Fi signal sent by the Wi-Fi module, and the slave device determines the second distance between the slave devices through the Wi-Fi signal sent by the Wi-Fi module. In practical applications, the slave device can also determine the distance between the slave device and the master device through the Wi-Fi signal sent by the Wi-Fi module. As shown in Table 1, Table 1 shows the first information and the second information obtained by the master device and the slave device through the Wi-Fi module.

[0055] Table 1

[0056]

[0057]

[0058] The distance data in Table 1 is determined by the Wi-Fi signals sent by the Wi-Fi module. Among them, the first distance between the master device and slave device a can be determined by the Wi-Fi signals sent by the Wi-Fi module of the master device, or can be determined by the Wi-Fi signals sent by the Wi-Fi module of slave device a.

[0059] In addition, the master device in the first cluster is also configured with a GPS module. The master device can be positioned by the GPS module, and then the third information can be determined.

[0060] In practical applications, the devices in the first cluster are configured with two positioning modes. The first positioning mode is the Wi-Fi positioning mode, and the second positioning mode is the Wi-Fi + GPS positioning mode. When the device is configured with the first positioning mode, the device can only measure the distance through the Wi-Fi module and cannot use the GPS module for positioning. When the device is configured with the second positioning mode, the device can simultaneously perform positioning through the Wi-Fi module and the GPS module. In the embodiments of the present application, the slave devices in the first cluster are configured with the first positioning mode, and the master device is configured with the second positioning mode.

[0061] As Figure 2 shown, Figure 2 shows a schematic diagram of device interaction in a first cluster. In the first cluster in Figure 2 there is one master device and three slave devices. The master device and the slave devices can measure the distance to obtain the first distance through the Wi-Fi signals sent by the Wi-Fi module. The slave devices can also measure the distance to obtain the second distance through the Wi-Fi signals sent by the Wi-Fi module. In addition, the master device can also be positioned through the GPS signal.

[0062] As Figure 3 shown, Figure 3 shows another schematic diagram of device interaction in a first cluster. In the first cluster in Figure 3 there are two master devices and two slave devices. The master device and the slave devices can measure the distance to obtain the first distance through the Wi-Fi signals sent by the Wi-Fi module. The slave devices can also measure the distance to obtain the second distance through the Wi-Fi signals sent by the Wi-Fi module. In addition, the master devices can also measure the distance between the two master devices through the Wi-Fi signals sent by the Wi-Fi module. Master device A and master device B in the first cluster can also be respectively positioned through the GPS signal.

[0063] In one embodiment, as Figure 4As shown, before determining the first information, second information, and third information of the first cluster, the method further includes:

[0064] S401: Receive a first request sent by at least one first device; the first request is used to request to join the first cluster.

[0065] Combining the slave devices that need to communicate with the master device into a first cluster can facilitate the master device to manage other slave devices, and at the same time avoid the master device receiving messages sent by devices outside the first cluster. For example, in a tourism scenario, for a tour group, the tour guide is concerned about the tourists in the tour group he leads and does not need to pay attention to the tourists in other tour groups. To facilitate the tour guide's management of tourists and avoid receiving messages sent by tourists in other tour groups, the tour guide's device and the tourists' devices can be formed into a cluster. In the same cluster, each device can communicate with each other, so that the tour guide and the tourists can keep in touch.

[0066] The master device activates the sensing function of the Wi-Fi module and creates a first cluster. At this time, the first cluster only contains the master device. After the sensing function of the Wi-Fi module of the first device is turned on, it can discover the first cluster created by the master device and send a first request to the master device to request to join the first cluster.

[0067] S402: Measure the distance to each first device that sends the first request, and determine at least one second device whose corresponding ranging result is less than a set threshold.

[0068] The master device needs to screen the first devices that initiate the first request. Specifically, measure the distance to each first device that sends the first request, so as to obtain the distance between each first device and the master device, and then filter out the first devices that are not within the set threshold range. For example, the second device can be a device whose distance from the master device is less than 1 meter.

[0069] S403: Add the determined at least one second device as a slave device of the first cluster.

[0070] Adding at least one second device to the first cluster means agreeing to the first request sent by at least one second device. In the first cluster, each second device is a slave device, as Figure 5 shown, Figure 5 shows a schematic diagram of a first cluster. In practical applications, the master device can send the MAC addresses of all devices in the first cluster to the server so that the server can manage the first cluster.

[0071] In one embodiment, to meet different application scenarios, for example, in a scientific research expedition scenario, the personnel participating in the scientific research expedition are divided into different groups, or, in a tourism scenario, the tour guide divides the tourists into different groups for free visits. In the first cluster, there may also be multiple master devices. Specifically, the master device may set at least one slave device in the first cluster as the master device of the first cluster. As Figure 6 shown, Figure 6 FIG. shows a schematic diagram of another first cluster, in which there are two master devices in the first cluster.

[0072] S102: When the warning condition is triggered, a warning signal is issued; the warning condition is determined based on the third information, indicating that there is a first distance and / or a second distance greater than the corresponding distance threshold in the determined information.

[0073] The distance threshold in the warning condition can be regarded as a safety distance. Among them, taking the master device as the reference, the area formed with the distance threshold as the radius can be regarded as a safety area. When all the devices in the first cluster are located within the safety area, it indicates that there is no first distance and / or second distance greater than the distance threshold. When there is a first distance and / or a second distance greater than the distance threshold in the first cluster, that is, there are devices in the first cluster that exceed the safety area, the corresponding devices may face different safety risks. For example, in a tourism scenario, the distance between the tourist and the tour guide will be kept within the range of the distance threshold. When the distance between the tourist and the tour guide exceeds the distance threshold, the tourist may fall behind or get lost, and is prone to various safety threats.

[0074] The master device determines whether the warning condition will be triggered based on the first information and the second information. When there is a first distance and / or a second distance exceeding the distance threshold, the warning condition will be triggered and a warning signal will be issued. Among them, the warning signal can be vibration or an alarm bell. For example, when the master device finds that the first distance between the master device and the slave device a exceeds the distance threshold, it issues a warning signal to prompt that the slave device a has moved away from the master device.

[0075] In practical applications, the warning signal of the device can be issued in different ways. In the first way, when the master device detects that the warning condition is triggered, the master device itself issues a warning signal, so that the user holding the master device can know that there are devices in the first cluster that are away from the safety area.

[0076] In the second method, when the master device detects that the warning condition is triggered, the master device itself will issue a warning signal. At the same time, the master device will send a warning instruction to the devices outside the safe range. The devices outside the safe range will issue a warning signal according to the warning instruction. For example, when the first distance between the master device and slave device a exceeds the distance threshold, the master device itself issues a warning signal and sends a warning instruction to slave device a at the same time. Slave device a issues a warning signal according to the received warning instruction, so as to remind the user holding slave device a to stay away from the safe area.

[0077] In the third method, the master device can send the warning condition to the slave device, so that the slave device can judge whether the warning condition is triggered according to the measured first information and second information. When the warning condition is triggered, the slave device can issue a warning signal. For example, the master device sends the warning condition to slave device a. Slave device a can detect the first distance between slave device a and the master device, and the second distance between slave device a and other slave devices. When slave device a detects that the first distance between slave device a and the master device exceeds the distance threshold in the warning condition, slave device a issues a warning signal.

[0078] In practical applications, the warning condition is determined by the third information. Taking the scenario of tourism as an example, in the case of a tourist attraction with a large scenic area, the corresponding distance threshold needs to be increased accordingly. In the case of a tourist attraction with a small scenic area, the corresponding distance threshold needs to be decreased accordingly. By changing the distance threshold, the warning condition can adapt to the characteristics of different scenic areas, and then it can more accurately judge the devices away from the safe area.

[0079] In one embodiment, as Figure 7 shown, before the warning signal is issued, the method further includes:

[0080] S701: Report the third information to the server and receive the first configuration information corresponding to the third information returned by the server; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter. The first configuration parameter represents the distance threshold between the master device and the slave device; the second configuration parameter represents the distance threshold between two slave devices; the third configuration parameter represents the distance threshold between two master devices.

[0081] In practical applications, since the warning conditions configured for different geographical locations are different, the master device needs to report the third information to the server to obtain the configuration parameters corresponding to the current location of the master device, so as to complete the configuration of the warning condition.

[0082] The master device can receive the first configuration parameters corresponding to the third information from the server. Among them, when there is one master device in the first cluster, there is no possibility of determining the third distance between each master device in the first cluster. The master device receives the first configuration information sent by the server, which includes the first configuration parameters and / or the second configuration parameters, that is, the master device configures the warning conditions according to the first configuration parameters and / or the second configuration parameters in the first configuration information. When there are at least two master devices in the first cluster, there is a possibility of determining the third distance between each master device in the first cluster. The master device can receive the first configuration information containing the third configuration parameters sent by the server, that is, the master device configures the warning conditions according to at least one of the first configuration parameters, the second configuration parameters, and the third configuration parameters in the first configuration information. In another possible case, regardless of the number of master devices in the first cluster, the first configuration information received by the master device includes at least one of the first configuration parameters, the second configuration parameters, and the third configuration parameters. The master device can select at least one of the first configuration parameters, the second configuration parameters, and the third configuration parameters in the first configuration information according to the actual situation to configure the warning conditions.

[0083] S702: Configure the warning conditions according to the first configuration information.

[0084] In practical applications, there are two different warning conditions. The master device can configure the warning conditions according to the actual situation or according to the first configuration parameters contained in the received first configuration information.

[0085] The first warning condition is configured and generated according to the first configuration parameters in the first configuration information. The generated first warning condition is used to determine whether the absolute distance between the devices in the first cluster exceeds the first configuration parameters. Here, the absolute distance refers to the distance between the master device and the slave device. Specifically, the master device will determine whether there is a first distance greater than the first configuration parameters in the first information according to the determined first information of the first cluster. In practical applications, the first configuration information received by the master device may contain other configuration parameters in addition to the first configuration parameters. When configuring the warning conditions, the master device extracts the first configuration parameters in the first configuration information and does not refer to other configuration parameters in the first configuration information. Or, the first configuration information received by the master device only contains the first configuration parameters, and the master device can directly configure the warning conditions according to the first configuration parameters in the first configuration information.

[0086] The second warning condition is configured and generated according to the second configuration parameter and / or the third configuration parameter in the first configuration information. The generated second warning condition is used to determine whether the relative distance between devices in the first cluster exceeds the second configuration parameter and / or the third configuration parameter. Here, the relative distance can be the second distance between two slave devices. When there are at least two master devices in the first cluster, the relative distance here can also include the third distance between two master devices, or include both the second distance between two slave devices and the third distance between two master devices. Specifically, when there is one master device in the first cluster, the master device will, according to the determined second information of the first cluster, determine whether there is a second distance greater than the first configuration parameter in the second information. When there are at least two master devices in the first cluster, the master device will, according to the determined second information of the first cluster and the determined third distance between each pair of master devices in the first cluster, determine whether there is a second distance in the first cluster greater than the second configuration parameter, and / or whether there is a third distance greater than the third configuration parameter. In the second warning condition, the warning condition is triggered when the second distances between the same slave device and other slave devices are all greater than the second configuration parameter. For example, in the first cluster, there are slave device a, slave device b, and slave device c. When the second distance between slave device a and slave device b is greater than the second configuration parameter, and the second distance between slave device a and slave device c is greater than the second configuration parameter, it is determined that the warning condition is triggered, and a warning signal is sent.

[0087] In practical applications, after the master device completes the configuration of the warning condition according to the first configuration parameter, it can send the first configuration parameter or the configured warning condition to the slave devices in the first cluster.

[0088] In one embodiment, as Figure 8 shown, the method further includes:

[0089] S801: Load a location map; the location map is used to describe the locations of each device in the first cluster.

[0090] The master device can load and display the location map on the display interface. The location map shows the locations of each device in the first cluster. As Figure 9 shown, Figure 9 shows a schematic diagram of a location map, where Figure 9 the shown location map is generated with reference to the data in Table 1. In the location map, the distribution of each device in the first cluster can be determined, and the distance between each pair of devices in the first cluster can be determined.

[0091] In one embodiment, before loading the location map, it is necessary to determine the location of each device in the first cluster. In the embodiments of the present application, two solutions for determining the location of each device in the first cluster are provided.

[0092] In the first solution, the master device determines the positions of each device in the first cluster. The master device can determine the positions of each device in the first cluster based on the first information, second information, and third information of the determined first cluster.

[0093] In the second solution, the server determines the positions of each device in the first cluster, and then sends the determined positions of each device in the first cluster to the master device, enabling the master device to load the position map according to the received positions of each device in the first cluster. In this solution, the master device needs to report the first information, second information, and third information of the first cluster to the server, so that the server determines the positions of each device in the first cluster based on the first information, second information, and third information of the first cluster.

[0094] The specific implementation process for determining the positions of each device in the first cluster is as follows: Determine the reference line. Among them, when the first cluster contains one master device, the master device and any one slave device can be used as the reference line. Referring to the data in Table 1, select the master device and slave device a as the reference line. As Figure 10 shown, Figure 10 shows a schematic diagram of the reference line. In Figure 10 the position information of the master device can be set to (0, 0), and the position information of slave device a is (0, 10), and the position of slave device a can be obtained accordingly. On the basis of Figure 10 , according to the first information and second information about slave device b, construct the position of slave device b. In practical applications, there are two possibilities for slave device b. As Figure 11 shown, Figure 11 shows a schematic diagram of the position of slave device b in the position map. Slave device b can be in the first position. In addition, slave device b can also be in the second position. In these two possibilities, the first distance between slave device b and the master device, and the second distance between slave device b and slave device a both meet the data in Table 1. On the basis of Figure 11 , according to the first information and second information about slave device c, the positions of slave device b and slave device b can be determined. As Figure 12 shown, Figure 12 shows a schematic diagram of the positions of slave device b and slave device c in the position map; assuming that slave device b is in the first position, then the second distance between slave device b and slave device c does not meet the 12.6m recorded in Table 1, while when slave device b is in the second position, the second distance between slave device b and slave device c meets the 12.6m recorded in Table 1. Therefore, it can be determined that slave device b is in the second position. The positions of other devices in the first cluster can be determined according to the triangulation principle, so as to determine the positions of all devices in the first cluster. In practical applications, when the first cluster contains at least two master devices, any two master devices can be used as the reference line.

[0095] S802: Output the fourth piece of information in the location map; the fourth piece of information characterizes the location of the slave device corresponding to the first distance and / or the second distance that triggers the warning condition.

[0096] The master device needs to pay attention to the location of the slave device that triggers the warning condition, so as to be able to find the user who holds the slave device that triggers the warning condition in time, and avoid the user falling behind for a long time. In this embodiment, the fourth piece of information can be output in the location map. In one way, the slave device that triggers the warning condition can be marked in the location map, and detailed location information can be output. In addition, a navigation function can also be provided to provide a route plan from the location where the master device is located to the location where the slave device that triggers the warning condition is located.

[0097] In practical applications, each device in the first cluster is held by a user respectively. For example, in a tourism scenario, the slave device is held by tourists and the master device is held by a tour guide. When the slave device that triggers the warning condition sends a warning signal, the user will try to rejoin the team. However, because the user is not familiar with the current geographical environment, the user is easy to get lost. Even during the process of trying to rejoin the team, the communication connection between the slave device and the master device is disconnected due to the excessive distance between the slave device and the master device, resulting in the master device being unable to determine the location of the slave device, and making it take longer for the tour guide to find the lagging tourists. In this embodiment, the contact information of different devices can also be displayed on the loaded location map, such as Figure 13 as shown Figure 13 shows a schematic diagram of realizing dialing contact based on the location map. The tour guide can realize dialing contact by clicking on the icon of the device on the location map. Thus, when the tour guide discovers a lagging tourist, the tour guide can immediately contact the lagging tourist and communicate with the tourist, avoiding the loss of contact during the process of the tourist trying to rejoin the team.

[0098] In the embodiment of the present application, the first cluster includes at least one master device and at least one slave device. The master device can determine the first piece of information, the second piece of information and the third piece of information of the first cluster, and issue a warning signal when the warning condition is triggered, so as to be able to monitor the distance between different devices in real time and be able to discover devices that exceed the safety threshold in time.

[0099] The embodiment of the present application also provides an application embodiment, as Figure 14 shown Figure 14 shows a schematic diagram of the functional modules of a device. Figure 14 The device shown can be a slave device or a master device. The device includes a GPS module, a Wi-Fi module, a communication module, a vibration module, an audio module, a storage module and a management module. Among them,

[0100] The GPS module is used to provide GPS positioning, and the Wi-Fi module is used to provide ranging and Wi-Fi sensing functions.

[0101] The communication module is used to provide the ability to access the network.

[0102] The vibration module is used to provide a vibration function for warning.

[0103] The audio module is used to provide voice for warning.

[0104] The storage module is used to save configuration information and location information.

[0105] The management module is used to provide a series of management functions. For example, when the device is the master device of the first cluster, the management module can configure the Wi-Fi+GPS positioning mode for the master device; when the device is the slave device of the first cluster, the management module can configure the Wi-Fi positioning mode for the slave device.

[0106] In practical applications, the device can be implemented through a mobile terminal, and the device can be an independent IoT device, such as Figure 15 As shown, when the device is an independent Internet of Things (IoT) device, the user can communicate with the device through a mobile terminal and configure information such as the corresponding name and contact information for the device, so as to distinguish different users.

[0107] The embodiment of the present application also provides another method for location warning, such as Figure 16 As shown, the method is applied to a server, and the method includes:

[0108] S1601: Receive the first information, the second information, and the third information reported by the master device; the first information represents the first distance between each master device and each slave device in the first cluster; the second information represents the second distance between every two slave devices; the third information represents the location of at least one master device.

[0109] In addition to the master device needing to obtain the location of each device in the first cluster, the server also needs to know the location of each device in the first cluster, so as to provide relevant services for each device in the first cluster. The server can receive the first information, the second information, and the third information reported by the master device. Among them, the first information and the second information received by the server can refer to the data shown in Table 1, and the third information can be longitude and latitude data. In practical applications, the server can periodically receive the first information, the second information, and the third information reported by the master device.

[0110] S1602: Determine the location of each device in the first cluster according to the first information, the second information, and the third information.

[0111] The server constructs a reference line based on the third information of the master device and the first information corresponding to any one of the slave devices. For example, the master device and slave device a are selected to construct the reference line. At this time, the position information of the master device is (0, 0), and the position information of slave device a is (0, 10). After determining the reference line, the positions of other devices are determined with reference to the principle of triangulation. In practical applications, when there are at least two master devices in the first cluster, the reference line can be constructed based on the third information corresponding to the two master devices.

[0112] S1603: Return the positions of each device in the first cluster to the master device.

[0113] Return the positions of each device in the first cluster to the master device, enabling the master device to successfully load the position map.

[0114] In practical applications, the server can also determine the movement trajectory of the first cluster based on the positions of each device in the determined first cluster, and send travel suggestions to the master device according to the movement trajectory of the first cluster. For example, in a tourism scenario, weather warnings can be combined with the movement trajectory of the first cluster so that the tour guide can take preventive measures in a timely manner. Or, in the event of an emergency, the position of the tour group can be locked so that the tour group can receive timely rescue.

[0115] In one embodiment, as Figure 17 shown, after receiving the third information reported by the master device, the method further includes:

[0116] S1701: Determine the first configuration information corresponding to the third information; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter. The first configuration parameter represents the distance threshold between the master device and the slave device; the second configuration parameter represents the distance threshold between two slave devices; the third configuration parameter represents the distance threshold between two master devices.

[0117] Here, the configuration information corresponding to different positions is different, so that reasonable distance thresholds can be set for different positions. In the embodiments of the present application, the server determines the first configuration information corresponding to the third information. The configuration information includes at least one of the first configuration parameter, the second configuration parameter, and the third configuration parameter. The warning conditions configured by different configuration parameters are different. In one way, the first configuration information determined by the server includes the first configuration parameter, the second configuration parameter, and the third configuration parameter, and the master device configures the warning conditions according to the required configuration parameters. In another way, the configuration parameters included in the first configuration information can be determined according to the number of master devices in the first cluster. Specifically, when the first cluster includes one master device, there is no possibility of obtaining the distance between two master devices in the first cluster. The first configuration information determined by the server can include the first configuration parameter and / or the second configuration parameter. When the first cluster includes at least two master devices, there is a possibility of obtaining the distance between every two master devices in the first cluster, that is, there is a need to limit the distance between every two master devices in the first cluster. The first configuration information determined by the server can include the first configuration parameter, the second configuration parameter, and the third configuration parameter.

[0118] S1702: Send the first configuration information to the master device.

[0119] In practical applications, the server can determine whether it is necessary to change the configuration information currently stored in the master device according to the third information. In the case of needing to change, the first configuration information is sent to the master device. When the first configuration information corresponding to the determined third information is the same as the configuration information currently stored in the master device, the first configuration information may not be sent to the master device, and the master device determines whether there is a slave device that triggers the warning condition according to the currently stored configuration information.

[0120] In the embodiments of the present application, the server can determine the positions of each device in the first cluster according to the first information, the second information, and the third information reported by the master device, and return the positions of each device in the first cluster to the master device. While enabling the server to obtain the positions of each device, it also enables the master device to quickly locate the position of the device that triggers the warning condition through the positions of each device, avoiding the device being away from the safe area for a long time.

[0121] The present application also provides an application embodiment, as Figure 18 shown, Figure 18 shows a schematic diagram of the functional modules of a server. The server includes a service management module, a location sharing service module, a configuration service module, a security module, a display module, and a storage module. Among them,

[0122] The service management module is the only interface of the master device in the first cluster, providing the master device with a location sharing service and a configuration service.

[0123] The location sharing service is used to determine the locations of each device in the first cluster based on the first information, second information, and third information reported by the master device, and send the locations of each device in the first cluster to the master device.

[0124] The configuration service module is used to decide whether to change the configuration information stored by the master device according to the third information reported by the master device. If a change is needed, the configuration service module sends the first configuration information corresponding to the third information to the master device.

[0125] The security module is used to authenticate the master device connected to the server to ensure the legality of the master device accessing the server.

[0126] The display module is used to provide a visualization function.

[0127] The storage module is used to save the first information, second information, and third information reported by the master device, as well as the configuration information corresponding to different locations.

[0128] To implement the location warning method of the embodiments of the present application, the embodiments of the present application further provide a location warning device, as Figure 19 shown. The device is applied to the master device in the first cluster. The first cluster includes at least one master device and at least one slave device. The device includes:

[0129] A first determination unit 1901, configured to determine the first information, second information, and third information of the first cluster; wherein, the first information represents the first distance between each master device and each slave device; the second information represents the second distance between every two slave devices; the third information represents the location of at least one master device;

[0130] A warning unit 1902, configured to send a warning signal when a warning condition is triggered; the warning condition is determined based on the third information, and represents that there is a first distance and / or a second distance greater than the corresponding distance threshold in the determined information.

[0131] In one embodiment, before the warning signal is sent, the device is further configured to:

[0132] Report the third information to the server and receive the first configuration information corresponding to the third information returned by the server; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter. The first configuration parameter represents the distance threshold between the master device and the slave device; the second configuration parameter represents the distance threshold between two slave devices; the third configuration parameter represents the distance threshold between two master devices;

[0133] Configure the warning condition according to the first configuration information.

[0134] In one embodiment, the device is further configured to:

[0135] Load a location map; the location map is used to describe the locations of each device in the first cluster;

[0136] Output fourth information in the location map; the fourth information characterizes the locations of slave devices corresponding to a first distance and / or a second distance that trigger the warning condition.

[0137] In one embodiment, before loading the location map, the device is further configured to:

[0138] Determine the location of each device in the first cluster according to the first information, the second information, and the third information; or,

[0139] Report the first information, the second information, and the third information to a server, and receive the locations of each device in the first cluster returned by the server based on the first information, the second information, and the third information.

[0140] In one embodiment, before determining the first information, the second information, and the third information of the first cluster, the device is further configured to:

[0141] Receive a first request sent by at least one first device; the first request is used to request to join the first cluster;

[0142] Measure the distance to each first device that sends the first request, and determine at least one second device whose corresponding ranging result is less than a set threshold;

[0143] Add the determined at least one second device as a slave device of the first cluster.

[0144] In one embodiment, the device is further configured to:

[0145] Set at least one slave device in the first cluster as the master device of the first cluster.

[0146] In one embodiment, the first information and the second information are obtained based on Wi-Fi modules on the master device and slave devices; the third information is obtained based on a GPS module on the master device.

[0147] In practical applications, the first determination unit 1901 and the warning unit 1902 can be implemented by a processor in the location warning device. Of course, the processor needs to run programs stored in the memory to implement the functions of the above program modules.

[0148] Another position warning device is also provided in an embodiment of the present application. As Figure 20 shown, the device is applied to a server, and the device includes:

[0149] A receiving unit 2001, configured to receive first information, second information, and third information reported by a master device; the first information represents the first distance between each master device and each slave device in a first cluster; the second information represents the second distance between each two slave devices; the third information represents the position of at least one master device.

[0150] A second determining unit 2002, configured to determine the position of each device in the first cluster according to the first information, the second information, and the third information.

[0151] A sending unit 2003, configured to return the position of each device in the first cluster to the master device.

[0152] In an embodiment, after receiving the third information reported by the master device, the device is further configured to:

[0153] Determine first configuration information corresponding to the third information; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter, the first configuration parameter represents a distance threshold between a master device and a slave device; the second configuration parameter represents a distance threshold between two slave devices; the third configuration parameter represents a distance threshold between two master devices.

[0154] Send the first configuration information to the master device.

[0155] In practical applications, the receiving unit 2001, the second determining unit 2002, and the sending unit 2003 can be implemented by a processor in the position warning device. Of course, the processor needs to run a program stored in the memory to implement the functions of the above program modules.

[0156] It should be noted that when the above Figure 19 , Figure 20 The position warning device provided in the embodiment performs position warning. Only the above division of each program module is used as an example. In practical applications, the above processing can be allocated to different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the position warning device provided in the above embodiment and the embodiment of the position warning method belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be elaborated here.

[0157] Based on the hardware implementation of the above program module, and in order to implement the method of the embodiment of the present application, an electronic device is also provided in the embodiment of the present application.Figure 21 This is a schematic diagram of the hardware composition structure of the electronic device according to an embodiment of the present application. As Figure 21 shown, the electronic device includes:

[0158] A communication interface 1, capable of interacting with other devices such as network devices for information.

[0159] A processor 2, connected to the communication interface 1 to achieve information interaction with other devices. When running a computer program, it executes the location warning method provided by one or more of the above technical solutions. And the computer program is stored on the memory 3.

[0160] Of course, in actual application, each component in the electronic device is coupled together through a bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 21 all kinds of buses are labeled as the bus system 4.

[0161] The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of these data include: any computer program for operating on the electronic device.

[0162] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory), an electrically erasable programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), a ferromagnetic random access memory (FRAM, ferromagnetic random access memory), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM, Compact Disc Read-Only Memory); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM, Random Access Memory), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as a static random access memory (SRAM, Static Random Access Memory), a synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), a dynamic random access memory (DRAM, Dynamic Random Access Memory), a synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), a double data rate synchronous dynamic random access memory (DDR SDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), an enhanced synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), a sync link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), a direct rambus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 3 described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memories.

[0163] The method disclosed in the embodiments of the present application above can be applied to the processor 2 or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 2 or the instructions in the form of software. The above-mentioned processor 2 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. Combining the steps of the method disclosed in the embodiments of the present application, it can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by the combination of the hardware and software modules in the decoding processor. The software module may be located in the storage medium, which is located in the memory 3. The processor 2 reads the program in the memory 3 and combines its hardware to complete the steps of the foregoing method.

[0164] When the processor 2 executes the program, it implements the corresponding processes in the various methods of the embodiments of the present application. For the sake of brevity, it will not be elaborated here.

[0165] In an exemplary embodiment, the embodiments of the present application further provide a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 including a stored computer program. The above computer program can be executed by the processor 2 to complete the steps of the foregoing method. The computer-readable storage medium may be a FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.

[0166] In several embodiments provided by the present application, it should be understood that the disclosed devices, terminals, and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed with each other may be through some interfaces. The indirect coupling or communication connection of the devices or units may be electrical, mechanical, or other forms.

[0167] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0168] In addition, in each embodiment of the present application, each functional unit can be all integrated in a processing unit, or each unit can be separately used as a unit alone, or two or more units can be integrated in one unit; the above-mentioned integrated units can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.

[0169] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: various media such as removable storage devices, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0170] Alternatively, if the above-mentioned integrated units of the present application are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application essentially or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in various embodiments of the present application. And the foregoing storage medium includes: various media such as removable storage devices, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0171] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present application, and all of them should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A position warning method, characterized in that, Applied to the master device in the first cluster, the first cluster includes at least one master device and at least one slave device, and the method includes: Determine the first information, second information, and third information of the first cluster; wherein, the first information represents the first distance between each master device and each slave device; the second information represents the second distance between every two slave devices; the third information represents the position of at least one master device; Report the third information to the server and receive the first configuration information corresponding to the third information returned by the server; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter, the first configuration parameter represents the distance threshold between the master device and the slave device; the second configuration parameter represents the distance threshold between two slave devices; the third configuration parameter represents the distance threshold between two master devices; Configure the warning condition according to the first configuration information; the warning condition is determined based on the third information and represents that there is a first distance and / or a second distance greater than the corresponding distance threshold in the determined information; wherein, the warning condition includes a first preset warning condition and a second preset warning condition; the first preset warning condition is used to judge whether the absolute distance between the devices in the first cluster exceeds the first configuration parameter; the second preset warning condition is used to judge whether the relative distance between the devices in the first cluster exceeds the second configuration parameter and / or the third configuration parameter; in the case where the warning condition is the second preset warning condition, the warning condition is triggered when the second distance between the same slave device and other slave devices is greater than the second configuration parameter; wherein, the absolute distance is the distance between the master device and the slave device; wherein, the relative distance is: the second distance between two slave devices, or the third distance between two master devices, or the second distance between two slave devices and the third distance between two master devices; In the case where the warning condition is triggered, send out a warning signal.

2. The method according to claim 1, characterized in that, The method further includes: Load a position map; the position map is used to describe the position of each device in the first cluster; Output fourth information in the position map; the fourth information represents the position of the slave device corresponding to the first distance and / or the second distance that triggers the warning condition.

3. The method according to claim 2, characterized in that, Before loading the position map, the method further includes: Determine the position of each device in the first cluster according to the first information, the second information, and the third information; or, Report the first information, the second information, and the third information to the server and receive the position of each device in the first cluster returned by the server based on the first information, the second information, and the third information.

4. The method according to claim 1, characterized in that, Before determining the first information, second information, and third information of the first cluster, the method further includes: Receive a first request sent by at least one first device; the first request is used to request to join the first cluster; Measure the distance of each first device that sends the first request and determine at least one second device whose corresponding distance measurement result is less than the set threshold; Add the determined at least one second device as a slave device of the first cluster.

5. The method according to claim 4, characterized in that, The method further includes: Set at least one slave device in the first cluster as the master device of the first cluster.

6. The method according to claim 1, characterized in that, The first information and the second information are obtained based on the Wi-Fi modules on the master device and the slave devices; the third information is obtained based on the GPS module on the master device.

7. A position warning method, characterized in that, Applied to a server, the method includes: Receive the first information, the second information, and the third information reported by the master device; the first information represents the first distance between each master device and each slave device in the first cluster; the second information represents the second distance between every two slave devices; the third information represents the position of at least one master device; Determine the first configuration information corresponding to the third information; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter, the first configuration parameter represents the distance threshold between the master device and the slave device; the second configuration parameter represents the distance threshold between two slave devices; the third configuration parameter represents the distance threshold between two master devices; Send the first configuration information to the master device; the first configuration information is used for the master device to configure the warning conditions; wherein, the warning conditions include a first preset warning condition and a second preset warning condition; the first preset warning condition is used to determine whether the absolute distance between the devices in the first cluster exceeds the first configuration parameter; the second preset warning condition is used to determine whether the relative distance between the devices in the first cluster exceeds the second configuration parameter and / or the third configuration parameter; in the case where the warning condition is the second preset warning condition, the warning condition is triggered when the second distance between the same slave device and other slave devices is greater than the second configuration parameter; wherein, the absolute distance is the distance between the master device and the slave device; wherein, the relative distance is: the second distance between two slave devices, or the third distance between two master devices, or the second distance between two slave devices and the third distance between two master devices; Determine the position of each device in the first cluster according to the first information, the second information, and the third information; Return the position of each device in the first cluster to the master device.

8. A position warning device, characterized in that, Applied to the master device in the first cluster, the first cluster includes at least one master device and at least one slave device, the device includes: A first determination unit, configured to determine the first information, the second information, and the third information of the first cluster; wherein, the first information represents the first distance between each master device and each slave device; the second information represents the second distance between every two slave devices; the third information represents the position of at least one master device; The device is further configured to report the third information to the server before sending out a warning signal, and receive the first configuration information corresponding to the third information returned by the server; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter, where the first configuration parameter represents a distance threshold between a master device and a slave device; the second configuration parameter represents a distance threshold between two slave devices; the third configuration parameter represents a distance threshold between two master devices; configure a warning condition according to the first configuration information; the warning condition is determined based on the third information and represents that there is a first distance and / or a second distance greater than the corresponding distance threshold in the determined information; wherein, the warning condition includes a first preset warning condition and a second preset warning condition; the first preset warning condition is used to determine whether the absolute distance between the devices in the first cluster exceeds the first configuration parameter; the second preset warning condition is used to determine whether the relative distance between the devices in the first cluster exceeds the second configuration parameter and / or the third configuration parameter; in the case where the warning condition is the second preset warning condition, the warning condition is triggered when the second distances between the same slave device and other slave devices are all greater than the second configuration parameter; wherein, the absolute distance is the distance between the master device and the slave device; wherein, the relative distance is: the second distance between two slave devices, or the third distance between two master devices, or the second distance between two slave devices and the third distance between two master devices; A warning unit, configured to send out a warning signal when the warning condition is triggered.

9. A position warning device, characterized in that, Applied to a server, the device includes: A receiving unit, configured to receive the first information, the second information, and the third information reported by the master device; the first information represents the first distances between each master device and each slave device in the first cluster; the second information represents the second distances between every two slave devices; the third information represents the positions of at least one master device; A second determining unit, configured to determine the positions of each device in the first cluster according to the first information, the second information, and the third information; A sending unit, configured to return the positions of each device in the first cluster to the master device; The device is further configured to, after receiving the third information reported by the master device, determine first configuration information corresponding to the third information; the first configuration information includes at least one of a first configuration parameter, a second configuration parameter, and a third configuration parameter, where the first configuration parameter represents a distance threshold between the master device and the slave device; the second configuration parameter represents a distance threshold between two slave devices; the third configuration parameter represents a distance threshold between two master devices; send the first configuration information to the master device; the first configuration information is used for the master device to configure an early warning condition; wherein, the early warning condition includes a first preset early warning condition and a second preset early warning condition; the first preset early warning condition is used to determine whether the absolute distance between the devices in the first cluster exceeds the first configuration parameter; the second preset early warning condition is used to determine whether the relative distance between the devices in the first cluster exceeds the second configuration parameter and / or the third configuration parameter; in the case where the early warning condition is the second preset early warning condition, the early warning condition is triggered when the second distance between the same slave device and other slave devices is greater than the second configuration parameter; wherein, the absolute distance is the distance between the master device and the slave device; wherein, the relative distance is: the second distance between two slave devices, or the third distance between two master devices, or the second distance between two slave devices and the third distance between two master devices.

10. An electronic device, characterized in that, Comprising: a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, it executes the steps of the method according to any one of claims 1 to 6 or claim 7.

11. A storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 6 or claim 7.

Citation Information

Patent Citations

  • Position monitoring system, position monitoring device, and position monitoring method, and mobile terminal

    JP2008113184A

  • Power-conserving off-loaded location service

    US20210157386A1