CN114500730B - Popup function control method, popup function control device and computer readable storage medium - Google Patents

Popup function control method, popup function control device and computer readable storage medium Download PDF

Info

Publication number
CN114500730B
CN114500730B CN202210192673.6A CN202210192673A CN114500730B CN 114500730 B CN114500730 B CN 114500730B CN 202210192673 A CN202210192673 A CN 202210192673A CN 114500730 B CN114500730 B CN 114500730B
Authority
CN
China
Prior art keywords
earphone
random code
bluetooth
user terminal
broadcasting
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.)
Active
Application number
CN202210192673.6A
Other languages
Chinese (zh)
Other versions
CN114500730A (en
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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN202210192673.6A priority Critical patent/CN114500730B/en
Publication of CN114500730A publication Critical patent/CN114500730A/en
Application granted granted Critical
Publication of CN114500730B publication Critical patent/CN114500730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • 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/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Circuits Of Receivers In General (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a popup window function control method, equipment and a computer readable storage medium, wherein the method comprises the following steps: resetting a random code in the first earphone when entering a pairing mode; after Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the connected user terminal so that the user terminal can store the received random code; when the uncovering event of the earphone box is detected, the random code currently set in the first earphone is carried in Bluetooth broadcasting to be broadcasted, so that a user terminal receiving the Bluetooth broadcasting can carry out popup prompt when the random code carried in the broadcasting is compared with the random code currently stored. According to the invention, when the earphone is opened and connected back, only the user terminal connected last time can pop windows, and other user terminals with the same type nearby cannot pop windows, so that interference to other people is avoided, and the experience of using the earphone by the user is improved.

Description

Popup function control method, popup function control device and computer readable storage medium
Technical Field
The present invention relates to the field of headphones technologies, and in particular, to a method and apparatus for controlling a pop-up window function, and a computer readable storage medium.
Background
At present, most mobile phone manufacturers push out the earphone with a plurality of functions of supporting the popup window and the quick connection of the mobile phone, namely when the earphone enters a pairing mode or is opened and connected back, the earphone end periodically transmits BLE broadcasting, and the nearby mobile phones with the same type monitor the broadcasting and then popup the window, and can click a connection button to realize the quick connection without searching equipment in a Bluetooth list. When the earphone is connected with the mobile phone and then uncapped and connected back, the mobile phone connected before can pop a window to display information such as the electric quantity of the earphone, but nearby mobile phones with the same model can also display the pop window, and trouble is brought to other people.
Disclosure of Invention
The invention mainly aims to provide a popup window function control method, equipment and a computer readable storage medium, and aims to realize that only a mobile phone connected before can popup window when a headset is opened and connected back, other nearby mobile phones with the same type cannot popup window, and user experience is improved.
In order to achieve the above object, the present invention provides a pop-up window function control method, which is applied to a first earphone, the method comprising the steps of:
resetting a random code in the first earphone when entering a pairing mode;
after Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the connected user terminal so that the user terminal can store the received random code;
When the uncovering event of the earphone box is detected, the random code currently set in the first earphone is carried in Bluetooth broadcasting to be broadcasted, so that a user terminal receiving the Bluetooth broadcasting can carry out popup prompt when the random code carried in the broadcasting is compared with the random code currently stored.
Optionally, after the step of resetting the random code in the first earphone when the pairing mode is entered, the method further includes:
and sending the reset random code to a second earphone serving as a pair of earphones, so that the second earphone resets the random code in the second earphone to the random code received from the first earphone, and when the second earphone serves as a main earphone to detect the uncovering event of the earphone box, the random code currently set in the second earphone is carried in Bluetooth broadcasting.
Optionally, the method further comprises:
when the pairing mode is entered, carrying a connection mark set to a first preset value in the Bluetooth broadcast, so that the user terminal carries out popup prompt when detecting that the connection mark carried by the received Bluetooth broadcast is the first preset value;
when the uncovering event of the earphone box is detected, the step of carrying the random code currently set in the first earphone to be broadcasted in Bluetooth broadcasting comprises the following steps:
And when the uncovering event of the earphone box is detected, carrying a random code currently set in the first earphone and a connection mark set to a second preset value in Bluetooth broadcasting for broadcasting, so that when the user terminal detects that the connection mark carried by the received Bluetooth broadcasting is the second preset value, detecting whether the random code carried by the received Bluetooth broadcasting is consistent with the currently stored random code.
Optionally, the method further comprises:
when a pairing mode is entered, a Bluetooth pairing list in the first earphone is emptied;
after establishing Bluetooth connection with a user terminal, adding the connected user terminal to a Bluetooth pairing list in the first earphone;
before the step of broadcasting the random code currently set in the first earphone in the bluetooth broadcast, the method further includes:
detecting whether a current Bluetooth pairing list of the first earphone is empty or not when detecting an uncovering event of the earphone box;
and if the current Bluetooth pairing list of the first earphone is not empty, executing the step of broadcasting the random code currently set in the first earphone in Bluetooth broadcasting.
In order to achieve the above object, the present invention further provides a pop-up window function control method, the method is applied to a second earphone, and the method includes the following steps:
When the second earphone is used as an auxiliary earphone, receiving a random code sent by a first earphone used as a main earphone, and setting the random code in the second earphone as the random code received from the first earphone, wherein when the first earphone enters a pairing mode, resetting the random code in the first earphone, and sending the reset random code to the second earphone, and after the first earphone is connected with a user terminal through Bluetooth, sending the random code currently set in the first earphone to the connected user terminal so as to enable the user terminal to store the received random code;
when the second earphone is used as the main earphone and detects the uncovering event of the earphone box, the random code currently set in the second earphone is carried in the Bluetooth broadcast for broadcasting, so that the user terminal receiving the Bluetooth broadcast carries out popup prompt when the random code carried in the broadcast is compared with the random code currently stored.
In order to achieve the above object, the present invention further provides a popup window function control method, where the method is applied to a user terminal, and the method includes the following steps:
when a Bluetooth connection is established with a first earphone, the random code received from the first earphone is stored, wherein when the first earphone enters a pairing mode, the random code in the first earphone is reset, and after the Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the user terminal;
When a Bluetooth broadcast sent by the first earphone is received, if a random code is extracted from the received Bluetooth broadcast, comparing the extracted random code with a random code currently stored in the user terminal, wherein when the first earphone detects an uncovering event of an earphone box, the random code currently set in the first earphone is carried in the Bluetooth broadcast for broadcasting;
and if the extracted random code is consistent with the currently stored random code, performing popup prompt.
Optionally, after the step of comparing the extracted random code with the random code currently stored in the user terminal if the random code is extracted from the received bluetooth broadcast, the method further includes:
if the extracted random code is inconsistent with the currently stored random code, the popup prompt is not carried out.
Optionally, before the step of comparing the extracted random code with the random code currently stored in the user terminal if the random code is extracted from the received bluetooth broadcast, the method further includes:
when a Bluetooth broadcast sent by the first earphone is received, if a connection mark is extracted from the received Bluetooth broadcast, detecting the value of the extracted connection mark, wherein when the first earphone detects an uncovering event of an earphone box, a random code currently set in the first earphone and the connection mark set as a second preset value are carried in the Bluetooth broadcast for broadcasting;
And if the extracted connection mark is the second preset value, executing the step of comparing the extracted random code with the random code currently stored by the user terminal if the random code is extracted from the received Bluetooth broadcast.
Optionally, after the step of detecting the value of the extracted connection flag, the method further includes:
and if the extracted connection mark is a first preset value, carrying out popup prompt, wherein after the first earphone enters a pairing mode, the connection mark set as the first preset value is carried in Bluetooth broadcasting.
In order to achieve the above object, the present invention further provides a pop-up window function control device, where the device is disposed on a first earphone, and the device includes:
the setting module is used for resetting the random code in the first earphone when the pairing mode is entered;
the sending module is used for sending the random code currently set in the first earphone to the connected user terminal after the Bluetooth connection is established with the user terminal so that the user terminal can store the received random code;
and the broadcasting module is used for carrying the random code currently set in the first earphone to broadcast in the Bluetooth broadcast when the uncovering event of the earphone box is detected, so that the user terminal receiving the Bluetooth broadcast can carry out popup prompt when the random code carried in the broadcast is compared with the random code currently stored.
In order to achieve the above object, the present invention further provides a pop-up window function control device, where the device is disposed on a second earphone, and the device includes:
the receiving module is used for receiving a random code sent by a first earphone serving as a main earphone when the second earphone serves as an auxiliary earphone, setting the random code in the second earphone as the random code received from the first earphone, resetting the random code in the first earphone when the first earphone enters a pairing mode, sending the reset random code to the second earphone, and sending the random code currently set in the first earphone to a connected user terminal after Bluetooth connection is established between the first earphone and the user terminal so as to enable the user terminal to store the received random code;
and the broadcasting module is used for carrying the random code currently set in the second earphone to broadcast in Bluetooth broadcasting when the second earphone is used as the main earphone to detect the uncovering event of the earphone box, so that a user terminal receiving the Bluetooth broadcasting carries out popup prompt when the random code carried in the broadcasting is compared with the random code currently stored.
In order to achieve the above object, the present invention further provides a popup function control device, where the device is deployed in a user terminal, and the device includes:
The storage module is used for storing the random code received from the first earphone after the Bluetooth connection is established with the first earphone, wherein the first earphone resets the random code in the first earphone when entering a pairing mode, and sends the random code currently set in the first earphone to the user terminal after the Bluetooth connection is established with the user terminal;
the comparison module is used for comparing the extracted random code with the random code currently stored in the user terminal if the random code is extracted from the received Bluetooth broadcast when the Bluetooth broadcast sent by the first earphone is received, wherein the random code currently set in the first earphone is carried in the Bluetooth broadcast for broadcasting when the first earphone detects the uncovering event of the earphone box;
and the prompt module is used for carrying out popup window prompt if the extracted random code is consistent with the currently stored random code.
In order to achieve the above object, the present invention also provides a popup function control apparatus including: the system comprises a memory, a processor and a popup function control program stored on the memory and capable of running on the processor, wherein the popup function control program realizes the steps of the popup function control method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a popup function control program which, when executed by a processor, implements the steps of the popup function control method as described above.
According to the invention, the random code in the first earphone is reset by entering a Bluetooth pairing mode in the first earphone; after Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the connected user terminal so that the user terminal can store the received random code; when the uncovering event of the earphone box is detected, the random code currently set in the first earphone is carried in Bluetooth broadcasting to be broadcasted, so that the user terminal receiving the Bluetooth broadcasting can carry out popup window prompt when the random code carried in the broadcasting is compared with the random code currently stored. When the earphone is opened and connected back, only the user terminal connected last time can pop windows, and other user terminals of the same type nearby cannot pop windows, so that interference to other people is avoided, and the experience of using the earphone by the user is improved.
Drawings
FIG. 1 is a flowchart of a first embodiment of a pop-up window function control method according to the present invention;
Fig. 2 is a flowchart of a fourth embodiment of a pop-up window function control method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a pop-up window function control method according to the present invention.
Embodiments of the present invention provide embodiments of a method of controlling a pop-up window function, it being noted that although a logic sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown or described herein. In this embodiment, the pop-up window function control method is applied to the first earphone. When one of the pair of headphones is fixed as the master headphone, the first headphone may refer to the master headphone; when both of the pair of headphones may be used as a master headphone, the first headphone may refer to the one that is the master headphone. The first earphone can be in communication connection with the user terminal through Bluetooth; the user terminal may be a smart phone, a personal computer, a server, or the like, and is not limited in this embodiment. In this embodiment, the pop-up window function control method includes:
Step S10, resetting a random code in the first earphone when entering a pairing mode;
in this embodiment, in order to realize that only the mobile phone connected before can pop a window when the earphone is opened and connected back, other nearby mobile phones of the same model cannot pop a window, it is proposed that a random code is set in the first earphone, and when the earphone is opened and connected back, the random code is carried in bluetooth broadcast, so that the user terminal can distinguish that the first earphone is opened and connected back.
In particular, the first earpiece may store a random code locally or in the background server, which is reset each time the first earpiece enters the pairing mode. That is, when the first earpiece enters the pairing mode, the random code in the first earpiece is reset. In a specific embodiment, the first earphone may generate a new random code by using a random algorithm, for example, a value is randomly selected from 1-255 as the new random code.
After the first earphone enters the pairing mode, bluetooth broadcast, for example, BLE broadcast is sent out periodically, and a user terminal in the bluetooth broadcast signal receiving range receives the bluetooth broadcast sent by the first earphone. The triggering manner of the first earphone to enter the pairing mode is not limited in this embodiment, for example, when the user needs to replace the currently connected user terminal, the first earphone may be triggered to enter the pairing mode by means of voice, touch control or key, etc.
In an embodiment, when the first earphone sends the bluetooth broadcast outwards after entering the pairing mode, the bluetooth broadcast does not carry the random code, and when the bluetooth broadcast received by the user terminal, if the random code is not extracted from the bluetooth broadcast, the popup prompt can be performed. The popup window prompt may be a function in the user terminal that displays a button for quickly establishing a bluetooth connection through a popup window, and the user triggers the button to perform a quick bluetooth connection.
When the first headphone is always the master headphone role by default in a pair of headphones, a random code may not be set in the other headphone (hereinafter referred to as the second headphone) in the pair of headphones. When the first earphone and the second earphone have the possibility of acting as the master earphone, the first earphone can be synchronized to the second earphone after resetting the random code. The communication rule and the master earpiece role assignment rule between the first earpiece and the second earpiece are not limited in this embodiment.
Step S20, after establishing Bluetooth connection with the user terminal, the random code currently set in the first earphone is sent to the connected user terminal so that the user terminal can store the received random code;
the first earphone searches the user terminal in the pairing mode, and after the bluetooth connection is established with the user terminal, the random code currently set in the first earphone can be sent to the connected user terminal. After receiving the random code sent by the first earphone, the user terminal stores the random code so as to facilitate the subsequent determination of whether to carry out popup prompt through the comparison of the random codes.
When the user terminal receives a new random code from the first earphone for establishing connection, if the user terminal stores the random code sent by the first earphone, the user terminal can replace the random code stored before with the new random code. Further, in an embodiment, if the user terminal may establish bluetooth connection with a plurality of headphones, the random codes sent by the headphones may be stored respectively, and the device identifiers of the headphones are used for distinguishing; the device identities of a pair of headphones may be identical or partially identical so that the user terminal holds the same random code for a pair of headphones.
Step S30, when the uncovering event of the earphone box is detected, the random code currently set in the first earphone is carried in Bluetooth broadcasting to be broadcasted, so that a user terminal receiving the Bluetooth broadcasting can carry out popup prompt when the random code carried in the broadcasting is matched with the random code currently stored.
The first earphone generally can shut down or withdraw from bluetooth connection after putting into the earphone box, when the user needs to use first earphone once more, opens the earphone box and takes out first earphone, and first earphone can be through detecting the uncapping event of earphone box, and the automatic bluetooth broadcast that sends when detecting uncapping to connect last connected user terminal, realize uncapping and link back. Specifically, when the first earphone detects the uncapping event of the earphone box, the first earphone acquires the random code which is currently set from the local or background server of the first earphone, and the random code which is currently set is carried in the Bluetooth broadcast. When receiving Bluetooth broadcasting, surrounding user terminals can compare random codes carried in the Bluetooth broadcasting with random codes currently stored in the user terminals, and when the comparison is consistent, the user terminals are the user terminals connected last time by the first earphone, the purpose of the first earphone sending the Bluetooth broadcasting is to be connected back, based on the purpose, the user terminals can carry out popup prompt, so that users can quickly establish Bluetooth connection between the user terminals and the first earphone through a connection way provided by the popup.
When the first earphone is put into the earphone box, data interaction can be carried out between the first earphone and the earphone box, and when the earphone box detects the uncovering event, the first earphone can be informed of the event. In this case, a sensor for detecting an uncovering event, such as a hall sensor, may be provided in the earphone case, and the embodiment is not limited thereto.
Further, in an embodiment, when the user terminal receives the bluetooth broadcast and the random code in the bluetooth broadcast is inconsistent with the currently stored random code, the pop window prompt may not be performed. Or in another embodiment, a popup window function setting interface can be set in the user terminal for the user to set whether popup window prompt is performed at any time; if the user sets that the window is shot only when the random codes are consistent, the window can be shot only when the random codes are consistent, and the window is not shot when the random codes are inconsistent; if the user sets up and all carries out the popup suggestion at any time, then user terminal can all carry out the popup when receiving bluetooth broadcast.
The following illustrates that the random code reset after the first earpiece enters pairing mode is assumed to be 25; establishing Bluetooth connection with the user terminal 1 of the user a in the pairing mode, and transmitting 25 to the user terminal 1 for storage; then the user a puts the first earphone into the earphone box for charging, and after the charging is finished, the first earphone is taken out for use, the first earphone detects the uncapping event of the earphone box, bluetooth broadcasting is carried out, and the currently set random code 25 is carried in the Bluetooth broadcasting; after receiving the Bluetooth broadcast, the user terminal 1 compares the random code 25 carried in the Bluetooth broadcast with the random code 25 stored currently, so as to carry out popup prompt, and the user a quickly establishes Bluetooth connection with the first earphone based on the popup prompt in the user terminal 1; after receiving the bluetooth broadcast, the user terminal 2 of the user b compares the random code 25 carried in the bluetooth broadcast with the currently stored random code 100 (since the user terminal 2 does not receive and store the random code 25 sent by the first earphone, the random code in the user terminal 2 is not 25 in a large probability, and is assumed to be 100), so that the pop window prompt is not performed, and the user b is not affected by the pop window when the first earphone is opened and connected back.
In this embodiment, the random code in the first earphone is reset by entering the bluetooth pairing mode in the first earphone; after Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the connected user terminal so that the user terminal can store the received random code; when the uncovering event of the earphone box is detected, the random code currently set in the first earphone is carried in Bluetooth broadcasting to be broadcasted, so that the user terminal receiving the Bluetooth broadcasting can carry out popup window prompt when the random code carried in the broadcasting is compared with the random code currently stored. When the earphone is opened and connected back, only the user terminal connected last time can pop windows, and other user terminals of the same type nearby cannot pop windows, so that interference to other people is avoided, and the experience of using the earphone by the user is improved.
Further, in an embodiment, the method further comprises:
step a, when a pairing mode is entered, a Bluetooth pairing list in the first earphone is emptied;
a bluetooth pairing list may be set in the first earphone, and is used for recording the user terminals that have been successfully paired. When the first earphone enters the pairing mode, the current bluetooth pairing list may be emptied to search for new paired user terminals.
B, after establishing Bluetooth connection with the user terminal, adding the connected user terminal to a Bluetooth pairing list in the first earphone;
after the first earphone establishes Bluetooth connection with the user terminal, the connected user terminal can be added into a Bluetooth pairing list in the first earphone, and after the Bluetooth pairing list is added, the Bluetooth pairing list is not empty.
It should be noted that, in the application scenario, when the first earphone and the second earphone both have the possibility of acting as the role of the master earphone, after the first earphone is in the bluetooth pairing list or after the user terminal is newly added in the bluetooth pairing list, the updated bluetooth pairing list is synchronized to the second earphone, so that the bluetooth pairing lists in the two earphones can be kept consistent.
Before the step of broadcasting the random code currently set in the first earphone in the bluetooth broadcast in step S30, the method further includes:
step c, detecting whether a current Bluetooth pairing list of the first earphone is empty or not when detecting an uncovering event of the earphone box;
and d, if the current Bluetooth pairing list of the first earphone is not empty, executing the step of carrying the random code currently set in the first earphone in Bluetooth broadcasting in the step S30.
When the first earphone detects the uncovering event of the earphone box, whether the current Bluetooth pairing list of the first earphone is empty or not can be detected first. If the current Bluetooth pairing list of the first earphone is not empty, it is indicated that the first earphone establishes Bluetooth connection with the user terminal before being put into the earphone box, and at the moment, a reconnection object exists, then the first earphone can carry out Bluetooth broadcasting and carries a random code currently set in the first earphone in the Bluetooth broadcasting, so that the user terminal which establishes Bluetooth connection with the first earphone before can perform popup.
Further, if the current bluetooth pairing list of the first earphone is empty, it indicates that the first earphone does not establish bluetooth connection with the user terminal before being put into the earphone box, at this time, no object is connected back, if a random code is carried in bluetooth broadcast, it may cause that no user terminal performs popup, at this time, in order to avoid that the first earphone cannot establish bluetooth connection with the user terminal, the first earphone may switch to a manner of transmitting bluetooth broadcast when entering a pairing mode to transmit bluetooth broadcast, for example, the bluetooth broadcast does not carry a random code, so that all user terminals receiving bluetooth broadcast can perform popup prompt.
Further, in order to avoid that the user terminal that needs to be connected back when the first earphone is opened and connected back is not in the bluetooth communication distance range of the first earphone, the first earphone can continuously send the bluetooth broadcast and cannot establish the bluetooth connection, in an embodiment, the first earphone can start timing when sending the bluetooth broadcast after detecting the opening event, if the timing reaches the preset duration and the bluetooth connection is not successfully established, it is indicated that the user may not want to connect back, at this time, the first earphone can send the bluetooth broadcast in a manner of sending the bluetooth broadcast when entering the pairing mode, for example, the first earphone does not carry a random code in the bluetooth broadcast, can also stop sending the bluetooth broadcast, or can output voice prompt information to prompt the user whether to enter the pairing mode.
Further, based on the first embodiment, a second embodiment of the pop-up window function control method of the present invention is provided, and in this embodiment, after the step S10, the method further includes:
and step S40, the reset random code is sent to a second earphone serving as a pair of earphones, so that the second earphone resets the random code in the second earphone to the random code received from the first earphone, and when the second earphone serves as a main earphone and detects the uncovering event of the earphone box, the random code currently set in the second earphone is carried in Bluetooth broadcasting for broadcasting.
When both the first earphone and the second earphone have the possibility of functioning as the master earphone, the first earphone as the master earphone may be synchronized to the second earphone as the slave earphone after resetting the random code. After the second earphone receives the random code as the auxiliary earphone, the random code in the second earphone is reset to the random code received from the first earphone, for example, the original random code in the second earphone is 20, the random code sent by the first earphone is 25, then the second earphone replaces 20 with 25, and the random codes in the second earphone are all 20. When the second earphone is used as the main earphone and detects the uncovering event of the earphone box, the random code currently arranged in the second earphone can be carried in Bluetooth broadcasting for broadcasting, so that the user terminal can carry out popup prompt when the random code carried in the Bluetooth broadcasting is matched with the random code currently stored, and a Bluetooth connection can be conveniently established between the user terminal and the second earphone through the popup prompt. And conversely, the first earphone may receive the random code synchronized by the second earphone as the main earphone when the first earphone is used as the auxiliary earphone, and the first earphone replaces the stored random code with the received random code so as to use the replaced random code when the random code needs to be carried in Bluetooth broadcasting later.
Further, based on the first and/or second embodiments, a third embodiment of the pop-up window function control method according to the present invention is provided, where in this embodiment, the method further includes:
step S50, after entering a pairing mode, carrying a connection mark set to a first preset value in the Bluetooth broadcast, so that when the user terminal detects that the connection mark carried by the received Bluetooth broadcast is the first preset value, popup prompt is carried out;
in this embodiment, in order to enable the user terminal to further quickly and accurately distinguish between the bluetooth broadcast transmitted when the headset enters the pairing mode and the bluetooth broadcast transmitted when the headset is opened and connected back, the first headset may carry a bluetooth flag in the transmitted bluetooth broadcast, and set a connection flag carried in the bluetooth broadcast transmitted after entering the pairing mode to be a first preset value, and set a connection flag carried in the bluetooth broadcast transmitted when the headset is opened and connected back to be a second preset value, so that the user terminal can distinguish between the bluetooth broadcasts transmitted under two conditions of the first headset according to the value of the connection flag in the bluetooth broadcast.
Wherein the first preset value and the second preset value are different, for example, the first preset value is set to 0, and the second preset value is set to 1.
After receiving the bluetooth broadcast sent by the first earphone, the user terminal detects the value of the connection mark carried in the bluetooth broadcast, and if the value is a first preset value, the user terminal indicates that the first earphone is the bluetooth broadcast sent after entering the pairing mode, and then carries out popup prompt.
Step S30 includes:
step S301, when an uncapping event of the earphone box is detected, carrying a random code currently set in the first earphone and a connection flag set to a second preset value in a bluetooth broadcast for broadcasting, so that when detecting that the connection flag carried by the received bluetooth broadcast is the second preset value, the user terminal detects whether the random code carried by the received bluetooth broadcast is consistent with the currently stored random code.
When the first earphone detects the earphone box uncovering event, the sent Bluetooth broadcast carries a random code and a connection mark set to a second preset value. If the user terminal detects that the value of the connection mark carried in the Bluetooth broadcast is a second preset value, the first earphone is indicated to be the Bluetooth broadcast sent when the cover is opened and connected back, at this time, the user terminal can further compare whether the random code carried in the Bluetooth broadcast is consistent with the random code stored currently, if so, the user terminal is indicated to be a back connection object of the first earphone which is opened and connected back this time, the user terminal can carry out popup window prompt, if not, the user terminal is indicated to be not the back connection object of the first earphone which is opened and connected back this time, and the user terminal can not carry out popup window prompt according to the requirement so as to avoid disturbing the user.
Further, in an embodiment, the first earphone may also carry a random code in the bluetooth broadcast sent after entering the pairing mode, where the value of the random code (hereinafter referred to as a default value) is different from the value range of the random code regenerated when the first earphone enters the pairing mode, for example, the random code carried in the bluetooth broadcast sent after entering the pairing mode is set to 0, and the value range of the random code generated each time is 1-255. When the user terminal receives the Bluetooth broadcast and detects that the connection mark carried in the Bluetooth broadcast is a first preset value, the user terminal can further detect whether the random code carried by the Bluetooth broadcast is a default value or not; if the first earphone is the default value, determining that the first earphone is the Bluetooth broadcast sent after entering the pairing mode, and at the moment, carrying out popup prompt by the user terminal; if the value is not the default value, the value of the connection flag carried by the first earphone or the value of the random code may be wrong, and at this time, whether the first earphone is a bluetooth broadcast transmitted after the pairing mode or a bluetooth broadcast transmitted when the cover is opened and connected back cannot be determined.
Further, based on the first, second and/or third embodiments described above, a fourth embodiment of the pop-up window function control method of the present invention is provided. Referring to fig. 2, fig. 2 is a flowchart of a fourth embodiment of a pop-up window function control method according to the present invention. In this embodiment, the method is applied to a user terminal, and the method includes the following steps:
step A10, after Bluetooth connection is established with a first earphone, a random code received from the first earphone is stored, wherein when the first earphone enters a pairing mode, the random code in the first earphone is reset, and after Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the user terminal;
step A20, when a Bluetooth broadcast sent by the first earphone is received, if a random code is extracted from the received Bluetooth broadcast, comparing the extracted random code with a random code currently stored by the user terminal, wherein when the first earphone detects an uncovering event of an earphone box, the random code currently set in the first earphone is carried in the Bluetooth broadcast for broadcasting;
and step A30, if the extracted random code is consistent with the currently stored random code, performing popup prompt.
The specific implementation of the steps A10-A30 can refer to the specific implementation of the steps S10-S30 in the first embodiment, and will not be described herein.
Further, in an embodiment, after the step a20, the method further includes:
and step A40, if the extracted random code is inconsistent with the currently stored random code, not performing popup prompt.
The specific implementation of step a40 may refer to the specific implementation of step S30 in the above first embodiment, and will not be described herein.
Further, in an embodiment, if the random code is extracted from the received bluetooth broadcast in the step a20, before the step of comparing the extracted random code with the random code currently stored in the user terminal, the method further includes:
step A50, when a Bluetooth broadcast sent by the first earphone is received, if a connection mark is extracted from the received Bluetooth broadcast, detecting the value of the extracted connection mark, wherein when the first earphone detects an uncovering event of an earphone box, a random code currently set in the first earphone and the connection mark set as a second preset value are carried in the Bluetooth broadcast for broadcasting;
and step A60, if the extracted connection mark is the second preset value, executing the step of comparing the extracted random code with the random code currently stored by the user terminal if the random code is extracted from the received Bluetooth broadcast.
The specific implementation of step a50-a60 can refer to the specific implementation of step S301 in the above first embodiment, and will not be described herein.
Further, in an embodiment, after the step of detecting the value of the extracted connection flag in the step a50, the method further includes:
and step A70, if the extracted connection mark is a first preset value, performing popup prompt, wherein after the first earphone enters a pairing mode, the connection mark set as the first preset value is carried in Bluetooth broadcasting.
The specific implementation of step a70 may refer to the specific implementation of step S50 in the above-mentioned first embodiment, and will not be described herein.
Further, based on the first, second, third and/or fourth embodiments described above, a fifth embodiment of the pop-up window function control method of the present invention is provided. In this embodiment, the method is applied to a second earphone, and the method includes the steps of:
step B10, when the second earphone is used as an auxiliary earphone, receiving a random code sent by a first earphone used as a main earphone, and setting the random code in the second earphone as the random code received from the first earphone, wherein when the first earphone enters a pairing mode, resetting the random code in the first earphone, and sending the reset random code to the second earphone, and after Bluetooth connection is established between the first earphone and a user terminal, sending the random code currently set in the first earphone to the connected user terminal so as to enable the user terminal to save the received random code;
And B20, carrying a random code currently set in the second earphone in Bluetooth broadcasting for broadcasting when the second earphone is used as a main earphone to detect an uncovering event of the earphone box, so that a user terminal receiving the Bluetooth broadcasting carries out popup prompt when the random code carried in the broadcasting is compared with the random code currently stored.
The specific implementation of steps B10-B20 can refer to the specific implementation of steps S10-S30 in the first embodiment and step S40 in the second embodiment, and will not be described herein.
In addition, the embodiment of the invention also provides a popup window function control device, which is deployed on a first earphone and comprises:
the setting module is used for resetting the random code in the first earphone when the pairing mode is entered;
the sending module is used for sending the random code currently set in the first earphone to the connected user terminal after the Bluetooth connection is established with the user terminal so that the user terminal can store the received random code;
and the broadcasting module is used for carrying the random code currently set in the first earphone to broadcast in the Bluetooth broadcast when the uncovering event of the earphone box is detected, so that the user terminal receiving the Bluetooth broadcast can carry out popup prompt when the random code carried in the broadcast is compared with the random code currently stored.
Further, the sending module is further configured to:
and sending the reset random code to a second earphone serving as a pair of earphones, so that the second earphone resets the random code in the second earphone to the random code received from the first earphone, and when the second earphone serves as a main earphone to detect the uncovering event of the earphone box, the random code currently set in the second earphone is carried in Bluetooth broadcasting.
Further, the apparatus further comprises:
the broadcasting module is used for carrying a connection mark set to a first preset value in the Bluetooth broadcast after entering the pairing mode so that the user terminal carries out popup prompt when detecting that the connection mark carried by the received Bluetooth broadcast is the first preset value;
the broadcast module is further configured to:
and when the uncovering event of the earphone box is detected, carrying a random code currently set in the first earphone and a connection mark set to a second preset value in Bluetooth broadcasting for broadcasting, so that when the user terminal detects that the connection mark carried by the received Bluetooth broadcasting is the second preset value, detecting whether the random code carried by the received Bluetooth broadcasting is consistent with the currently stored random code.
Further, the apparatus further comprises:
the emptying module is used for emptying the Bluetooth pairing list in the first earphone when entering the pairing mode;
the adding module is used for adding the connected user terminal to the Bluetooth pairing list in the first earphone after the Bluetooth connection is established with the user terminal;
the first detection module is used for detecting whether a current Bluetooth pairing list of the first earphone is empty or not when an uncovering event of the earphone box is detected;
and the broadcasting module is further configured to execute the operation of broadcasting the random code currently set in the first earphone in bluetooth broadcasting if the current bluetooth pairing list of the first earphone is not empty.
In addition, the embodiment of the invention also provides a popup window function control device, which is deployed on a second earphone and comprises:
the receiving module is used for receiving a random code sent by a first earphone serving as a main earphone when the second earphone serves as an auxiliary earphone, setting the random code in the second earphone as the random code received from the first earphone, resetting the random code in the first earphone when the first earphone enters a pairing mode, sending the reset random code to the second earphone, and sending the random code currently set in the first earphone to a connected user terminal after Bluetooth connection is established between the first earphone and the user terminal so as to enable the user terminal to store the received random code;
And the broadcasting module is used for carrying the random code currently set in the second earphone to broadcast in Bluetooth broadcasting when the second earphone is used as the main earphone to detect the uncovering event of the earphone box, so that a user terminal receiving the Bluetooth broadcasting carries out popup prompt when the random code carried in the broadcasting is compared with the random code currently stored.
In addition, the embodiment of the invention also provides a popup window function control device, which is deployed in a user terminal and comprises:
the storage module is used for storing the random code received from the first earphone after the Bluetooth connection is established with the first earphone, wherein the first earphone resets the random code in the first earphone when entering a pairing mode, and sends the random code currently set in the first earphone to the user terminal after the Bluetooth connection is established with the user terminal;
the comparison module is used for comparing the extracted random code with the random code currently stored in the user terminal if the random code is extracted from the received Bluetooth broadcast when the Bluetooth broadcast sent by the first earphone is received, wherein the random code currently set in the first earphone is carried in the Bluetooth broadcast for broadcasting when the first earphone detects the uncovering event of the earphone box;
And the prompt module is used for carrying out popup window prompt if the extracted random code is consistent with the currently stored random code.
Further, the prompting module is further configured to:
if the extracted random code is inconsistent with the currently stored random code, the popup prompt is not carried out.
Further, the apparatus further comprises:
the second detection module is used for detecting the value of the extracted connection mark if the connection mark is extracted from the received Bluetooth broadcast when the Bluetooth broadcast sent by the first earphone is received, wherein the random code currently set in the first earphone and the connection mark set as a second preset value are carried in the Bluetooth broadcast for broadcasting when the first earphone detects the uncovering event of the earphone box;
and the comparison module is further configured to perform the operation of comparing the extracted random code with the random code currently stored in the user terminal if the extracted connection flag is the second preset value and the random code is extracted from the received bluetooth broadcast.
Further, the prompting module is further configured to:
and if the extracted connection mark is a first preset value, carrying out popup prompt, wherein after the first earphone enters a pairing mode, the connection mark set as the first preset value is carried in Bluetooth broadcasting.
The expansion content of the specific implementation mode of the popup window function control device is basically the same as that of each embodiment of the popup window function control method, and no description is given here.
In an embodiment, the pop-up window function control device of the present invention may be a first earphone, where the first earphone may include a structural housing, a communication module, a main control module, a speaker, a microphone, a memory, and the like. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, sensors and other active or passive devices required by the system and the like (can be replaced, deleted or added according to actual functions) so as to realize the functions of receiving and playing wireless audio. The first earphone can establish communication connection with the user terminal through the communication module. The memory of the first earphone may store a pop-up window function control program, and the microprocessor may be configured to call the pop-up window function control program stored in the memory and perform the following operations:
resetting a random code in the first earphone when entering a pairing mode;
after Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the connected user terminal so that the user terminal can store the received random code;
When the uncovering event of the earphone box is detected, the random code currently set in the first earphone is carried in Bluetooth broadcasting to be broadcasted, so that a user terminal receiving the Bluetooth broadcasting can carry out popup prompt when the random code carried in the broadcasting is compared with the random code currently stored.
Further, after the operation of resetting the random code in the first earphone when the pairing mode is entered, the microprocessor may be further configured to call a pop-window function control program stored in the memory, to perform the following operations:
and sending the reset random code to a second earphone serving as a pair of earphones, so that the second earphone resets the random code in the second earphone to the random code received from the first earphone, and when the second earphone serves as a main earphone to detect the uncovering event of the earphone box, the random code currently set in the second earphone is carried in Bluetooth broadcasting.
Further, the microprocessor may be further configured to call a pop-up window function control program stored in the memory, to perform the following operations:
when the pairing mode is entered, carrying a connection mark set to a first preset value in the Bluetooth broadcast, so that the user terminal carries out popup prompt when detecting that the connection mark carried by the received Bluetooth broadcast is the first preset value;
The operation of carrying the random code currently set in the first earphone to be broadcasted in the bluetooth broadcast when the cover opening event of the earphone box is detected comprises the following steps:
and when the uncovering event of the earphone box is detected, carrying a random code currently set in the first earphone and a connection mark set to a second preset value in Bluetooth broadcasting for broadcasting, so that when the user terminal detects that the connection mark carried by the received Bluetooth broadcasting is the second preset value, detecting whether the random code carried by the received Bluetooth broadcasting is consistent with the currently stored random code.
Further, the microprocessor may be further configured to call a pop-up window function control program stored in the memory, to perform the following operations:
when a pairing mode is entered, a Bluetooth pairing list in the first earphone is emptied;
after establishing Bluetooth connection with a user terminal, adding the connected user terminal to a Bluetooth pairing list in the first earphone;
before the operation of broadcasting the random code currently set in the first earphone in the bluetooth broadcast, the microprocessor may be further configured to call a pop-window function control program stored in the memory, to perform the following operations:
Detecting whether a current Bluetooth pairing list of the first earphone is empty or not when detecting an uncovering event of the earphone box;
and if the current Bluetooth pairing list of the first earphone is not empty, executing the operation of carrying the random code currently set in the first earphone to be broadcasted in Bluetooth broadcasting.
The pop-up window function control device can be a second earphone, and the second earphone can comprise a structural shell, a communication module, a main control module, a loudspeaker, a microphone, a memory and the like. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, sensors and other active or passive devices required by the system and the like (can be replaced, deleted or added according to actual functions) so as to realize the functions of receiving and playing wireless audio. The second earphone can establish communication connection with the user terminal through the communication module. The memory of the second earphone may store a pop-up window function control program, and the microprocessor may be configured to call the pop-up window function control program stored in the memory and perform the following operations:
when the second earphone is used as an auxiliary earphone, receiving a random code sent by a first earphone used as a main earphone, and setting the random code in the second earphone as the random code received from the first earphone, wherein when the first earphone enters a pairing mode, resetting the random code in the first earphone, and sending the reset random code to the second earphone, and after the first earphone is connected with a user terminal through Bluetooth, sending the random code currently set in the first earphone to the connected user terminal so as to enable the user terminal to store the received random code;
When the second earphone is used as the main earphone and detects the uncovering event of the earphone box, the random code currently set in the second earphone is carried in the Bluetooth broadcast for broadcasting, so that the user terminal receiving the Bluetooth broadcast carries out popup prompt when the random code carried in the broadcast is compared with the random code currently stored.
In an embodiment, the pop-up window function control device of the present invention may be a user terminal, and the user terminal may be a smart phone, a personal computer, a server, or the like, which is not limited herein. In this embodiment, the popup function control device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002, a communication module 1006. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
An operating system, a network communication module, a user interface module, and a pop-up function control program may be included in the memory 1005, which is a computer storage medium. An operating system is a program that manages and controls the hardware and software resources of the device, supporting the execution of a control program for the pop-up window function, as well as other software or programs. The user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for a server to establish a communication connection. The pop-up function control device may establish a communication connection with the first earpiece and the second earpiece through the communication module 1006, and the processor 1001 may be configured to call the pop-up function control program stored in the memory 1005 and perform the following operations:
when a Bluetooth connection is established with a first earphone, the random code received from the first earphone is stored, wherein when the first earphone enters a pairing mode, the random code in the first earphone is reset, and after the Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the user terminal;
when a Bluetooth broadcast sent by the first earphone is received, if a random code is extracted from the received Bluetooth broadcast, comparing the extracted random code with a random code currently stored in the user terminal, wherein when the first earphone detects an uncovering event of an earphone box, the random code currently set in the first earphone is carried in the Bluetooth broadcast for broadcasting;
And if the extracted random code is consistent with the currently stored random code, performing popup prompt.
Further, after the operation of comparing the extracted random code with the random code currently stored in the ue if the random code is extracted from the received bluetooth broadcast, the processor 1001 may be further configured to invoke the pop-window function control program stored in the memory 1005 to perform the following operations:
if the extracted random code is inconsistent with the currently stored random code, the popup prompt is not carried out.
Further, before the operation of comparing the extracted random code with the random code currently stored in the ue if the random code is extracted from the received bluetooth broadcast, the processor 1001 may be further configured to invoke a pop-window function control program stored in the memory 1005 to perform the following operations:
when a Bluetooth broadcast sent by the first earphone is received, if a connection mark is extracted from the received Bluetooth broadcast, detecting the value of the extracted connection mark, wherein when the first earphone detects an uncovering event of an earphone box, a random code currently set in the first earphone and the connection mark set as a second preset value are carried in the Bluetooth broadcast for broadcasting;
And if the extracted connection mark is the second preset value, executing the operation of comparing the extracted random code with the random code currently stored by the user terminal if the random code is extracted from the received Bluetooth broadcast.
Further, after the operation of detecting the value of the extracted connection flag, the processor 1001 may be further configured to call a pop-window function control program stored in the memory 1005 to perform the following operations:
and if the extracted connection mark is a first preset value, carrying out popup prompt, wherein after the first earphone enters a pairing mode, the connection mark set as the first preset value is carried in Bluetooth broadcasting.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the storage medium is stored with a popup function control program, and the popup function control program realizes the steps of the popup function control method when being executed by a processor.
Embodiments of the popup function control apparatus and the computer readable storage medium of the present invention may refer to embodiments of the popup function control method of the present invention, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A pop-up window function control method, wherein the method is applied to a first earphone, and the method comprises the following steps:
resetting a random code in the first earphone when entering a pairing mode;
after Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the connected user terminal so that the user terminal can store the received random code;
when the uncovering event of the earphone box is detected, the random code currently set in the first earphone is carried in Bluetooth broadcasting to be broadcasted, so that a user terminal receiving the Bluetooth broadcasting can carry out popup prompt when the random code carried in the broadcasting is compared with the random code currently stored.
2. The popup function control method of claim 1, further comprising, after the step of resetting the random code in the first earphone when the pairing mode is entered:
and sending the reset random code to a second earphone serving as a pair of earphones, so that the second earphone resets the random code in the second earphone to the random code received from the first earphone, and when the second earphone serves as a main earphone to detect the uncovering event of the earphone box, the random code currently set in the second earphone is carried in Bluetooth broadcasting.
3. The popup function control method of claim 1, the method further comprising:
when the pairing mode is entered, carrying a connection mark set to a first preset value in the Bluetooth broadcast, so that the user terminal carries out popup prompt when detecting that the connection mark carried by the received Bluetooth broadcast is the first preset value;
when the uncovering event of the earphone box is detected, the step of carrying the random code currently set in the first earphone to be broadcasted in Bluetooth broadcasting comprises the following steps:
and when the uncovering event of the earphone box is detected, carrying a random code currently set in the first earphone and a connection mark set to a second preset value in Bluetooth broadcasting for broadcasting, so that when the user terminal detects that the connection mark carried by the received Bluetooth broadcasting is the second preset value, detecting whether the random code carried by the received Bluetooth broadcasting is consistent with the currently stored random code.
4. A method of controlling a pop-up window function as claimed in any one of claims 1 to 3, wherein the method further comprises:
when a pairing mode is entered, a Bluetooth pairing list in the first earphone is emptied;
after establishing Bluetooth connection with a user terminal, adding the connected user terminal to a Bluetooth pairing list in the first earphone;
Before the step of broadcasting the random code currently set in the first earphone in the bluetooth broadcast, the method further includes:
detecting whether a current Bluetooth pairing list of the first earphone is empty or not when detecting an uncovering event of the earphone box;
and if the current Bluetooth pairing list of the first earphone is not empty, executing the step of broadcasting the random code currently set in the first earphone in Bluetooth broadcasting.
5. A pop-up window function control method, wherein the method is applied to a second earphone, and the method comprises the following steps:
when the second earphone is used as an auxiliary earphone, receiving a random code sent by a first earphone used as a main earphone, and setting the random code in the second earphone as the random code received from the first earphone, wherein when the first earphone enters a pairing mode, resetting the random code in the first earphone, and sending the reset random code to the second earphone, and after the first earphone is connected with a user terminal through Bluetooth, sending the random code currently set in the first earphone to the connected user terminal so as to enable the user terminal to store the received random code;
When the second earphone is used as the main earphone and detects the uncovering event of the earphone box, the random code currently set in the second earphone is carried in the Bluetooth broadcast for broadcasting, so that the user terminal receiving the Bluetooth broadcast carries out popup prompt when the random code carried in the broadcast is compared with the random code currently stored.
6. A popup function control method, wherein the method is applied to a user terminal, and the method comprises the following steps:
when a Bluetooth connection is established with a first earphone, the random code received from the first earphone is stored, wherein when the first earphone enters a pairing mode, the random code in the first earphone is reset, and after the Bluetooth connection is established with the user terminal, the random code currently set in the first earphone is sent to the user terminal;
when a Bluetooth broadcast sent by the first earphone is received, if a random code is extracted from the received Bluetooth broadcast, comparing the extracted random code with a random code currently stored in the user terminal, wherein when the first earphone detects an uncovering event of an earphone box, the random code currently set in the first earphone is carried in the Bluetooth broadcast for broadcasting;
And if the extracted random code is consistent with the currently stored random code, performing popup prompt.
7. The popup function control method according to claim 6, wherein after the step of comparing the extracted random code with the random code currently stored in the ue if the random code is extracted from the received bluetooth broadcast, the method further comprises:
if the extracted random code is inconsistent with the currently stored random code, the popup prompt is not carried out.
8. The popup function control method according to any one of claims 6 to 7, further comprising, before the step of comparing the extracted random code with the random code currently stored in the user terminal, if the random code is extracted from the received bluetooth broadcast:
when a Bluetooth broadcast sent by the first earphone is received, if a connection mark is extracted from the received Bluetooth broadcast, detecting the value of the extracted connection mark, wherein when the first earphone detects an uncovering event of an earphone box, a random code currently set in the first earphone and the connection mark set as a second preset value are carried in the Bluetooth broadcast for broadcasting;
And if the extracted connection mark is the second preset value, executing the step of comparing the extracted random code with the random code currently stored by the user terminal if the random code is extracted from the received Bluetooth broadcast.
9. A popup function control device characterized in that the popup function control device comprises: memory, a processor and a popup function control program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the popup function control method of any of claims 1 to 8.
10. A computer-readable storage medium, wherein a popup function control program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the popup function control method according to any one of claims 1 to 8.
CN202210192673.6A 2022-02-28 2022-02-28 Popup function control method, popup function control device and computer readable storage medium Active CN114500730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210192673.6A CN114500730B (en) 2022-02-28 2022-02-28 Popup function control method, popup function control device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210192673.6A CN114500730B (en) 2022-02-28 2022-02-28 Popup function control method, popup function control device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114500730A CN114500730A (en) 2022-05-13
CN114500730B true CN114500730B (en) 2023-08-29

Family

ID=81485083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210192673.6A Active CN114500730B (en) 2022-02-28 2022-02-28 Popup function control method, popup function control device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114500730B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115087134B (en) * 2022-07-20 2023-01-13 荣耀终端有限公司 Bluetooth connection method and electronic equipment
CN117119614A (en) * 2023-01-28 2023-11-24 荣耀终端有限公司 Bluetooth connection method, device and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103987038A (en) * 2013-02-07 2014-08-13 深圳市快播科技有限公司 Radio communication method and system
CN104469980A (en) * 2014-11-21 2015-03-25 广东欧珀移动通信有限公司 Bluetooth connecting method and Bluetooth equipment
CN109495850A (en) * 2018-11-01 2019-03-19 Oppo广东移动通信有限公司 Connection method, device and the Earphone box of earphone and terminal
CN112333332A (en) * 2020-10-27 2021-02-05 维沃移动通信有限公司 Prompt message display method and device and electronic equipment
CN112449332A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Bluetooth connection method and electronic equipment
WO2021180083A1 (en) * 2020-03-10 2021-09-16 华为技术有限公司 Bluetooth communication system and wireless communication system
CN113453381A (en) * 2021-07-08 2021-09-28 Oppo广东移动通信有限公司 Device pairing method and related product
CN113518336A (en) * 2021-07-16 2021-10-19 Oppo广东移动通信有限公司 Bluetooth connection prompting method, device, terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103987038A (en) * 2013-02-07 2014-08-13 深圳市快播科技有限公司 Radio communication method and system
CN104469980A (en) * 2014-11-21 2015-03-25 广东欧珀移动通信有限公司 Bluetooth connecting method and Bluetooth equipment
CN109495850A (en) * 2018-11-01 2019-03-19 Oppo广东移动通信有限公司 Connection method, device and the Earphone box of earphone and terminal
CN112449332A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Bluetooth connection method and electronic equipment
WO2021180083A1 (en) * 2020-03-10 2021-09-16 华为技术有限公司 Bluetooth communication system and wireless communication system
CN112333332A (en) * 2020-10-27 2021-02-05 维沃移动通信有限公司 Prompt message display method and device and electronic equipment
CN113453381A (en) * 2021-07-08 2021-09-28 Oppo广东移动通信有限公司 Device pairing method and related product
CN113518336A (en) * 2021-07-16 2021-10-19 Oppo广东移动通信有限公司 Bluetooth connection prompting method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN114500730A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN114500730B (en) Popup function control method, popup function control device and computer readable storage medium
CN106791892B (en) Method, device and system for live broadcasting of wheelhouses
CN110996405B (en) Earphone connection method, terminal, earphone box and computer readable storage medium
CN106851654B (en) Pseudo base station identification method, pseudo base station identification device and terminal
CN104320774B (en) Upgrading method, device and equipment
CN111447602B (en) Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN109600740B (en) File downloading method and device and computer readable storage medium
CN111131966B (en) Mode control method, earphone system, and computer-readable storage medium
CN108024128B (en) Control method and device for Bluetooth music playing, terminal equipment and storage medium
CN108650699B (en) Network searching method of mobile terminal and mobile terminal
CN111462746B (en) TWS earphone-based control method, system, device and equipment
CN111131951A (en) Wireless earphone positioning method, wireless earphone, electronic equipment and storage medium
CN110933738A (en) Mode switching method and system of wireless headset and TWS headset system
CN102811274A (en) Mobile phone and control method thereof
CN111586662A (en) Sharing method and audio output device
CN110944313A (en) Bluetooth connection method, device, storage medium and terminal
US10057756B2 (en) Terminal detection method and communication device
KR20210049585A (en) Electronic device for providing communication service and method thereof
CN104102717B (en) Method and system for exclusively playing music on terminal
CN113993076A (en) Earphone positioning method and device, earphone equipment and storage medium
CN105657532A (en) Start-up method and device for smart television wireless network
WO2023279928A1 (en) Signal transmission method and apparatus, information prompt method and apparatus, and electronic device
JP5246029B2 (en) Wireless communication system
CN110582079A (en) Bluetooth connection setting method and device, computer readable storage medium and terminal
CN111726451A (en) Wearable device, mobile terminal, mode entering method of wearable device and mobile terminal, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant