CN115767443A - Prompt information display method and device, electronic equipment and storage medium - Google Patents

Prompt information display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115767443A
CN115767443A CN202111040150.1A CN202111040150A CN115767443A CN 115767443 A CN115767443 A CN 115767443A CN 202111040150 A CN202111040150 A CN 202111040150A CN 115767443 A CN115767443 A CN 115767443A
Authority
CN
China
Prior art keywords
electronic device
state
received signal
signal strength
target
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.)
Pending
Application number
CN202111040150.1A
Other languages
Chinese (zh)
Inventor
朱旭杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111040150.1A priority Critical patent/CN115767443A/en
Priority to PCT/CN2022/117171 priority patent/WO2023030529A1/en
Publication of CN115767443A publication Critical patent/CN115767443A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • 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/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • 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

Abstract

The application discloses a display method and device of prompt information, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method is applied to a first electronic device and comprises the following steps: the method comprises the steps of obtaining received signal strength corresponding to a broadcast message transmitted by second electronic equipment, obtaining the state of the second electronic equipment, processing the received signal strength according to the state of the second electronic equipment to obtain the processed received signal strength, and displaying target information when the processed received signal strength is larger than a target strength threshold value. According to the method and the device, the received signal strength corresponding to the received broadcast message is dynamically processed to determine the display of the prompt message according to the state of the electronic equipment, so that the display of the prompt message is better controlled, and the user experience is improved by avoiding disturbance to the user.

Description

Prompt information display method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and an apparatus for displaying prompt information, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more and more widely used and has more and more functions, and the electronic equipment becomes one of the necessary things in daily life of people. Currently, more and more electronic devices are beginning to support the functionality of fast discovery and display of prompts for other electronic devices.
Disclosure of Invention
In view of the above problems, the present application provides a method and an apparatus for displaying prompt information, an electronic device, and a storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a method for displaying a prompt message, which is applied to a first electronic device, and the method includes: acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by second electronic equipment; acquiring the state of the second electronic device, and processing the received signal strength according to the state of the second electronic device to acquire the processed received signal strength; and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
In a second aspect, an embodiment of the present application provides a method for displaying a prompt message, which is applied to a first electronic device, and the method includes: acquiring a distance value between the first electronic device and the second electronic device; acquiring the state of the second electronic equipment, and processing the distance value according to the state of the second electronic equipment to obtain a processed distance value; and when the processed distance value is smaller than the target distance threshold value, displaying target information.
In a third aspect, an embodiment of the present application provides a method for displaying a prompt message, which is applied to a first electronic device, and the method includes: when the state of the second electronic equipment is a pairing state, displaying target information, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic equipment and the first electronic equipment; or when the state of the second electronic device is a connection state, not displaying the target information, wherein the connection state is used for representing connection operation of the second electronic device after pairing is to be performed.
In a fourth aspect, an embodiment of the present application provides a display device for prompting information, which is applied to a first electronic device, and the device includes: a received signal strength acquisition module, configured to acquire a received signal strength corresponding to a received broadcast message, where the broadcast message is transmitted by a second electronic device; the received signal strength processing module is used for acquiring the state of the second electronic equipment and processing the received signal strength according to the state of the second electronic equipment to acquire the processed received signal strength; and the prompt information display module is used for displaying the target information when the processed received signal strength is greater than a target strength threshold value.
In a fifth aspect, an embodiment of the present application provides a display device for prompting information, which is applied to a first electronic device, and the device includes: the distance value acquisition module is used for acquiring a distance value between the first electronic device and the second electronic device; the distance value processing module is used for acquiring the state of the second electronic equipment, and processing the distance value according to the state of the second electronic equipment to acquire a processed distance value; and the prompt information display module is used for displaying the target information when the processed distance value is smaller than the target distance threshold value.
In a sixth aspect, an embodiment of the present application provides a display device for prompting information, which is applied to a first electronic device, and the device includes: the prompt information display module is used for displaying target information when the state of the second electronic equipment is a pairing state, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic equipment and the first electronic equipment; or the prompt information forbidding display module is configured to not display the target information when the state of the second electronic device is a reconnection state, where the reconnection state is used to represent a reconnection operation to be executed by the second electronic device after pairing.
In a seventh aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is coupled to the processor, and the memory stores instructions, and the processor executes the above method when the instructions are executed by the processor.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored, and the program code may be called by a processor to execute the foregoing method.
The method, the device, the electronic device and the storage medium for displaying the prompt information, provided by the embodiment of the application, are used for acquiring the received signal strength corresponding to the broadcast message transmitted by the second electronic device, acquiring the state of the second electronic device, processing the received signal strength according to the state of the second electronic device to acquire the processed received signal strength, and displaying the target information when the processed received signal strength is greater than the target strength threshold value, so that the display of the prompt information is determined by dynamically processing the received signal strength corresponding to the received broadcast message according to the state of the electronic device, the display of the prompt information is better controlled, and the disturbance to a user is avoided to improve the user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a first application environment that may be provided by an embodiment of the present application;
FIG. 2 is a diagram illustrating a second application environment that may be provided by an embodiment of the present application;
FIG. 3 is a diagram illustrating a third application environment that may be provided by an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
FIG. 10 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present disclosure;
fig. 11 is a flowchart illustrating a step S820 of the method for displaying the guidance information illustrated in fig. 10 of the present application;
FIG. 12 shows an exemplary diagram of a flow that can be used with embodiments of the present application;
fig. 13 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
fig. 14 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application;
FIG. 15 is a block diagram of a display device for presenting information provided by an embodiment of the present application;
FIG. 16 is a block diagram illustrating a display device for presenting information according to an embodiment of the present disclosure;
FIG. 17 is a block diagram illustrating a display device for presenting information according to an embodiment of the present disclosure;
FIG. 18 is a block diagram of an electronic device for executing a method for displaying prompt information according to an embodiment of the present application;
fig. 19 shows a storage unit for storing or carrying a program code implementing the display method of the guidance information according to the embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Internet Of Things (IOT) is a network concept that extends and expands its user end to any article to article for information exchange and communication based on the Internet concept. With the development of the internet of things technology, some scenes can be configured in the internet of things system. For a configured scene, a plurality of electronic devices can be involved, and the plurality of electronic devices have a certain linkage relationship and can work cooperatively. For example, the configured scenario may include that when one electronic device approaches another electronic device, at least one of the two electronic devices performs a specified operation, for example, one of the electronic devices outputs connection prompt information for prompting a connection with the other electronic device.
As shown in fig. 1, the first electronic device 100 may be a user terminal (e.g., may be a smart phone), and the second electronic device 200 may be a true wireless bluetooth headset (TWS) device. When the second electronic device 200 approaches the first electronic device 100, the first electronic device 100 displays the pop-up information 110, the power of the TWS bluetooth headset device may be displayed in the pop-up information 110, and a connection prompt message may be displayed. In one embodiment, the TWS bluetooth headset apparatus may include a headset 220 and a headset case 210, the headset case 210 may accommodate the headset 220, in one embodiment, an inner wall of the case of the headset case 210 forms an accommodating cavity, and the headset 220 may be accommodated in the accommodating cavity of the headset case 210. In addition, the earphone box 210 may not only provide a containing cavity for containing the earphone 220, but also communicate with the earphone 220, so that information such as the power, name, or network parameters of the earphone 220 can be obtained, so that the user terminal can successfully pair with the earphone 220 through the earphone box 210 and realize communication connection. In one embodiment, the earphone box 210 is also used to charge the earphone 220. In one embodiment, when the earphone box 210 is opened, the earphone 220 may be triggered to transmit a Bluetooth Low Energy (BLE) broadcast, and after the first electronic device 100, for example, a smart phone, receives the BLE broadcast, the display screen of the first electronic device 100 may pop up a pop-up box, which may provide an operation interface for a user to connect the earphone 220 quickly, or may display the power of the earphone 220 and the power of the earphone box 210 simultaneously in the pop-up box information.
Currently, the distance between two electronic devices can be determined by the received signal strength of one electronic device received by the other electronic device, wherein the ranging formula is as follows:
Figure BDA0003248975550000021
in formula (1), d represents the distance between two electronic devices, RSSI represents the received signal strength of one electronic device receiving the signal of the other electronic device, a is a reference distance and is usually a constant, and B is a path loss factor. As can be seen from equation (1), the distance d and the RSSI have a one-to-one correspondence relationship. Therefore, it is usually determined whether a distance between one electronic device and another electronic device is smaller than a preset distance, or whether one electronic device enters a preset range of another electronic device, and it is usually determined whether one electronic device enters the preset range of another electronic device by acquiring a received signal strength of another electronic device received by one electronic device, and then determining whether the received signal strength is greater than a strength threshold.
In one embodiment, assuming that the two electronic devices are the first electronic device 100 and the second electronic device 200, respectively, the second electronic device 200 transmits a broadcast signal to the surroundings when the second electronic device 200 activates the wireless communication module. As shown in fig. 2, it is assumed that the first electronic device 100 is a user terminal, the second electronic device 200 is a TWS bluetooth headset, and when the second electronic device 200 approaches the first electronic device 100, the lid of the earphone box 210 is in a closed state, at this time, the earphone box 210 does not transmit a broadcast signal to the surroundings, that is, as shown in fig. 2, the first electronic device 100 does not receive the broadcast signal transmitted by the earphone box 210, and does not display the bezel information 110. When the lid of the first electronic device 100 is in the open state, as shown in fig. 3, the earphone 220 emits a broadcast signal, the broadcast signal can be received by the first electronic device 100, and when the received signal strength of the received broadcast signal is greater than the strength threshold, the pop-up frame information 110 is displayed, that is, the pop-up frame information 110 is displayed only by the first device within the distance range corresponding to the strength threshold of the second electronic device. The strength threshold value can be set to control the first electronic device 100 and the second electronic device 200 to trigger the popup only within a certain distance, so that the mobile phone popup of other people is prevented from being triggered by mistake to a certain extent.
In some embodiments, the wireless communication module may be a Wi-Fi module or a Bluetooth module. In this embodiment, the wireless communication module may be a bluetooth module, and the first electronic device 100 and the second electronic device 200 may be connected via bluetooth, and the broadcast signal may be a bluetooth broadcast signal, for example, BLE broadcast. When the second electronic device 200 is within the signal receiving range of the first electronic device 100, the first electronic device 100 can detect the broadcast signal of the second electronic device 200, and can determine the signal strength, i.e., the received signal strength, of the broadcast signal received by the second electronic device 200. As the distance between the first electronic device 100 and the second electronic device 200 approaches, the received signal strength of the first electronic device 100 gradually increases. When the detected received signal strength is greater than the strength threshold, the first electronic device 100 displays the pop-up box information.
The first electronic device 100 and the second electronic device 200 may establish a wireless connection (e.g., a bluetooth connection). For example, a connection button, such as a connection control 111 shown in fig. 3, is displayed in the pop-up frame information 110 displayed by the first electronic device 100, and the user clicks the connection control 111, so that the connection between the first electronic device 100 and the second electronic device 200 can be realized.
The electronic equipment can support the function of quickly discovering other electronic equipment and displaying prompt, and the electronic equipment mainly carries out direct comparison on the received signal strength of the broadcast messages transmitted by other electronic equipment and a set strength threshold value in the judgment of whether the prompt information is displayed. That is to say, the electronic device directly compares the received signal strength of the broadcast message of the other electronic device with the strength threshold to determine whether to display the prompt information, but fails to consider and identify the state of the other device, so that the phenomenon of incorrect display of the prompt information occurs, which may cause disturbance to the user and affect the user experience.
In view of the above problems, the inventors have found, through long-term research, that a method, an apparatus, an electronic device, and a storage medium for displaying a notification message provided in the embodiments of the present application are provided, where according to a state of the electronic device, a received signal strength corresponding to a received broadcast message is dynamically processed to determine to display the notification message, so as to better control display of the notification message, and avoid disturbing a user to improve user experience. The display method of the prompt information is explained in detail in the following embodiments.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. The method is used for dynamically processing the received signal strength corresponding to the received broadcast message according to the state of the electronic equipment to determine the display of the prompt message, so that the display of the prompt message is better controlled, and the user experience is improved by avoiding disturbance to the user. In an embodiment of the present application, the method for displaying the prompt information is applied to the display device 300 of the prompt information shown in fig. 15 and the electronic device (first electronic device) 100 (fig. 18) equipped with the display device 300 of the prompt information. It can be understood that the electronic device applied in the embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 4, the method for displaying the prompt information may specifically include the following steps:
step S110: and acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by the second electronic equipment.
In this embodiment, when the first electronic device is located within the broadcast coverage of the second electronic device, the first electronic device may receive the broadcast message transmitted by the second electronic device, and in one embodiment, when the first electronic device receives the broadcast message transmitted by the second electronic device, the received signal strength of the received broadcast message may be obtained.
In some embodiments, the first electronic device may calculate a received signal strength of a broadcast message from the received broadcast message. In one calculation method, the received signal strength = RxPower-systegain, where RxPower is the in-band received power of a signal obtained by performing analog-to-digital conversion on a received wireless signal, and then performing processing such as filtering of a Digital Front End (DFE); the Systemgain represents the system gain and can be estimated from the radio frequency front end.
In some embodiments, the first electronic device is a smart phone, and the second electronic device is a TWS bluetooth headset. When the earphone box (charging device) accommodated by the earphone is opened, the earphone can be automatically started and tries to transmit the broadcast message so as to try to establish the Bluetooth connection with the smart phone, and when the earphone box cover of the TWS Bluetooth earphone device is closed, the earphone can be automatically closed and stops transmitting the broadcast message. Accordingly, when the smart phone is located within the broadcasting range of the headset, the broadcasting message transmitted by the headset can be received, and the received signal strength of the broadcasting message transmitted by the headset can be acquired.
It can be understood that, when the second electronic device transmits a broadcast message, if the number of the first electronic devices located in the broadcast coverage of the second electronic device is one, only the one first electronic device may receive the broadcast message transmitted by the second electronic device, and obtain the received signal strength of the broadcast message; if the number of the first electronic devices located in the broadcast coverage area of the second electronic device is multiple, the multiple first electronic devices may all receive the broadcast message transmitted by the second electronic device, and obtain the received signal strength of the broadcast message.
Step S120: and acquiring the state of the second electronic equipment, and processing the received signal strength according to the state of the second electronic equipment to acquire the processed received signal strength.
In some embodiments, the first electronic device may receive a broadcast message transmitted by the second electronic device and obtain a status of the second electronic device based on the broadcast message. As an implementable manner, the broadcast message transmitted by the second electronic device may carry the identification information of the second electronic device, and after receiving the broadcast message transmitted by the second electronic device, the first electronic device may analyze the broadcast message to obtain the identification information of the second electronic device carried by the broadcast message, and obtain the state of the second electronic device based on the identification information.
In this embodiment, after acquiring the state of the second electronic device, the first electronic device may process the received signal strength corresponding to the broadcast message according to the state of the second electronic device, so as to obtain the processed received signal strength. As an implementable manner, the first electronic device may be configured to preset and store a plurality of processing manners, and after acquiring the state of the second electronic device, the first electronic device may acquire, according to the state of the second electronic device, a processing manner corresponding to the state of the second electronic device from the plurality of processing manners, and process the received signal strength by the processing manner corresponding to the state of the second electronic device, so as to acquire the processed received signal strength.
As an implementable manner, the first electronic device may pre-establish and store a first mapping relationship table, where the first mapping relationship table may include at least two states, at least two processing manners for the received signal strength, and a corresponding relationship between the at least two states and the at least processing manner, where each of the at least two states may correspond to one or more processing manners, and is not limited herein. Referring to table 1, the at least two states in the first mapping relationship table may include a first state, a second state, and a third state, and the at least two processing manners in the first mapping relationship table may include a first processing manner, a second processing manner, and a third processing manner, where the first state and the first processing manner have a corresponding relationship, the second state and the second processing manner have a corresponding relationship, and the third state and the third processing manner have a corresponding relationship.
TABLE 1
Status of state Treatment method
First state First processing mode
Second state Second processing mode
Third state Third processing mode
…… ……
Based on the mapping relation table, when the state of the second electronic device is determined to be the first state, the received signal strength can be determined to be processed in a first processing mode; when the state of the second electronic device is determined to be the second state, it may be determined that the received signal strength is processed by the second processing method, and so on. For example, when the first state is the pairing state, the first processing manner corresponding to the first state may include enhancement processing. For another example, when the second state is the loop-back state, the second processing manner corresponding to the second state may include an attenuation process or a maintenance process.
In some embodiments, processing the received signal strength according to the state in which the second electronic device is located may include an enhancement process, an attenuation process, or a maintenance process. Namely, the received signal strength can be enhanced according to the state of the second electronic device, and the processed received signal strength is obtained; the received signal strength can be attenuated according to the state of the second electronic device, and the processed received signal strength is obtained; the received signal strength may be maintained according to the state of the second electronic device. Wherein, the enhancement processing characterization of the received signal strength can compensate a certain value on the basis of the received signal strength to increase the received signal strength; the received signal strength is subjected to attenuation processing and characterization, and a certain value can be subtracted on the basis of the received signal strength so as to reduce the received signal strength; the received signal strength is characterized by maintaining the received signal strength.
Step S130: and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
In some embodiments, the first electronic device, after obtaining the processed received signal strength, may compare the processed received signal strength to a target strength threshold to determine whether the processed received signal strength is greater than the target strength threshold. When it is determined that the processed received signal strength is not greater than the target strength threshold, it may be determined that the processed received signal strength does not meet the signal strength requirement of the display prompt, and the target information may be intercepted, for example, the target information may not be displayed. When the processed received signal strength is judged to be greater than the target strength threshold value, the processed received signal strength can be determined to meet the signal strength requirement of the display prompt, and then target information is displayed.
In some embodiments, the manner in which the first electronic device displays the target information may include any one of: the target information is displayed on the display interface, the target information is displayed on the display interface in a pop-up window mode, the target information is displayed on the status bar, and the like, which is not limited herein.
In some embodiments, the state in which the second electronic device is located may include a pairing state and a loopback state. When the state of the second electronic device is the pairing state, the target information may be connection prompt information, that is, the target information may be used to prompt the user that the pairing connection operation may be performed with the second electronic device. When the state of the second electronic device is the loop connection state, the target information may be a connection success prompt information, that is, the target information may be used to prompt that the loop connection success is executed with the second electronic device.
According to the method for displaying the prompt message provided by the embodiment of the application, the received signal strength corresponding to the broadcast message transmitted by the second electronic device is obtained, the state of the second electronic device is obtained, the received signal strength is processed according to the state of the second electronic device, the processed received signal strength is obtained, and when the processed received signal strength is greater than the target strength threshold value, the target information is displayed, so that the received signal strength corresponding to the received broadcast message is dynamically processed according to the state of the electronic device to determine the display of the prompt message, the display of the prompt message is better controlled, and the disturbance to a user is avoided to improve the user experience.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 5, where the method for displaying the prompt information may specifically include the following steps:
step S210: and acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by the second electronic equipment.
Step S220: and acquiring the state of the second electronic equipment.
For the detailed description of steps S210 to S220, refer to steps S110 to S120, which are not described herein again.
Step S230: and when the state of the second electronic device is a pairing state, performing enhancement processing on the received signal strength to obtain the processed received signal strength, wherein the pairing state is used for representing that pairing operation is to be performed between the second electronic device and the first electronic device.
By one approach, the state in which the second electronic device is located may include a pairing state. The second electronic device is in a pairing state, and other electronic devices in the broadcast coverage range of the second electronic device can be scanned by the second electronic device and can be paired and connected with the second electronic device. When the second electronic device is in the pairing state, the second electronic device may be in a discoverable and connectable state. In this embodiment, the pairing status may be used to characterize that the second electronic device is to perform a pairing operation with the first electronic device, where the pairing operation between the second electronic device and the first electronic device may include: all processes from the scanning of the first electronic device to the second electronic device to the successful pairing with the second electronic device.
In some embodiments, when it is determined that the state of the second electronic device is the pairing state, it may be considered that the second electronic device desires to perform pairing connection with the first electronic device, and the first electronic device may be caused to display the target information as much as possible to prompt the user that the connection with the second electronic device may be established. Based on this, in this embodiment, the received signal strength corresponding to the received broadcast message may be enhanced, that is, a value is compensated based on the received signal strength corresponding to the broadcast message to increase the received signal strength to obtain the processed received signal strength, which is understood to be greater than the received signal strength corresponding to the received broadcast message, so that the processed received signal strength is more easily greater than the strength threshold value than the received signal strength corresponding to the received broadcast message, thereby improving the display probability of the target information.
Step S240: and when the second electronic device is in the loop connection state, performing attenuation processing or maintenance processing on the received signal strength to obtain the processed received signal strength, wherein the loop connection state is used for representing a loop connection operation to be performed by the second electronic device after pairing.
By one approach, the state in which the second electronic device is located may include a loopback state. The second electronic device is in a loop-back state, which represents that the second electronic device attempts to perform a loop-back operation with a previously paired and connected device by means of paging.
In this embodiment, when the second electronic device is in the loop connection state, the attenuation processing or the maintenance processing may be performed on the received signal strength.
For example, assuming that the first electronic device and the second electronic device have been paired and connected before, and when the second electronic device wants to connect back to the first electronic device that has been paired and connected before, the first electronic device may maintain the received signal strength, that is, the basis of the received signal strength corresponding to the broadcast message remains unchanged, it can be understood that, at this time, the processed received signal strength is equal to the received signal strength corresponding to the received broadcast message, so that the first electronic device normally compares the received signal strength with the strength threshold to determine whether to display the target information. When the second electronic device wants to connect back to another electronic device that has been paired and connected, the first electronic device may attenuate the received signal strength, that is, subtract a certain value from the received signal strength corresponding to the broadcast message to reduce the received signal strength and obtain the processed received signal strength.
Step S250: and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
For detailed description of step S350, please refer to step S130, which is not described herein again.
The method for displaying the prompt information according to an embodiment of the present application obtains a received signal strength corresponding to a broadcast message transmitted by a second electronic device, obtains a state where the second electronic device is located, performs an enhancement process on the received signal strength to obtain a processed received signal strength when the state where the second electronic device is located is a pairing state, or performs an attenuation process or a maintenance process on the received signal strength to obtain a processed received signal strength when the state where the second electronic device is located is a loopback state, and displays target information when the processed received signal strength is greater than a target strength threshold. Compared with the method for displaying the prompt message shown in fig. 4, the embodiment further performs enhancement processing on the received signal strength when the electronic device is in the pairing state, or performs attenuation processing or maintenance processing on the received signal strength when the electronic device is in the loop connection state, so that the prompt message is better controlled to be displayed, and the user experience is improved by avoiding disturbance to the user.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 6, where the method for displaying the prompt information may specifically include the following steps:
step S310: and acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by the second electronic equipment.
Step S320: and acquiring the state of the second electronic equipment.
For the detailed description of steps S310 to S320, please refer to steps S110 to S120, which are not described herein again.
Step S330: in response to an intensity threshold selection instruction, a target intensity threshold is determined from a plurality of intensity thresholds.
In some embodiments, the first electronic device may be preset and stored with at least two intensity thresholds of different sizes. For example, the first electronic device may preset and store a first intensity threshold and a second intensity threshold, and the first intensity threshold and the second intensity threshold are different in size. For another example, the first electronic device may preset and store a first intensity threshold, a second intensity threshold, and a third intensity threshold … … nth intensity threshold, where the first intensity threshold, the second intensity threshold, and the third intensity threshold … … nth intensity threshold are different in size.
As an implementable manner, it is exemplified that the first electronic device is provided with a first intensity threshold and a second intensity threshold. The first intensity threshold is larger and the second intensity threshold is smaller, for example, the first intensity threshold is larger than the standard intensity threshold, and the second intensity threshold is smaller than the standard intensity threshold. The first electronic equipment is used for triggering and displaying the target information under the standard intensity threshold value, the first intensity threshold value is larger than the standard intensity threshold value, the first electronic equipment is not easy to trigger and display the target information under the first intensity threshold value, the second intensity threshold value is smaller than the standard intensity threshold value, and the first electronic equipment is easy to trigger and display the target information under the first intensity threshold value.
As still another implementable manner, it is exemplified that the first electronic device is provided with a first intensity threshold and a second intensity threshold. The probability that the first electronic device triggers the target information to be displayed under the first intensity threshold is lower than the preset probability, and the probability that the first electronic device triggers the target information to be displayed under the second intensity threshold is higher than the preset probability. The preset probability refers to the probability that the first electronic device normally triggers the target information to be displayed.
As one mode, the first electronic device may preset and store a plurality of intensity thresholds, and the user may manually select one of the intensity thresholds from the plurality of intensity thresholds as the target intensity threshold.
As still another way, the first electronic device may preset and store a plurality of intensity thresholds, and the user may automatically select one of the intensity thresholds from the plurality of intensity thresholds as the target intensity threshold.
As an implementable manner, the first electronic device may display a plurality of intensity thresholds for the user to select from, when a selection operation acting on one of the displayed plurality of intensity thresholds is detected, a selection instruction may be generated based on the selection operation, and in response to the selection instruction, the selected intensity threshold is determined as a target intensity threshold from the plurality of intensity thresholds, thereby improving the interaction experience of the user.
In some implementations, the first electronic device can provide an intensity threshold selection interface for a user to select from a plurality of intensity thresholds and determine a target intensity threshold each time the device is powered on or first powered on. Upon receiving an intensity threshold selection instruction triggered based on the intensity threshold selection interface, a target intensity threshold may then be determined from a plurality of intensity thresholds in response to the intensity threshold selection instruction.
The step S330 may be disposed before the step S310 to the step S320, or disposed after the step S310 to the step S320, which is not limited herein.
Step S340: and processing the received signal strength according to the state of the second electronic device and the target strength threshold value to obtain the processed received signal strength.
In this embodiment, after acquiring the state of the second electronic device, the first electronic device may process the received signal strength corresponding to the broadcast message according to the state of the second electronic device and the target strength threshold, so as to obtain the processed received signal strength. As an implementable manner, the first electronic device may preset and store a plurality of processing manners, and after acquiring the state of the second electronic device, the first electronic device may acquire, according to the state of the second electronic device and the target intensity threshold, a processing manner corresponding to the state of the second electronic device and the target intensity threshold from the plurality of processing manners, and process the received signal intensity by using the processing manner corresponding to the state of the second electronic device and the target intensity threshold, so as to acquire the processed received signal intensity.
As an implementable manner, the first electronic device may pre-establish and store a second mapping table, where the second mapping table may include at least two states, at least two target strength thresholds, at least two processing manners for the received signal strength, and a corresponding relationship between the at least two states, the at least two target strength thresholds, and at least the processing manners, where each of the at least two states may correspond to one or more target strength thresholds and one or more processing manners, which is not limited herein. Referring to table 2, the at least two states in the second mapping table may include a first state and a second state, the at least two target intensity thresholds in the second mapping table may include a first intensity threshold and a second intensity threshold, and the at least two processing manners in the second mapping table may include a first processing manner, a second processing manner, and a third processing manner. The first state, the first intensity threshold and the first processing mode have a corresponding relation, the first state, the second intensity threshold and the second processing mode have a corresponding relation, the second state, the first intensity threshold and the second processing mode have a corresponding relation, and the second state, the second intensity threshold and the third processing mode have a corresponding relation.
TABLE 2
Status of state Target intensity threshold Treatment method
First state First intensity threshold First processing mode
First state Second intensity threshold Second processing mode
Second state First intensity threshold Second processing mode
Second state Second intensity threshold Third processing mode
Based on the mapping relation table, when the state of the second electronic device is determined to be the first state and the target intensity threshold is determined to be the first intensity threshold, the received signal intensity can be determined to be processed by the first processing mode; when it is determined that the state of the second electronic device is the second state and the target intensity threshold is the second intensity threshold, it may be determined that the received signal intensity is processed by the third processing method, and so on. For example, when the first state is the pairing state and the first intensity threshold is a higher intensity threshold, the corresponding first processing manner may include the enhancement processing. For another example, when the second state is the loop state and the second intensity threshold is a lower intensity threshold, the corresponding third processing manner may include an attenuation process.
Step S350: and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
For detailed description of step S350, please refer to step S130, which is not described herein again.
The method for displaying the prompt message according to the embodiment of the application obtains the received signal strength of the broadcast message transmitted by the second electronic device, obtains the state of the second electronic device, determines the target strength threshold from the plurality of strength thresholds in response to the strength threshold selection instruction, processes the received signal strength according to the state of the second electronic device and the target strength threshold, obtains the processed received signal strength, and displays the target message when the processed received signal strength is greater than the target strength threshold. Compared with the method for displaying the prompt message shown in fig. 4, the embodiment further processes the received signal strength according to the state of the second electronic device and the target strength threshold, so as to improve the accuracy of the processed received signal strength.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. In this embodiment, the target intensity threshold is a first intensity threshold, and a probability that the first electronic device triggers the target information to be displayed under the first intensity threshold is lower than a preset probability, where the method for displaying the prompt information specifically includes the following steps:
step S410: and acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by the second electronic equipment.
Step S420: and acquiring the state of the second electronic equipment.
For the detailed description of steps S410 to S420, refer to steps S110 to S120, which are not described herein again.
Step S430: and when the state of the second electronic device is a pairing state, performing enhancement processing on the received signal strength to obtain the processed received signal strength, wherein the pairing state is used for representing that pairing operation is to be performed between the second electronic device and the first electronic device.
In this embodiment, the target intensity threshold is a first intensity threshold, where a probability that the first electronic device triggers the target information to be displayed under the first intensity threshold is lower than a preset probability. That is, the first electronic device may set the target intensity threshold to a higher value, in which case a higher received signal intensity would also not readily cause the first electronic device to trigger the display of the target information.
In some embodiments, when it is determined that the state of the second electronic device is the pairing state, it may be considered that the second electronic device desires to perform pairing connection with the first electronic device, and the first electronic device may be caused to display the target information as much as possible to prompt that a user corresponding to the first electronic device may establish connection with the second electronic device. At this time, since the target intensity threshold set by the first electronic device is the first intensity threshold, that is, if the received signal intensity corresponding to the received broadcast message is directly used for comparison, the received signal intensity corresponding to the broadcast message is most likely to be smaller than the target intensity threshold, so that the target information cannot be triggered to be displayed. Based on this, in this embodiment, the received signal strength corresponding to the received broadcast message may be enhanced, that is, a value is compensated based on the received signal strength corresponding to the broadcast message, so as to increase the received signal strength to obtain the processed received signal strength.
Step S440: and when the state of the second electronic device is a reconnection state, maintaining or attenuating the received signal strength to obtain the processed received signal strength, wherein the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be executed.
In some embodiments, when it is determined that the state of the second electronic device is the loopback state, it may be considered that the second electronic device does not desire to perform pairing connection with the first electronic device, and the first electronic device may be made to display no target information as much as possible to reduce disturbance to a user corresponding to the first electronic device.
As a way, since the target intensity threshold set by the first electronic device is the first intensity threshold, that is, if the received signal intensity corresponding to the received broadcast message is directly adopted for comparison, the received signal intensity corresponding to the broadcast message is most likely to be smaller than the target intensity threshold, and thus the target information cannot trigger the display. Based on this, in this embodiment, the received signal strength corresponding to the received broadcast message may be maintained (not processed), and it can be understood that, at this time, the processed received signal strength is equal to the received signal strength corresponding to the received broadcast message, so that the processed received signal strength is easily not greater than the strength threshold, thereby reducing the display probability of the target information.
As still another way, since the target strength threshold set by the first electronic device is the first strength threshold, that is, if the received signal strength corresponding to the received broadcast message is directly adopted for comparison, the received signal strength corresponding to the broadcast message is most likely to be smaller than the target strength threshold, but there is also a possibility that the received signal strength corresponding to the broadcast message is not smaller than the target strength threshold. Based on this, in this embodiment, attenuation processing may be performed on the received signal strength corresponding to the received broadcast message, and it can be understood that, at this time, the processed received signal strength is smaller than the received signal strength corresponding to the received broadcast message, so that the processed received signal strength is more likely not to be greater than the strength threshold, thereby reducing the display probability of the target information.
Step S450: and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
For detailed description of step S450, please refer to step S130, which is not described herein again.
The method for displaying the prompt information according to an embodiment of the present application obtains a received signal strength corresponding to a broadcast message transmitted by a second electronic device, obtains a state where the second electronic device is located, performs an enhancement process on the received signal strength to obtain a processed received signal strength when the state where the second electronic device is located is a pairing state, or performs a maintenance process or an attenuation process on the received signal strength to obtain a processed received signal strength when the state where the second electronic device is located is a loop state, and displays target information when the processed received signal strength is greater than a first strength threshold, where a probability that the first electronic device triggers the target information to display under the first strength threshold is lower than a preset probability. Compared with the method for displaying the prompt message shown in fig. 4, in this embodiment, the received signal strength is further processed according to the state of the second electronic device and the target strength threshold, the received signal strength is enhanced when the target strength threshold is larger and the second electronic device is in the pairing state, and the received signal strength is maintained or attenuated when the target strength threshold is larger and the second electronic device is in the loop state, so that the prompt message is better controlled to be displayed, and the user is prevented from being disturbed to improve the user experience.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. In this embodiment, the target intensity threshold is a second intensity threshold, and the probability that the first electronic device triggers the target information to be displayed under the second intensity threshold is higher than a preset probability, where the method for displaying the prompt information specifically includes the following steps:
step S510: and acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by the second electronic equipment.
Step S520: and acquiring the state of the second electronic equipment.
For the detailed description of steps S510 to S520, refer to steps S110 to S120, which are not described herein again.
Step S530: and when the state of the second electronic device is a pairing state, maintaining or enhancing the received signal strength to obtain the processed received signal strength, wherein the pairing state is used for representing that the second electronic device is to perform pairing operation with the first electronic device.
In this embodiment, the target intensity threshold is a second intensity threshold, where a probability that the first electronic device triggers the target information to be displayed under the first intensity threshold is higher than a preset probability. That is, the first electronic device may set the target intensity threshold to a lower value, in which case a lower received signal intensity also tends to cause the first electronic device to trigger the display of the target information.
In some embodiments, when it is determined that the state of the second electronic device is the pairing state, it may be considered that the second electronic device desires to perform pairing connection with the first electronic device, and the first electronic device may be caused to display the target information as much as possible to prompt that a user corresponding to the first electronic device may establish connection with the second electronic device.
As a way, since the target intensity threshold set by the first electronic device is the second intensity threshold, that is, if the received signal intensity corresponding to the received broadcast message is directly adopted for comparison, the received signal intensity corresponding to the broadcast message is most likely to be greater than the target intensity threshold, so that the target information can trigger the display. Based on this, in this embodiment, the received signal strength corresponding to the received broadcast message may be maintained (not processed), and it can be understood that, at this time, the processed received signal strength is equal to the received signal strength corresponding to the received broadcast message, so that the processed received signal strength is more easily greater than the strength threshold, and thus the display probability of the target information is improved.
As a further way, since the target strength threshold set by the first electronic device is the second strength threshold, that is, if the received signal strength corresponding to the received broadcast message is directly adopted for comparison, the received signal strength corresponding to the broadcast message is most likely to be greater than the target strength threshold, but there is also a possibility that the received signal strength corresponding to the broadcast message is not greater than the target strength threshold. Based on this, in this embodiment, the received signal strength corresponding to the received broadcast message may be enhanced, and it can be understood that, at this time, the processed received signal strength is greater than the received signal strength corresponding to the received broadcast message, so that the processed received signal strength is more easily greater than the strength threshold, and the display probability of the target information is improved.
Step S540: and when the second electronic equipment is in a reconnection state, attenuating the received signal strength to obtain the processed received signal strength, wherein the reconnection state is used for representing reconnection operation to be performed by the second electronic equipment after pairing.
In some embodiments, when it is determined that the state of the second electronic device is the loop connection state, it may be considered that the second electronic device does not desire to perform pairing connection with the first electronic device, and the first electronic device may be made to not display the target information as much as possible to reduce disturbance to a user corresponding to the first electronic device. At this time, since the target intensity threshold set by the first electronic device is the second intensity threshold, that is, if the received signal intensity corresponding to the received broadcast message is directly adopted for comparison, the received signal intensity corresponding to the broadcast message is most likely greater than the target intensity threshold, so that the target information can trigger the display. Based on this, in this embodiment, the received signal strength corresponding to the received broadcast message may be attenuated, that is, a value is subtracted from the received signal strength corresponding to the broadcast message to reduce the received signal strength to obtain the processed received signal strength, and it can be understood that, at this time, the processed received signal strength is smaller than the received signal strength corresponding to the received broadcast message, so that the processed received signal strength is more likely to be not greater than the strength threshold value than the received signal strength corresponding to the received broadcast message, thereby reducing the display probability of the target information.
Step S550: and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
For detailed description of step S550, please refer to step S130, which is not described herein again.
The method for displaying the prompt information according to the embodiment of the application obtains received signal strength corresponding to a broadcast message transmitted by a second electronic device, obtains a state where the second electronic device is located, maintains or enhances the received signal strength when the state where the second electronic device is located is a pairing state, and obtains the processed received signal strength, or attenuates the received signal strength when the state where the second electronic device is located is a loop state, and obtains the processed received signal strength, and displays target information when the processed received signal strength is greater than a second strength threshold, where a probability that the second electronic device triggers the target information to display under the first strength threshold is higher than a preset probability. Compared with the method for displaying the prompt message shown in fig. 4, in this embodiment, the received signal strength is further processed according to the state of the second electronic device and the target strength threshold, and the received signal strength is maintained or enhanced when the target strength threshold is smaller and the second electronic device is in the pairing state, and the received signal strength is attenuated when the target strength threshold is smaller and the second electronic device is in the loop state, so that the prompt message is better controlled to be displayed, and the user is prevented from being disturbed to improve the user experience.
Referring to fig. 9, fig. 9 is a schematic flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 9, where the method for displaying the prompt information specifically includes the following steps:
step S610: and acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by the second electronic equipment.
For detailed description of step S610, please refer to step S110, which is not described herein again.
Step S620: and acquiring the state of the second electronic equipment based on the broadcast message.
In some embodiments, after receiving a broadcast message transmitted by a second electronic device, the first electronic device may acquire a state of the second electronic device based on the broadcast message.
As a mode, after receiving a broadcast message transmitted by a second electronic device, a first electronic device may parse the broadcast message to obtain content carried by the broadcast message, and obtain a state of the second electronic device based on the content carried by the broadcast message.
In some embodiments, the broadcast message transmitted by the second electronic device may carry identification information of the second electronic device. Based on this, after receiving the broadcast message transmitted by the second electronic device, the first electronic device may parse the broadcast message to obtain the identification information carried by the broadcast message, where the identification information is used to indicate the state of the second electronic device.
As an implementable manner, the second electronic device may write the identification information in the flag bit of its broadcast message, and accordingly, when the second electronic device sends the broadcast message, the second electronic device may carry the identification information in the broadcast message, and then, after receiving the broadcast message sent by the second electronic device, the first electronic device may parse the broadcast message to obtain the identification information on the flag bit of the broadcast message.
As one way, the identification information may be used to identify a state in which the second electronic device is located, for example, the identification information may identify "pairing state" or "loop back state", and then, when the first electronic device obtains the identification information of the broadcast message, it may determine whether the state in which the second electronic device is located is "pairing state" or "loop back state".
In some embodiments, the identification information may include first identification information or second identification information, where when the identification information is the first identification information, it may be determined that the state of the second electronic device is the pairing state, and when the identification information is the second identification information, it may be determined that the state of the second electronic device is the loopback state.
In some embodiments, when the identification information of the broadcast message is obtained, the state of the second electronic device may be obtained based on the identification information. For example, it may be determined that the state of the second electronic device is the pairing state based on the identification information, or it may be determined that the state of the second electronic device is the loopback state based on the identification information, which is not limited herein.
In this embodiment, the identification information may be connection information characterizing the second electronic device.
In some embodiments, after obtaining identification information of a broadcast message transmitted by a second electronic device, the first electronic device may determine whether a connection record exists for the second electronic device based on the identification information (connection information). When it is determined that the second electronic device does not have the connection record based on the identification information, it is characterized that the second electronic device has not been paired and connected with the electronic device before, that is, the electronic device is intended to be paired and connected with the electronic device when transmitting the broadcast message this time, that is, it may be determined that the state where the electronic device is located is the paired state. In this embodiment, since the first electronic device receives the broadcast message transmitted by the second electronic device, and determines that the state of the second electronic device is the pairing state based on the broadcast message, the pairing state may be considered to be used to represent that the second electronic device is to perform a pairing operation with the first electronic device.
In some embodiments, after obtaining the identification information of the broadcast message transmitted by the second electronic device, the first electronic device may determine whether the second electronic device stores address information of other electronic devices based on the identification information (connection information), for example, may determine whether the second electronic device stores MAC addresses of other electronic devices based on the identification information. When it is determined that the second electronic device does not store the address information of the other electronic device based on the identification information, it may be determined that the second electronic device does not have a connection record. That is, when it is determined that the second electronic device does not store address information of other electronic devices based on the identification information, it is characterized that the second electronic device has not been paired and connected with other electronic devices before, that is, the second electronic device is intended to be paired and connected with the first electronic device when transmitting the broadcast message this time, that is, it may be determined that the state where the second electronic device is located is a paired state.
In some embodiments, after obtaining identification information of a broadcast message transmitted by a second electronic device, the first electronic device may determine whether a connection record exists for the second electronic device based on the identification information (connection information). When it is determined that the second electronic device has the connection record based on the identification information, it is characterized that the second electronic device has been paired and connected with other electronic devices before, that is, when the electronic device transmits the broadcast message this time, the electronic device is to perform a loopback connection with the electronic device that has been paired and connected before, that is, it may be determined that the state where the electronic device is located is a loopback state. In this embodiment, since the first electronic device receives the broadcast message transmitted by the second electronic device, and determines that the state of the second electronic device is the loopback state based on the broadcast message, it may be considered that the loopback state is used to represent that the second electronic device is to perform a loopback operation.
In some embodiments, after obtaining the identification information of the broadcast message transmitted by the second electronic device, the first electronic device may determine whether the second electronic device stores address information of other electronic devices based on the identification information (connection information), for example, may determine whether the second electronic device stores MAC addresses of other electronic devices based on the identification information. When it is determined that the second electronic device stores address information of other electronic devices based on the identification information, it may be determined that the second electronic device has a connection record. That is, when it is determined that the second electronic device stores address information of another electronic device based on the identification information, it is characterized that the second electronic device has been paired and connected with the other electronic device before, that is, when the second electronic device transmits the broadcast message this time, it is not intended to be paired and connected with the first electronic device (intended to be connected back with the other electronic device), that is, it may be determined that the state of the electronic device is a connection back state.
As one mode, when there is a connection record in the second electronic device, it may be detected whether the second electronic device has performed a loopback operation and failed to perform loopback during the transmission of the broadcast message, where when the second electronic device has performed a loopback operation and failed to perform loopback, the second electronic device may be considered to be switched from a loopback state to a pairing state, that is, it is determined that the state in which the second electronic device is located is a pairing state, rather than a loopback state.
As another way, when there is a connection record in the second electronic device, it may be detected whether the second electronic device has received a command to switch to the pairing state at this time of transmitting the broadcast message, for example, a user presses a key on the earphone box 210 to switch the state, and when it is detected that the second electronic device has received the command to switch to the pairing state, it may be considered that the second electronic device is switched from the reconnection state to the pairing state, that is, it is determined that the state of the second electronic device is the pairing state, but not the reconnection state.
When the second electronic device has a connection record, and the second electronic device has not performed the reconnection operation and has not received the instruction to switch to the pairing state, it may be determined that the state of the second electronic device is the reconnection state.
Step S630: and processing the received signal strength according to the state of the second electronic equipment to obtain the processed received signal strength.
Step S640: and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
For detailed description of steps S630 to S640, refer to steps S120 to S130, which are not described herein again.
The method for displaying the prompt information according to the embodiment of the application obtains the received signal strength corresponding to the broadcast message transmitted by the second electronic device, obtains the state of the second electronic device based on the broadcast message, processes the received signal strength according to the state of the second electronic device to obtain the processed received signal strength, and displays the target information when the processed received signal strength is greater than the target strength threshold. Compared with the method for displaying the prompt message shown in fig. 4, in this embodiment, the state of the second electronic device is further obtained according to the broadcast message transmitted by the second electronic device, so that the accuracy of the obtained state of the second electronic device is improved.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 10, where the method for displaying the prompt information may specifically include the following steps:
step S710: and acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by the second electronic equipment.
For details of step S710, please refer to step S110, which is not repeated herein.
Step S720: and when the second electronic equipment meets the preset equipment condition, acquiring the state of the second electronic equipment.
In some embodiments, the first electronic device may preset and store a preset device condition, where the preset device condition is used as a criterion of the second electronic device. Therefore, in the embodiment, when the first electronic device receives the broadcast message transmitted by the second electronic device, it may be determined whether the second electronic device satisfies the preset device condition based on the broadcast message. When it is determined that the second electronic device meets the preset device condition, the state of the second electronic device can be acquired. When it is determined that the second electronic device does not satisfy the preset device condition, the state of the second electronic device may not be acquired, and the corresponding target information may not be displayed.
As a practical manner, when receiving the broadcast message transmitted by the second electronic device, the first electronic device may parse the broadcast message. When the analysis is successful, the protocol representing the broadcast message transmitted by the second electronic device meets the protocol set by the first electronic device, and then it can be determined that the second electronic device meets the preset device condition. When the parsing fails, the protocol representing the broadcast message transmitted by the second electronic device does not satisfy the protocol set by the first electronic device, and it may be determined that the second electronic device does not satisfy the preset device condition.
Referring to fig. 11, fig. 11 is a flowchart illustrating a step S720 of the method for displaying the prompt message illustrated in fig. 10 according to the present application. As will be described in detail with respect to the flow shown in fig. 11, the method may specifically include the following steps:
step S721: and acquiring the identity information of the second electronic equipment.
In some embodiments, when the first electronic device receives a broadcast message of the second electronic device, the first electronic device may acquire identity information of the second electronic device based on the broadcast message. As a practical manner, the first electronic device may obtain the identity information of the second electronic device based on the protocol of the broadcast message. As another practical manner, the first electronic device may obtain the identity information of the second electronic device based on the information of the target flag bit of the broadcast message obtained by parsing.
Step S722: and when the identity information of the second electronic equipment meets a preset identity condition, acquiring the state of the second electronic equipment.
In some embodiments, the first electronic device may preset and store a preset identity condition, where the preset identity condition is used as a criterion of the second electronic device. Therefore, in this embodiment, when the first electronic device acquires the identity information of the second electronic device, it may be determined whether the identity information meets a preset identity condition. When the identity information of the second electronic device is determined to meet the preset identity condition, the second electronic device is represented as the electronic device meeting the set condition of the first electronic device, and the state of the second electronic device can be acquired. When the identity information of the second electronic device is determined not to meet the preset identity condition, the second electronic device is represented as the electronic device which does not meet the set condition of the first electronic device, and the state of the second electronic device may not be acquired and the corresponding target information is not displayed.
As a manner, the preset identity condition may be a preset manufacturer, and when the second electronic device is produced by the preset manufacturer, the identity information of the second electronic device may be considered to satisfy the preset identity condition; the preset identity condition may be a preset terminal merchant, and when the second electronic device is a preset terminal merchant brand, the identity information of the second electronic device may be considered to meet the preset identity condition; the preset identity condition may be a manufacturer of the first electronic device, and when the manufacturer of the second electronic device is consistent with the manufacturer of the first electronic device, it may be determined that the identity information of the second electronic device satisfies the preset identity condition; the preset identity condition may be a terminal merchant of the first electronic device, and when a terminal merchant brand of the second electronic device is consistent with a terminal commodity card of the first electronic device, the identity information of the second electronic device may be considered to meet the preset identity condition, and the like, which is not limited herein.
Step S730: and processing the received signal strength according to the state of the second electronic equipment to obtain the processed received signal strength.
Step S740: and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
For the detailed description of steps S730 to S740, refer to steps S120 to S130, which are not described herein again.
The method for displaying the prompt message according to the embodiment of the application obtains the received signal strength corresponding to the broadcast message transmitted by the second electronic device, obtains the state of the second electronic device when the second electronic device meets the preset device condition, processes the received signal strength according to the state of the second electronic device to obtain the processed received signal strength, and displays the target message when the processed received signal strength is greater than the target strength threshold. Compared with the method for displaying the prompt message shown in fig. 4, in the embodiment, the target message is also displayed when the second electronic device meets the preset device condition, so that the user is prevented from being disturbed by other electronic devices to improve the user experience.
Referring to fig. 12, as shown in fig. 12, the first electronic device may be a smart device (e.g., a smart phone, a tablet computer, etc.), and the second electronic device may be a bluetooth headset. Wherein, when the earphone box of bluetooth earphone device opened the box, then this bluetooth earphone device's bluetooth earphone can launch BLE broadcast, wherein, can carry this bluetooth earphone's information in this BLE broadcast, for example, connection record etc.. The intelligent device in the broadcasting range of the Bluetooth headset can receive the BLE broadcasting and analyze the BLE broadcasting to obtain an analysis result. And judging whether the Bluetooth headset is the target device or not based on the analysis result, for example, judging whether the identity information of the Bluetooth headset meets a preset identity condition or not. When the bluetooth headset is determined to be the target device, whether the target device is in a pairing state can be determined. And if the target equipment is in the pairing state, compensating (enhancing) the received signal strength corresponding to the received BLE broadcast to obtain the compensated received signal strength, comparing the compensated received signal strength with a frame popping threshold value, popping the frame if the compensated received signal strength is greater than the frame popping threshold value, and not popping the frame if the compensated received signal strength is not greater than the frame popping threshold value. If the target device is not in the pairing state (such as in the loopback state), the received signal strength corresponding to the received BLE broadcast is not compensated (maintenance processing), the initial received signal strength is compared with the frame popping threshold, if the initial received signal strength is greater than the frame popping threshold, the frame popping is performed, and if the initial received signal strength is not greater than the frame popping threshold, the frame popping is not performed.
Referring to fig. 13, fig. 13 is a flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. The method is used for dynamically processing the distance value between the two pieces of electronic equipment according to the state of the electronic equipment to determine the display of the prompt information, so that the display of the prompt information is better controlled, and the user experience is improved by avoiding disturbance to the user. In an embodiment of the present application, the method for displaying the reminder information is applied to the display device 400 of the reminder information shown in fig. 16 and the electronic device (first electronic device) 100 (fig. 18) equipped with the display device 400 of the reminder information. It can be understood that the electronic device applied in the embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 12, the method for displaying the prompt information may specifically include the following steps:
step S810: and acquiring a distance value between the first electronic equipment and the second electronic equipment.
In this embodiment, the first electronic device may acquire a distance value with the second electronic device.
The method for acquiring the distance value between the second electronic devices by the first device is not limited in any way. As one mode, a distance sensor may be disposed on the first electronic device, and the first electronic device may acquire a distance value from the second electronic device through the distance sensor. For example, an infrared sensor may be disposed on the first electronic device, and the first electronic device may acquire a distance value from the second electronic device through the infrared sensor.
As another way, the first electronic device may receive a signal transmitted by the second electronic device, acquire a received signal strength corresponding to the received signal, and acquire a distance value with the second electronic device based on the received signal strength. In some embodiments, the first electronic device may preset and store a mapping relationship between the received signal strength and the distance value, and after obtaining the received signal strength corresponding to the received signal, may obtain, as the distance value to the second electronic device, the distance value having a mapping relationship with the received signal strength corresponding to the received signal based on the mapping relationship.
Step S820: and acquiring the state of the second electronic device, and processing the distance value according to the state of the second electronic device to acquire the processed distance value.
In some embodiments, the first electronic device may receive a signal transmitted by the second electronic device and, based on the signal, obtain a status of the second electronic device. As an implementable manner, the signal transmitted by the second electronic device may carry identification information of the second electronic device, and after receiving the signal transmitted by the second electronic device, the first electronic device may analyze the signal to obtain the identification information of the second electronic device carried by the signal, and obtain the state of the second electronic device based on the identification information. As one approach, the identification information may include connection information. As one approach, the signal may include broadcast information.
In this embodiment, after acquiring the state of the second electronic device, the first electronic device may process the distance value of the second electronic device according to the state of the second electronic device, so as to obtain the processed distance value. As an implementable manner, the first electronic device may be configured to preset and store a plurality of processing manners, and after acquiring the state of the second electronic device, the first electronic device may acquire, according to the state of the second electronic device, a processing manner corresponding to the state of the second electronic device from the plurality of processing manners, and process the distance value by the processing manner corresponding to the state of the second electronic device, so as to acquire the processed distance value.
As an implementable manner, the first electronic device may pre-establish and store a third mapping relationship table, where the third mapping relationship table may include at least two states, at least two processing manners for the distance value, and a corresponding relationship between the at least two states and the at least processing manner, where each state of the at least two states may correspond to one or more processing manners, and is not limited herein. Referring to table 3, the at least two states in the first mapping table may include a first state, a second state, and a third state, and the at least two processing manners in the first mapping table may include a fourth processing manner, a fifth processing manner, and a sixth processing manner, where the first state and the fourth processing manner have a corresponding relationship, the second state and the fifth processing manner have a corresponding relationship, and the third state and the sixth processing manner have a corresponding relationship.
TABLE 3
Status of state Treatment method
First state The fourth treatment(Mode)
Second state Fifth processing mode
Third state Sixth processing mode
…… ……
Based on the mapping relation table, when the state of the second electronic device is determined to be the first state, it can be determined that the distance value is processed in the fourth processing mode; when the state of the second electronic device is determined to be the second state, it may be determined that the distance value is processed in the fifth processing manner, and so on. For example, when the first state is the pairing state, the fourth processing manner corresponding to the first state may include reduction processing. For another example, when the second state is the loop-back state, the fifth processing manner corresponding to the second state may include an increase processing or a maintenance processing.
In some embodiments, processing the distance value according to the state in which the second electronic device is located may include increasing processing, decreasing processing, or maintaining processing. That is, the distance value may be increased according to the state of the second electronic device, so as to obtain a processed distance value; the distance value can be reduced according to the state of the second electronic device, and the processed distance value is obtained; the distance value may be maintained according to the state of the second electronic device. Wherein, the increasing the distance value represents compensating a certain value on the basis of the distance value to increase the distance value; the reduction processing of the distance value is characterized in that a value can be subtracted on the basis of the distance value to reduce the distance value; the distance value can be kept unchanged by carrying out maintenance processing characterization on the distance value.
In some embodiments, when the state of the electronic device is a pairing state, the distance value may be reduced to obtain a processed distance value, where the pairing state is used to represent that the second electronic device is to perform a pairing operation with the first electronic device. The second electronic device is in a pairing state, and other electronic devices in the broadcast coverage range of the second electronic device can be scanned by the second electronic device and can be paired and connected with the second electronic device. In this embodiment, the pairing status may be used to characterize that the second electronic device is to perform a pairing operation with the first electronic device, where the pairing operation between the second electronic device and the first electronic device may include: all processes from the scanning of the first electronic device to the second electronic device to the successful pairing with the second electronic device. When the state of the second electronic device is determined to be a pairing state, it may be considered that the second electronic device desires to be paired with the first electronic device, and the first electronic device may display the target information as much as possible to prompt a user corresponding to the first electronic device to establish connection with the second electronic device. Based on this, in this embodiment, the distance value may be subjected to reduction processing, that is, a certain value is subtracted on the basis of the distance value to reduce the distance value to obtain a processed distance value, and it can be understood that, at this time, the processed distance value is smaller than the original distance value, so that the processed distance value is more easily smaller than the target distance threshold value than the original distance value, and thus the display probability of the target information is improved.
In some embodiments, the state in which the second electronic device is located may include a loopback state. The second electronic device is in a loop-back state, which represents that the second electronic device attempts to perform a loop-back operation with a previously paired and connected device by means of paging. In this embodiment, the connection status may be used to characterize a connection operation to be performed by the second electronic device after pairing is performed.
In this embodiment, when the second electronic device is in the loopback state, the distance value may be increased or maintained.
For example, assuming that the first electronic device and the second electronic device have been paired and connected before, and when the second electronic device wants to connect back to the first electronic device that has been paired and connected before, the first electronic device may maintain the distance value, that is, the original distance value is kept unchanged, it can be understood that the processed distance value is equal to the original distance value, so that the first electronic device normally compares the distance value with the distance threshold to determine whether to display the target information. When the second electronic device wants to connect back to another electronic device that is connected in a pairing manner, the first electronic device may increase the distance value, that is, add a certain value on the basis of the original distance value to increase the distance value to obtain the processed distance value.
In some embodiments, when it is determined that the state of the second electronic device is the connection-back state, it may be considered that the second electronic device desires to connect back to the electronic device that has been pair-connected previously, for example, when the other electronic device is the first electronic device, it may be considered that the second electronic device is connecting back to the first electronic device that has been pair-connected previously, and the first electronic device may be caused to normally display the target information as much as possible. Based on this, in this embodiment, the distance value may be maintained, that is, the original distance value is maintained unchanged, and it can be understood that, at this time, the processed distance value is equal to the original distance value, so that the first electronic device normally compares the distance value with the distance threshold to determine whether to display the target information.
In some embodiments, the first electronic device may be preset and store at least two target distance thresholds of different sizes. For example, the first electronic device may preset and store a first target distance threshold and a second target distance threshold, and the first target distance threshold and the second target distance threshold are different in size. For another example, the first electronic device may preset and store a first target distance threshold, a second target distance threshold, a third target distance threshold … … nth target distance threshold, where the first target distance threshold, the second target distance threshold, and the third target distance threshold … … nth target distance threshold are different in size.
As an implementable manner, it is exemplified that the first electronic device is provided with a first target distance threshold and a second target distance threshold. The first target distance threshold is smaller and the second target distance threshold is larger, for example, the first target distance threshold is smaller than the standard target distance threshold, and the second target distance threshold is larger than the standard target distance threshold. The distance value between the first electronic device and the second electronic device is within the standard target distance threshold value, the target information is triggered and displayed in a normal difficulty mode, the first target distance threshold value is smaller than the standard target distance threshold value, the distance value between the first electronic device and the second electronic device is smaller than the standard target distance threshold value, the target information is triggered and displayed in the first target distance threshold value, namely, the probability of triggering and displaying the target information is reduced, the second target distance threshold value is larger than the standard target distance threshold value, and the distance value between the first electronic device and the second electronic device is larger than the second target distance threshold value, namely, the probability of triggering and displaying the target information is increased.
As one mode, the first electronic device may preset and store a plurality of target distance thresholds, and the user may manually select one of the target distance thresholds as the target distance threshold.
As another mode, the first electronic device may preset and store a plurality of target distance thresholds, and the electronic device may automatically select one of the target distance thresholds from the plurality of target distance thresholds as the target distance threshold.
As an implementable manner, the first electronic device may display a plurality of target distance thresholds for the user to select from, when a selection operation acting on one of the displayed plurality of target distance thresholds is detected, a selection instruction may be generated based on the selection operation, and in response to the selection instruction, the selected target distance threshold may be determined as the target distance threshold from among the plurality of target distance thresholds, thereby improving the interaction experience of the user.
In some embodiments, the first electronic device may provide a distance threshold selection interface for a user to select from a plurality of distance thresholds and determine a target distance threshold each time the device is powered on or first powered on. Upon receiving a distance threshold selection instruction triggered based on the distance threshold selection interface, a target distance threshold may then be determined from a plurality of distance thresholds in response to the distance threshold selection instruction.
In this embodiment, after acquiring the state of the second electronic device, the first electronic device may process the distance value according to the state of the second electronic device and the target distance threshold, so as to obtain a processed distance value. As an implementable manner, the first electronic device may preset and store a plurality of processing manners, and after acquiring the state of the second electronic device, the first electronic device may acquire, according to the state of the second electronic device and the target distance threshold, a processing manner corresponding to the state of the second electronic device and the target distance threshold from the plurality of processing manners, and process the distance value by the processing manner corresponding to the state of the second electronic device and the target distance threshold, so as to acquire the processed distance value.
As an implementable manner, the first electronic device may pre-establish and store a fourth mapping relationship table, where the fourth mapping relationship table may include at least two states, at least two target distance thresholds, at least two processing manners for the distance value, and a corresponding relationship between the at least two states, the at least two target distance thresholds, and at least the processing manners, where each of the at least two states may correspond to one or more target distance thresholds and one or more processing manners, which is not limited herein. Referring to table 2, the at least two states in the second mapping relationship table may include a first state and a second state, the at least two target distance thresholds in the second mapping relationship table may include a first target distance threshold and a second target distance threshold, and the at least two processing manners in the second mapping relationship table may include a fourth processing manner, a fifth processing manner, and a sixth processing manner. The first state, the first target distance threshold and the fourth processing mode have a corresponding relation, the first state, the second target distance threshold and the fifth processing mode have a corresponding relation, the second state, the first target distance threshold and the fifth processing mode have a corresponding relation, and the second state, the second target distance threshold and the sixth processing mode have a corresponding relation.
TABLE 4
Status of state Target distance threshold Treatment method
First state First target distance threshold The fourth processing mode
First state Second target distance threshold Fifth processing mode
Second state First target distance threshold Fifth processing mode
Second state Second target distance threshold Sixth processing mode
Based on the mapping relation table, when the state of the second electronic device is determined to be the first state and the target distance threshold is determined to be the first target distance threshold, it may be determined that the distance value is processed in the fourth processing mode; when it is determined that the state of the second electronic device is the second state and the target distance threshold is the second target distance threshold, it may be determined that the distance value is processed in the sixth processing manner, and so on. For example, when the first state is the pairing state and the first distance threshold is a smaller distance threshold, the corresponding fourth processing manner may include a reduction processing. For another example, when the second state is the loop state and the second distance threshold is a smaller distance threshold, the corresponding fifth processing manner may include an increase processing or a maintenance processing.
In this embodiment, the target distance threshold is a first target distance threshold, where the first target distance threshold is smaller than the standard target distance threshold. That is, the first electronic device may set the target distance threshold to a lower value, in which case the smaller distance value also does not readily cause the first electronic device to trigger the display of the target information.
In some embodiments, when it is determined that the state of the second electronic device is the pairing state, it may be considered that the second electronic device desires to perform pairing connection with the first electronic device, and the first electronic device may display the target information as much as possible to prompt a user corresponding to the first electronic device to establish connection with the second electronic device. At this time, since the target distance threshold set by the first electronic device is the first target distance threshold, that is, if the original distance value is directly used for comparison, the original distance value is most likely to be greater than the target distance threshold, so that the target information cannot be triggered to be displayed. Based on this, in this embodiment, the distance value may be reduced, that is, a certain value is subtracted on the basis of the original distance value to obtain a processed distance value, and it can be understood that, at this time, the processed distance value is smaller than the original distance value, so that the processed distance value is more easily smaller than the target distance threshold value than the original distance value, and thus the display probability of the target information is improved.
In some embodiments, when it is determined that the state of the second electronic device is the loop connection state, it may be considered that the second electronic device does not desire to perform pairing connection with the first electronic device, and the first electronic device may be made to not display the target information as much as possible to reduce disturbance to a user corresponding to the first electronic device.
As a way, since the target distance threshold set by the first electronic device is the first target distance threshold, that is, if the distance value corresponding to the received broadcast message is directly compared with the first target distance threshold, the distance value corresponding to the broadcast message is most likely to be greater than the target distance threshold, and the target information cannot trigger the display. Based on this, in this embodiment, the original distance value may be maintained (not processed), and it can be understood that, at this time, the processed distance value is equal to the original distance value, so that the processed distance value is easily greater than the target distance threshold, thereby reducing the display probability of the target information.
As another way, since the target distance threshold set by the first electronic device is the first target distance threshold, that is, if the original distance value is directly used for comparison, the original distance value is most likely to be greater than the target distance threshold, but there is a possibility that the original distance value is not greater than the target distance threshold. Based on this, in this embodiment, the original distance value may be subjected to the increasing processing, and it can be understood that, at this time, the processed distance value is greater than the original distance value, so that the processed distance value is more easily greater than the target distance threshold, thereby reducing the display probability of the target information.
In this embodiment, the target distance threshold is a second target distance threshold, where the second target distance threshold is greater than the standard target distance threshold. That is, the first electronic device may set the target distance threshold to a higher value, in which case a larger distance value also tends to cause the first electronic device to trigger the display of the target information.
In some embodiments, when it is determined that the state of the second electronic device is the pairing state, it may be considered that the second electronic device desires to perform pairing connection with the first electronic device, and the first electronic device may display the target information as much as possible to prompt a user corresponding to the first electronic device to establish connection with the second electronic device.
As one way, since the target distance threshold set by the first electronic device is the second target distance threshold, that is, if the original distance value is directly adopted for comparison, the original distance value is most likely to be smaller than the target distance threshold, so that the target information can be triggered to be displayed. Based on this, in this embodiment, the original distance value may be maintained (not processed), and it can be understood that, at this time, the processed distance value is equal to the original distance value, so that the processed distance value is more easily smaller than the target distance threshold, thereby improving the display probability of the target information.
As another way, since the target distance threshold set by the first electronic device is the second target distance threshold, that is, if the original distance value is directly used for comparison, the original distance value is most likely to be smaller than the target distance threshold, but there is a possibility that the original distance value is not smaller than the target distance threshold. Based on this, in this embodiment, the original distance value may be subjected to reduction processing, and it can be understood that, at this time, the processed distance value is smaller than the distance value corresponding to the received broadcast message, so that the processed distance value is easier to be smaller than the target distance threshold, thereby improving the display probability of the target information.
In some embodiments, when it is determined that the state of the second electronic device is the loopback state, it may be considered that the second electronic device does not desire to perform pairing connection with the first electronic device, and the first electronic device may be made to display no target information as much as possible to reduce disturbance to a user corresponding to the first electronic device. At this time, since the target distance threshold set by the first electronic device is the second target distance threshold, that is, if the original distance value is directly adopted for comparison, the original distance value is most likely to be smaller than the target distance threshold, so that the target information can be triggered to be displayed. Based on this, in this embodiment, the original distance value may be increased, that is, a certain value is added on the basis of the original distance value to increase the distance value to obtain the processed distance value, and it can be understood that, at this time, the processed distance value is greater than the distance value corresponding to the received broadcast message, so that the processed distance value is easier to be not less than the target distance threshold value than the distance value corresponding to the received broadcast message, and thus the display probability of the target information is reduced.
Step S830: and when the processed distance value is smaller than the target distance threshold value, displaying target information.
In some embodiments, the first electronic device, after obtaining the processed distance value, may compare the processed distance value to a target distance threshold to determine whether the processed distance value is less than the target distance threshold. When it is determined that the processed distance value is not less than the target distance threshold, it may be determined that the processed distance value does not meet the signal strength requirement of the display prompt, and the target information may be intercepted, for example, the target information may not be displayed. When the processed distance value is determined to be smaller than the target distance threshold, it may be determined that the processed distance value meets the signal strength requirement of the display prompt, and target information is displayed, that is, the target information may be displayed.
In some embodiments, the manner in which the first electronic device displays the target information may include any one of: the target information is displayed on the display interface, the target information is displayed on the display interface in a pop-up window mode, the target information is displayed on the status bar, and the like, which is not limited herein.
In some embodiments, the state in which the second electronic device is located may include a pairing state and a loopback state. When the state of the second electronic device is the configuration state, the target information may be connection prompt information, that is, the target information may be used to prompt the second electronic device to perform pairing connection operation. When the state of the second electronic device is the loop connection state, the target information may be a connection success prompt information, that is, the target information may be used to prompt that the loop connection success is executed with the second electronic device.
According to the prompt information display method provided by the embodiment of the application, the distance between the electronic device and the second electronic device is acquired, the state of the second electronic device is acquired, the distance value is processed according to the state of the second electronic device, the processed distance value is acquired, and when the processed distance value is smaller than the target distance threshold value, the target information is displayed, so that the prompt information is determined by dynamically processing the distance value between the two electronic devices according to the state of the electronic devices, the display of the prompt information is better controlled, and the user experience is improved by avoiding disturbance on the user.
Referring to fig. 14, fig. 14 is a schematic flowchart illustrating a method for displaying prompt information according to an embodiment of the present application. The method is used for carrying out different display control on the prompt information according to different states of the second electronic equipment when the two pieces of electronic equipment are positioned at the same received signal strength or the same distance, so that the display of the prompt information is better controlled, and the user experience is improved by avoiding disturbance to the user. In one embodiment, the method of displaying the guidance information is applied to the display apparatus 500 of the guidance information shown in fig. 17 and the electronic device (first electronic device) 100 (fig. 18) provided with the display apparatus 500 of the guidance information. It can be understood that the electronic device applied in the embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 14, the method for displaying the prompt information may specifically include the following steps:
step S910: and when the state of the second electronic equipment is a pairing state, displaying target information, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic equipment and the first electronic equipment.
Take the first electronic device and the second electronic device under the same received signal strength as an example.
In this embodiment, the first electronic device may receive a broadcast message transmitted by the second electronic device, and the received signal strength corresponding to the broadcast message received by the first electronic device is a target received signal strength. That is, at this time, regardless of the state of the second electronic device (regardless of the pairing state or the loop connection state), the received signal strength corresponding to the broadcast message transmitted by the second electronic device received by the first electronic device is the target received signal strength. The magnitude of the target received signal strength is not limited herein.
In some embodiments, the first electronic device may acquire a state in which the second electronic device is located. As one way, the first electronic device may receive a broadcast message transmitted by the second electronic device, and acquire the state of the second electronic device based on the broadcast message. In some embodiments, the broadcast message transmitted by the second electronic device may carry identification information of the second electronic device, and the first electronic device may parse the broadcast message to obtain the identification information of the second electronic device carried by the broadcast message after receiving the broadcast message transmitted by the second electronic device, and obtain the state of the second electronic device based on the identification information. As one approach, the identification information may include connection information.
In some embodiments, when the state where the second electronic device is obtained is the pairing state, the target information may be displayed, that is, the target information may be displayed. The method for displaying the target information by the first electronic device may include: the target information is displayed on the display interface, the target information is displayed on the display interface in a pop-up window mode, the target information is displayed on the status bar, and the like, which is not limited herein.
When the state of the second electronic device is the configuration state, the target information may be connection prompt information, that is, the target information may be used to prompt the second electronic device to perform pairing connection operation.
As a mode, when it is acquired that the state where the second electronic device is located is the pairing state, the received signal strength corresponding to the broadcast message may be enhanced, so that the processed received signal strength is as greater than the signal strength threshold as possible, so as to implement display of the target information.
As another mode, when the state of the second electronic device is the pairing state, the set signal strength threshold may be decreased, so that the received signal strength is as greater as possible than the signal strength threshold, so as to achieve display of the target information.
As another way, when it is obtained that the state where the second electronic device is located is the pairing state, the received signal strength corresponding to the broadcast message may be enhanced and the set signal strength threshold may be reduced, so that the received signal strength is greater than the signal strength threshold as much as possible, so as to achieve display of the target information.
Take the example that the first electronic device and the second electronic device are at the same distance.
In this embodiment, the distance between the first electronic device and the second electronic device may be a target distance. That is, at this time, the distance between the first electronic device and the second electronic device is the target distance regardless of the state of the second electronic device (regardless of the pairing state or the loop connection state). The size of the target distance is not limited herein.
In some embodiments, the first electronic device may receive a signal transmitted by the second electronic device and, based on the signal, obtain a state in which the second electronic device is. As an implementable manner, the signal transmitted by the second electronic device may carry identification information of the second electronic device, and after receiving the signal transmitted by the second electronic device, the first electronic device may analyze the signal to obtain the identification information of the second electronic device carried by the signal, and obtain the state of the second electronic device based on the identification information. As one approach, the identification information may include connection information. As one approach, the signal may include broadcast information.
In some embodiments, when the state of the second electronic device is the pairing state, the target information may be displayed, that is, the target information may be displayed. The method for displaying the target information by the first electronic device may include: the target information is displayed on the display interface, the target information is displayed on the display interface in a pop-up window mode, the target information is displayed on the status bar, and the like, which is not limited herein.
When the state of the second electronic device is the configuration state, the target information may be connection prompt information, that is, the target information may be used to prompt the second electronic device to perform pairing connection operation.
As a mode, when it is acquired that the state where the second electronic device is located is the pairing state, the target distance may be reduced, so that the processed distance value is as smaller as possible than the distance threshold, so as to achieve display of the target information.
As another mode, when it is acquired that the state in which the second electronic device is located is the pairing state, the set distance threshold may be increased so that the target distance is smaller than the distance threshold as much as possible, so as to achieve display of the target information.
As another way, when it is acquired that the state where the second electronic device is located is the pairing state, the distance value may be decreased and the set distance threshold may be increased, so that the target distance is as smaller as possible than the distance threshold, so as to achieve display of the target information.
Step S920: and when the state of the second electronic device is a reconnection state, not displaying the target information, wherein the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be executed.
Take the first electronic device and the second electronic device under the same received signal strength as an example.
In some embodiments, when the state where the second electronic device is acquired is the loop connection state, the target information may not be displayed, for example, the target information may not be displayed.
When the state of the second electronic device is the loop connection state, the target information may be a connection success prompt information, that is, the target information may be used to prompt that the loop connection success is executed with the second electronic device.
As one mode, when it is acquired that the state of the second electronic device is the loop connection state, attenuation processing may be performed on the received signal strength corresponding to the broadcast message, so that the processed received signal strength is as smaller as possible than a signal strength threshold, so as to implement non-display of the target information.
As another way, when the state in which the second electronic device is acquired is the loopback state, the set signal strength threshold may be increased so that the received signal strength is as small as possible than the signal strength threshold, so as to prevent target information from being displayed.
As another way, when it is acquired that the state where the second electronic device is located is the loop connection state, attenuation processing may be performed on the received signal strength corresponding to the broadcast message and the set signal strength threshold may be increased, so that the received signal strength is less than the signal strength threshold as much as possible, so as to achieve display of the target information.
Take the example that the first electronic device and the second electronic device are at the same distance.
In some embodiments, when the state where the second electronic device is acquired is the loop connection state, the target information may not be displayed, for example, the target information may not be displayed.
When the state of the second electronic device is the loop connection state, the target information may be a connection success prompt information, that is, the target information may be used to prompt that the loop connection success is executed with the second electronic device.
As a manner, when the state where the second electronic device is obtained is the loopback state, the target distance may be increased, so that the processed distance value is greater than the distance threshold as much as possible, so as to implement non-display of the target information.
As another mode, when the state of the second electronic device is acquired and the state of the second electronic device is returned to the connected state, the set distance threshold may be decreased, so that the target distance is as larger as possible than the distance threshold, and the target information is not displayed.
As another way, when it is acquired that the state where the second electronic device is in is the loop connection state, the distance value may be increased and the set distance threshold may be decreased, so that the target distance is greater than the distance threshold as much as possible, so as to achieve display of the target information.
According to the prompt information display method provided by the embodiment of the application, when the received signal strength of the signal between the first electronic device and the second electronic device is consistent, if the state of the second electronic device is a pairing state, the prompt information is displayed, and if the state of the second electronic device is a loop state, the prompt information is not displayed, so that different display controls are performed on the prompt information according to different states of the second electronic device when the two electronic devices are in the same received signal strength, the display of the prompt information is better controlled, and the user experience is improved by avoiding disturbance on the user.
Referring to fig. 15, fig. 15 is a block diagram illustrating a display device for displaying prompt information according to an embodiment of the present application. The prompt information display device 300 is applied to the electronic device, and will be explained with reference to the block diagram shown in fig. 15, where the prompt information display device 300 includes: a received signal strength obtaining module 310, a received signal strength processing module 320, and a prompt information display module 330, wherein:
the received signal strength acquiring module 310 is configured to acquire a received signal strength corresponding to a received broadcast message, where the broadcast message is transmitted by a second electronic device.
The received signal strength processing module 320 is configured to obtain a state of the second electronic device, and process the received signal strength according to the state of the second electronic device to obtain a processed received signal strength.
Further, the received signal strength processing module 320 includes: a first received signal strength processing sub-module and a second received signal strength processing sub-module, wherein:
and the first received signal strength processing submodule is used for enhancing the received signal strength to obtain the processed received signal strength when the state of the second electronic device is a pairing state, wherein the pairing state is used for representing that the second electronic device is to perform pairing operation with the first electronic device.
And the second received signal strength processing submodule is used for performing attenuation processing or maintenance processing on the received signal strength to obtain the processed received signal strength when the state of the second electronic device is the reconnection state, wherein the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be performed.
Further, the received signal strength processing module 320 includes: a third received signal strength processing sub-module, wherein:
and the third received signal strength processing submodule is used for processing the received signal strength according to the state of the second electronic device and the target strength threshold value to obtain the processed received signal strength.
Further, the target intensity threshold is a first intensity threshold, a probability that the first electronic device triggers the target information to be displayed under the first intensity threshold is lower than a preset probability, and the received signal intensity processing module 320 includes: a fourth received signal strength processing sub-module and a fifth received signal strength processing sub-module, wherein:
and the fourth received signal strength processing submodule is configured to, when the state of the second electronic device is a pairing state, perform enhancement processing on the received signal strength to obtain the processed received signal strength, where the pairing state is used to indicate that pairing operation is to be performed between the second electronic device and the first electronic device.
And a fifth received signal strength processing submodule, configured to, when the state of the second electronic device is a reconnection state, perform maintenance processing or attenuation processing on the received signal strength to obtain the processed received signal strength, where the reconnection state is used to represent a reconnection operation to be performed by the second electronic device after pairing.
Further, the target intensity threshold is a second intensity threshold, a probability that the first electronic device triggers the target information to be displayed under the second intensity threshold is higher than a preset probability, and the received signal intensity processing module 320 includes: a sixth received signal strength processing sub-module and a seventh received signal strength processing sub-module, wherein:
a sixth received signal strength processing submodule, configured to, when the state where the second electronic device is located is a pairing state, perform maintenance processing or enhancement processing on the received signal strength to obtain the processed received signal strength, where the pairing state is used to represent that pairing operation is to be performed between the second electronic device and the first electronic device; or alternatively
And a seventh received signal strength processing submodule, configured to, when the state of the second electronic device is a reconnection state, perform attenuation processing on the received signal strength to obtain the processed received signal strength, where the reconnection state is used to represent that a reconnection operation to be performed by the second electronic device after pairing is performed.
Further, the received signal strength processing module 320 includes a first status obtaining sub-module, wherein:
and the first state acquisition submodule is used for acquiring the state of the second electronic equipment based on the broadcast message.
Further, the first state obtaining sub-module includes: an identification information acquisition unit, wherein:
and the identification information acquisition unit is used for analyzing the broadcast message and acquiring the identification information carried by the broadcast message, wherein the identification information is used for indicating the state of the second electronic equipment.
Further, the received signal strength processing module 320 further includes: a target intensity threshold determination sub-module, wherein:
a target intensity threshold determination submodule, responsive to the intensity threshold selection instruction, for determining a target intensity threshold from a plurality of intensity thresholds.
Further, the received signal strength processing module 320 includes: a second state acquisition submodule, wherein:
and the second state acquisition submodule is used for acquiring the state of the second electronic equipment when the second electronic equipment meets the preset equipment condition.
Further, the second state obtaining sub-module includes: identity information acquisition unit and second state acquisition unit, wherein:
and the identity information acquisition unit is used for acquiring the identity information of the second electronic equipment.
And the second state acquisition unit is used for acquiring the state of the second electronic equipment when the identity information of the second electronic equipment meets a preset identity condition.
And a prompt information display module 330, configured to display the target information when the processed received signal strength is greater than the target strength threshold.
Referring to fig. 16, fig. 16 is a block diagram illustrating a display device for prompting information according to an embodiment of the present application. The prompt message display apparatus 400 is applied to the electronic device, and will be explained with reference to the block diagram shown in fig. 16, where the prompt message display apparatus 400 includes: a distance value obtaining module 410, a distance value processing module 420 and a prompt information display module 430, wherein:
a distance value obtaining module 410, configured to obtain a distance value between the first electronic device and the second electronic device.
The distance value processing module 420 is configured to obtain a state of the second electronic device, and process the distance value according to the state of the second electronic device to obtain a processed distance value.
Further, the distance value processing module 420 includes: a distance value decrease submodule and a distance value increase submodule, wherein:
and the distance value reduction submodule is used for reducing the distance value to obtain the processed distance value when the state of the second electronic equipment is a pairing state, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic equipment and the first electronic equipment.
And the distance value increasing submodule is used for increasing the distance value to obtain the processed distance value when the state of the second electronic device is a reconnection state, wherein the reconnection state is used for representing the reconnection operation of the second electronic device after pairing is to be executed.
And a prompt information display module 430, configured to display the target information when the processed distance value is smaller than the target distance threshold.
Referring to fig. 17, fig. 17 is a block diagram illustrating a display device for displaying prompt information according to an embodiment of the present application. The display device 500 of the prompt message is applied to the electronic device, and will be explained with reference to the block diagram shown in fig. 19, where the display device 500 of the prompt message includes: a prompt message display module 510 and a prompt message disable display module 520, wherein:
a prompt information display module 510, configured to display target information when the state of the second electronic device is a pairing state, where the pairing state is used to indicate that the second electronic device is to perform pairing operation with the first electronic device.
A prompt information prohibition display module 520, configured to not display the target information when the state of the second electronic device is a reconnection state, where the reconnection state is used to represent a reconnection operation to be performed by the second electronic device after pairing.
And the prompt information prohibition display sub-module is used for not displaying the target information when the state of the second electronic equipment is the loop connection state.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 18, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The memory data area may also store data created by electronic device 100 during use (e.g., phone books, audiovisual data, chat log data), etc.
Referring to fig. 19, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 600 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 600 includes a non-volatile computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.
To sum up, the method, the apparatus, the electronic device, and the storage medium for displaying the prompt information provided in the embodiments of the present application obtain a received signal strength corresponding to a broadcast message transmitted by a second electronic device, obtain a state of the second electronic device, process the received signal strength according to the state of the second electronic device, obtain a processed received signal strength, and display target information when the processed received signal strength is greater than a target strength threshold, so as to dynamically process the received signal strength corresponding to the received broadcast message according to the state of the electronic device to determine to display the prompt information, thereby better controlling display of the prompt information, and avoiding disturbance to a user to improve user experience.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (18)

1. A method for displaying prompt information is applied to first electronic equipment, and comprises the following steps:
acquiring the received signal strength corresponding to the received broadcast message, wherein the broadcast message is transmitted by second electronic equipment;
acquiring the state of the second electronic device, and processing the received signal strength according to the state of the second electronic device to acquire the processed received signal strength;
and when the processed received signal strength is greater than a target strength threshold value, displaying target information.
2. The method of claim 1, wherein the processing the received signal strength according to the state of the second electronic device to obtain a processed received signal strength comprises:
when the state of the second electronic device is a pairing state, performing enhancement processing on the received signal strength to obtain the processed received signal strength, wherein the pairing state is used for representing that pairing operation is to be performed between the second electronic device and the first electronic device; or
And when the state of the second electronic device is a reconnection state, performing attenuation processing or maintenance processing on the received signal strength to obtain the processed received signal strength, wherein the reconnection state is used for representing reconnection operation to be performed by the second electronic device after pairing.
3. The method of claim 1, wherein the processing the received signal strength according to the state of the second electronic device to obtain a processed received signal strength comprises:
and processing the received signal strength according to the state of the second electronic device and the target strength threshold value to obtain the processed received signal strength.
4. The method of claim 3, further comprising, before processing the received signal strength according to the state of the second electronic device and the target strength threshold to obtain the processed received signal strength:
in response to an intensity threshold selection instruction, a target intensity threshold is determined from a plurality of intensity thresholds.
5. The method according to claim 1, wherein the target strength threshold is a first strength threshold, a probability that the first electronic device triggers the target information to be displayed under the first strength threshold is lower than a preset probability, and the processing the received signal strength according to the state of the second electronic device to obtain the processed received signal strength comprises:
when the state of the second electronic device is a pairing state, performing enhancement processing on the received signal strength to obtain the processed received signal strength, wherein the pairing state is used for representing that pairing operation is to be performed between the second electronic device and the first electronic device; or
And when the state of the second electronic device is a reconnection state, maintaining or attenuating the received signal strength to obtain the processed received signal strength, wherein the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be executed.
6. The method according to claim 1, wherein the target intensity threshold is a second intensity threshold, a probability that the first electronic device triggers the target information to be displayed under the second intensity threshold is higher than a preset probability, and the processing the received signal intensity according to a state of the second electronic device to obtain the processed received signal intensity includes:
when the state of the second electronic device is a pairing state, maintaining or enhancing the received signal strength to obtain the processed received signal strength, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic device and the first electronic device; or
And when the state of the second electronic device is a reconnection state, attenuating the received signal strength to obtain the processed received signal strength, wherein the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be executed.
7. The method according to any one of claims 1-6, wherein the obtaining of the state of the second electronic device comprises:
and acquiring the state of the second electronic equipment based on the broadcast message.
8. The method of claim 7, wherein the obtaining the status of the second electronic device based on the broadcast message comprises:
analyzing the broadcast message, and acquiring identification information carried by the broadcast message, wherein the identification information is used for indicating the state of the second electronic device.
9. The method of claim 8, wherein the identification information comprises first identification information or second identification information, wherein,
the first identification information is used for indicating that the state of the second electronic device is a pairing state, and the pairing state is used for representing that the second electronic device is to perform pairing operation with the first electronic device;
the second identification information is used for indicating that the state of the second electronic device is a reconnection state, and the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be executed.
10. The method according to any one of claims 1-6, wherein the obtaining of the state of the second electronic device comprises:
acquiring identity information of the second electronic equipment;
and when the identity information of the second electronic equipment meets a preset identity condition, acquiring the state of the second electronic equipment.
11. A method for displaying prompt information is applied to first electronic equipment, and comprises the following steps:
acquiring a distance value between the first electronic device and the second electronic device;
acquiring the state of the second electronic device, and processing the distance value according to the state of the second electronic device to obtain a processed distance value;
and when the processed distance value is smaller than the target distance threshold value, displaying target information.
12. The method according to claim 11, wherein the processing the distance value according to the state of the second electronic device to obtain a processed distance value comprises:
when the state of the second electronic device is a pairing state, reducing the distance value to obtain the processed distance value, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic device and the first electronic device; or
And when the second electronic equipment is in a state reconnection state, performing increasing processing or maintaining processing on the distance value to obtain the processed distance value, wherein the reconnection state is used for representing reconnection operation of the second electronic equipment after pairing is performed.
13. A method for displaying prompt information is applied to first electronic equipment, and comprises the following steps:
when the state of the second electronic equipment is a pairing state, displaying target information, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic equipment and the first electronic equipment; or
And when the state of the second electronic device is a reconnection state, not displaying the target information, wherein the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be executed.
14. A display device for prompting information is applied to first electronic equipment, and the device comprises:
a received signal strength acquisition module, configured to acquire a received signal strength corresponding to a received broadcast message, where the broadcast message is transmitted by a second electronic device;
the received signal strength processing module is used for acquiring the state of the second electronic device and processing the received signal strength according to the state of the second electronic device to acquire the processed received signal strength;
and the prompt information display module is used for displaying the target information when the processed received signal strength is greater than a target strength threshold value.
15. A display device for prompting information is applied to first electronic equipment, and the device comprises:
the distance value acquisition module is used for acquiring a distance value between the first electronic device and the second electronic device;
the distance value processing module is used for acquiring the state of the second electronic equipment, and processing the distance value according to the state of the second electronic equipment to acquire a processed distance value;
and the prompt information display module is used for displaying the target information when the processed distance value is smaller than the target distance threshold value.
16. A display device for prompting information is applied to first electronic equipment, and the device comprises:
the prompt information display module is used for displaying target information when the state of the second electronic equipment is a pairing state, wherein the pairing state is used for representing that pairing operation is to be executed between the second electronic equipment and the first electronic equipment; or
And the prompt information prohibition display module is used for not displaying the target information when the state of the second electronic device is a reconnection state, wherein the reconnection state is used for representing reconnection operation of the second electronic device after pairing is to be executed.
17. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-13.
18. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 13.
CN202111040150.1A 2021-09-06 2021-09-06 Prompt information display method and device, electronic equipment and storage medium Pending CN115767443A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111040150.1A CN115767443A (en) 2021-09-06 2021-09-06 Prompt information display method and device, electronic equipment and storage medium
PCT/CN2022/117171 WO2023030529A1 (en) 2021-09-06 2022-09-06 Method and apparatus for displaying prompt information, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111040150.1A CN115767443A (en) 2021-09-06 2021-09-06 Prompt information display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115767443A true CN115767443A (en) 2023-03-07

Family

ID=85332749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111040150.1A Pending CN115767443A (en) 2021-09-06 2021-09-06 Prompt information display method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115767443A (en)
WO (1) WO2023030529A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100042048A (en) * 2008-10-15 2010-04-23 삼성전자주식회사 Bluetooth connection method and apparatus
US10187919B2 (en) * 2017-05-22 2019-01-22 Apple Inc. Proximity pairing based on signal strength
CN109451474A (en) * 2018-10-15 2019-03-08 四川长虹电器股份有限公司 Controlled terminal equipment and its bluetooth return even method
CN112333332B (en) * 2020-10-27 2021-05-28 维沃移动通信有限公司 Prompt message display method and device and electronic equipment
CN113329391B (en) * 2021-05-26 2023-02-24 Oppo广东移动通信有限公司 Prompt information display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2023030529A1 (en) 2023-03-09

Similar Documents

Publication Publication Date Title
CN109257500B (en) Audio playing method and device, electronic equipment and storage medium
CN107835033B (en) Antenna tuning switch control method and device, terminal equipment and storage medium
WO2023030531A1 (en) Prompt information display method and apparatus, electronic device, and storage medium
CN108965306B (en) Call processing method and mobile terminal
CN108064071B (en) Network connection method, device, storage medium and electronic equipment
CN108735217B (en) Electronic device control method, electronic device control device, storage medium and electronic device
CN109157839B (en) Frame rate regulation and control method, device, storage medium and terminal
US11178624B2 (en) Method of adjusting transmission power of terminal, mobile terminal, and storage device
CN106791067B (en) Call volume adjusting method and device and mobile terminal
EP3843459A1 (en) Communication system switching method and terminal device
CN109257732B (en) Equipment control method and device and electronic equipment
CN109582976A (en) A kind of interpretation method and electronic equipment based on voice communication
CN113518336A (en) Bluetooth connection prompting method, device, terminal and storage medium
CN108322602B (en) Method, terminal and computer readable storage medium for processing application no response
CN113329391B (en) Prompt information display method and device, electronic equipment and storage medium
CN112637410A (en) Method, terminal and storage medium for displaying message notification
CN110381200B (en) Screen-off control method and mobile terminal
CN108307075B (en) Incoming call processing method and mobile terminal
CN108307048B (en) Message output method and device and mobile terminal
CN107622234B (en) Method and device for displaying budding face gift
CN111343591B (en) Session information processing method and electronic equipment
CN110611890B (en) Notification message control method and related device
CN115767443A (en) Prompt information display method and device, electronic equipment and storage medium
CN113316222B (en) Data processing method, device, electronic equipment and storage medium
CN106980498B (en) Window management method and device

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