CN112165683A - Communication distance early warning method and device - Google Patents
Communication distance early warning method and device Download PDFInfo
- Publication number
- CN112165683A CN112165683A CN202011015226.0A CN202011015226A CN112165683A CN 112165683 A CN112165683 A CN 112165683A CN 202011015226 A CN202011015226 A CN 202011015226A CN 112165683 A CN112165683 A CN 112165683A
- Authority
- CN
- China
- Prior art keywords
- communication distance
- bluetooth
- terminals
- health information
- health
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a communication distance early warning method and device, relates to the technical field of internet, and aims to automatically identify whether the communication distance between a user and other people meets the safe social distance standard or not, and trigger an alarm to timely and effectively remind the user if the communication distance does not meet the safe social distance standard, so that the user can be ensured to keep the safe social distance. The main technical scheme of the invention is as follows: when receiving a broadcast data packet sent by other terminals in a Bluetooth broadcast mode, analyzing signal intensity information contained in the broadcast data packet and health information corresponding to the other terminals; measuring the actual communication distance between the terminal and the other terminals according to the signal intensity information; judging whether the actual communication distance is larger than a preset communication distance corresponding to the health information or not; if not, triggering alarm information. The method and the device are applied to automatically identifying and reminding the user of keeping the safe social distance.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a communication distance early warning method and device.
Background
The transmission through droplets is one of the main transmission routes of viruses, and for example, the droplets containing the viruses are ejected by a patient through speaking, coughing, sneezing and the like, and are inhaled by surrounding people, so that the infection is caused. The diameter of the spray is generally 100-200 micrometers, the spray easily falls to the ground due to the action of gravity, the spraying range is generally not more than 1 meter, and therefore experts continuously advise and remind through various media, and the social distance of more than 1 meter with other people should be kept. Such is especially the responsibility for others and their health to control social distance to others during the high-incidence of infectious diseases where droplets are the primary transmission route.
At present, measures taken for controlling the social distance, such as line-drawing marks at a distance of 1 meter in a checkout area of public places such as a shopping mall and a supermarket, are used for controlling checkout queuing personnel to keep the social distance at a distance of 1 meter, or people are still advised to keep healthy social distance in a way of artificial propaganda and advocation in a crowd gathering area.
However, the social distance is kept by controlling people through the social distance line-drawing marks, the application range is small, many public places are not suitable, and the manual propaganda and advocation have little effect while consuming a large amount of manual cost.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for warning a communication distance, and mainly aims to obtain an actual communication distance between different terminals by means of bluetooth communication ranging, and when it is automatically recognized that the communication distance between a user terminal and a terminal corresponding to another person does not reach a standard of a safe social distance, an alarm is triggered to prompt a user timely and effectively, so as to ensure that the user keeps the safe social distance.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
in one aspect, the present invention provides a method for warning a communication distance, including:
when receiving a broadcast data packet sent by other terminals in a Bluetooth broadcast mode, analyzing signal intensity information contained in the broadcast data packet and health information corresponding to the other terminals;
measuring the actual communication distance between the terminal and the other terminals according to the signal intensity information;
judging whether the actual communication distance is larger than a preset communication distance corresponding to the health information or not;
if not, triggering alarm information.
Optionally, before the determining whether the actual communication distance is greater than a preset communication distance corresponding to the health information, the method further includes:
setting a first preset mapping relation between different health information and health grade marks;
setting a second preset mapping relation between different health grade marks and communication distances;
and constructing a mapping relation among the health information, the health grade identification and the communication distance according to the first preset mapping relation and the second preset mapping relation.
Optionally, the determining whether the actual communication distance is greater than a preset communication distance corresponding to the health information includes:
acquiring health grade marks and communication distances matched with the health information corresponding to other terminals by searching a mapping relation among the pre-constructed health information, the health grade marks and the communication distances;
determining the communication distance matched with the health information corresponding to the other terminals as a social reference distance;
and judging whether the actual communication distance is greater than the social reference distance.
Optionally, if it is determined that the actual communication distance is not greater than the social parameter distance, the method further includes:
judging whether the health grade identification matched with the health information corresponding to the other terminals is a preset controlled identification or not;
and if so, reporting the health information corresponding to the other terminals.
Optionally, before the receiving the broadcast data packet sent by the other terminal in the bluetooth broadcast manner, the method further includes:
scanning whether connectable Bluetooth devices exist, wherein the Bluetooth devices perform Bluetooth broadcasting in the air in a one-to-many mode on other terminals;
if yes, judging whether the Bluetooth equipment is connected and paired with the scanned Bluetooth equipment;
and if not, adding the scanned Bluetooth equipment into an unpaired list.
Optionally, after adding the scanned bluetooth device to an unpaired list, the method further includes:
sequencing the Bluetooth devices in the unpaired list according to the intensity of the scanned signal of the Bluetooth device, wherein the identification information of the scanned Bluetooth devices is displayed in the unpaired list;
and initiating broadcast data packet acquisition requests one by one according to the sequence of the Bluetooth devices in the unpaired list.
Optionally, before the scanning whether there is a connectable bluetooth device, the method further includes:
initializing Bluetooth equipment on a local terminal;
checking whether the Bluetooth equipment authority is opened;
if not, the Bluetooth authority is dynamically applied to the local terminal system.
Optionally, the method further includes:
judging whether a third-party application is an application program authorized for a local terminal, wherein the third-party application is used for providing health information corresponding to the local terminal;
if yes, acquiring health information corresponding to the terminal through the third-party application interface;
and according to a preset time period, distributing a broadcast data packet to the air in a Bluetooth broadcast mode, wherein the broadcast data packet carries the health information corresponding to the local terminal.
On the other hand, the invention also provides a communication distance early warning device, which comprises:
the receiving unit is used for receiving broadcast data packets sent by other terminals in a Bluetooth broadcast mode;
the analysis unit is used for analyzing the signal intensity information contained in the broadcast data packet received by the receiving unit and the health information corresponding to the other terminals;
the measuring unit is used for measuring the actual communication distance between the terminal and the other terminals according to the signal intensity information obtained by the analysis of the analyzing unit;
the judging unit is used for judging whether the actual communication distance measured by the measuring unit is larger than the preset communication distance corresponding to the health information or not;
and the triggering unit is used for triggering alarm information when the judging unit judges that the actual communication distance is not greater than the preset communication distance corresponding to the health information.
Optionally, the apparatus includes:
the setting unit is used for setting a first preset mapping relation between different health information and the health grade marks;
the setting unit is also used for setting a second preset mapping relation between different health grade marks and communication distances;
and the construction unit is used for constructing the mapping relation among the health information, the health grade identifier and the communication distance according to the first preset mapping relation set by the setting unit and the second preset mapping relation set by the setting unit.
Optionally, the determining unit includes:
the acquisition module is used for acquiring the health level identification and the communication distance matched with the health information corresponding to other terminals by searching the mapping relation among the pre-constructed health information, the health level identification and the communication distance;
the determining module is used for determining the communication distance matched with the health information corresponding to the other terminals acquired by the acquiring module as a social reference distance;
and the judging module is used for judging whether the actual communication distance is greater than the social reference distance determined by the determining module.
Optionally, the determining unit further includes:
the judging module is further configured to judge whether the health level identifier matched with the health information corresponding to the other terminal is a preset controlled identifier or not if the actual communication distance is judged to be not greater than the social parameter distance;
and the processing module is used for reporting the health information corresponding to the other terminals when the judging module judges that the health grade identification is the preset controlled identification.
Optionally, the apparatus further comprises:
a scanning unit for scanning whether there is a connectable bluetooth device which performs bluetooth broadcasting in a one-to-many manner over the air on other terminals;
the judging unit is also used for judging whether the Bluetooth equipment which can be connected is connected and paired with the scanned Bluetooth equipment if the connectable Bluetooth equipment exists in the scanning process;
and the adding unit is used for adding the scanned Bluetooth equipment into an unpaired list when the judging unit judges that the scanned Bluetooth equipment is not connected and paired.
Optionally, the apparatus further comprises:
the sorting unit is used for sorting the Bluetooth devices in the unpaired list according to the signal intensity of the scanned Bluetooth devices after the scanned Bluetooth devices are added into the unpaired list, and the identification information of the scanned Bluetooth devices is displayed in the unpaired list;
and the execution unit is used for initiating broadcast data packet acquisition requests one by one according to the sequence of the Bluetooth devices in the unpaired list.
Optionally, the apparatus further comprises:
an initialization operation unit for initializing a Bluetooth device on a local terminal before the scanning whether there is a connectable Bluetooth device;
the checking unit is used for checking whether the Bluetooth equipment authority is opened or not;
and the application unit is used for dynamically applying for opening the Bluetooth permission to a local terminal system when the checking unit checks that the Bluetooth equipment permission is not opened.
Optionally, the apparatus further comprises:
the judging unit is further configured to judge whether a third-party application is an application authorized for a local terminal, where the third-party application is configured to provide health information corresponding to the local terminal;
the acquiring unit is used for acquiring the health information corresponding to the terminal through the third-party application interface when the judging unit judges that the third-party application is an application program authorized for a local terminal;
and the broadcasting unit is used for distributing a broadcasting data packet to the air in a Bluetooth broadcasting mode according to a preset time period, wherein the broadcasting data packet carries the health information corresponding to the local terminal.
In still another aspect, the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus where the storage medium is located is controlled to execute the above-mentioned communication distance early warning method.
In yet another aspect, the present invention also provides an electronic device comprising at least one processor, and at least one memory, a bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory so as to execute the communication distance early warning method.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
the invention provides a communication distance early warning method and a device, which are used for distributing broadcast data packets among different terminals in a Bluetooth broadcast mode, wherein the broadcast data packets comprise signal intensity information and health information corresponding to the terminals, so that when one terminal receives the broadcast data packets, the actual communication distance between the terminal and the terminal initiating the broadcast can be measured according to the information number intensity information, a preset communication distance which is preset and is kept between the terminal and the terminal initiating the broadcast can be obtained according to the health information, and alarm information is triggered if the actual communication distance does not accord with the preset communication distance. Compared with the prior art, the method and the device solve the problems of high labor cost and poor effect of the conventional method for controlling the social distance, can obtain the actual communication distance between different terminals by means of Bluetooth communication ranging, and can trigger an alarm to prompt the user timely and effectively when the communication distance between the user terminal and the corresponding terminal of other people is automatically identified to be shorter than the standard of the safe social distance so as to ensure that the safe social distance is kept between the users.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of an early warning method for communication distance according to an embodiment of the present invention;
fig. 2 is a flowchart of another communication distance warning method according to an embodiment of the present invention;
fig. 3 is a block diagram of an early warning apparatus for communication distance according to an embodiment of the present invention;
fig. 4 is a block diagram of another communication distance warning device according to an embodiment of the present invention;
fig. 5 is an electronic device for warning communication distance according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a communication distance early warning method, as shown in figure 1, the method initiates Bluetooth broadcast by using a Bluetooth module in a terminal to realize the transmission of signal strength information and health information between different terminals, so that when one terminal receives a broadcast data packet, whether the communication distance between the user and other people reaches the standard of safe social distance or not can be automatically identified, and the following specific steps are provided for the embodiment of the invention:
101. when receiving a broadcast data packet sent by other terminals in a Bluetooth broadcast mode, analyzing the signal intensity information contained in the broadcast data packet and the health information corresponding to other terminals.
The health code is based on real data, is declared by citizens or rework and rework staff on line by self, and can be generated into a two-dimensional code belonging to an individual after background audit, the health code is applied to various occasions, particularly public places such as communities, markets, supermarkets and the like, and the two-dimensional code is used as an electronic certificate for the passage of the individual in and out of the local place, so that one-time declaration and general use in the whole market are realized.
It should be noted that, as for the manner of acquiring the health information, the health information may be acquired from the terminal to the user, or may be acquired from an authorized third-party application on the terminal, such as "jian kangbao" implemented and used in beijing, specifically, the manner of acquiring the health information is not limited.
In the embodiment of the invention, the Bluetooth broadcast is initiated among different terminals by means of the Bluetooth technology, the broadcast data packet carries the signal intensity information and the health information corresponding to the terminal initiating the broadcast, and each terminal can be used as a receiver and receives the broadcast data packet broadcast by other terminals as initiators in the effective receiving range of the Bluetooth signal.
102. And measuring the actual communication distance with other terminals according to the signal strength information.
It should be noted that, in the embodiment of the present invention, the actual communication distance between different terminals is obtained by means of bluetooth communication ranging, and the actual communication distance may be used to indirectly measure the existing distance between different terminals (i.e., between users corresponding to different terminals, respectively), and this distance may also be referred to as the social distance currently existing between two terminals corresponding to users, respectively.
Specifically, the implementation method for measuring the actual communication distance by means of bluetooth communication may be mainly to determine the distance between a Signal point and a receiving point according to the Strength of a Received Signal by using a Received Signal Strength Indication (RSSI) of the Received Signal, and further perform positioning according to corresponding data. For the embodiment of the invention, the actual communication distance between the terminal receiving the broadcast data packet and the terminal initiating the Bluetooth broadcast is measured based on the RSSI.
103. And judging whether the actual communication distance is larger than the preset communication distance corresponding to the health information.
In the embodiment of the present invention, the preset communication distances corresponding to different health information are preset, and the preset communication distance refers to a safe social distance that should be maintained between two terminals. For the embodiment of the present invention, different health information also indicates different current health conditions of the user, such as: if the user is in a disease state (such as a cold), a longer social distance should be kept with others to avoid virus propagation, and if the user is in a health state, a normal social distance may be kept with others, so in the embodiment of the present invention, different preset communication distances (i.e., the preset communication distance is also equal to the preset social distance) are matched with different health information in advance.
For example, the health information can be preset as a green health code to identify that the user is in a healthy state, and the corresponding preset communication distance is 1 meter; or, the preset health information is a red health code for identifying that the user is in a disease state, and the corresponding preset communication distance is set to 5 meters, it should be noted that the health codes with different colors are only an exemplary example of the present invention, for example, for the disease state, the levels may be identified with different colors, and thus the corresponding preset communication distances may also be set differently according to a numerical gradient.
In the embodiment of the invention, the actual communication distance between the Bluetooth broadcast receiver terminal and the Bluetooth broadcast initiator terminal which is measured before is compared with the preset communication distance, so that whether the actual communication distance of the Bluetooth broadcast receiver terminal meets the standard of the safe social distance or not can be judged.
104. And if the actual communication distance is judged to be not larger than the preset communication distance corresponding to the health information, triggering alarm information.
In the embodiment of the invention, if the actual communication distance is judged to be not greater than the preset communication distance corresponding to the health information, the actual communication distance of the terminal of the receiver of the Bluetooth broadcast is judged to be not in accordance with the safety social distance standard, and then alarm information is sent out immediately, wherein the alarm information is used for realizing real-time reminding for a user and can be but not limited to changing color of a screen display, triggering a ring or vibrating.
The embodiment of the invention provides a communication distance early warning method and a device, wherein broadcast data packets are distributed among different terminals in a Bluetooth broadcast mode, and because the broadcast data packets comprise signal intensity information and health information corresponding to the terminals, when one terminal receives the broadcast data packets, the actual communication distance between the terminal and the terminal initiating the broadcast can be measured according to the information number intensity information, a preset communication distance which is preset and is required to be kept between the terminal initiating the broadcast can be obtained according to the health information, and alarm information is triggered if the actual communication distance does not accord with the preset communication distance by comparison. Compared with the prior art, the method and the device for controlling the social distance can solve the problems of high labor cost and poor effect of the conventional method for controlling the social distance.
In order to explain the above embodiment in more detail, another communication distance warning method is provided in the embodiment of the present invention, as shown in fig. 2, which is a detailed statement and a supplementary statement of the above embodiment, and the following specific steps are provided in the embodiment of the present invention:
201. the presence of connectable bluetooth devices is scanned and bluetooth broadcasts are made over the air in a one-to-many fashion at other terminals.
It should be noted that, in the embodiment of the present invention, before scanning whether there is a connectable bluetooth device, initializing the bluetooth device on the local terminal is performed, for example, initializing in an authorization onCreate, checking whether the bluetooth device authority is turned on, and if not, dynamically applying to the local terminal system to turn on the bluetooth authority.
Note that, according to the developer profile, the Bluetooth Low Energy (BLE) note is connected: because the system needs to obtain the feature value instance, the incoming serviceId and the characterstic id must be obtained from wx.getblydevicervices and wx.getblydevicechactrices before they can be used. It is proposed that the dual platform unifies the data interaction with the bluetooth device after the wx.
202. If the connectable Bluetooth device exists through scanning, whether the connected Bluetooth device is paired with the scanned Bluetooth device is judged.
203. And if the Bluetooth device is not connected and paired with the scanned Bluetooth device, adding the scanned Bluetooth device into the unpaired list.
In the embodiment of the present invention, as explained in step 202 and step 203, for the embodiment of the present invention, bluetooth pairing between terminals is not required, and a broadcast packet sent by other terminals in a bluetooth broadcast manner may also be received, where the scanning operation is to find terminal devices (i.e., users) existing in a nearby range to obtain the broadcast packet from these unpaired bluetooth devices, so if an unpaired bluetooth device is detected, the unpaired bluetooth device is added to an unpaired list, and the unpaired bluetooth device cannot be missed.
Of course, for the paired bluetooth devices, the local terminal may also directly establish a bluetooth connection and acquire the broadcast data packet.
Specifically, in the embodiment of the present invention, a bluetooth DEVICE is obtained through an EXTRA _ DEVICE additional domain, and the bluetooth DEVICE does not need to be paired with a local terminal bluetooth DEVICE in advance, so through bluetooth scanning, identification information of an unpaired DEVICE can be displayed in a page layout.
204. And sequencing the Bluetooth devices in the unpaired list according to the intensity of the scanned signal of the Bluetooth device, and displaying the identification information of the scanned Bluetooth devices in the unpaired list.
205. And initiating broadcast data packet acquisition requests one by one according to the sequence of the Bluetooth devices in the unpaired list.
In the embodiment of the present invention, the explanation is given in step 204 and 205, the strength of the signal of the bluetooth device scanned may also be indirectly estimated, and the distance between other terminals and the local terminal may be sorted according to the strength of the signal of the bluetooth device scanned in the unpaired list, so that according to the sorting, the following processing procedure can be preferentially performed on other terminals with shorter estimated distance, such as: and receiving the Bluetooth broadcast data packet from the other terminal and further judging whether the actual communication distance meets the standard of the safe social distance.
206. When receiving a broadcast data packet sent by other terminals in a Bluetooth broadcast mode, analyzing the signal intensity information contained in the broadcast data packet and the health information corresponding to other terminals.
It should be noted that, in the embodiment of the present invention, a mapping relationship among the health information, the health level identifier, and the communication distance is pre-constructed.
For the embodiment of the invention, in order to standardize complex, diversified and redundant health information, the health information can be marked by using the health grade identification, and meanwhile, the classification pretreatment of a large amount of health information is realized, namely: and setting a preset mapping relation between different health information and the health grade marks.
Furthermore, a preset mapping relation between the health grade mark and the communication distance can be set, so that the communication distance which people in different health conditions should obey is standardized. The mapping relation among the health information, the health grade identification and the communication distance is established by taking the health grade identification information as an intermediate medium according to two different preset mapping relations.
For example, taking health information as a health code as an example, the health level identification of the health code is realized by using different colors of the health code, such as: red, yellow and green, red indicating within 14 days of isolation, yellow indicating within 7 days of isolation, green indicating that traffic can flow. Therefore, the health codes with different colors can be matched with corresponding communication distances in advance, wherein the red is 10 meters, the yellow is 5 meters, and the green is 1 meter.
207. And measuring the actual communication distance with other terminals according to the signal strength information.
In the embodiment of the present invention, please refer to step 102 for the statement of step 207, which is not described herein again.
208. And acquiring the health grade identification and the communication distance matched with the health information corresponding to other terminals by searching the mapping relation among the pre-constructed health information, the health grade identification and the communication distance.
In the embodiment of the present invention, after the terminal serves as a bluetooth broadcast receiver and receives and analyzes the broadcast data packet to obtain the health information contained therein, the health level identifier and the communication distance matched with the health information corresponding to the bluetooth broadcast initiator terminal can be obtained by searching the mapping relationship among the health information, the health level identifier and the communication distance, which is constructed in step 206.
209. And determining the communication distance matched with the health information corresponding to other terminals as a social reference distance.
In the embodiment of the present invention, the communication distance matched with the acquired health information corresponding to the other terminal is found from the preset mapping relationship among the pre-constructed health information, the health level identifier, and the communication distance, and therefore, the communication distance is used as reference data, that is: the social reference distance, i.e. the social distance that should be kept between the local end user (bluetooth broadcast receiver) and the other end users (bluetooth broadcast initiator) corresponding to the health information is suggested, is used for comparing with the actual communication distance obtained in step 207.
210. And judging whether the actual communication distance is greater than the social reference distance or not, and if the actual communication distance is not greater than the social reference distance, triggering alarm information.
In the embodiment of the invention, the actual communication distance between the Bluetooth broadcast receiver and the initiator is compared with the social reference distance, if the actual communication distance is judged to be not more than the social reference distance, alarm information is triggered, the alarm information can realize real-time reminding for a user, and can be used for displaying a color change, triggering a ring or vibrating on a screen, so that the user can be timely and effectively reminded that the communication distance of the user does not accord with the safe social distance standard, and the user can be ensured to keep the safe social distance.
Further, in the embodiment of the present invention, after acquiring the health level identifier matched with the health information corresponding to another terminal (bluetooth broadcast initiator), it may be further determined whether the health level identifier is a managed identifier in advance, for example, when the health code is a red code, the managed identifier indicates that such people are ill and should be detected periodically, and if the terminal analyzes that the broadcast data packet includes the health information as the red code, that is: if the health level identifier is a managed identifier, reporting of the health information is triggered, and specifically, the health information can be reported to a nearby hospital or an epidemic prevention station which is networked.
It should be noted that, in the embodiment of the present invention, in the coverage area of the bluetooth broadcast signal, each terminal is a bluetooth broadcast initiator or a receiver of another terminal, so if it is determined that the actual communication distance between the receiver and the initiator is within the preset communication distance at this time, and an alarm is not triggered, but since the user is an individual who moves continuously, in order to ensure that the mobile individual keeps a safe social distance, the terminal bluetooth module may be set to initiate bluetooth broadcast according to a specified time period, and thus when the user moves to a certain position, it can be determined in real time whether the user is in compliance with the social security distance standard as a bluetooth broadcast receiver.
Further, if the local terminal is used as an initiator to emit the broadcast data packet in a bluetooth broadcast manner in the air, and the broadcast data packet carries the health information corresponding to the local terminal, for the method for acquiring the health information, in the embodiment of the present invention, the health information of the local terminal user can be acquired by a third party application, such as "jian kang bao", and it is necessary to determine in advance whether the third party application is an application authorized for the local terminal before the third party application, and if so, the health information corresponding to the terminal can be directly acquired through a third party application interface.
Further, as an implementation of the method shown in fig. 1 and fig. 2, an embodiment of the present invention provides an early warning device for a communication distance. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device is applied to automatically identify and remind a user to keep a safe communication distance, and particularly as shown in fig. 3, the device comprises:
a receiving unit 301, configured to receive a broadcast data packet sent by another terminal in a bluetooth broadcast manner;
an analyzing unit 302, configured to analyze the signal strength information included in the broadcast packet received by the receiving unit 301 and the health information corresponding to the other terminals;
a measuring unit 303, configured to measure an actual communication distance with the other terminal according to the signal strength information obtained through analysis by the analyzing unit 302;
a determining unit 304, configured to determine whether the actual communication distance measured by the measuring unit 303 is greater than a preset communication distance corresponding to the health information;
a triggering unit 305, configured to trigger an alarm message when the determining unit 304 determines that the actual communication distance is not greater than the preset communication distance corresponding to the health information.
Further, as shown in fig. 4, the apparatus includes:
a setting unit 306, configured to set a first preset mapping relationship between different health information and health level identifiers;
the setting unit 306 is further configured to set a second preset mapping relationship between different health level identifiers and communication distances;
the constructing unit 307 is configured to construct a mapping relationship among the health information, the health level identifier, and the communication distance according to the first preset mapping relationship set by the setting unit 306 and the second preset mapping relationship set by the setting unit 306.
Further, as shown in fig. 4, the determining unit 304 includes:
the obtaining module 3041 is configured to obtain the health level identifier and the communication distance matched with the health information corresponding to the other terminal by searching a mapping relationship among the pre-constructed health information, the health level identifier and the communication distance;
a determining module 3042, configured to determine, as a social reference distance, a communication distance matched with the health information corresponding to the other terminal acquired by the acquiring module 3041;
a determining module 3043, configured to determine whether the actual communication distance is greater than the social reference distance determined by the determining module 3042.
Further, as shown in fig. 4, the determining unit 304 further includes:
the determining module 3043 is further configured to determine whether a health level identifier matched with the health information corresponding to the other terminal is a preset managed identifier if it is determined that the actual communication distance is not greater than the social parameter distance;
a processing module 3044, configured to report the health information corresponding to the other terminal when the determining module 3043 determines that the health level identifier is the preset managed identifier.
Further, as shown in fig. 4, the apparatus further includes:
a scanning unit 308 for scanning whether there is a connectable bluetooth device that performs bluetooth broadcasting in air in a one-to-many manner on other terminals;
the determining unit 304 is further configured to determine whether a bluetooth device connected to the bluetooth device is connected and paired with the scanned bluetooth device if the connectable bluetooth device exists in the scanning;
an adding unit 309, configured to add the scanned bluetooth device to an unpaired list when the determining unit determines that pairing is not connected to the scanned bluetooth device.
Further, as shown in fig. 4, the apparatus further includes:
the sorting unit 310 is configured to, after the scanned bluetooth device is added to an unpaired list, sort the bluetooth devices in the unpaired list according to the signal strength of the scanned bluetooth device, where identification information of the scanned bluetooth device is displayed in the unpaired list;
and the executing unit 311 is configured to initiate requests for acquiring broadcast data packets one by one according to the sequence of the bluetooth devices in the unpaired list.
Further, as shown in fig. 4, the apparatus further includes:
an initialization operation unit 312 for initializing a bluetooth device on the local terminal before the scan for the connectable bluetooth device;
a checking unit 313 for checking whether the bluetooth device authority is on;
an applying unit 314, configured to dynamically apply for starting the bluetooth permission to a local terminal system when the checking unit 313 checks that the bluetooth device permission is not started.
Further, as shown in fig. 4, the apparatus further includes:
the determining unit 304 is further configured to determine whether a third-party application is an application authorized for a local terminal, where the third-party application is used to provide health information corresponding to the local terminal;
the obtaining unit 315 is configured to obtain the health information corresponding to the terminal through the third-party application interface when the determining unit determines that the third-party application is an application authorized for a local terminal;
the broadcasting unit 316 is configured to distribute a broadcast data packet in a bluetooth broadcast manner to the air according to a preset time period, where the broadcast data packet carries the health information corresponding to the local terminal.
In summary, embodiments of the present invention provide a method and an apparatus for warning a communication distance, in which a broadcast data packet is distributed between different terminals in a bluetooth broadcast manner, and the broadcast data packet includes signal strength information and health information corresponding to the terminal, so that when a terminal receives the broadcast data packet, an actual communication distance between the terminal and the terminal initiating the broadcast can be measured according to the signal strength information, and a preset communication distance that is preset and should be kept between the terminal initiating the broadcast can be obtained according to the health information, and then if the actual communication distance does not conform to the preset communication distance, an alarm message is triggered. Compared with the prior art, the method and the device for controlling the social distance can solve the problems of high labor cost and poor effect of the conventional method for controlling the social distance.
The early warning device for the communication distance comprises a processor and a memory, wherein the receiving unit, the analyzing unit, the measuring unit, the judging unit, the triggering unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, the actual communication distance between different terminals is obtained by means of Bluetooth communication ranging through adjusting kernel parameters, and when the fact that the communication distance between the user terminal and the corresponding terminal of other people does not reach the standard of the safe social distance is automatically recognized, an alarm is triggered to timely and effectively remind the user, so that the safe social distance between the users is guaranteed.
An embodiment of the present invention provides a storage medium having a program stored thereon, where the program, when executed by a processor, implements the communication distance warning method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the early warning method of the communication distance is executed when the program runs.
An embodiment of the present invention provides an apparatus 40, as shown in fig. 5, the apparatus includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor 401; the processor 401 and the memory 402 complete communication with each other through the bus 403; the processor 401 is configured to call the program instructions in the memory 402 to execute the above-mentioned communication distance warning method.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: when receiving a broadcast data packet sent by other terminals in a Bluetooth broadcast mode, analyzing signal intensity information contained in the broadcast data packet and health information corresponding to the other terminals; measuring the actual communication distance between the terminal and the other terminals according to the signal intensity information; judging whether the actual communication distance is larger than a preset communication distance corresponding to the health information or not; if not, triggering alarm information.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A communication distance early warning method is characterized by comprising the following steps:
when receiving a broadcast data packet sent by other terminals in a Bluetooth broadcast mode, analyzing signal intensity information contained in the broadcast data packet and health information corresponding to the other terminals;
measuring the actual communication distance between the terminal and the other terminals according to the signal intensity information;
judging whether the actual communication distance is larger than a preset communication distance corresponding to the health information or not;
if not, triggering alarm information.
2. The method according to claim 1, wherein before the determining whether the actual communication distance is greater than a preset communication distance corresponding to the health information, the method further comprises:
setting a first preset mapping relation between different health information and health grade marks;
setting a second preset mapping relation between different health grade marks and communication distances;
and constructing a mapping relation among the health information, the health grade identification and the communication distance according to the first preset mapping relation and the second preset mapping relation.
3. The method of claim 2, wherein the determining whether the actual communication distance is greater than a preset communication distance corresponding to the health information comprises:
acquiring health grade marks and communication distances matched with the health information corresponding to other terminals by searching a mapping relation among the pre-constructed health information, the health grade marks and the communication distances;
determining the communication distance matched with the health information corresponding to the other terminals as a social reference distance;
and judging whether the actual communication distance is greater than the social reference distance.
4. The method of claim 3, wherein if it is determined that the actual communication distance is not greater than the social parameter distance, the method further comprises:
judging whether the health grade identification matched with the health information corresponding to the other terminals is a preset controlled identification or not;
and if so, reporting the health information corresponding to the other terminals.
5. The method of claim 1, wherein before the receiving the broadcast data packet transmitted by the other terminal in the bluetooth broadcast manner, the method further comprises:
scanning whether connectable Bluetooth devices exist, wherein the Bluetooth devices perform Bluetooth broadcasting in the air in a one-to-many mode on other terminals;
if yes, judging whether the Bluetooth equipment is connected and paired with the scanned Bluetooth equipment;
and if not, adding the scanned Bluetooth equipment into an unpaired list.
6. The method of claim 5, wherein after adding the scanned Bluetooth device to an unpaired list, the method further comprises:
sequencing the Bluetooth devices in the unpaired list according to the intensity of the scanned signal of the Bluetooth device, wherein the identification information of the scanned Bluetooth devices is displayed in the unpaired list;
and initiating broadcast data packet acquisition requests one by one according to the sequence of the Bluetooth devices in the unpaired list.
7. The method of claim 5, wherein prior to said scanning for the presence of connectable Bluetooth devices, the method further comprises:
initializing Bluetooth equipment on a local terminal;
checking whether the Bluetooth equipment authority is opened;
if not, the Bluetooth authority is dynamically applied to the local terminal system.
8. A communication distance warning device, comprising:
the receiving unit is used for receiving broadcast data packets sent by other terminals in a Bluetooth broadcast mode;
the analysis unit is used for analyzing the signal intensity information contained in the broadcast data packet received by the receiving unit and the health information corresponding to the other terminals;
the measuring unit is used for measuring the actual communication distance between the terminal and the other terminals according to the signal intensity information obtained by the analysis of the analyzing unit;
the judging unit is used for judging whether the actual communication distance measured by the measuring unit is larger than the preset communication distance corresponding to the health information or not;
and the triggering unit is used for triggering alarm information when the judging unit judges that the actual communication distance is not greater than the preset communication distance corresponding to the health information.
9. A storage medium, characterized in that the storage medium includes a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the communication distance warning method according to any one of claims 1 to 7.
10. An electronic device, comprising at least one processor, and at least one memory, bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory to execute the communication distance early warning method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011015226.0A CN112165683B (en) | 2020-09-24 | 2020-09-24 | Communication distance early warning method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011015226.0A CN112165683B (en) | 2020-09-24 | 2020-09-24 | Communication distance early warning method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112165683A true CN112165683A (en) | 2021-01-01 |
CN112165683B CN112165683B (en) | 2022-12-13 |
Family
ID=73863685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011015226.0A Active CN112165683B (en) | 2020-09-24 | 2020-09-24 | Communication distance early warning method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112165683B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113034865A (en) * | 2021-01-21 | 2021-06-25 | 深圳壹智云科技有限公司 | Social alarm system based on laser ranging |
CN113543098A (en) * | 2021-06-18 | 2021-10-22 | 惠州Tcl云创科技有限公司 | Bluetooth-based distance reminding method and device for mobile terminal, terminal and medium |
CN114157981A (en) * | 2021-11-29 | 2022-03-08 | 歌尔科技有限公司 | Distance safety detection method and wearable device |
CN115225939A (en) * | 2022-06-22 | 2022-10-21 | 深圳创维-Rgb电子有限公司 | Distance reminding method, device and equipment based on Bluetooth and computer storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172002A (en) * | 2016-03-07 | 2017-09-15 | 京东方科技集团股份有限公司 | The method and apparatus for controlling the network connection of application terminal |
CN111343577A (en) * | 2020-05-22 | 2020-06-26 | 卓望信息技术(北京)有限公司 | Method for infectious patient tracking and infection risk detection |
CN111415755A (en) * | 2020-04-30 | 2020-07-14 | 重庆金瓯科技发展有限责任公司 | Auxiliary monitoring system for epidemic disease protection |
TWM600396U (en) * | 2020-06-12 | 2020-08-21 | 久秉實業股份有限公司 | Distance sensing system |
CA3082221A1 (en) * | 2020-04-15 | 2020-08-31 | Promark Electronics Inc. | Social distancing personal warning device |
CN111640501A (en) * | 2020-05-29 | 2020-09-08 | 山东管理学院 | Personnel cluster management system and method based on RSSI ranging |
CN111654579A (en) * | 2020-06-02 | 2020-09-11 | Tcl通讯(宁波)有限公司 | Alarm method, device, storage medium and mobile terminal |
-
2020
- 2020-09-24 CN CN202011015226.0A patent/CN112165683B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172002A (en) * | 2016-03-07 | 2017-09-15 | 京东方科技集团股份有限公司 | The method and apparatus for controlling the network connection of application terminal |
CA3082221A1 (en) * | 2020-04-15 | 2020-08-31 | Promark Electronics Inc. | Social distancing personal warning device |
CN111415755A (en) * | 2020-04-30 | 2020-07-14 | 重庆金瓯科技发展有限责任公司 | Auxiliary monitoring system for epidemic disease protection |
CN111343577A (en) * | 2020-05-22 | 2020-06-26 | 卓望信息技术(北京)有限公司 | Method for infectious patient tracking and infection risk detection |
CN111640501A (en) * | 2020-05-29 | 2020-09-08 | 山东管理学院 | Personnel cluster management system and method based on RSSI ranging |
CN111654579A (en) * | 2020-06-02 | 2020-09-11 | Tcl通讯(宁波)有限公司 | Alarm method, device, storage medium and mobile terminal |
TWM600396U (en) * | 2020-06-12 | 2020-08-21 | 久秉實業股份有限公司 | Distance sensing system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113034865A (en) * | 2021-01-21 | 2021-06-25 | 深圳壹智云科技有限公司 | Social alarm system based on laser ranging |
CN113543098A (en) * | 2021-06-18 | 2021-10-22 | 惠州Tcl云创科技有限公司 | Bluetooth-based distance reminding method and device for mobile terminal, terminal and medium |
WO2022262347A1 (en) * | 2021-06-18 | 2022-12-22 | 惠州Tcl云创科技有限公司 | Mobile terminal distance reminding method and device based on bluetooth, and terminal and medium |
CN113543098B (en) * | 2021-06-18 | 2024-02-09 | 惠州Tcl云创科技有限公司 | Bluetooth-based mobile terminal distance reminding method, device, terminal and medium |
CN114157981A (en) * | 2021-11-29 | 2022-03-08 | 歌尔科技有限公司 | Distance safety detection method and wearable device |
CN115225939A (en) * | 2022-06-22 | 2022-10-21 | 深圳创维-Rgb电子有限公司 | Distance reminding method, device and equipment based on Bluetooth and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112165683B (en) | 2022-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112165683B (en) | Communication distance early warning method and device | |
KR100953901B1 (en) | System and method for informing that user is in or not in wireless lan service area | |
CN106134117B (en) | The detection of the wireless telecom equipment of unauthorized | |
CN111405466B (en) | Site identification method, arrival reminding method, device, terminal and storage medium | |
US10984040B2 (en) | Collection and provision method, device, system and server for vehicle image data | |
US11330096B2 (en) | Emergency data statistics aggregation with data privacy protection | |
CN108377241A (en) | Monitoring method, device, equipment based on access frequency and computer storage media | |
CN108810471A (en) | A kind of intelligent doorbell, information sharing method and device | |
CN108377201A (en) | Network Abnormal cognitive method, device, equipment and computer readable storage medium | |
Uras et al. | PmA: A real-world system for people mobility monitoring and analysis based on Wi-Fi probes | |
CN105306610B (en) | Network identity detection method and device | |
CN110267207B (en) | Intelligent position monitoring method and device and electronic equipment | |
CN109756840B (en) | Mobile terminal sign-in anti-cheating method, device, system, equipment and storage medium | |
CN104361658B (en) | The detection method and device of a kind of region Nei Ge places people information | |
WO2018103282A1 (en) | Positioning-based information pushing method and system | |
CN108810470A (en) | A kind of intelligent doorbell, intellectual broadcast method and device | |
JPH10500832A (en) | Communication system for detecting unauthorized entry of terminal units | |
CN108990065A (en) | Pseudo-base station monitoring method, device and mobile terminal | |
CN115019428A (en) | Passage management method and device based on place codes | |
CN109005193A (en) | Alarming method for power, device and electric terminal | |
CN110060468A (en) | Monitoring method, device and the equipment of abnormal road conditions based on millimetre-wave radar | |
CN108876957A (en) | Cruising inspection system and method | |
CN110378120A (en) | Application programming interfaces attack detection method, device and readable storage medium storing program for executing | |
KR20200104047A (en) | Vending machine for distributing mask for blocking fine dust | |
CN116095819A (en) | Person cross-region determination method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |