Electronic fence method, system and device, storage medium and mobile device
By continuously broadcasting identity information on mobile devices and establishing a connection with the restricted area equipment, the signal strength and the correspondence in the restricted area rules determine whether the device is within the restricted area, the problem of the existing electronic fences requiring pre-marked settings and being affected by changes in the device position is solved, and the intelligent and convenient electronic fence function is realized.
Patent Information
- Application Number
- CN202411831029.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing electronic fence requires users to pre-mark the line on the mobile phone, which is not smart enough and is affected by changes in the device position, which affects the user experience.
By continuously broadcasting identity information on a mobile device, when receiving a connection request from a restricted area device, a Bluetooth connection channel is established, a restricted area rule stored by the restricted area device is received, and a corresponding relationship between the signal strength and the restricted area rule is used to determine whether the device is within the restricted area range.
It realizes smart electronic fences that do not require pre-set electronic fences and are not affected by changes in equipment locations, improving user experience.
Smart Images

Figure CN119729350A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of smart home, and in particular to an electronic fence method, system, device, storage medium and mobile device. Background Art
[0002] Some smart home devices need to move intelligently in the home to realize corresponding functions or services, such as sweeping robots and cameras. However, there are some areas in the home that are not suitable for entry. To solve this problem, it is usually necessary to set up electronic fences to define restricted areas for smart home devices. However, currently electronic fences often require users to set them up on their mobile phones, which is not smart enough. In addition, when the location of some smart home devices changes, they need to be reset, affecting the user experience. Summary of the invention
[0003] The purpose of the present invention is to at least provide an electronic fence method, system, device, storage medium and mobile device, which can at least solve the problem that the electronic fence needs to be pre-set and is affected by changes in the position of the device, and at least can realize an electronic fence that does not require pre-setting of the electronic fence and is not affected by changes in the position of the device.
[0004] To solve the above technical problems, at least one embodiment of the present application provides an electronic fence method, including:
[0005] Continuously broadcasting the identity information of the mobile device via Bluetooth during operation of the mobile device;
[0006] When receiving a connection request from a restricted area device, establishing a Bluetooth connection channel with the restricted area device, the restricted area device is a device that prohibits the mobile device from approaching, and the restricted area device sends the connection request after the identity information of the mobile device passes the identity authentication of the restricted area device;
[0007] Receiving, through the Bluetooth connection channel, a restricted zone rule about the mobile device stored in the restricted zone device, wherein the restricted zone rule includes a first corresponding relationship, and the first corresponding relationship is a relationship between a preset restricted zone range and a signal strength of the Bluetooth connection channel;
[0008] According to the first corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel, it is determined whether the current location of the mobile device falls within the restricted area range of the restricted area device.
[0009] In some optional embodiments, the restricted area rule further includes a second corresponding relationship, where the second corresponding relationship is a relationship between a preset restricted area rating and a signal strength of the Bluetooth connection channel; after determining whether the current location of the mobile device falls within the restricted area range of the restricted area device according to the first corresponding relationship in the restricted area rule and the current signal strength of the Bluetooth connection channel, the method further includes:
[0010] When it is determined that the current location of the mobile device falls within the restricted area, a restricted area rating corresponding to the current location of the mobile device is obtained based on the second corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel.
[0011] In some optional embodiments, the restricted area rule further includes a third corresponding relationship, where the third corresponding relationship is a relationship between a preset restricted area rating and a processing strategy; after obtaining the restricted area rating corresponding to the current location of the mobile device, the method further includes:
[0012] Determining a processing strategy corresponding to the current location of the mobile device according to the restricted area rating corresponding to the current location of the mobile device and the third corresponding relationship;
[0013] The movement of the mobile device is controlled according to the determined processing strategy.
[0014] In some optional embodiments, the processing strategy includes:
[0015] Detecting the minimum angle between the current moving direction of the mobile device and the direction from the mobile device to the restricted area device, and calculating the distance from the mobile device to the restricted area device according to the signal strength of the current Bluetooth connection channel;
[0016] When the minimum angle is less than or equal to a preset angle threshold, and the distance between the mobile device and the restricted area device is less than a preset distance threshold, the mobile device is controlled to stop moving and the moving route of the mobile device is replanned.
[0017] In some optional embodiments, the processing strategy further includes:
[0018] When the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is greater than a preset distance threshold, the moving speed of the mobile device is reduced, and the moving direction of the mobile device is modified so that the minimum angle between the modified moving direction of the mobile device and the direction from the mobile device to the restricted area device is greater than the preset angle threshold.
[0019] In some optional embodiments, at least one embodiment of the present application further provides a mobile device, including:
[0020] A broadcast module, used for continuously broadcasting the identity information of the mobile device via Bluetooth during the operation of the mobile device;
[0021] a communication module, configured to establish a Bluetooth connection channel with the restricted area device upon receiving a connection request from the restricted area device, and receive a restricted area rule about the mobile device stored in the restricted area device through the Bluetooth connection channel, wherein the restricted area device is a device that prohibits the mobile device from approaching, and after the identity information of the mobile device passes the identity authentication of the restricted area device, the restricted area device sends the connection request, and the restricted area rule includes a first corresponding relationship, which is a relationship between a preset restricted area range and a signal strength of the Bluetooth connection channel;
[0022] The judgment module is used to judge whether the current location of the mobile device falls into the restricted area range of the restricted area device according to the first corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel.
[0023] At least one embodiment of the present application further provides an electronic fence system, characterized in that it includes a restricted area device and a mobile device, wherein the restricted area device is a device that prohibits the mobile device from approaching, wherein:
[0024] The restricted area device is used to authenticate the identity information of the mobile device upon receiving the identity information of the mobile device, and send a connection request to the mobile device when the identity information of the mobile device passes the authentication;
[0025] The mobile device is used to continuously broadcast the identity information of the mobile device via Bluetooth during operation, and is also used to establish a Bluetooth connection channel with the restricted area device after receiving a connection request sent by the restricted area device, and receive the restricted area rules about the mobile device stored in the restricted area device through the Bluetooth connection channel, wherein the restricted area rules include a first corresponding relationship, which is the relationship between a preset restricted area range and the signal strength of the Bluetooth connection channel, and is also used to determine whether the current location of the mobile device falls within the restricted area range of the restricted area device based on the first corresponding relationship in the restricted area rules and the current signal strength of the Bluetooth connection channel.
[0026] In some optional embodiments, authenticating the identity information of the mobile device includes:
[0027] The identity information of the mobile device is compared with the identity information of each mobile device stored locally in the restricted area device. If the comparison is successful, it is determined that the identity information of the mobile device has passed the identity authentication.
[0028] At least one embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned electronic fence method.
[0029] At least one embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned electronic fence method when executed by a processor.
[0030] The embodiments of the present application provide an electronic fence method, system, device, storage medium and mobile device, which continuously broadcast the identity information of the mobile device via Bluetooth during the operation of the mobile device; when a connection request from a restricted area device is received, a Bluetooth connection channel is established with the restricted area device, the restricted area device is a device that prohibits the mobile device from approaching, and the restricted area device sends the connection request after the identity information of the mobile device passes the identity authentication of the restricted area device; the restricted area rules about the mobile device stored in the restricted area device are received through the Bluetooth connection channel, the restricted area rules include a first corresponding relationship, the first corresponding relationship is the relationship between a preset restricted area range and the signal strength of the Bluetooth connection channel; based on the first corresponding relationship in the restricted area rules and the current signal strength of the Bluetooth connection channel, it is determined whether the current location of the mobile device falls within the restricted area range of the restricted area device. In response to the problem that current electronic fences often require users to draw lines on their mobile phones, are not smart enough, and are affected by changes in device location, the present application sets restricted area rules corresponding to mobile devices in restricted area devices, where the restricted area rules include a first corresponding relationship, where the first corresponding relationship is the relationship between a preset restricted area range and the signal strength of the Bluetooth connection channel. Therefore, after the identity information of the mobile device passes the identity authentication of the restricted area device, the mobile device establishes a Bluetooth connection channel with the restricted area device, whereby according to the current signal strength of the Bluetooth connection channel and the first corresponding relationship in the restricted area rules, it can be determined whether the mobile device falls into the restricted area range of the device. There is no need for users to draw lines on their mobile phones in advance to set up electronic fences, and this method is not affected by changes in device location, greatly improving the convenience of user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.
[0032] Figure 1 is a flow chart of an electronic fence method provided by an embodiment of the present application;
[0033] Figure 2 is a flow chart of an electronic fence method provided by another embodiment of the present application;
[0034] Figure 3 is a structural block diagram of a mobile device provided by another embodiment of the present application;
[0035] Figure 4 It is a structural block diagram of a mobile device provided by another embodiment of the present application. DETAILED DESCRIPTION
[0036] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.
[0037] In order to facilitate understanding of the embodiments of the present application, relevant content about electronic fences is first introduced here.
[0038] Some smart home devices need to move intelligently in the home to realize corresponding functions or services, such as sweeping robots and cameras. However, there are some areas in the home that are not suitable for entry. To solve this problem, it is usually necessary to set up electronic fences to define restricted areas for smart home devices. However, currently electronic fences often require users to set them up on their mobile phones, which is not smart enough. In addition, when the location of some smart home devices changes, they need to be reset, affecting the user experience.
[0039] In order to solve the above-mentioned technical problems that the current electronic fence needs to be pre-drawn and set, and is affected by the change of the device position, the present invention proposes an electronic fence method, system, device, storage medium and mobile device. The implementation details of the electronic fence method of this embodiment are specifically described below. The following content is only the implementation details provided for the convenience of understanding, and is not necessary for the implementation of this solution.
[0040] Embodiment 1:
[0041] The electronic fence method of this embodiment can be applied to a mobile device with communication, computing and data storage capabilities. The specific process can be as follows: Figure 1 As shown, including:
[0042] Step S11: continuously broadcast the identity information of the mobile device via Bluetooth during operation of the mobile device.
[0043] Specifically, during the operation of the mobile device, the identity information of the mobile device is continuously broadcasted via Bluetooth. The identity information of the mobile device may be the identity ID of the mobile device, or may be information that can represent the identity of the mobile device, such as the MAC address of the mobile device.
[0044] Step S12, when receiving a connection request from a restricted area device, establishing a Bluetooth connection channel with the restricted area device. The restricted area device is a device that prohibits the mobile device from approaching, and the restricted area device sends the connection request after the identity information of the mobile device passes the identity authentication of the restricted area device.
[0045] Specifically, the restricted area device locally stores the identity information of each of the mobile devices and the restricted area rules of each of the mobile devices. When the restricted area device monitors the identity information of the mobile device broadcasted by the mobile device via Bluetooth, it compares the monitored identity information of the mobile device with the identity information of each of the target devices stored locally in the restricted area device to determine whether the mobile device is a device that has been locally set up in the restricted area device. If it is a device that has been locally set up, the restricted area device sends a connection request to the mobile device. For example, the restricted area device A locally stores the identity information and restricted area rules of mobile device a, as well as the identity information and restricted area rules of mobile device b. When the restricted area device A monitors the identity information of the mobile device a, it compares the monitored identity information of the mobile device a with the identity information of the mobile device stored locally in the restricted area device A to determine that the mobile device a belongs to a device that has been locally set up in the restricted area device A, that is, it has passed the identity authentication of the restricted area device A, and then the restricted area device A sends the connection request to the mobile device a.
[0046] Step S13, receiving the restricted zone rule about the mobile device stored in the restricted zone device through the Bluetooth connection channel. The restricted zone rule includes a first corresponding relationship, which is the relationship between the preset restricted zone range and the signal strength of the Bluetooth connection channel.
[0047] It should be noted that the restricted area device sets different restricted area ranges for the mobile devices stored locally. For example, the signal strength of the Bluetooth connection channel corresponding to the restricted area range in the first correspondence of the restricted area rule of mobile device a is x, and the signal strength of the Bluetooth connection channel corresponding to the restricted area range in the first correspondence of the restricted area rule of mobile device b is y.
[0048] Step S14: judging whether the current location of the mobile device falls within the restricted area range of the restricted area device according to the first corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel.
[0049] Specifically, the restricted area range refers to a preset certain distance range close to the restricted area device. The distance between the mobile device and the restricted area device is determined by the signal strength of the Bluetooth connection channel, so as to determine whether the current location of the mobile device falls within the restricted area range of the restricted area device.
[0050] For example, the signal strength of the Bluetooth connection channel corresponding to the restricted area range in the first corresponding relationship of the restricted area rule of mobile device a is x. When the signal strength of the Bluetooth connection channel established between the mobile device a and the restricted area device A is greater than or equal to x, the current location of the mobile device a falls within the restricted area range of the restricted area device A. When the signal strength of the Bluetooth connection channel established between the mobile device a and the restricted area device A is less than x, the current location of the mobile device a is outside the restricted area range of the restricted area device A.
[0051] In this embodiment, restricted area rules corresponding to mobile devices are set in restricted area devices, and restricted area rules include a first corresponding relationship, wherein the first corresponding relationship is the relationship between a preset restricted area range and the signal strength of the Bluetooth connection channel, so that after the identity information of the mobile device passes the identity authentication of the restricted area device, the mobile device and the restricted area device establish a Bluetooth connection channel, so that according to the current signal strength of the Bluetooth connection channel and the first corresponding relationship in the restricted area rules, it can be determined whether the mobile device falls into the restricted area range of the entry device, without the user having to draw lines on the mobile phone in advance to set up an electronic fence, and this method is not affected by changes in the location of the device, which greatly improves the convenience of user experience.
[0052] Embodiment 2:
[0053] The electronic fence method of this embodiment can be applied to electronic devices with communication, computing and data storage capabilities. The specific process can be as follows: Figure 2 As shown, including:
[0054] Step S21: continuously broadcast the identity information of the mobile device via Bluetooth during operation of the mobile device.
[0055] Specifically, during the operation of the mobile device, the identity information of the mobile device is continuously broadcasted via Bluetooth. The identity information of the mobile device may be the identity ID of the mobile device, or may be information that can represent the identity of the mobile device, such as the MAC address of the mobile device.
[0056] Step S22, when receiving a connection request from a restricted area device, establishing a Bluetooth connection channel with the restricted area device. The restricted area device is a device that prohibits the mobile device from approaching, and the restricted area device sends the connection request after the identity information of the mobile device passes the identity authentication of the restricted area device.
[0057] Specifically, the restricted area device locally stores the identity information of each of the mobile devices and the restricted area rules of each of the mobile devices. When the restricted area device monitors the identity information of the mobile device broadcasted by the mobile device via Bluetooth, it compares the monitored identity information of the mobile device with the identity information of each of the target devices stored locally in the restricted area device to determine whether the mobile device is a device that has been locally set up in the restricted area device. If it is a device that has been locally set up, the restricted area device sends a connection request to the mobile device. For example, the restricted area device A locally stores the identity information and restricted area rules of mobile device a, as well as the identity information and restricted area rules of mobile device b. When the restricted area device A monitors the identity information of the mobile device a, it compares the monitored identity information of the mobile device a with the identity information of the mobile device stored locally in the restricted area device A to determine that the mobile device a belongs to a device that has been locally set up in the restricted area device A, that is, it has passed the identity authentication of the restricted area device A, and then the restricted area device A sends the connection request to the mobile device a.
[0058] Step S23, receiving the restricted zone rule about the mobile device stored in the restricted zone device through the Bluetooth connection channel. The restricted zone rule includes a first corresponding relationship, which is the relationship between the preset restricted zone range and the signal strength of the Bluetooth connection channel.
[0059] It should be noted that the restricted area device sets different restricted area ranges for the mobile devices stored locally. For example, the signal strength of the Bluetooth connection channel corresponding to the restricted area range in the first correspondence of the restricted area rule of mobile device a is x, and the signal strength of the Bluetooth connection channel corresponding to the restricted area range in the first correspondence of the restricted area rule of mobile device b is y.
[0060] Step S24: judging whether the current location of the mobile device falls within the restricted area range of the restricted area device according to the first corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel.
[0061] Specifically, the restricted area range refers to a preset certain distance range close to the restricted area device. The distance between the mobile device and the restricted area device is determined by the signal strength of the Bluetooth connection channel, so as to determine whether the current location of the mobile device falls within the restricted area range of the restricted area device.
[0062] For example, the signal strength of the Bluetooth connection channel corresponding to the restricted area range in the first corresponding relationship of the restricted area rule of mobile device a is x. When the signal strength of the Bluetooth connection channel established between the mobile device a and the restricted area device A is greater than or equal to x, the current location of the mobile device a falls within the restricted area range of the restricted area device A. When the signal strength of the Bluetooth connection channel established between the mobile device a and the restricted area device A is less than x, the current location of the mobile device a is outside the restricted area range of the restricted area device A.
[0063] In some embodiments, the restricted area rule further includes a second corresponding relationship, where the second corresponding relationship is a relationship between a preset restricted area rating and a signal strength of the Bluetooth connection channel; after determining whether the current location of the mobile device falls within the restricted area range of the restricted area device according to the first corresponding relationship in the restricted area rule and the current signal strength of the Bluetooth connection channel, the method further includes:
[0064] Step S25, when it is determined that the current location of the mobile device falls within the restricted area, based on the second corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel, a restricted area rating corresponding to the current location of the mobile device is obtained.
[0065] In some optional embodiments, the restricted area rule further includes a third corresponding relationship. The third corresponding relationship is a relationship between a preset restricted area rating and a processing strategy. After obtaining the restricted area rating corresponding to the current location of the mobile device, the method further includes:
[0066] Step S26: determining a processing strategy corresponding to the current location of the mobile device according to the restricted area rating corresponding to the current location of the mobile device and the third corresponding relationship.
[0067] Specifically, the restricted area is rated, and each restricted area rating corresponds to the signal strength of a Bluetooth connection channel and a set of processing strategies. Thus, the restricted area rating of the mobile device location can be obtained through the signal strength of the current Bluetooth connection channel, and then the processing strategy of the mobile device location can be obtained.
[0068] Step S27: Control the movement of the mobile device according to the determined processing strategy.
[0069] In some examples, the processing strategy includes a first processing strategy and a second processing strategy.
[0070] The first processing strategy includes controlling the mobile device to stop moving and replanning a moving route of the mobile device.
[0071] Specifically, the first processing strategy uses the area where the restricted area rating is located that is closest to the restricted area device. At this time, the mobile device cannot bypass the restricted area device by simply adjusting the original direction of travel and return to the original planned route. The movement of the mobile device is stopped here and the route of the mobile device is replanned to prevent the mobile device from continuing to go deeper into the restricted area.
[0072] The second processing strategy includes:
[0073] Step S261, detecting the minimum angle between the current moving direction of the mobile device and the direction from the mobile device to the restricted area device, and calculating the distance from the mobile device to the restricted area device according to the signal strength of the current Bluetooth connection channel.
[0074] Specifically, centimeter-level positioning can be achieved through the AOA (angle of arrival) technology and AOD (angle of departure) technology introduced in the Bluetooth 5.1 version. Specifically, the AOA technology uses multiple antennas to receive signals and determines the angle of signal arrival by calculating the phase difference, thereby more accurately locating the position of the signal source. The AOD technology sends signals through multiple transmitting antennas and calculates the transmission angle using the phase difference between the receiving antennas to further improve positioning accuracy. Through the above technology, the minimum angle between the current direction of travel of the mobile device and the direction of the mobile device to the restricted area device can be identified.
[0075] Step S262, when the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is less than a preset distance threshold, control the mobile device to stop moving and re-plan the moving route of the mobile device.
[0076] Specifically, the angle threshold and the distance threshold are the angle and distance when it is inconvenient for the mobile device to bypass the restricted area device. For example, the radius of the sweeping robot or half of the longest width in the cross section is used as the distance threshold. When the distance between the mobile device and the restricted area device is the distance threshold, the minimum angle required to rotate to bypass the restricted area device is used as the angle threshold. For example, the preset angle threshold is 60 degrees, and the distance threshold is 50 centimeters. The restricted area device is currently located at the 11 o'clock to 1 o'clock position in the forward direction of the mobile device, that is, the minimum angle is about 60 degrees, and the current distance from the mobile device to the restricted area device is 40 centimeters. At this time, the mobile device is relatively close to the restricted area device. At this time, the mobile device is controlled to stop moving and the route of the mobile device is replanned to avoid the restricted area device.
[0077] Step S263, when the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is greater than a preset distance threshold, the moving speed of the mobile device is reduced, and the moving direction of the mobile device is modified so that the minimum angle between the modified moving direction of the mobile device and the direction from the mobile device to the restricted area device is greater than the preset angle threshold.
[0078] Specifically, if the minimum angle is less than or equal to the preset angle threshold, it means that the mobile device is likely to touch the restricted area device if it continues to move, and if the distance between the mobile device and the restricted area device is greater than the preset distance threshold, it means that the mobile device is far away from the restricted area device at this time, and the moving speed of the mobile device is slowed down, and the moving direction of the mobile device is modified so that the minimum angle between the modified moving direction of the mobile device and the direction from the mobile device to the restricted area device is greater than the preset angle threshold. For example, if the current moving direction of the mobile device is 12 o'clock, and the restricted area device is located at 1 o'clock of the moving direction of the mobile device, the minimum angle is about 30 degrees, and the angle threshold is preset to 60 degrees. At this time, the moving direction of the mobile device is modified to the 9 to 11 o'clock direction or the 3 to 5 o'clock direction of the original moving direction to avoid the restricted area device.
[0079] Step S264: When the minimum angle is greater than a preset angle threshold, the current moving direction and moving speed of the mobile device are maintained.
[0080] Specifically, when the minimum angle is greater than a preset angle threshold, it can be considered that the mobile device will not approach the restricted area device while maintaining the current moving direction, and the current moving direction and speed of the mobile device are maintained.
[0081] Compared with the first embodiment, this embodiment can obtain the restricted area rating and the corresponding processing strategy corresponding to the current location of the mobile device according to the signal strength of the current Bluetooth connection channel based on the second corresponding relationship and the third corresponding relationship in the restricted area rule, and then make corresponding adjustments to the mobile device according to the processing strategy to bypass the restricted area device.
[0082] Embodiment three:
[0083] Another embodiment of the present application relates to a mobile device. The implementation details of the mobile device of this embodiment are described in detail below. The following content is only for the convenience of understanding the implementation details provided, and is not necessary for implementing this solution. The schematic diagram of the mobile device of this embodiment can be as follows Figure 3 As shown, it includes a broadcast module 31, a communication module 32 and a judgment module 33.
[0084] The broadcast module 31 is used for continuously broadcasting the identity information of the mobile device via Bluetooth during the operation of the mobile device.
[0085] The communication module 32 is used to establish a Bluetooth connection channel with the restricted area device when receiving a connection request from the restricted area device, and receive the restricted area rules about the mobile device stored in the restricted area device through the Bluetooth connection channel. The restricted area device is a device that prohibits the mobile device from approaching. After the identity information of the mobile device passes the identity authentication of the restricted area device, the restricted area device sends the connection request. The restricted area rules include a first corresponding relationship, which is a relationship between a preset restricted area range and a signal strength of the Bluetooth connection channel;
[0086] The judging module 33 is used to judge whether the current location of the mobile device falls into the restricted area range of the restricted area device according to the first corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel.
[0087] In some embodiments, Figure 4 As shown, the mobile device also includes a control module 34. The restricted area rule also includes a second corresponding relationship, which is a relationship between a preset restricted area rating and the signal strength of the Bluetooth connection channel. The control module 34 is used to obtain a restricted area rating corresponding to the current location of the mobile device based on the second corresponding relationship in the restricted area rule and the current signal strength of the Bluetooth connection channel when it is determined that the current location of the mobile device falls within the restricted area.
[0088] In some embodiments, the restricted area rule further includes a third corresponding relationship, and the third corresponding relationship is a relationship between a preset restricted area rating and a processing strategy. The control module 34 is further configured to determine the processing strategy corresponding to the current location of the mobile device according to the restricted area rating corresponding to the current location of the mobile device and the third corresponding relationship after obtaining the restricted area rating corresponding to the current location of the mobile device.
[0089] Specifically, the restricted area is rated, and each restricted area rating corresponds to the signal strength of a Bluetooth connection channel and a set of processing strategies. Thus, the restricted area rating of the mobile device location can be obtained through the signal strength of the current Bluetooth connection channel, and then the processing strategy of the mobile device location can be obtained.
[0090] In some examples, the processing strategy includes a first processing strategy and a second processing strategy.
[0091] The first processing strategy includes controlling the mobile device to stop moving and replanning a moving route of the mobile device.
[0092] Specifically, the first processing strategy uses the area where the restricted area rating is located that is closest to the restricted area device. At this time, the mobile device cannot bypass the restricted area device by simply adjusting the original direction of travel and return to the original planned route. The movement of the mobile device is stopped here and the route of the mobile device is replanned to prevent the mobile device from continuing to go deeper into the restricted area.
[0093] The second processing strategy includes:
[0094] Step 1: Detect the minimum angle between the current moving direction of the mobile device and the direction from the mobile device to the restricted area device, and calculate the distance from the mobile device to the restricted area device according to the signal strength of the current Bluetooth connection channel.
[0095] Specifically, centimeter-level positioning can be achieved through the AOA (angle of arrival) technology and AOD (angle of departure) technology introduced in the Bluetooth 5.1 version. Specifically, the AOA technology uses multiple antennas to receive signals and determines the angle of signal arrival by calculating the phase difference, thereby more accurately locating the position of the signal source. The AOD technology sends signals through multiple transmitting antennas and calculates the transmission angle using the phase difference between the receiving antennas to further improve positioning accuracy. Through the above technology, the distance from the mobile device to the restricted area device and the minimum angle between the current direction of travel of the mobile device and the direction of the mobile device to the restricted area device can be identified.
[0096] Step 2: When the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is less than a preset distance threshold, the mobile device is controlled to stop moving and the moving route of the mobile device is replanned.
[0097] Specifically, the angle threshold and the distance threshold are the angle and distance when it is inconvenient for the mobile device to bypass the restricted area device. For example, the radius of the sweeping robot or half of the longest width in the cross section is used as the distance threshold. When the distance between the mobile device and the restricted area device is the distance threshold, the minimum angle required to rotate to bypass the restricted area device is used as the angle threshold. For example, the preset angle threshold is 60 degrees, and the distance threshold is 50 centimeters. The restricted area device is currently located at the 11 o'clock to 1 o'clock position in the forward direction of the mobile device, that is, the minimum angle is about 60 degrees, and the current distance from the mobile device to the restricted area device is 40 centimeters. At this time, the mobile device is relatively close to the restricted area device. At this time, the mobile device is controlled to stop moving and the route of the mobile device is replanned to avoid the restricted area device.
[0098] Step three, when the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is greater than a preset distance threshold, reduce the moving speed of the mobile device and modify the moving direction of the mobile device so that the minimum angle between the modified moving direction of the mobile device and the direction from the mobile device to the restricted area device is greater than the preset angle threshold.
[0099] Specifically, if the minimum angle is less than or equal to the preset angle threshold, it means that the mobile device is likely to touch the restricted area device if it continues to move, and if the distance between the mobile device and the restricted area device is greater than the preset distance threshold, it means that the mobile device is far away from the restricted area device at this time, and the moving speed of the mobile device is slowed down, and the moving direction of the mobile device is modified so that the minimum angle between the modified moving direction of the mobile device and the direction from the mobile device to the restricted area device is greater than the preset angle threshold. For example, if the current moving direction of the mobile device is 12 o'clock, and the restricted area device is located at 1 o'clock of the moving direction of the mobile device, the minimum angle is about 30 degrees, and the angle threshold is preset to 60 degrees. At this time, the moving direction of the mobile device is modified to the 9 to 11 o'clock direction or the 3 to 5 o'clock direction of the original moving direction to avoid the restricted area device.
[0100] Step 4: When the minimum angle is greater than a preset angle threshold, the current moving direction and moving speed of the mobile device are maintained.
[0101] Specifically, when the minimum angle is greater than a preset angle threshold, it can be considered that the mobile device will not approach the restricted area device while maintaining the current moving direction, and the current moving direction and speed of the mobile device are maintained.
[0102] Based on the second correspondence and the third correspondence in the restricted area rule, this embodiment can obtain the restricted area rating and the corresponding processing strategy corresponding to the current location of the mobile device according to the signal strength of the current Bluetooth connection channel, and then make corresponding adjustments to the mobile device according to the processing strategy to bypass the restricted area device.
[0103] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.
[0104] Embodiment 4:
[0105] Another embodiment of the present application relates to an electronic fence system. The implementation details of the mobile device of this embodiment are described in detail below. The following content is only for the convenience of understanding the implementation details provided, and is not necessary for the implementation of this solution. The electronic fence system of this embodiment includes a mobile device and a restricted area device, and the restricted area device is a device that prohibits the mobile device from approaching.
[0106] The restricted area device is used to authenticate the identity information of the mobile device when receiving the identity information of the mobile device, and send a connection request to the mobile device when the identity information of the mobile device passes the authentication.
[0107] In one embodiment, the authenticating the identity information of the mobile device includes:
[0108] The identity information of the mobile device is compared with the identity information of each mobile device stored locally in the restricted area device. If the comparison is successful, it is determined that the identity information of the mobile device has passed the identity authentication.
[0109] The mobile device is used to continuously broadcast the identity information of the mobile device via Bluetooth during operation, and is also used to establish a Bluetooth connection channel with the restricted area device after receiving a connection request sent by the restricted area device, and receive the restricted area rules about the mobile device stored in the restricted area device through the Bluetooth connection channel, wherein the restricted area rules include a first corresponding relationship, which is the relationship between a preset restricted area range and the signal strength of the Bluetooth connection channel, and is also used to determine whether the current location of the mobile device falls within the restricted area range of the restricted area device based on the first corresponding relationship in the restricted area rules and the current signal strength of the Bluetooth connection channel.
[0110] In some embodiments, the restricted area rule further includes a second corresponding relationship and a third corresponding relationship, wherein the second corresponding relationship is the relationship between the preset restricted area rating and the signal strength of the Bluetooth connection channel, and the third corresponding relationship is the relationship between the preset restricted area rating and the processing strategy. The mobile device is further configured to obtain the restricted area rating corresponding to the current location of the mobile device based on the second corresponding relationship in the restricted area rule and the current signal strength of the Bluetooth connection channel when it is determined that the current location of the mobile device falls within the restricted area.
[0111] In some embodiments, the restricted area rule further includes a third corresponding relationship. The third corresponding relationship is a relationship between a preset restricted area rating and a processing strategy. The mobile device is further configured to determine, after obtaining the restricted area rating corresponding to the current location of the mobile device, the processing strategy corresponding to the current location of the mobile device according to the restricted area rating corresponding to the current location of the mobile device and the third corresponding relationship.
[0112] In some examples, the processing strategy includes a first processing strategy and a second processing strategy.
[0113] The first processing strategy includes controlling the mobile device to stop moving and replanning a moving route of the mobile device.
[0114] The second processing strategy includes: detecting the minimum angle between the current moving direction of the mobile device and the direction from the mobile device to the restricted area device, and calculating the distance from the mobile device to the restricted area device according to the signal strength of the current Bluetooth connection channel; when the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is less than a preset distance threshold, controlling the mobile device to stop moving and replanning the moving route of the mobile device; when the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is greater than a preset distance threshold, reducing the moving speed of the mobile device and modifying the moving direction of the mobile device so that the minimum angle between the modified moving direction of the mobile device and the direction from the mobile device to the restricted area device is greater than the preset angle threshold; when the minimum angle is greater than the preset angle threshold, maintaining the current moving direction and moving speed of the mobile device.
[0115] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.
[0116] Embodiment five:
[0117] Another embodiment of the present application relates to an electronic device, comprising: at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the electronic fence method in the above-mentioned embodiments.
[0118] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0119] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0120] Embodiment six:
[0121] Another embodiment of the present application relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0122] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as: ROM), random access memory (Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.
[0123] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. An electronic fence method, characterized in that: include: Continuously broadcasting the identity information of the mobile device via Bluetooth during operation of the mobile device; When receiving a connection request from a restricted area device, establishing a Bluetooth connection channel with the restricted area device, the restricted area device is a device that prohibits the mobile device from approaching, and the restricted area device sends the connection request after the identity information of the mobile device passes the identity authentication of the restricted area device; Receiving, through the Bluetooth connection channel, a restricted zone rule about the mobile device stored in the restricted zone device, wherein the restricted zone rule includes a first corresponding relationship, and the first corresponding relationship is a relationship between a preset restricted zone range and a signal strength of the Bluetooth connection channel; According to the first corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel, it is determined whether the current location of the mobile device falls within the restricted area range of the restricted area device.
2. The electronic fence method according to claim 1, characterized in that: The restricted zone rule further includes a second corresponding relationship, wherein the second corresponding relationship is a relationship between a preset restricted zone rating and a signal strength of the Bluetooth connection channel; after judging whether the current location of the mobile device falls within the restricted zone range of the restricted zone device according to the first corresponding relationship in the restricted zone rule and the current signal strength of the Bluetooth connection channel, the method further includes: When it is determined that the current location of the mobile device falls within the restricted area, a restricted area rating corresponding to the current location of the mobile device is obtained based on the second corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel.
3. The electronic fence method according to claim 2, characterized in that: The restricted area rule further includes a third corresponding relationship, wherein the third corresponding relationship is a relationship between a preset restricted area rating and a processing strategy; After obtaining the restricted area rating corresponding to the current location of the mobile device, the method further includes: Determining a processing strategy corresponding to the current location of the mobile device according to the restricted area rating corresponding to the current location of the mobile device and the third corresponding relationship; The movement of the mobile device is controlled according to the determined processing strategy.
4. The electronic fence method according to claim 3, characterized in that: The processing strategies include: Detecting the minimum angle between the current moving direction of the mobile device and the direction from the mobile device to the restricted area device, and calculating the distance from the mobile device to the restricted area device according to the signal strength of the current Bluetooth connection channel; When the minimum angle is less than or equal to a preset angle threshold, and the distance between the mobile device and the restricted area device is less than a preset distance threshold, the mobile device is controlled to stop moving and the moving route of the mobile device is replanned.
5. The electronic fence method according to claim 4, characterized in that: The processing strategy also includes: When the minimum angle is less than or equal to a preset angle threshold, and the distance from the mobile device to the restricted area device is greater than a preset distance threshold, the moving speed of the mobile device is reduced, and the moving direction of the mobile device is modified so that the minimum angle between the modified moving direction of the mobile device and the direction from the mobile device to the restricted area device is greater than the preset angle threshold.
6. A mobile device, characterized in that: include: A broadcast module, used for continuously broadcasting the identity information of the mobile device via Bluetooth during the operation of the mobile device; a communication module, configured to establish a Bluetooth connection channel with the restricted area device upon receiving a connection request from the restricted area device, and receive a restricted area rule about the mobile device stored in the restricted area device through the Bluetooth connection channel, wherein the restricted area device is a device that prohibits the mobile device from approaching, and after the identity information of the mobile device passes the identity authentication of the restricted area device, the restricted area device sends the connection request, and the restricted area rule includes a first corresponding relationship, which is a relationship between a preset restricted area range and a signal strength of the Bluetooth connection channel; The judgment module is used to judge whether the current location of the mobile device falls into the restricted area range of the restricted area device according to the first corresponding relationship in the restricted area rule and the signal strength of the current Bluetooth connection channel.
7. An electronic fence system, characterized in that: It includes restricted area equipment and mobile devices, wherein the restricted area equipment is equipment that prohibits the mobile device from approaching, wherein: The restricted area device is used to authenticate the identity information of the mobile device upon receiving the identity information of the mobile device, and send a connection request to the mobile device when the identity information of the mobile device passes the authentication; The mobile device is used to continuously broadcast the identity information of the mobile device via Bluetooth during operation, and is also used to establish a Bluetooth connection channel with the restricted area device after receiving a connection request sent by the restricted area device, and receive the restricted area rules about the mobile device stored in the restricted area device through the Bluetooth connection channel, wherein the restricted area rules include a first corresponding relationship, which is the relationship between a preset restricted area range and the signal strength of the Bluetooth connection channel, and is also used to determine whether the current location of the mobile device falls within the restricted area range of the restricted area device based on the first corresponding relationship in the restricted area rules and the current signal strength of the Bluetooth connection channel.
8. The electronic fence system according to claim 7, characterized in that: The authenticating the identity information of the mobile device includes: The identity information of the mobile device is compared with the identity information of each mobile device stored locally in the restricted area device. If the comparison is successful, it is determined that the identity information of the mobile device has passed the identity authentication.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the electronic fence method as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the electronic fence method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Electronic fence-based prompt method and airspace management system
CN106504586A
Forbidden area identification method and device, and corresponding forbidden area recognition method and device, and intelligent vehicle
CN108257403A
Flight management and control for unmanned aerial vehicles
CN109074750A
Security detection method, Bluetooth device and storage medium
CN115767434A
Operation behavior warning system based on BIM technology
CN116843508A