WO2022262347A1 - Mobile terminal distance reminding method and device based on bluetooth, and terminal and medium - Google Patents

Mobile terminal distance reminding method and device based on bluetooth, and terminal and medium Download PDF

Info

Publication number
WO2022262347A1
WO2022262347A1 PCT/CN2022/082337 CN2022082337W WO2022262347A1 WO 2022262347 A1 WO2022262347 A1 WO 2022262347A1 CN 2022082337 W CN2022082337 W CN 2022082337W WO 2022262347 A1 WO2022262347 A1 WO 2022262347A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
mobile terminal
distance
reminder
straight
Prior art date
Application number
PCT/CN2022/082337
Other languages
French (fr)
Chinese (zh)
Inventor
刘少华
李进汉
吴东海
Original Assignee
惠州Tcl云创科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 惠州Tcl云创科技有限公司 filed Critical 惠州Tcl云创科技有限公司
Publication of WO2022262347A1 publication Critical patent/WO2022262347A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the invention relates to the technical field of mobile terminals, in particular to a Bluetooth-based mobile terminal distance reminder method, device, mobile terminal and storage medium.
  • the mobile terminal in the prior art does not have a short-distance reminder function, which is sometimes inconvenient for users to use. For example, in the prevention and control of the epidemic, it is always emphasized to maintain a social distance. During the epidemic, many areas require a social distance of more than 1 meter. Forgetting or negligence, there is an urgent need for a mobile terminal with a short-distance reminder function.
  • the technical problem to be solved by the present invention is to provide a Bluetooth-based mobile terminal distance reminder method, device, mobile terminal and storage medium for the above-mentioned defects of the prior art, aiming at solving the problem that the mobile terminal of the prior art does not have a short distance
  • the reminder function is sometimes inconvenient for users to use the problem.
  • a Bluetooth-based mobile terminal distance reminder method wherein the method includes:
  • the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals, and detects the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
  • the Bluetooth-based mobile terminal distance reminder method wherein, the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth Previously included:
  • the first bluetooth mobile terminal uses the agreed data as broadcast carrying data to generate a bluetooth broadcast;
  • the first bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the bluetooth broadcast to surroundings.
  • the data carried in the broadcast is 31-byte agreed data.
  • the Bluetooth-based mobile terminal distance reminder method wherein, the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth include:
  • the second bluetooth mobile terminal scans and acquires the bluetooth broadcast of the first bluetooth mobile terminal around, and analyzes the broadcast carrying data carried by the bluetooth broadcast to obtain the bluetooth signal strength of the broadcast sender;
  • the second Bluetooth mobile terminal calculates the straight-line distance to the first Bluetooth mobile terminal of the broadcast sender.
  • the Bluetooth-based mobile terminal distance reminder method wherein the step of judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance includes:
  • the Bluetooth-based mobile terminal distance reminder method wherein, when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, the corresponding reminder step includes:
  • the predetermined distance is 1 meter.
  • a Bluetooth-based mobile terminal distance reminding device wherein the device includes:
  • the distance detection module is used to control the second bluetooth mobile terminal to scan and acquire surrounding bluetooth signals, and detect the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
  • a judging module configured to judge whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance
  • the reminder control module is used to give corresponding reminders when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance.
  • a mobile terminal wherein the mobile terminal includes a memory, a processor, and a bluetooth-based mobile terminal distance reminder program stored in the memory and operable on the processor, and the processor executes the When the bluetooth mobile terminal distance reminding program is used, the steps of any one of the bluetooth-based mobile terminal distance reminding methods are realized.
  • a computer-readable storage medium wherein a bluetooth-based mobile terminal distance reminder program is stored on the computer-readable storage medium, and when the bluetooth-based mobile terminal distance reminder program is executed by a processor, any one of the Steps of the Bluetooth-based mobile terminal distance reminder method described above.
  • the present invention provides a Bluetooth-based mobile terminal distance reminding method.
  • the method adopts: the second Bluetooth mobile terminal scans and acquires the surrounding Bluetooth signals, and regularly detects the surrounding first Bluetooth signals through Bluetooth.
  • the straight-line distance between the Bluetooth mobile terminal and the second Bluetooth mobile terminal judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance; when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance distance, the corresponding reminder will be given.
  • the mobile terminal of the present invention has a short-distance reminder function, which can realize the function of automatic reminder when two or more mobile terminal users are too close to each other and less than the preset distance, so that users can actively maintain social distance in environments such as a pandemic , Effective epidemic prevention, providing users with more comprehensive protection.
  • FIG. 1 is a flow chart of a specific implementation of a Bluetooth-based mobile terminal distance reminder method provided by an embodiment of the present invention.
  • FIG. 2 is a schematic flow diagram of scanning and acquiring surrounding Bluetooth signals and detecting a straight-line distance of a mobile terminal provided by an embodiment of the present invention.
  • Fig. 3 is a schematic flowchart of judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance provided by an embodiment of the present invention.
  • FIG. 4 is a schematic flow diagram for reminding the user when it is determined that the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance provided by an embodiment of the present invention.
  • Fig. 5 is a functional block diagram of a Bluetooth-based mobile terminal distance reminding device provided by an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an internal structure of a terminal device provided by an embodiment of the present invention.
  • the directional indication is only used to explain the position in a certain posture (as shown in the accompanying drawing). If the specific posture changes, the directional indication will also change accordingly.
  • the embodiment of the present invention provides a Bluetooth-based mobile terminal distance reminder method.
  • the present invention proposes to use Bluetooth technology to actively vibrate the pop-up box to prompt when two devices are close to each other.
  • the Bluetooth-based mobile terminal according to this embodiment
  • the distance reminder method can detect in real time the distance between two mobile terminals with the Bluetooth function turned on, and preset when the distance between the two mobile terminals is less than a preset value such as 1 meter, automatically remind the user to maintain a safe social distance; when the distance between the two users is greater than the preset The user will not be reminded when the distance is set to 1 meter, for example. It enables users to effectively maintain a safe social distance and protect themselves in a pandemic environment, providing users with more comprehensive security protection.
  • an embodiment of the present invention provides a Bluetooth-based mobile terminal distance reminder method, and the Bluetooth-based mobile terminal distance reminder method can be used in mobile devices such as mobile phones, tablets, and wearable devices.
  • the method described in the embodiment of the present invention includes the following steps:
  • Step S100 the second Bluetooth mobile terminal scans to obtain surrounding Bluetooth signals, and detects the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth timing;
  • the mobile terminal used in the embodiment of the present invention may be a mobile phone with a Bluetooth function, a wearable mobile phone, and the like.
  • the second Bluetooth mobile terminal may be user B's mobile phone with Bluetooth function
  • the first Bluetooth mobile terminal may be user A's mobile phone with Bluetooth function.
  • mobile phone A of user A is called advertiser (broadcaster)
  • mobile phone B of user B is called scanner or observer (scanner).
  • the steps include:
  • the first bluetooth mobile terminal uses the agreed data as broadcast carrying data to generate a bluetooth broadcast;
  • the first bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the bluetooth broadcast to surroundings.
  • the data carried in the broadcast is agreed data of 31 bytes.
  • the mobile phone A of user A in the broadcast state continuously sends broadcasts, and can carry 31 bytes of data when sending broadcasts;
  • the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals every time it passes through a certain period of time, The straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is detected through the acquired Bluetooth signal.
  • the second bluetooth mobile terminal Before the second bluetooth mobile terminal continuously scans and obtains the broadcast of the first mobile terminal, and detects the step of the straight-line distance from the first bluetooth mobile terminal, it also includes: the first bluetooth mobile terminal uses the agreed data as the broadcast carrying data, and generates Bluetooth broadcast, the Bluetooth broadcast is broadcast data used to realize distance detection between two or more Bluetooth mobile terminals, and the data carried in the broadcast is agreed data of 31 bytes. At the same time, the first Bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the Bluetooth broadcast carrying the agreed data to the surroundings.
  • step S100 includes:
  • Step S101 the second Bluetooth mobile terminal scans and obtains the Bluetooth broadcast of the first Bluetooth mobile terminal around, and analyzes the broadcast data carried by the Bluetooth broadcast to obtain the Bluetooth signal strength of the broadcast sender;
  • Step S102 the second Bluetooth mobile terminal calculates the straight-line distance from the broadcast sender's first Bluetooth mobile terminal according to the broadcast sender's Bluetooth signal strength.
  • the mobile phones of user A and user B turn on the Bluetooth function at the same time.
  • the mobile phone of the user B continues to send a Bluetooth broadcast with 31 bytes of agreed data to the surroundings through the Bluetooth function.
  • the Bluetooth broadcast containing the agreed data includes at least a header and a data part, and the data may include a mobile phone used to indicate the sending data.
  • the identification segment of the device number and the data segment that enables it to realize the distance measurement between two mobile phones and the function of prompting that the distance is too close.
  • user A's mobile phone starts to obtain it through Bluetooth.
  • the bluetooth broadcast sent by the mobile phone of user B the mobile phone of user A receives the bluetooth broadcast, parses its broadcast data into the broadcast data used to detect the distance between two mobile terminals, and obtains the signal of the bluetooth broadcast sent by user B's mobile phone
  • the strength is -69.4dBm
  • the calculated straight-line distance between user A's mobile phone and user B's mobile phone is about 5m
  • the mobile phone of user A receives the Bluetooth broadcast, parses its broadcast data into broadcast data for detecting the distance between mobile terminals, and then obtains the Bluetooth broadcast sent by the mobile phone of user B.
  • the broadcast signal strength is, for example, -56.5dBm. It is estimated that the straight-line distance between the mobile phone of user A and the mobile phone of user B is about 0.9m.
  • step S200 judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance
  • step S200 includes:
  • Step S201 comparing and judging the detected linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal with a preset predetermined distance
  • Step S202 judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance
  • the reminder distance is preset.
  • user A's mobile phone receives the Bluetooth broadcast sent by user B's mobile phone, and calculates the distance as 5 meters based on the signal strength.
  • the straight-line distance be 1 meter; when the distance between user A and user B is less than 1 meter, user A’s mobile phone receives the Bluetooth broadcast sent by user B’s mobile phone, and calculates the distance as 0.9m based on the signal strength, at this time it is judged that user A The distance to user B is less than 1 meter of the preset straight line distance.
  • step S300 when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, a corresponding reminder is given.
  • both the first Bluetooth mobile terminal and the second Bluetooth mobile terminal are controlled to vibrate and pop up a window Prompt to inform users that the current distance is relatively short and social distance should be controlled.
  • step S300 includes:
  • Step S301 when the linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than the predetermined distance, control both the first Bluetooth mobile terminal and the second Bluetooth mobile terminal to vibrate and pop up a window prompt.
  • both user A's mobile phone and user B's mobile phone will vibrate and a pop-up window will prompt the user to control the social distance.
  • other customary notification methods for prompting the user such as ringing a bell, can also be used.
  • the sending and receiving broadcasts are carried out alternately.
  • the two mobile phones turn on the full-duplex Bluetooth function, the sending and receiving broadcasts are carried out simultaneously.
  • the calculated signal strength and distance between users is less than the preset distance, the user is prompted to control the social distance.
  • the present invention can be used not only in mobile phones, but also in common smart wearable devices such as smart bracelets equipped with Bluetooth functions.
  • smart bracelets equipped with Bluetooth functions.
  • both user A and user B wear smart wristbands with Bluetooth function, and they both turn on the function of detecting the terminal distance and reminding the user to keep social distance in real time when they go out.
  • Function or application APP the two smart bracelets adopt full-duplex working mode, and receive broadcast data while sending Bluetooth broadcast containing specific data.
  • the sending frequency can be freely set according to power consumption, such as once every 5s or once every 30s.
  • Bluetooth bracelet A cannot receive the Bluetooth broadcast with specific data sent by user B's Bluetooth bracelet B
  • Bluetooth bracelet B cannot receive the Bluetooth broadcast of the Bluetooth bracelet.
  • Bluetooth broadcast from Ring A When user A and user B enter the same store to purchase goods, the distance between the Bluetooth bracelet A and the Bluetooth bracelet B is shortened to 3m, and the Bluetooth bracelet A and the Bluetooth bracelet B begin to receive the information sent by the other party with a specific Bluetooth broadcast data, and through calculation, the distance between Bluetooth bracelet A and Bluetooth bracelet B is 3m, which is not less than the preset reminder distance.
  • Bluetooth bracelet A and Bluetooth bracelet B detect that the signal strength of the broadcast sent by the other party is getting higher and higher until the distance calculated by the signal strength is less than 1
  • Bluetooth bracelet A and Bluetooth bracelet B will vibrate at the same time, reminding the user that there are other users who are close to each other and they need to maintain a safe social distance.
  • the Bluetooth bracelet will no longer vibrate after the two maintain a safe social distance again.
  • the Bluetooth bracelet obtains multiple Bluetooth broadcasts but only the Bluetooth broadcast with the highest signal strength is used for calculation, which can greatly reduce the data processing and power of the Bluetooth bracelet. consumption.
  • a user-adjustable function can be added to the corresponding function of the mobile terminal or the application APP.
  • the reminder method can use various reminders such as vibration, continuous vibration, periodic vibration, and ringing.
  • you can also set the detection frequency and preset distance of Bluetooth broadcasting.
  • the detection frequency ranges from 1 second to 10 minutes, and the preset distance is 0.5m to 10 minutes. between 5m.
  • an embodiment of the present invention provides a Bluetooth-based mobile terminal distance reminder device, which includes: a distance detection module 510 , a judgment module 520 , and a reminder control module 530 .
  • the distance detection module 510 is used to control the second Bluetooth mobile terminal to scan and acquire surrounding Bluetooth signals, and detect the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth timing;
  • the judging module 520 used to determine whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
  • the reminder control module 530 used to determine whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal distance, the corresponding reminder will be given.
  • the present invention further provides a terminal device, the functional block diagram of which may be shown in FIG. 6 .
  • the terminal equipment includes a processor, a memory, a network interface, and a display screen connected through a system bus.
  • the processor of the terminal device is used to provide calculation and control capabilities.
  • the memory of the terminal device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the terminal device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, a bluetooth-based mobile terminal distance reminder is realized.
  • the display screen of the terminal device may be a liquid crystal display screen or an electronic ink display screen.
  • the functional block diagram in Figure 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the terminal equipment on which the solution of the present invention is applied.
  • the specific terminal equipment may include comparison diagrams more or fewer components, or combine certain components or have a different arrangement of components.
  • a terminal device includes a memory, a processor, and a bluetooth-based mobile terminal distance reminder program that is stored on the processor and can run on the processor, and the processing executes the following steps:
  • the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals, and detects the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
  • the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals
  • the step of detecting the linear distance between the surrounding first bluetooth mobile terminal and the second bluetooth mobile terminal through bluetooth timing includes:
  • the first bluetooth mobile terminal uses the agreed data as broadcast carrying data to generate a bluetooth broadcast;
  • the first bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the bluetooth broadcast to surroundings.
  • the data carried in the broadcast is agreed data of 31 bytes.
  • the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals
  • the step of detecting the linear distance between the surrounding first bluetooth mobile terminal and the second bluetooth mobile terminal through bluetooth timing includes:
  • the second bluetooth mobile terminal scans and acquires the bluetooth broadcast of the first bluetooth mobile terminal around, and analyzes the broadcast carrying data carried by the bluetooth broadcast to obtain the bluetooth signal strength of the broadcast sender;
  • the second Bluetooth mobile terminal calculates the straight-line distance to the first Bluetooth mobile terminal of the broadcast sender.
  • the step of judging whether the linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance includes:
  • the step of reminding accordingly includes:
  • the predetermined distance is 1 meter.
  • Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM Static RAM
  • DRAM Dynamic RAM
  • SDRAM Synchronous DRAM
  • DDRSDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced SDRAM
  • SLDRAM Synchronous Chain Synchlink DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM
  • the present invention discloses a Bluetooth-based mobile terminal distance reminder method, device, mobile terminal and storage medium.
  • the method includes: the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects surrounding Bluetooth signals through Bluetooth. A straight-line distance between a Bluetooth mobile terminal and a second Bluetooth mobile terminal; judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance; when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than If the predetermined distance is reached, a corresponding reminder will be given.

Abstract

Disclosed are a mobile terminal distance reminding method and device based on Bluetooth, and a terminal and a medium. The method comprises: a second Bluetooth mobile terminal scanning and obtaining surrounding Bluetooth signals, and detecting a linear distance between a surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal at regular time by means of Bluetooth; and when the linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is smaller than a preset distance, performing reminding. The present invention aims to solve the problem that a mobile terminal cannot prompt a user that a social distance is too short.

Description

基于蓝牙的移动终端距离提醒方法、装置、终端及介质Bluetooth-based mobile terminal distance reminder method, device, terminal and medium
本申请要求申请日为2021年6月18日、申请号为202110679138.9、发明名称为“基于蓝牙的移动终端距离提醒方法、装置、终端及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application date of June 18, 2021, an application number of 202110679138.9, and an invention titled "Bluetooth-based mobile terminal distance reminder method, device, terminal and medium", the entire content of which is by reference incorporated in this application.
技术领域technical field
本发明涉及移动终端技术领域,尤其涉及一种基于蓝牙的移动终端距离提醒方法、装置、移动终端及存储介质。The invention relates to the technical field of mobile terminals, in particular to a Bluetooth-based mobile terminal distance reminder method, device, mobile terminal and storage medium.
背景技术Background technique
随着科技的发展和人们生活水平的不断提高,各种移动终端如手机的使用越来越普及,手机已经成为人们生活中不可缺少的通信工具。With the development of science and technology and the continuous improvement of people's living standards, the use of various mobile terminals such as mobile phones has become more and more popular, and mobile phones have become an indispensable communication tool in people's lives.
技术问题technical problem
现有技术中的移动终端不具有近距离提醒功能,有时不方便用户使用,例如在疫情防控中,始终强调要保持社交距离,疫情下很多地区要求保持1米以上的社交距离,有时用户容易忘记或疏忽,亟需一种带近距离提醒功能的移动终端。The mobile terminal in the prior art does not have a short-distance reminder function, which is sometimes inconvenient for users to use. For example, in the prevention and control of the epidemic, it is always emphasized to maintain a social distance. During the epidemic, many areas require a social distance of more than 1 meter. Forgetting or negligence, there is an urgent need for a mobile terminal with a short-distance reminder function.
因此,现有技术还有待改进和提高。Therefore, the prior art still needs to be improved and improved.
技术解决方案technical solution
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种基于蓝牙的移动终端距离提醒方法、装置、移动终端及存储介质,旨在解决现有技术的移动终端不具有近距离提醒功能,有时不方便用户使用的问题。The technical problem to be solved by the present invention is to provide a Bluetooth-based mobile terminal distance reminder method, device, mobile terminal and storage medium for the above-mentioned defects of the prior art, aiming at solving the problem that the mobile terminal of the prior art does not have a short distance The reminder function is sometimes inconvenient for users to use the problem.
为了解决上述技术问题,本发明所采用的技术方案如下:In order to solve the problems of the technologies described above, the technical scheme adopted in the present invention is as follows:
一种基于蓝牙的移动终端距离提醒方法,其中,所述方法包括:A Bluetooth-based mobile terminal distance reminder method, wherein the method includes:
第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;The second bluetooth mobile terminal scans and acquires surrounding bluetooth signals, and detects the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, a corresponding reminder is given.
所述的基于蓝牙的移动终端距离提醒方法,其中,所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤之前包括:The Bluetooth-based mobile terminal distance reminder method, wherein, the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth Previously included:
第一蓝牙移动终端将约定数据作为广播携带数据,生成蓝牙广播;The first bluetooth mobile terminal uses the agreed data as broadcast carrying data to generate a bluetooth broadcast;
第一蓝牙移动终端开启广播发送模式,向周围持续不断的发送所述蓝牙广播。The first bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the bluetooth broadcast to surroundings.
所述的基于蓝牙的移动终端距离提醒方法,其中,所述广播携带数据为31字节的约定数据。In the Bluetooth-based mobile terminal distance reminder method, wherein, the data carried in the broadcast is 31-byte agreed data.
所述的基于蓝牙的移动终端距离提醒方法,其中,所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤包括:The Bluetooth-based mobile terminal distance reminder method, wherein, the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth include:
第二蓝牙移动终端扫描获取周围第一蓝牙移动终端的蓝牙广播,并解析所述蓝牙广播携带的广播携带数据,得到广播发送者的蓝牙信号强度;The second bluetooth mobile terminal scans and acquires the bluetooth broadcast of the first bluetooth mobile terminal around, and analyzes the broadcast carrying data carried by the bluetooth broadcast to obtain the bluetooth signal strength of the broadcast sender;
第二蓝牙移动终端根据广播发送者的蓝牙信号强度,测算出与广播发送者的第一蓝牙移动终端的直线距离。According to the strength of the Bluetooth signal of the broadcast sender, the second Bluetooth mobile terminal calculates the straight-line distance to the first Bluetooth mobile terminal of the broadcast sender.
所述的基于蓝牙的移动终端距离提醒方法,其中,所述判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离的步骤包括:The Bluetooth-based mobile terminal distance reminder method, wherein the step of judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance includes:
将检测到的第一蓝牙移动终端与第二蓝牙移动终端的直线距离,与预先设置的预定距离进行对比判断;Comparing and judging the detected linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal with a preset predetermined distance;
判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
当第一蓝牙移动终端与第二蓝牙移动终端的直线距离大于预定距离,则不做提醒处理。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is greater than the predetermined distance, no reminder processing is performed.
所述的基于蓝牙的移动终端距离提醒方法,其中,所述当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒的步骤包括:The Bluetooth-based mobile terminal distance reminder method, wherein, when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, the corresponding reminder step includes:
当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于所述预定距离,则控制第一蓝牙移动终端和第二蓝牙移动终端都进行震动并弹窗提示。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than the predetermined distance, control both the first Bluetooth mobile terminal and the second Bluetooth mobile terminal to vibrate and pop up a window prompt.
所述的基于蓝牙的移动终端距离提醒方法,其中,所述预定距离为1米。In the Bluetooth-based mobile terminal distance reminder method, wherein the predetermined distance is 1 meter.
一种基于蓝牙的移动终端距离提醒装置,其中,所述装置包括:A Bluetooth-based mobile terminal distance reminding device, wherein the device includes:
距离检测模块,用于控制第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;The distance detection module is used to control the second bluetooth mobile terminal to scan and acquire surrounding bluetooth signals, and detect the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
判断模块,用于判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;A judging module, configured to judge whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
提醒控制模块,用于当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。The reminder control module is used to give corresponding reminders when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance.
一种移动终端,其中,所述移动终端包括存储器、处理器及存储在所述存储器中并可在所述处理器上运行的基于蓝牙的移动终端距离提醒程序,所述处理器执行所述基于蓝牙的移动终端距离提醒程序时,实现任一项所述的基于蓝牙的移动终端距离提醒方法的步骤。A mobile terminal, wherein the mobile terminal includes a memory, a processor, and a bluetooth-based mobile terminal distance reminder program stored in the memory and operable on the processor, and the processor executes the When the bluetooth mobile terminal distance reminding program is used, the steps of any one of the bluetooth-based mobile terminal distance reminding methods are realized.
一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有基于蓝牙的移动终端距离提醒程序,所述基于蓝牙的移动终端距离提醒程序被处理器执行时,实现任一项所述的基于蓝牙的移动终端距离提醒方法的步骤。A computer-readable storage medium, wherein a bluetooth-based mobile terminal distance reminder program is stored on the computer-readable storage medium, and when the bluetooth-based mobile terminal distance reminder program is executed by a processor, any one of the Steps of the Bluetooth-based mobile terminal distance reminder method described above.
有益效果Beneficial effect
有益效果:与现有技术相比,本发明提供了一种基于蓝牙的移动终端距离提醒方法,所述方法采用:第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。本发明的移动终端具有近距离提醒功能,可以实现当两个或多个移动终端用户距离过近,小于预设距离时自动提醒的功能,使用户在大流行病等环境下能够积极保持社交距离,有效防疫,为用户提供了更全面的保护。Beneficial effects: Compared with the prior art, the present invention provides a Bluetooth-based mobile terminal distance reminding method. The method adopts: the second Bluetooth mobile terminal scans and acquires the surrounding Bluetooth signals, and regularly detects the surrounding first Bluetooth signals through Bluetooth. The straight-line distance between the Bluetooth mobile terminal and the second Bluetooth mobile terminal; judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance; when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance distance, the corresponding reminder will be given. The mobile terminal of the present invention has a short-distance reminder function, which can realize the function of automatic reminder when two or more mobile terminal users are too close to each other and less than the preset distance, so that users can actively maintain social distance in environments such as a pandemic , Effective epidemic prevention, providing users with more comprehensive protection.
附图说明Description of drawings
图1为本发明实施例提供的基于蓝牙的移动终端距离提醒方法的具体实施方式的流程图。FIG. 1 is a flow chart of a specific implementation of a Bluetooth-based mobile terminal distance reminder method provided by an embodiment of the present invention.
图2为本发明实施例提供的扫描并获取周围蓝牙信号并检测移动终端直线距离的流程示意图。FIG. 2 is a schematic flow diagram of scanning and acquiring surrounding Bluetooth signals and detecting a straight-line distance of a mobile terminal provided by an embodiment of the present invention.
图3为本发明实施例提供的判断所述第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离的流程示意图。Fig. 3 is a schematic flowchart of judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance provided by an embodiment of the present invention.
图4为本发明实施例提供的当判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离后提醒用户的流程示意图。FIG. 4 is a schematic flow diagram for reminding the user when it is determined that the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance provided by an embodiment of the present invention.
图5为本发明实施例提供的基于蓝牙的移动终端距离提醒装置的原理框图。Fig. 5 is a functional block diagram of a Bluetooth-based mobile terminal distance reminding device provided by an embodiment of the present invention.
图6为本发明实施例提供的终端设备的内部结构原理图。FIG. 6 is a schematic diagram of an internal structure of a terminal device provided by an embodiment of the present invention.
本发明的实施方式Embodiments of the present invention
为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that if there is a directional indication (such as up, down, left, right, front, back...) in the embodiment of the present invention, the directional indication is only used to explain the position in a certain posture (as shown in the accompanying drawing). If the specific posture changes, the directional indication will also change accordingly.
另外,若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, if there are descriptions involving "first", "second" and so on in the embodiments of the present invention, the descriptions of "first", "second" and so on are only for descriptive purposes, and should not be interpreted as indicating or implying Its relative importance or implicitly indicates the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.
随着人们对美好生活的向往,人们更重视健康,社会越来越注重疫情防护及个人卫生,在疫情情况下,日常出门要戴口罩以及控制社交距离以外。As people yearn for a better life, people pay more attention to health, and the society pays more and more attention to epidemic prevention and personal hygiene. In the case of epidemic situation, it is necessary to wear a mask and control social distance when going out.
而经过调查,人们在日常生活中都很好的做到了勤洗手戴口罩的生活习惯,但控制社交距离这一点并没有做的很好,其原因为,没有能够时刻提醒人们时刻保持社交距离的措施,具体为当两移动终端用户在距离小于规定的社交距离时没有有效的提醒措施。After investigation, people have done a good job of washing their hands and wearing masks in their daily life, but they have not done a good job in controlling social distance. The reason is that there is no system that can remind people to keep social distance at all times Measures, specifically, when the distance between the two mobile terminal users is less than the prescribed social distance, there is no effective reminding measure.
为了解决上述问题,本发明实施例提供一种基于蓝牙的移动终端距离提醒方法,本发明提出利用蓝牙技术,当两台设备靠近时主动震动弹框提示,根据本实施例的基于蓝牙的移动终端距离提醒方法可以实时检测两个开启了蓝牙功能的移动终端距离,并预设当两移动终端的距离小于预设值例如1米时自动提醒用户保持安全社交距离;当两用户间的距离大于预设距离例如1米时不提醒用户。使用户在大流行病环境下能够有效的保持安全的社交距离,做好自身防护,为用户提供了更全面的安全保护。In order to solve the above problems, the embodiment of the present invention provides a Bluetooth-based mobile terminal distance reminder method. The present invention proposes to use Bluetooth technology to actively vibrate the pop-up box to prompt when two devices are close to each other. The Bluetooth-based mobile terminal according to this embodiment The distance reminder method can detect in real time the distance between two mobile terminals with the Bluetooth function turned on, and preset when the distance between the two mobile terminals is less than a preset value such as 1 meter, automatically remind the user to maintain a safe social distance; when the distance between the two users is greater than the preset The user will not be reminded when the distance is set to 1 meter, for example. It enables users to effectively maintain a safe social distance and protect themselves in a pandemic environment, providing users with more comprehensive security protection.
示例性方法exemplary method
第一实施例first embodiment
如图1中所示,本发明实施例提供一种基于蓝牙的移动终端距离提醒方法,所述基于蓝牙的移动终端距离提醒方法可用于手机、平板、穿戴设备等移动设备中。在本发明实施例中所述方法包括如下步骤:As shown in FIG. 1 , an embodiment of the present invention provides a Bluetooth-based mobile terminal distance reminder method, and the Bluetooth-based mobile terminal distance reminder method can be used in mobile devices such as mobile phones, tablets, and wearable devices. The method described in the embodiment of the present invention includes the following steps:
步骤S100、第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;Step S100, the second Bluetooth mobile terminal scans to obtain surrounding Bluetooth signals, and detects the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth timing;
本发明实施例中采用的移动终端可以为带蓝牙功能的手机、穿戴手机等。例如可以第二蓝牙移动终端为用户B的带蓝牙功能的手机,第一蓝牙移动终端为用户A的带蓝牙功能的手机。例如用户A的手机A叫advertiser(广播者),用户B的手机B叫scanner或者observer(扫描者)。The mobile terminal used in the embodiment of the present invention may be a mobile phone with a Bluetooth function, a wearable mobile phone, and the like. For example, the second Bluetooth mobile terminal may be user B's mobile phone with Bluetooth function, and the first Bluetooth mobile terminal may be user A's mobile phone with Bluetooth function. For example, mobile phone A of user A is called advertiser (broadcaster), and mobile phone B of user B is called scanner or observer (scanner).
其中在所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤之前包括:Wherein, before the second bluetooth mobile terminal scans and obtains surrounding bluetooth signals, and regularly detects the linear distance between the surrounding first bluetooth mobile terminal and the second bluetooth mobile terminal through bluetooth, the steps include:
第一蓝牙移动终端将约定数据作为广播携带数据,生成蓝牙广播;The first bluetooth mobile terminal uses the agreed data as broadcast carrying data to generate a bluetooth broadcast;
第一蓝牙移动终端开启广播发送模式,向周围持续不断的发送所述蓝牙广播。所述广播携带数据为31字节的约定数据。The first bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the bluetooth broadcast to surroundings. The data carried in the broadcast is agreed data of 31 bytes.
在本实施例中,例如广播状态下用户A的手机A持续不断的发送广播,并且在发送广播时可以携带31字节数据;第二蓝牙移动终端每通过一定时间扫描并获取周围的蓝牙信号,通过获取到的蓝牙信号检测周围第一蓝牙移动终端与所述第二蓝牙移动终端的直线距离。In this embodiment, for example, the mobile phone A of user A in the broadcast state continuously sends broadcasts, and can carry 31 bytes of data when sending broadcasts; the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals every time it passes through a certain period of time, The straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is detected through the acquired Bluetooth signal.
在所述第二蓝牙移动终端持续扫描并获取得到第一移动终端广播,检测与第一蓝牙移动终端直线距离的步骤之前还包括:所述第一蓝牙移动终端将约定数据作为广播携带数据,生成蓝牙广播,所述蓝牙广播为用以实现两个或多个蓝牙移动终端间距离检测的广播数据,其广播携带数据为31字节的约定数据。同时第一蓝牙移动终端开启广播发送模式,向周围持续不断的发送所述携带了约定数据的蓝牙广播。Before the second bluetooth mobile terminal continuously scans and obtains the broadcast of the first mobile terminal, and detects the step of the straight-line distance from the first bluetooth mobile terminal, it also includes: the first bluetooth mobile terminal uses the agreed data as the broadcast carrying data, and generates Bluetooth broadcast, the Bluetooth broadcast is broadcast data used to realize distance detection between two or more Bluetooth mobile terminals, and the data carried in the broadcast is agreed data of 31 bytes. At the same time, the first Bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the Bluetooth broadcast carrying the agreed data to the surroundings.
具体地,如图2所述,步骤S100包括:Specifically, as shown in FIG. 2, step S100 includes:
步骤S101、第二蓝牙移动终端扫描获取周围第一蓝牙移动终端的蓝牙广播,并解析所述蓝牙广播携带的广播携带数据,得到广播发送者的蓝牙信号强度;Step S101, the second Bluetooth mobile terminal scans and obtains the Bluetooth broadcast of the first Bluetooth mobile terminal around, and analyzes the broadcast data carried by the Bluetooth broadcast to obtain the Bluetooth signal strength of the broadcast sender;
步骤S102、第二蓝牙移动终端根据广播发送者的蓝牙信号强度,测算出与广播发送者的第一蓝牙移动终端的直线距离。Step S102 , the second Bluetooth mobile terminal calculates the straight-line distance from the broadcast sender's first Bluetooth mobile terminal according to the broadcast sender's Bluetooth signal strength.
举例说明,例如在某广场上有两个携带手机的用户A与用户B,并且用户A与用户B的手机同时开启蓝牙功能。所述用户B的手机通过蓝牙功能持续向周围发送携带有31字节约定数据的蓝牙广播,所述包含约定数据的蓝牙广播至少包含报头和数据部分,并且数据中可包含用于表示发送数据手机的设备号的标识段以及能使其实现两手机间的测距并提示距离过近功能的数据段,当用户A与用户B的直线距离达到例如5米内时用户A的手机通过蓝牙开始获取到用户B手机发出的蓝牙广播,所述用户A的手机接收到蓝牙广播,解析其广播数据为用于检测两移动终端间距离的广播数据后,通过获得的用户B的手机发送的蓝牙广播的信号强度例如-69.4dBm,计算得到用户A的手机与用户B的手机间的直线距离大约为5m;当用户A与用户B持续靠近,达到较近的距离例如1米时,用户A的手机通过蓝牙获取到用户B的手机发出的蓝牙广播,所述用户A的手机接收到蓝牙广播,解析其广播数据为用于检测量移动终端间距离的广播数据后,通过获得的用户B的手机发送的蓝牙广播信号强度例如-56.5dBm,测算得到用户A的手机与用户B的手机间的直线距离大约为0.9m。For example, for example, there are two user A and user B carrying mobile phones in a square, and the mobile phones of user A and user B turn on the Bluetooth function at the same time. The mobile phone of the user B continues to send a Bluetooth broadcast with 31 bytes of agreed data to the surroundings through the Bluetooth function. The Bluetooth broadcast containing the agreed data includes at least a header and a data part, and the data may include a mobile phone used to indicate the sending data. The identification segment of the device number and the data segment that enables it to realize the distance measurement between two mobile phones and the function of prompting that the distance is too close. When the straight-line distance between user A and user B reaches, for example, within 5 meters, user A's mobile phone starts to obtain it through Bluetooth. The bluetooth broadcast sent by the mobile phone of user B, the mobile phone of user A receives the bluetooth broadcast, parses its broadcast data into the broadcast data used to detect the distance between two mobile terminals, and obtains the signal of the bluetooth broadcast sent by user B's mobile phone For example, the strength is -69.4dBm, and the calculated straight-line distance between user A's mobile phone and user B's mobile phone is about 5m; After obtaining the Bluetooth broadcast sent by the mobile phone of user B, the mobile phone of user A receives the Bluetooth broadcast, parses its broadcast data into broadcast data for detecting the distance between mobile terminals, and then obtains the Bluetooth broadcast sent by the mobile phone of user B. The broadcast signal strength is, for example, -56.5dBm. It is estimated that the straight-line distance between the mobile phone of user A and the mobile phone of user B is about 0.9m.
进一步地,步骤S200、判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Further, step S200, judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
在本实施例中,通过测算得到的两移动终端间的直线距离判断所述第一蓝牙移动终端与所述第二蓝牙移动终端间的直线距离是否小于预定距离。In this embodiment, it is determined whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance based on the calculated straight-line distance between the two mobile terminals.
具体地,如图3所示,步骤S200包括:Specifically, as shown in FIG. 3, step S200 includes:
步骤S201、将检测到的第一蓝牙移动终端与第二蓝牙移动终端的直线距离,与预先设置的预定距离进行对比判断;Step S201, comparing and judging the detected linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal with a preset predetermined distance;
步骤S202、判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Step S202, judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
举例说明,例如预先设置当两手机间的距离小于1米时为提醒距离。当用户A与用户B距离为5米时,用户A的手机接收到用户B的手机发送的蓝牙广播,并通过信号强度计算其距离为5米,此时判断用户A与用户B的距离大于预设直线距离的1米;当用户A与用户B的距离小于1米,用户A的手机接收到用户B的手机发送的蓝牙广播,并通过信号强度计算其距离为0.9m,此时判断用户A与用户B的距离小于预设直线距离的1米。For example, for example, when the distance between the two mobile phones is less than 1 meter, the reminder distance is preset. When the distance between user A and user B is 5 meters, user A's mobile phone receives the Bluetooth broadcast sent by user B's mobile phone, and calculates the distance as 5 meters based on the signal strength. At this time, it is determined that the distance between user A and user B is greater than the preset Let the straight-line distance be 1 meter; when the distance between user A and user B is less than 1 meter, user A’s mobile phone receives the Bluetooth broadcast sent by user B’s mobile phone, and calculates the distance as 0.9m based on the signal strength, at this time it is judged that user A The distance to user B is less than 1 meter of the preset straight line distance.
进一步地,步骤S300、当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。Further, in step S300, when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, a corresponding reminder is given.
在本实施例中,当判断所述第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预设的预定距离时,控制第一蓝牙移动终端和第二蓝牙移动终端都进行震动并弹窗提示,通知用户当前距离较近,应控制社交距离。In this embodiment, when it is judged that the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than the preset predetermined distance, both the first Bluetooth mobile terminal and the second Bluetooth mobile terminal are controlled to vibrate and pop up a window Prompt to inform users that the current distance is relatively short and social distance should be controlled.
具体地,如图4所示,步骤S300包括:Specifically, as shown in FIG. 4, step S300 includes:
步骤S301、当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于所述预定距离,则控制第一蓝牙移动终端和第二蓝牙移动终端都进行震动并弹窗提示。Step S301 , when the linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than the predetermined distance, control both the first Bluetooth mobile terminal and the second Bluetooth mobile terminal to vibrate and pop up a window prompt.
举例说明,当用户A与用户B间的距离小于1米例如检测到两手机间的直线距离为0.9m时,用户A的手机和用户B的手机都进行震动并弹窗提示用户控制社交距离,除了震动外还可使用其他惯用的用于提示用户的通知方法例如响铃。当用户A的手机与用户B的手机开启半双工蓝牙功能时,发送广播与接收广播交替进行,当两手机开启全双工蓝牙功能时,发送广播与接受广播同时进行,当检测到蓝牙广播的信号强度并计算得到用户间距离小于预设距离时,提示用户控制社交距离。For example, when the distance between user A and user B is less than 1 meter, for example, when it is detected that the straight-line distance between the two mobile phones is 0.9m, both user A's mobile phone and user B's mobile phone will vibrate and a pop-up window will prompt the user to control the social distance. In addition to vibration, other customary notification methods for prompting the user, such as ringing a bell, can also be used. When user A's mobile phone and user B's mobile phone turn on the half-duplex Bluetooth function, the sending and receiving broadcasts are carried out alternately. When the two mobile phones turn on the full-duplex Bluetooth function, the sending and receiving broadcasts are carried out simultaneously. When the calculated signal strength and distance between users is less than the preset distance, the user is prompted to control the social distance.
在第二实施例中,为说明本发明不仅可用于手机,还可用于常见的智能穿戴设备例如配置有蓝牙功能的智能手环中。当用户A与用户B在超市内逛街时,用户A与用户B都佩戴了带有蓝牙功能的智能手环,并且在出门时都开启了本发明中检测终端距离并实时提醒用户保持社交距离的功能或应用APP,两智能手环采用全双工的工作模式,在发送包含特定数据的蓝牙广播的同时接收广播数据,发送频率可根据功耗自由设定例如5s一次或30s一次等。In the second embodiment, to illustrate that the present invention can be used not only in mobile phones, but also in common smart wearable devices such as smart bracelets equipped with Bluetooth functions. When user A and user B are shopping in the supermarket, both user A and user B wear smart wristbands with Bluetooth function, and they both turn on the function of detecting the terminal distance and reminding the user to keep social distance in real time when they go out. Function or application APP, the two smart bracelets adopt full-duplex working mode, and receive broadcast data while sending Bluetooth broadcast containing specific data. The sending frequency can be freely set according to power consumption, such as once every 5s or once every 30s.
当用户A与用户B距离较远例如9m时,用户A的蓝牙手环A接收不到用户B的蓝牙手环B发送的带有特定数据的蓝牙广播,蓝牙手环B也接收不到蓝牙手环A发出的蓝牙广播。当用户A与用户B进入到同一家店购买商品时所述蓝牙手环A与蓝牙手环B的距离缩短到3m,蓝牙手环A与蓝牙手环B开始接收到由对方发送的带有特定数据的蓝牙广播,并通过计算得到此时蓝牙手环A与蓝牙手环B的距离为3m,并未小于预设的提醒距离。When user A is far away from user B, such as 9m, user A's Bluetooth bracelet A cannot receive the Bluetooth broadcast with specific data sent by user B's Bluetooth bracelet B, and Bluetooth bracelet B cannot receive the Bluetooth broadcast of the Bluetooth bracelet. Bluetooth broadcast from Ring A. When user A and user B enter the same store to purchase goods, the distance between the Bluetooth bracelet A and the Bluetooth bracelet B is shortened to 3m, and the Bluetooth bracelet A and the Bluetooth bracelet B begin to receive the information sent by the other party with a specific Bluetooth broadcast data, and through calculation, the distance between Bluetooth bracelet A and Bluetooth bracelet B is 3m, which is not less than the preset reminder distance.
进一步地,当用户A与用户B来到同一货架挑选日用品时,蓝牙手环A与蓝牙手环B检测到由对方发送的广播的信号强度越来越大,直到由信号强度计算的距离小于1米时,蓝牙手环A与蓝牙手环B同时震动,提醒用户当前存在其他距离较近的用户,需保持安全的社交距离。当用户A与用户B感受到手环震动,两者重新保持安全的社交距离后蓝牙手环不再震动。当商场内多名用户佩戴有搭载移动终端距离提醒功能的蓝牙手环时,蓝牙手环获取多个蓝牙广播但仅信号强度最大的蓝牙广播进行计算,可大量减少蓝牙手环数据处理量与功耗。Furthermore, when user A and user B come to the same shelf to select daily necessities, Bluetooth bracelet A and Bluetooth bracelet B detect that the signal strength of the broadcast sent by the other party is getting higher and higher until the distance calculated by the signal strength is less than 1 When the time is 2.5 meters, Bluetooth bracelet A and Bluetooth bracelet B will vibrate at the same time, reminding the user that there are other users who are close to each other and they need to maintain a safe social distance. When user A and user B feel the vibration of the bracelet, the Bluetooth bracelet will no longer vibrate after the two maintain a safe social distance again. When multiple users in the shopping mall wear a Bluetooth bracelet equipped with a mobile terminal distance reminder function, the Bluetooth bracelet obtains multiple Bluetooth broadcasts but only the Bluetooth broadcast with the highest signal strength is used for calculation, which can greatly reduce the data processing and power of the Bluetooth bracelet. consumption.
为进一步提高用户使用该功能时的自由度,可在移动终端对应功能或应用APP中加入用户可自主调节的功能,例如提醒方法可采用震动、持续震动、周期性震动、响铃等多种提醒样式,以及对应的震动的强度,响铃的音量等,除此之外还可设置蓝牙广播的检测频率和预设距离,检测频率为1s一次到10min一次不等,预设距离为0.5m到5m之间。In order to further improve the freedom of the user when using this function, a user-adjustable function can be added to the corresponding function of the mobile terminal or the application APP. For example, the reminder method can use various reminders such as vibration, continuous vibration, periodic vibration, and ringing. In addition, you can also set the detection frequency and preset distance of Bluetooth broadcasting. The detection frequency ranges from 1 second to 10 minutes, and the preset distance is 0.5m to 10 minutes. between 5m.
示例性设备exemplary device
如图5中所示,本发明实施例提供一种基于蓝牙的移动终端距离提醒装置,该装置包括:距离检测模块510、判断模块520、提醒控制模块530。具体为,所述距离检测模块510,用于控制第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;所述判断模块520,用于判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;所述提醒控制模块530,用于当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。As shown in FIG. 5 , an embodiment of the present invention provides a Bluetooth-based mobile terminal distance reminder device, which includes: a distance detection module 510 , a judgment module 520 , and a reminder control module 530 . Specifically, the distance detection module 510 is used to control the second Bluetooth mobile terminal to scan and acquire surrounding Bluetooth signals, and detect the linear distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth timing; the judging module 520, used to determine whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance; the reminder control module 530, used to determine whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal distance, the corresponding reminder will be given.
基于上述实施例,本发明还提供了一种终端设备,其原理框图可以如图6所示。该终端设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏。其中,该终端设备的处理器用于提供计算和控制能力。该终端设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该终端设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种基于蓝牙的移动终端距离提醒。该终端设备的显示屏可以是液晶显示屏或者电子墨水显示屏。Based on the foregoing embodiments, the present invention further provides a terminal device, the functional block diagram of which may be shown in FIG. 6 . The terminal equipment includes a processor, a memory, a network interface, and a display screen connected through a system bus. Wherein, the processor of the terminal device is used to provide calculation and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, a bluetooth-based mobile terminal distance reminder is realized. The display screen of the terminal device may be a liquid crystal display screen or an electronic ink display screen.
本领域技术人员可以理解,图6中的原理框图仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用与其上的终端设备的限定,具体的终端设备可以包括比图中更多或更少的部件,或者组合某些部件或者具有不同的部件布置。Those skilled in the art can understand that the functional block diagram in Figure 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the terminal equipment on which the solution of the present invention is applied. The specific terminal equipment may include comparison diagrams more or fewer components, or combine certain components or have a different arrangement of components.
在一个实施例中,提供了一种终端设备,终端设备包括存储器、处理器及存储在处理器上并可在处理器上运行的基于蓝牙的移动终端距离提醒程序,处理执行如下步骤:In one embodiment, a terminal device is provided, the terminal device includes a memory, a processor, and a bluetooth-based mobile terminal distance reminder program that is stored on the processor and can run on the processor, and the processing executes the following steps:
第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;The second bluetooth mobile terminal scans and acquires surrounding bluetooth signals, and detects the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, a corresponding reminder is given.
其中,所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤之前包括:Wherein, the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals, and the step of detecting the linear distance between the surrounding first bluetooth mobile terminal and the second bluetooth mobile terminal through bluetooth timing includes:
第一蓝牙移动终端将约定数据作为广播携带数据,生成蓝牙广播;The first bluetooth mobile terminal uses the agreed data as broadcast carrying data to generate a bluetooth broadcast;
第一蓝牙移动终端开启广播发送模式,向周围持续不断的发送所述蓝牙广播。The first bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the bluetooth broadcast to surroundings.
其中,所述广播携带数据为31字节的约定数据。Wherein, the data carried in the broadcast is agreed data of 31 bytes.
其中,所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤包括:Wherein, the second bluetooth mobile terminal scans and acquires surrounding bluetooth signals, and the step of detecting the linear distance between the surrounding first bluetooth mobile terminal and the second bluetooth mobile terminal through bluetooth timing includes:
第二蓝牙移动终端扫描获取周围第一蓝牙移动终端的蓝牙广播,并解析所述蓝牙广播携带的广播携带数据,得到广播发送者的蓝牙信号强度;The second bluetooth mobile terminal scans and acquires the bluetooth broadcast of the first bluetooth mobile terminal around, and analyzes the broadcast carrying data carried by the bluetooth broadcast to obtain the bluetooth signal strength of the broadcast sender;
第二蓝牙移动终端根据广播发送者的蓝牙信号强度,测算出与广播发送者的第一蓝牙移动终端的直线距离。According to the strength of the Bluetooth signal of the broadcast sender, the second Bluetooth mobile terminal calculates the straight-line distance to the first Bluetooth mobile terminal of the broadcast sender.
其中,所述判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离的步骤包括:Wherein, the step of judging whether the linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance includes:
将检测到的第一蓝牙移动终端与第二蓝牙移动终端的直线距离,与预先设置的预定距离进行对比判断;Comparing and judging the detected linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal with a preset predetermined distance;
判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
当第一蓝牙移动终端与第二蓝牙移动终端的直线距离大于预定距离,则不做提醒处理。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is greater than the predetermined distance, no reminder processing is performed.
其中,所述当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒的步骤包括:Wherein, when the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal is less than a predetermined distance, the step of reminding accordingly includes:
当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于所述预定距离,则控制第一蓝牙移动终端和第二蓝牙移动终端都进行震动并弹窗提示。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than the predetermined distance, control both the first Bluetooth mobile terminal and the second Bluetooth mobile terminal to vibrate and pop up a window prompt.
其中,所述预定距离为1米。Wherein, the predetermined distance is 1 meter.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
综上,本发明公开了一种基于蓝牙的移动终端距离提醒方法、装置、移动终端及存储介质,所述方法包括:第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。旨在解决现有技术中的移动终端不能提示用户社交距离过近的问题,特别是在例如大流行病环境下亟需能够及时提醒用户保持社交距离的功能,达到保护用户出行安全的目的。To sum up, the present invention discloses a Bluetooth-based mobile terminal distance reminder method, device, mobile terminal and storage medium. The method includes: the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects surrounding Bluetooth signals through Bluetooth. A straight-line distance between a Bluetooth mobile terminal and a second Bluetooth mobile terminal; judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance; when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than If the predetermined distance is reached, a corresponding reminder will be given. It aims to solve the problem that the mobile terminal in the prior art cannot remind the user that the social distance is too close, especially in an environment such as a pandemic, which urgently needs the function of reminding the user to maintain a social distance in time, so as to protect the user's travel safety.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (20)

  1. 一种基于蓝牙的移动终端距离提醒方法,其中,所述方法包括:A Bluetooth-based mobile terminal distance reminder method, wherein the method includes:
    第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;The second bluetooth mobile terminal scans and acquires surrounding bluetooth signals, and detects the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
    判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
    当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, a corresponding reminder is given.
  2. 根据权利要求1所述的基于蓝牙的移动终端距离提醒方法,其中,所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤之前包括:The Bluetooth-based mobile terminal distance reminder method according to claim 1, wherein the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects the distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth. The steps of the straight line distance before include:
    第一蓝牙移动终端将约定数据作为广播携带数据,生成蓝牙广播;The first bluetooth mobile terminal uses the agreed data as broadcast carrying data to generate a bluetooth broadcast;
    第一蓝牙移动终端开启广播发送模式,向周围持续不断的发送所述蓝牙广播。The first bluetooth mobile terminal turns on the broadcast sending mode, and continuously sends the bluetooth broadcast to surroundings.
  3. 根据权利要求2所述的基于蓝牙的移动终端距离提醒方法,其中,所述广播携带数据为31字节的约定数据。The Bluetooth-based mobile terminal distance reminding method according to claim 2, wherein the data carried in the broadcast is 31-byte agreed data.
  4. 根据权利要求3所述的基于蓝牙的移动终端距离提醒方法,其中,所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤包括:The Bluetooth-based mobile terminal distance reminder method according to claim 3, wherein the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects the distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth. The steps for straight-line distance include:
    第二蓝牙移动终端定期扫描获取周围的蓝牙信号,并通过获取的蓝牙信号检测周围的第一蓝牙移动终端与所述第二蓝牙移动终端的直线距离。The second bluetooth mobile terminal periodically scans to acquire surrounding bluetooth signals, and detects the linear distance between the surrounding first bluetooth mobile terminals and the second bluetooth mobile terminal through the acquired bluetooth signals.
  5. 根据权利要求2所述的基于蓝牙的移动终端距离提醒方法,其中,所述第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离的步骤包括:The Bluetooth-based mobile terminal distance reminder method according to claim 2, wherein the second Bluetooth mobile terminal scans and acquires surrounding Bluetooth signals, and regularly detects the distance between the surrounding first Bluetooth mobile terminal and the second Bluetooth mobile terminal through Bluetooth. The steps for straight-line distance include:
    第二蓝牙移动终端扫描获取周围第一蓝牙移动终端的蓝牙广播,并解析所述蓝牙广播携带的广播携带数据,得到广播发送者的蓝牙信号强度;The second bluetooth mobile terminal scans and acquires the bluetooth broadcast of the first bluetooth mobile terminal around, and analyzes the broadcast carrying data carried by the bluetooth broadcast to obtain the bluetooth signal strength of the broadcast sender;
    第二蓝牙移动终端根据广播发送者的蓝牙信号强度,测算出与广播发送者的第一蓝牙移动终端的直线距离。According to the strength of the Bluetooth signal of the broadcast sender, the second Bluetooth mobile terminal calculates the straight-line distance to the first Bluetooth mobile terminal of the broadcast sender.
  6. 根据权利要求5所述的基于蓝牙的移动终端距离提醒方法,其中,所述第二蓝牙移动终端根据广播发送者的蓝牙信号强度,测算出与广播发送者的第一蓝牙移动终端的直线距离的步骤包括:The Bluetooth-based mobile terminal distance reminder method according to claim 5, wherein the second Bluetooth mobile terminal calculates the straight-line distance from the broadcast sender's first Bluetooth mobile terminal according to the broadcast sender's Bluetooth signal strength Steps include:
    第二蓝牙移动终端从所述蓝牙信号强度中选择信号强度最大的目标蓝牙信号强度;The second bluetooth mobile terminal selects the target bluetooth signal strength with the highest signal strength from the bluetooth signal strengths;
    所述第二蓝牙移动终端根据所述目标蓝牙信号强度,测算出与广播发送者的第一蓝牙移动终端的直线距离。The second Bluetooth mobile terminal calculates the straight-line distance to the broadcast sender's first Bluetooth mobile terminal according to the target Bluetooth signal strength.
  7. 根据权利要求5所述的基于蓝牙的移动终端距离提醒方法,其中,所述蓝牙广播至少包括报头和数据部分。The Bluetooth-based mobile terminal distance reminder method according to claim 5, wherein the Bluetooth broadcast at least includes a header and a data part.
  8. 根据权利要求7所述的基于蓝牙的移动终端距离提醒方法,其中,所述数据部分包括用于表示数据发送终端的设备号的标识段,以及用于实现两终端间的测距并提示距离过近功能的数据段。The bluetooth-based mobile terminal distance reminder method according to claim 7, wherein the data part includes an identification segment used to indicate the device number of the data sending terminal, and is used to realize distance measurement between two terminals and prompt that the distance is too high. The data segment of the near function.
  9. 根据权利要求5所述的基于蓝牙的移动终端距离提醒方法,其中,所述第二蓝牙移动终端与所述第一蓝牙移动终端采用全双工的工作模式,所述工作模式用于使得蓝牙移动终端在发送包含特定数据的蓝牙广播的同时接收广播数据。The Bluetooth-based mobile terminal distance reminder method according to claim 5, wherein the second Bluetooth mobile terminal and the first Bluetooth mobile terminal adopt a full-duplex working mode, and the working mode is used to make Bluetooth mobile The terminal receives the broadcast data while sending the Bluetooth broadcast containing specific data.
  10. 根据权利要求9所述的基于蓝牙的移动终端距离提醒方法,其中,所述蓝牙广播的发送频率基于蓝牙移动终端的功耗设定。The Bluetooth-based mobile terminal distance reminding method according to claim 9, wherein the transmission frequency of the Bluetooth broadcast is set based on the power consumption of the Bluetooth mobile terminal.
  11. 根据权利要求1所述的基于蓝牙的移动终端距离提醒方法,其中,所述当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒的步骤包括:The Bluetooth-based mobile terminal distance reminder method according to claim 1, wherein, when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, the corresponding reminder step includes:
    当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,基于用户调节结果进行相应的提醒。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than the predetermined distance, a corresponding reminder is given based on the adjustment result of the user.
  12. 根据权利要求11所述的基于蓝牙的移动终端距离提醒方法,其中,所述用户调节结果包括提醒样式,以及所述提醒样式对应的参数。The Bluetooth-based mobile terminal distance reminder method according to claim 11, wherein the user adjustment result includes a reminder pattern and parameters corresponding to the reminder pattern.
  13. 根据权利要求11所述的基于蓝牙的移动终端距离提醒方法,其中,所述用户调节结果包括所述预定距离和蓝牙广播的检测频率。The Bluetooth-based mobile terminal distance reminder method according to claim 11, wherein the user adjustment result includes the predetermined distance and the detection frequency of Bluetooth broadcasts.
  14. 根据权利要求1所述的基于蓝牙的移动终端距离提醒方法,其中,所述判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离的步骤包括:The Bluetooth-based mobile terminal distance reminder method according to claim 1, wherein the step of judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance comprises:
    将检测到的第一蓝牙移动终端与第二蓝牙移动终端的直线距离,与预先设置的预定距离进行对比判断;Comparing and judging the detected linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal with a preset predetermined distance;
    判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
    当第一蓝牙移动终端与第二蓝牙移动终端的直线距离大于预定距离,则不做提醒处理。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is greater than the predetermined distance, no reminder processing is performed.
  15. 根据权利要求1所述的基于蓝牙的移动终端距离提醒方法,其中,所述当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒的步骤包括:The Bluetooth-based mobile terminal distance reminder method according to claim 1, wherein, when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance, the corresponding reminder step includes:
    当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于所述预定距离,则控制第一蓝牙移动终端和第二蓝牙移动终端都进行震动并弹窗提示。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than the predetermined distance, control both the first Bluetooth mobile terminal and the second Bluetooth mobile terminal to vibrate and pop up a window prompt.
  16. 根据权利要求1所述的基于蓝牙的移动终端距离提醒方法,其中,所述预定距离为1米。The Bluetooth-based mobile terminal distance reminding method according to claim 1, wherein the predetermined distance is 1 meter.
  17. 一种基于蓝牙的移动终端距离提醒装置,其中,所述装置包括:A Bluetooth-based mobile terminal distance reminding device, wherein the device includes:
    距离检测模块,用于控制第二蓝牙移动终端扫描获取周围的蓝牙信号,通过蓝牙定时检测周围的第一蓝牙移动终端与第二蓝牙移动终端的直线距离;The distance detection module is used to control the second bluetooth mobile terminal to scan and acquire surrounding bluetooth signals, and detect the linear distance between the first bluetooth mobile terminal and the second bluetooth mobile terminal around by bluetooth timing;
    判断模块,用于判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;A judging module, configured to judge whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
    提醒控制模块,用于当第一蓝牙移动终端与第二蓝牙移动终端的直线距离小于预定距离,则进行相应的提醒。The reminder control module is used to give corresponding reminders when the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance.
  18. 根据权利要求17所述的基于蓝牙的移动终端距离提醒装置,其中,所述判断模块,具体用于:The Bluetooth-based mobile terminal distance reminder device according to claim 17, wherein the judging module is specifically used for:
    将检测到的第一蓝牙移动终端与第二蓝牙移动终端的直线距离,与预先设置的预定距离进行对比判断;Comparing and judging the detected linear distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal with a preset predetermined distance;
    判断第一蓝牙移动终端与第二蓝牙移动终端的直线距离是否小于预定距离;Judging whether the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is less than a predetermined distance;
    当第一蓝牙移动终端与第二蓝牙移动终端的直线距离大于预定距离,则不做提醒处理。When the straight-line distance between the first Bluetooth mobile terminal and the second Bluetooth mobile terminal is greater than the predetermined distance, no reminder processing is performed.
  19. 一种移动终端,其中,所述移动终端包括存储器、处理器及存储在所述存储器中并可在所述处理器上运行的基于蓝牙的移动终端距离提醒程序,所述处理器执行所述基于蓝牙的移动终端距离提醒程序时,实现如权利要求1-16任一项所述的基于蓝牙的移动终端距离提醒方法的步骤。A mobile terminal, wherein the mobile terminal includes a memory, a processor, and a bluetooth-based mobile terminal distance reminder program stored in the memory and operable on the processor, and the processor executes the When the bluetooth mobile terminal distance reminding program is used, the steps of the bluetooth-based mobile terminal distance reminding method according to any one of claims 1-16 are realized.
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有基于蓝牙的移动终端距离提醒程序,所述基于蓝牙的移动终端距离提醒程序被处理器执行时,实现如权利要求1-16任一项所述的基于蓝牙的移动终端距离提醒方法的步骤。A computer-readable storage medium, wherein a bluetooth-based mobile terminal distance reminder program is stored on the computer-readable storage medium, and when the bluetooth-based mobile terminal distance reminder program is executed by a processor, the implementation of claim 1 -16 the steps of the mobile terminal distance reminder method based on bluetooth.
PCT/CN2022/082337 2021-06-18 2022-03-22 Mobile terminal distance reminding method and device based on bluetooth, and terminal and medium WO2022262347A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110679138.9 2021-06-18
CN202110679138.9A CN113543098B (en) 2021-06-18 2021-06-18 Bluetooth-based mobile terminal distance reminding method, device, terminal and medium

Publications (1)

Publication Number Publication Date
WO2022262347A1 true WO2022262347A1 (en) 2022-12-22

Family

ID=78125141

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082337 WO2022262347A1 (en) 2021-06-18 2022-03-22 Mobile terminal distance reminding method and device based on bluetooth, and terminal and medium

Country Status (2)

Country Link
CN (1) CN113543098B (en)
WO (1) WO2022262347A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114337856B (en) * 2021-12-13 2023-12-15 杭州永谐科技有限公司西安分公司 Be applied to bluetooth microspur characteristic automation test equipment
CN114337874A (en) * 2021-12-29 2022-04-12 亚萨合莱(广州)智能科技有限公司 Mobile phone carrying detection method and computer readable storage medium
CN115225939A (en) * 2022-06-22 2022-10-21 深圳创维-Rgb电子有限公司 Distance reminding method, device and equipment based on Bluetooth and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014086990A (en) * 2012-10-26 2014-05-12 Tokyobay Communication Co Ltd Distance measurement method between mobile terminals, method for implementing network using the same, and mobile terminal therefor
CN107222836A (en) * 2017-06-28 2017-09-29 上海传英信息技术有限公司 A kind of distance detection system and detection method based on bluetooth
CN111970639A (en) * 2020-09-02 2020-11-20 Tcl通讯(宁波)有限公司 Method, device, terminal equipment and storage medium for keeping safe distance
CN112165683A (en) * 2020-09-24 2021-01-01 京东方科技集团股份有限公司 Communication distance early warning method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014086990A (en) * 2012-10-26 2014-05-12 Tokyobay Communication Co Ltd Distance measurement method between mobile terminals, method for implementing network using the same, and mobile terminal therefor
CN107222836A (en) * 2017-06-28 2017-09-29 上海传英信息技术有限公司 A kind of distance detection system and detection method based on bluetooth
CN111970639A (en) * 2020-09-02 2020-11-20 Tcl通讯(宁波)有限公司 Method, device, terminal equipment and storage medium for keeping safe distance
CN112165683A (en) * 2020-09-24 2021-01-01 京东方科技集团股份有限公司 Communication distance early warning method and device

Also Published As

Publication number Publication date
CN113543098A (en) 2021-10-22
CN113543098B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
WO2022262347A1 (en) Mobile terminal distance reminding method and device based on bluetooth, and terminal and medium
TWI524310B (en) An alert system with zoning using wireless portable detectors and a central station
US11037434B2 (en) Systems and methods for monitored individual violation instruction
CN104270532A (en) Communication terminal, as well as method and device for treating event reminding thereof
US20140344375A1 (en) Systems and Methods for Wireless Activity Monitoring with Notifications
WO2013175741A1 (en) Apparatus and method for transmitting messages
JP6261777B2 (en) Voice prompt method, apparatus, program, and recording medium
CN106781242B (en) The method for early warning and device of danger zone
US20150312277A1 (en) System for policy-managed content presentation
CN108834051A (en) A kind of position sharing method, device, computer equipment and storage medium
WO2020258556A1 (en) Prompting method and device, and medium
US20190121298A1 (en) Method and apparatus for controlling alarm clock
US11570745B2 (en) Positioning method and apparatus
CN106462229A (en) A reminding method and a smart bracelet
US20160328452A1 (en) Apparatus and method for correlating context data
US9924464B2 (en) Identifying at least one alternate power source for providing power to a portable electronic device
WO2023093742A1 (en) Operation execution method and apparatus, and electronic device and readable storage medium
CN114391301A (en) Sensing capability request, sensing capability sending method, sensing capability receiving method and device
CN106293706A (en) Event-prompting method, device and terminal
US9172788B2 (en) Disabling of wireless transmission of wireless communication devices using messages
JP2012065178A (en) Communication device and program
JP2017522623A (en) Event reminder method and apparatus
JP2009194522A (en) Portable terminal, and mail transmitting method thereof
CN107896277B (en) Method and device for setting alarm clock reminding mode and computer readable storage medium
CN106550012B (en) Monitoring method of intelligent equipment and intelligent equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22823838

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE