CN113993076A - Earphone positioning method and device, earphone equipment and storage medium - Google Patents

Earphone positioning method and device, earphone equipment and storage medium Download PDF

Info

Publication number
CN113993076A
CN113993076A CN202111395096.2A CN202111395096A CN113993076A CN 113993076 A CN113993076 A CN 113993076A CN 202111395096 A CN202111395096 A CN 202111395096A CN 113993076 A CN113993076 A CN 113993076A
Authority
CN
China
Prior art keywords
earphone
equipment
frequently
address information
headset
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
CN202111395096.2A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111395096.2A priority Critical patent/CN113993076A/en
Publication of CN113993076A publication Critical patent/CN113993076A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for positioning an earphone, earphone equipment and a storage medium, wherein the method comprises the following steps: detecting whether the earphone equipment meets any target condition, wherein the target condition comprises that the electric quantity value of the earphone equipment is smaller than a preset electric quantity threshold value and/or the state duration of the earphone equipment without establishing Bluetooth connection is longer than a preset duration; if the earphone equipment meets any target condition, acquiring communication address information of frequently-connected equipment set in the earphone equipment; and sending the current position information of the earphone equipment to the frequently-connected equipment corresponding to the communication address information. According to the invention, the prevention measures are actively made in advance from the earphone device end, so that the earphone device loss caused by the fact that the user cannot find the earphone device is avoided, and the experience of the user in using the earphone device is improved.

Description

Earphone positioning method and device, earphone equipment and storage medium
Technical Field
The present invention relates to the field of earphone technologies, and in particular, to an earphone positioning method and apparatus, an earphone device, and a storage medium.
Background
With the development and application of technologies such as high fidelity, stereo dual-channel, noise reduction, true wireless and the like, the wireless earphones are widely used. At present, the situation that a user often finds the wireless earphone everywhere and cannot find the wireless earphone when the user wants to use the wireless earphone again after the user places the wireless earphone in a certain place unintentionally occurs, and the experience of the user in using the wireless earphone is influenced.
Disclosure of Invention
The invention mainly aims to provide an earphone positioning method, an earphone positioning device, earphone equipment and a storage medium, and aims to solve the technical problem that a user cannot find a wireless earphone when needing to use the wireless earphone, so that the user experience is influenced.
In order to achieve the above object, the present invention provides an earphone positioning method, which is applied to an earphone device, and includes the following steps:
detecting whether the earphone equipment meets any target condition, wherein the target condition comprises that the electric quantity value of the earphone equipment is smaller than a preset electric quantity threshold value and/or the state duration of the earphone equipment without establishing Bluetooth connection is longer than a preset duration;
if the earphone equipment meets any target condition, communication address information of normally connected equipment set in the earphone equipment is acquired;
and sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
Optionally, after the step of obtaining the communication address information of the frequently-connected device set in the headset device if the headset device meets any of the target conditions, the method further includes:
extracting the Bluetooth connection identification of the normally connected equipment from the communication address information;
starting a Bluetooth function and requesting to establish Bluetooth communication connection with the normally connected equipment according to the Bluetooth connection identifier;
and if the Bluetooth communication connection with the normally-connected equipment is successful, executing the step of sending the current position information of the earphone equipment to the normally-connected equipment corresponding to the communication address information.
Optionally, after the step of starting the bluetooth function and requesting to establish a bluetooth communication connection with the frequently-connected device according to the bluetooth connection identifier, the method further includes:
if the Bluetooth communication connection with the frequently-connected equipment fails, extracting WiFi hotspot information of the frequently-connected equipment from the communication address information;
starting a WiFi function and requesting to establish WiFi communication connection with the normally connected equipment according to the WiFi hotspot information;
and if the WiFi communication connection with the frequently-connected equipment is successfully established, executing the step of sending the current position information of the earphone equipment to the frequently-connected equipment corresponding to the communication address information.
Optionally, after the step of starting the WiFi function and requesting to establish a WiFi communication connection with the frequently connected device according to the WiFi hotspot information, the method further includes:
and if the WiFi communication connection established with the frequently-connected equipment fails, outputting preset prompt information.
Optionally, before the step of sending the current location information of the headset device to the frequently-connected device corresponding to the communication address information, the method further includes:
if the earphone equipment meets any target condition, acquiring the current position information of the earphone equipment;
detecting whether the current position information is the same as the position information which is sent to the frequently-connected equipment by the earphone equipment last time;
and if not, executing the step of sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
Optionally, after the step of detecting whether the current location information is the same as the location information that is sent by the earphone device to the frequently-connected device last time, the method further includes:
and if so, returning to the step of detecting whether the earphone equipment meets the target condition.
Optionally, before the step of acquiring the communication address information of the frequently-connected device set in the headset device if the headset device meets any of the target conditions, the method further includes:
when a frequently-connected device setting instruction sent by a user terminal is received, the user terminal is used as a frequently-connected device, and the communication address information of the user terminal in the frequently-connected device setting instruction is extracted and stored.
In order to achieve the above object, the present invention further provides a headset positioning device disposed on a headset apparatus, the headset positioning device including:
the earphone device comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting whether the earphone device meets any target condition, and the target condition comprises that the electric quantity value of the earphone device is smaller than a preset electric quantity threshold value and/or the state duration of the earphone device without establishing Bluetooth connection is longer than a preset duration;
an obtaining module, configured to obtain communication address information of a frequently connected device set in the headset device if the headset device meets any one of the target conditions;
and the sending module is used for sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
To achieve the above object, the present invention also provides an earphone device, including: a memory, a processor and a headset positioning program stored on the memory and executable on the processor, the headset positioning program when executed by the processor implementing the steps of the headset positioning method as described above.
Furthermore, to achieve the above object, the present invention further provides a computer readable storage medium, which stores a headset positioning program, and when the headset positioning program is executed by a processor, the headset positioning program implements the steps of the headset positioning method as described above.
In the invention, whether any target condition is met is detected through the earphone equipment, the set target condition comprises that the electric quantity of the earphone equipment is smaller than a preset electric quantity threshold value and/or the state duration time of the earphone equipment not establishing Bluetooth connection is longer than a preset time, when the earphone equipment is detected to meet any target condition, the communication address information of common connection equipment set in the earphone equipment is obtained, and the current position information of the earphone equipment is sent to the common connection equipment corresponding to the communication address information, so that when the user does not use the earphone equipment for a long time or the electric quantity of the earphone equipment is too low, the position information can be actively fed back through the earphone equipment, preventive measures are actively taken in advance from the earphone equipment end, the earphone equipment loss caused by the fact that the user cannot find the earphone equipment is avoided, and the experience of the user using the earphone equipment is improved.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a method for positioning an earphone according to the present invention;
FIG. 2 is a schematic diagram of a circuit framework according to an embodiment of the present invention;
fig. 3 is a functional block diagram of a preferred embodiment of the positioning device of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a first embodiment of a method for positioning an earphone according to the present invention.
Embodiments of the present invention provide embodiments of a headset positioning method, and it should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein. The earphone positioning method of the present invention is applied to an earphone device, which may include one or two earphones, and since the earphone positioning methods of the two earphones are the same, for convenience of description, the embodiment is explained by taking an example that the earphone device includes one earphone as a default. In this embodiment, the method for positioning the headset includes:
step S10, detecting whether the earphone device meets any target condition, wherein the target condition comprises that the electric quantity value of the earphone device is smaller than a preset electric quantity threshold value and/or the state duration of the earphone device without establishing Bluetooth connection is longer than a preset duration;
the earphone device can detect whether any target condition is met, wherein the target condition is a condition which is set in the earphone device in advance and needs to actively report the position information to the user terminal, namely, when the target condition is met, the earphone device needs to actively report the position information to the user terminal, so that a user can know the position of the earphone device through the user terminal, and the earphone device is prevented from being lost.
In a specific embodiment, the target condition may include only condition 1, may include only condition 2, and may include both condition 1 and condition 2. If the target condition only comprises condition 1, determining that the target condition is met if condition 1 is met; if the target condition only comprises condition 2, the condition 1 is detected to be met, namely the target condition is considered to be met; if the target conditions include the condition 1 and the condition 2, the headphone apparatus detects whether any one of the condition 1 and the condition 2 is satisfied, and if any one of the conditions is satisfied, the headphone apparatus considers that the target conditions are satisfied. The condition 1 is that the electric quantity value of the earphone device is smaller than a preset electric quantity threshold, and the condition 2 is that the duration of the state that the earphone device does not establish the bluetooth connection is longer than a preset duration. The preset electric quantity threshold and the preset time length can be preset according to experience, or set in the earphone device by a user, or set in the earphone device by the user through a user terminal. When the preset electric quantity threshold value and the preset duration can be set in the user earphone equipment, a setting way can be provided for a user through a voice control function and a virtual or physical key function of the earphone equipment; for example, when a user inputs a "loss prevention function setting" by voice, the headset device outputs "please select a loss prevention function trigger mode", the user can select two trigger modes by voice recording "the electric quantity is too low" and "the connection is not made for a long time", then the headset device outputs voice prompting the user to record a preset electric quantity threshold value and/or a preset duration according to the trigger mode selected by the user, and receives the preset electric quantity threshold value and/or the preset duration recorded by the user through the voice for storage.
In one embodiment, the earphone device may actively detect whether any target condition is met in real time or in a timed manner; the interval duration of the timing detection can be preset according to needs, for example, set to be once every 1 minute; when the target condition includes condition 1, the earphone device actively acquires the battery power to the electricity meter in real time or at regular time; when the target condition includes condition 2, the earphone device actively acquires the connection state of the bluetooth to the bluetooth module in real time or at regular time, and records the duration of the unconnected state of the bluetooth.
In another embodiment, the headset device may passively detect whether any target condition is met; when the target condition comprises a condition 1, reporting when the battery electric quantity value is smaller than a preset electric quantity threshold value by an electric quantity meter of the earphone equipment, and determining that the condition 1 is met when the earphone equipment receives the report of the electric quantity meter; when the target condition includes condition 2, the bluetooth module of the earphone device reports when the duration of the bluetooth unconnected state is longer than the preset duration, and when the earphone device receives the report of the bluetooth module, it is determined that condition 2 is satisfied.
Step S20, if the earphone device meets any of the target conditions, the communication address information of the normally connected device set in the earphone device is obtained;
if the earphone device is detected to meet any target condition, the earphone device can acquire preset communication address information of the frequently-connected equipment. For example, in an embodiment, the headset device may use the user terminal with the largest number of times of establishing bluetooth connection as the normally connected device, and obtain and store the communication address information of the user terminal.
The communication address information includes address information capable of sending a message to a device to which the communication address information corresponds in one or more communication manners. For example, bluetooth connection identification of frequently connected devices, WiFi hotspot information, IP address, number of SIM card, etc. may be included.
Step S30, sending the current location information of the earphone device to the normally connected device corresponding to the communication address information.
After the earphone device acquires the communication address information, the current position information of the earphone device can be sent to the normally connected device corresponding to the communication address information. The earphone device can acquire the current position information through the GPS module. The specific implementation manner of the earphone device sending the location information to the corresponding normally connected device through the communication address information is not limited in this embodiment. For example, in some embodiments, if the communication address information includes address information capable of establishing a communication connection with the corresponding normally-connected device, the headset device may establish a communication connection with the corresponding normally-connected device according to the communication address information and then transmit the location information to the normally-connected device based on the communication connection. In other embodiments, if the communication address information only includes address information capable of sending one-way information to the normally connected device, the headset device may send the location information directly to the normally connected device according to the communication address information, for example, when the communication address information frequently connects to a number of a SIM card in the device, the headset device may send the location information by sending a short message to the number.
In one embodiment, the circuit frame of the headset device implementing the positioning method may be substantially composed of four parts as shown in fig. 2:
1. a battery, generally using a lithium ion battery as a power supply;
2. the electricity meter is used for recording the electricity quantity state of the battery in real time and transmitting the electricity quantity information to the Bluetooth chip in real time through an I2C signal;
3. the GPS module mainly comprises a GPS chip, a radio frequency related circuit matched with the GPS chip and an external antenna, and is mainly used for collecting the current position information of the earphone equipment and selectively transmitting the position information to the normally connected equipment according to a judgment instruction of the Bluetooth chip.
4. And the Bluetooth chip is used for sending an instruction to the GPS chip and commanding the GPS chip to send the position information. In addition, it is connected with the electricity meter, and a storage memory module and various logic circuits can be integrated in the Bluetooth chip.
Further, in an embodiment, based on the circuit framework, the method for positioning an earphone specifically includes:
when the earphone equipment is started to operate, the electricity meter and the GPS chip are in an active state, the electricity quantity state of the earphone equipment is monitored in real time, and current position information is collected. When the Bluetooth chip detects that the unconnected mobile phone equipment exceeds the preset time (for example, 12 hours), the Bluetooth chip sends an instruction to the GPS chip and calls internal memory storage, the communication address information of the frequently-used connected equipment is transmitted to the GPS chip, and the GPS chip is prompted to send the position information of the current earphone equipment to the equipment corresponding to the communication address information. In addition, when the bluetooth chip detects that the battery power is lower than a preset power threshold (for example, 10%), an instruction is sent to the GPS chip to remind the user of sending the location information to the device corresponding to the communication address information.
Further, in an embodiment, before the step S20, the method further includes:
step S40, when a constant connection device setting instruction sent by a user terminal is received, taking the user terminal as a constant connection device, and extracting and storing communication address information of the user terminal in the constant connection device setting instruction.
The communication address information of the frequently connected device may be set by the user terminal. Specifically, a user can establish Bluetooth connection with the earphone device through a user terminal, and trigger the user terminal to send a frequently-connected device setting instruction to the earphone device by operating the user terminal; the instruction carries communication address information of the user terminal, and the communication address information can be input in the user terminal by a user or extracted from the communication module by the user terminal; and after the earphone equipment receives a frequently-connected equipment setting instruction sent by the user terminal, taking the user terminal as frequently-connected equipment, extracting the communication address information of the user terminal in the frequently-connected equipment setting instruction, and storing the communication address information as the communication address information of the frequently-connected equipment.
In this embodiment, whether any target condition is met is detected through the earphone device, the set target condition includes that the electric quantity of the earphone device is smaller than a preset electric quantity threshold value and/or the duration of the state that the earphone device does not establish the bluetooth connection is larger than a preset duration, when it is detected that the earphone device meets any target condition, communication address information of a commonly-used connection device set in the earphone device is obtained, and current position information of the earphone device is sent to the commonly-used connection device corresponding to the communication address information, so that when the user does not use the earphone device for a long time or the electric quantity of the earphone device is too low, the position information can be actively fed back through the earphone device, a preventive measure is actively made in advance from the earphone device end, the earphone device is prevented from being lost due to the fact that the user cannot find the earphone device, and the experience of the user in using the earphone device is improved.
Further, based on the first embodiment, a second embodiment of the earphone positioning method according to the present invention is provided, and in this embodiment, after step S20, the method further includes:
step A10, extracting the Bluetooth connection identification of the frequently-connected equipment from the communication address information;
in this embodiment, when only the bluetooth module is provided in the headset device and no other communication module is provided, the communication address information of the frequently-connected device provided in the headset device may include a bluetooth connection identifier of the frequently-connected device. The bluetooth connection identifier may be any identifier that enables the headset device to distinguish the normally-connected device from other devices when searching for a connectable device to establish a bluetooth connection with the normally-connected device, and may be, for example, a device serial number of the normally-connected device. The earphone device can extract the Bluetooth connection identifier of the frequently-connected device from the communication address information of the frequently-connected device.
Step A20, starting a Bluetooth function and establishing Bluetooth communication connection with the normally connected equipment according to the Bluetooth connection identifier request;
the earphone equipment starts a Bluetooth function, searches for equipment capable of establishing Bluetooth connection, selects the Bluetooth connection identifier from the searched equipment as the equipment of the Bluetooth connection identifier extracted from the communication address information, uses the selected equipment as normally connected equipment, and sends a request for establishing Bluetooth communication connection to the equipment so that the equipment can establish Bluetooth communication connection with the earphone equipment after receiving the request.
It should be noted that, when a user needs to find the earphone device, the bluetooth function of the commonly-used connection device may be turned on, so that the earphone device and the commonly-used connection device establish bluetooth communication connection. If the earphone device does not have the frequently-connected device in the searched devices, the earphone device can determine that the Bluetooth connection between the earphone device and the frequently-connected device fails; this situation illustrates that the user may not be looking for a headset device and therefore not turn on the bluetooth functionality of commonly connected devices. If the earphone device does not receive the reply of the frequently-connected device or receives the reply of refusing to establish the connection sent by the frequently-connected device after sending the request to the frequently-connected device, the earphone device can also determine that the Bluetooth connection with the frequently-connected device fails; also, this situation illustrates that the user may not have a need to find a headset device and therefore does not allow the constantly connected device to establish a bluetooth connection with the headset device.
Step A30, if the Bluetooth communication connection with the normally connected device is successful, executing the step S30.
If the earphone device is successfully connected with the normally-connected device in the Bluetooth communication mode, the earphone device can send current position information of the earphone device to the normally-connected device based on the Bluetooth communication connection, so that a user can know the current position of the earphone device, and the earphone device is prevented from being lost.
Further, in an embodiment, if the bluetooth communication connection between the headset device and the normally connected device fails, the headset device may output a preset prompt message. The output mode of the prompt information is not limited in this embodiment, for example, the user may be prompted by flashing a prompt light in the earphone device, so that the user may find the earphone device by finding the prompt light, which is more convenient for the user to find the earphone device.
Further, in an embodiment, after the step a20, the method further includes:
step A40, if the Bluetooth communication connection with the frequently-connected equipment fails, extracting WiFi hotspot information of the frequently-connected equipment from the communication address information;
when the headset device is further provided with a WiFi module, the communication address information of the frequently-connected device set in the headset device may further include WiFi hotspot information of the frequently-connected device. The WiFi hotspot information may be any information that enables the headset device to distinguish the frequently-connected device from other devices when searching for a connectable WiFi hotspot, so as to establish a WiFi communication connection with the frequently-connected device, and may include, for example, a WiFi hotspot name, a WiFi hotspot password, and the like of the frequently-connected device. The earphone device can extract WiFi hotspot information of the frequently-connected device from the communication address information after the Bluetooth communication connection with the frequently-connected device fails.
Step A50, a WiFi function is started, and WiFi communication connection is established with the normally connected equipment according to the WiFi hotspot information request;
the method comprises the steps that the earphone device starts a WiFi function, WiFi hotspots capable of establishing connection are searched, WiFi hotspots matched with WiFi hotspot information extracted from communication address information are selected from the searched WiFi hotspots, the selected WiFi hotspots are used as hotspots which are frequently started by the connection device, and a request for establishing communication connection is sent to the WiFi hotspots, so that the device can establish WiFi communication connection with the earphone device after receiving the request.
It should be noted that, when a user needs to find the headset device, the WiFi function of the common connection device may be turned on, so that the headset device and the common connection device establish WiFi communication connection. If the devices searched by the earphone device do not have frequently-connected devices, the earphone device can determine that the WiFi connection between the earphone device and the frequently-connected devices fails; this situation illustrates that the user may not be looking for the headset device and therefore not turn on the WiFi functionality of the commonly connected device. If the headset device does not receive a reply of the frequently-connected device or receives a reply of refusing to establish connection sent by the frequently-connected device after sending the request to the frequently-connected device, the headset device can also determine that the WiFi connection with the frequently-connected device fails; again, this scenario illustrates that the user may not have a need to find a headset device, and therefore does not allow the constantly connected device to establish a WiFi connection with the headset device.
Step a60, if the WiFi communication connection is successfully established with the frequently-connected device, the step S30 is executed.
If the WiFi communication connection between the earphone device and the normally connected device is successfully established, the earphone device can send the current position information of the earphone device to the normally connected device based on the WiFi communication connection, so that a user can know the current position of the device, and the earphone device is prevented from being lost.
Further, in an embodiment, after the step a50, the method further includes:
and step A70, if the WiFi communication connection between the normal connection equipment and the normal connection equipment fails to be established, outputting preset prompt information.
If the WiFi communication connection between the earphone device and the normally connected device fails to be established, the earphone device can output a preset prompt message. The output mode of the prompt information is not limited in this embodiment, for example, the user may be prompted by flashing a prompt light in the earphone device, so that the user may find the earphone device by finding the prompt light, which is more convenient for the user to find the earphone device.
Further, in an embodiment, the headset device may also extract WiFi hotspot information in the communication address information, try to establish WiFi communication connection with the frequently-connected device through the WiFi hotspot information, extract a bluetooth connection identifier in the communication address information when the WiFi communication connection with the frequently-connected device fails, and try to establish bluetooth communication connection with the frequently-connected device through the bluetooth connection identifier.
Further, based on the first and/or second embodiments, a third embodiment of the earphone positioning method according to the present invention is provided, where before the step S30, the method further includes:
step B10, if the earphone device meets any of the target conditions, acquiring the current position information of the earphone device;
step B20, detecting whether the current position information is the same as the position information sent by the earphone device to the normally connected device last time;
in order to avoid that the headset device frequently sends the location information to the normally connected device, in this embodiment, when the headset device detects that any target condition is met, the headset device may first obtain the current location information, and detect whether the current location information is the same as the location information that the headset device last sent to the normally connected device. The earphone device can temporarily store the position information after sending the position information to the normally connected device every time so as to be convenient for next calling. To save memory space of the headphone apparatus, the headphone apparatus may save only the position information that was transmitted to the frequently connected apparatus last time.
Step B30, if not, executing the step S30.
If the current position information of the earphone device is different from the position information sent to the normally connected device last time, the position of the earphone device is changed, at this time, the earphone device can send the current position information to the normally connected device corresponding to the communication address information so as to report the latest position information to the normally connected device, and a user can conveniently and accurately find the earphone device according to the latest position information.
If the current position information of the earphone device is the same as the position information sent to the normally connected device last time, it indicates that the position of the earphone device is not changed.
Further, in another embodiment, after the step B20, the method further includes:
and step B40, if yes, returning to execute the step S10.
If the current position information of the earphone device is the same as the position information sent to the frequently-connected device last time, the earphone device may not send the current position information to the frequently-connected device, and return to the step of detecting whether the earphone device meets any target condition, so as to determine whether to send the position information to the frequently-connected device in real time according to the condition of the earphone device.
In addition, an embodiment of the present invention further provides an earphone positioning apparatus, and referring to fig. 3, the apparatus is disposed in an earphone device, and the apparatus includes:
the earphone device comprises a detection module 10, a processing module and a control module, wherein the detection module is used for detecting whether the earphone device meets any target condition, and the target condition comprises that the electric quantity value of the earphone device is smaller than a preset electric quantity threshold value and/or the state duration of the earphone device without establishing Bluetooth connection is longer than a preset duration;
an obtaining module 20, configured to obtain communication address information of a frequently connected device set in the earphone device if the earphone device meets any one of the target conditions;
a sending module 30, configured to send the current location information of the earphone device to the frequently-connected device corresponding to the communication address information.
Further, the apparatus further comprises:
the first extraction module is used for extracting the Bluetooth connection identifier of the normally connected equipment from the communication address information;
the first request module is used for starting a Bluetooth function and requesting to establish Bluetooth communication connection with the normally connected equipment according to the Bluetooth connection identifier;
the sending module 30 is further configured to send current location information of the earphone device to the frequently-connected device corresponding to the communication address information if the bluetooth communication connection with the frequently-connected device is successfully established.
Further, the apparatus further comprises:
the second extraction module is used for extracting WiFi hotspot information of the frequently-connected equipment from the communication address information if the Bluetooth communication connection with the frequently-connected equipment fails to be established;
the second request module is used for starting a WiFi function and requesting to establish WiFi communication connection with the normally connected equipment according to the WiFi hotspot information;
the sending module 30 is further configured to send current location information of the earphone device to the frequently-connected device corresponding to the communication address information if the WiFi communication connection established with the frequently-connected device is successful.
Further, the apparatus further comprises:
and the prompt module is used for outputting preset prompt information if the WiFi communication connection with the frequently-connected equipment fails to be established.
Further, the obtaining module 20 is further configured to obtain current location information of the headset device if the headset device meets any one of the target conditions;
the detection module 10 is further configured to detect whether the current location information is the same as location information that is sent by the earphone device to a frequently connected device last time;
the sending module 30 is further configured to send the current location information of the earphone device to the frequently-connected device corresponding to the communication address information if the current location information of the earphone device is not the same as the current location information of the earphone device.
Further, the detection module 10 is further configured to detect whether the earphone device meets a target condition if the earphone device meets the target condition.
Further, the apparatus further comprises:
and the storage module is used for taking the user terminal as the normally connected equipment when a normally connected equipment setting instruction sent by the user terminal is received, and extracting and storing the communication address information of the user terminal in the normally connected equipment setting instruction.
The expansion content of the specific implementation of the positioning device of the invention is basically the same as that of each embodiment of the positioning method of the earphone, and is not described herein again.
The earphone device comprises a structural shell, a communication module, a main control module (such as a Micro Control Unit (MCU)), a loudspeaker, a call 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, a sensor and other active or passive devices required by the system and the like (which can be replaced, deleted or added according to actual functions), so that the wireless audio receiving and playing functions are realized. The earphone device can establish communication connection with the user terminal and other earphone devices through the communication module. The memory of the headset device may have a headset communication program stored therein, and the microprocessor may be configured to invoke the headset communication program stored in the memory and perform the following operations:
detecting whether the earphone equipment meets any target condition, wherein the target condition comprises that the electric quantity value of the earphone equipment is smaller than a preset electric quantity threshold value and/or the state duration of the earphone equipment without establishing Bluetooth connection is longer than a preset duration;
if the earphone equipment meets any target condition, communication address information of normally connected equipment set in the earphone equipment is acquired;
and sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
Further, after the communication address information of the normally connected device set in the earphone device is acquired if the earphone device satisfies any of the target conditions, the microprocessor may be further configured to call an earphone communication program stored in the memory, and execute the following operations:
extracting the Bluetooth connection identification of the normally connected equipment from the communication address information;
starting a Bluetooth function and requesting to establish Bluetooth communication connection with the normally connected equipment according to the Bluetooth connection identifier;
and if the Bluetooth communication connection with the normally-connected equipment is successfully established, executing the operation of sending the current position information of the earphone equipment to the normally-connected equipment corresponding to the communication address information.
Further, after the bluetooth function is turned on and the bluetooth communication connection with the normally connected device is requested according to the bluetooth connection identifier, the microprocessor may be further configured to call an earphone communication program stored in the memory, and perform the following operations:
if the Bluetooth communication connection with the frequently-connected equipment fails, extracting WiFi hotspot information of the frequently-connected equipment from the communication address information;
starting a WiFi function and requesting to establish WiFi communication connection with the normally connected equipment according to the WiFi hotspot information;
and if the WiFi communication connection with the normally-connected equipment is successfully established, executing the operation of sending the current position information of the earphone equipment to the normally-connected equipment corresponding to the communication address information.
Further, after the operation of starting the WiFi function and requesting to establish WiFi communication connection with the frequently connected device according to the WiFi hotspot information, the microprocessor may be further configured to call an earphone communication program stored in the memory, and execute the following operations:
and if the WiFi communication connection established with the frequently-connected equipment fails, outputting preset prompt information.
Further, before the operation of sending the current position information of the headset device to the normally connected device corresponding to the communication address information, the microprocessor may be further configured to call a headset communication program stored in the memory, and perform the following operations:
if the earphone equipment meets any target condition, acquiring the current position information of the earphone equipment;
detecting whether the current position information is the same as the position information which is sent to the frequently-connected equipment by the earphone equipment last time;
and if not, executing the operation of sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
Further, after the operation of detecting whether the current position information is the same as the position information that the earphone device sent to the frequently-connected device last time, the microprocessor may be further configured to call an earphone communication program stored in the memory, and perform the following operations:
and if so, returning to execute the operation of detecting whether the earphone equipment meets the target condition.
Further, before the operation of acquiring the communication address information of the normally connected device set in the headset device if the headset device satisfies any of the target conditions, the microprocessor may be further configured to call a headset communication program stored in the memory, and execute the following operations:
when a frequently-connected device setting instruction sent by a user terminal is received, the user terminal is used as a frequently-connected device, and the communication address information of the user terminal in the frequently-connected device setting instruction is extracted and stored.
The embodiments of the headset device and the computer-readable storage medium of the present invention can refer to the embodiments of the headset positioning method of the present invention, and are not described herein again.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An earphone positioning method is applied to earphone equipment, and comprises the following steps:
detecting whether the earphone equipment meets any target condition, wherein the target condition comprises that the electric quantity value of the earphone equipment is smaller than a preset electric quantity threshold value and/or the state duration of the earphone equipment without establishing Bluetooth connection is longer than a preset duration;
if the earphone equipment meets any target condition, communication address information of normally connected equipment set in the earphone equipment is acquired;
and sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
2. The method for positioning an earphone according to claim 1, wherein after the step of obtaining the communication address information of the normally connected device set in the earphone device if the earphone device satisfies any of the target conditions, the method further comprises:
extracting the Bluetooth connection identification of the normally connected equipment from the communication address information;
starting a Bluetooth function and requesting to establish Bluetooth communication connection with the normally connected equipment according to the Bluetooth connection identifier;
and if the Bluetooth communication connection with the normally-connected equipment is successful, executing the step of sending the current position information of the earphone equipment to the normally-connected equipment corresponding to the communication address information.
3. The method as claimed in claim 2, wherein after the step of turning on the bluetooth function and requesting the bluetooth communication connection with the always-connected device according to the bluetooth connection identifier, the method further comprises:
if the Bluetooth communication connection with the frequently-connected equipment fails, extracting WiFi hotspot information of the frequently-connected equipment from the communication address information;
starting a WiFi function and requesting to establish WiFi communication connection with the normally connected equipment according to the WiFi hotspot information;
and if the WiFi communication connection with the frequently-connected equipment is successfully established, executing the step of sending the current position information of the earphone equipment to the frequently-connected equipment corresponding to the communication address information.
4. The method as claimed in claim 3, wherein after the step of activating the WiFi function and requesting a WiFi communication connection with the always-connected device according to the WiFi hotspot information, the method further comprises:
and if the WiFi communication connection established with the frequently-connected equipment fails, outputting preset prompt information.
5. The method for positioning an earphone according to claim 1, wherein before the step of sending the current position information of the earphone device to the normally-connected device corresponding to the communication address information, the method further comprises:
if the earphone equipment meets any target condition, acquiring the current position information of the earphone equipment;
detecting whether the current position information is the same as the position information which is sent to the frequently-connected equipment by the earphone equipment last time;
and if not, executing the step of sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
6. The headset positioning method according to claim 5, wherein the step of detecting whether the current position information is the same as the position information that the headset device last transmitted to the always-connected device further comprises:
and if so, returning to the step of detecting whether the earphone equipment meets the target condition.
7. The method as claimed in any one of claims 1 to 6, wherein before the step of obtaining the communication address information of the normally connected device set in the headset device if the headset device satisfies any one of the target conditions, the method further comprises:
when a frequently-connected device setting instruction sent by a user terminal is received, the user terminal is used as a frequently-connected device, and the communication address information of the user terminal in the frequently-connected device setting instruction is extracted and stored.
8. A headset positioning device, the headset positioning device being disposed in a headset apparatus, the headset positioning device comprising:
the earphone device comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting whether the earphone device meets any target condition, and the target condition comprises that the electric quantity value of the earphone device is smaller than a preset electric quantity threshold value and/or the state duration of the earphone device without establishing Bluetooth connection is longer than a preset duration;
an obtaining module, configured to obtain communication address information of a frequently connected device set in the headset device if the headset device meets any one of the target conditions;
and the sending module is used for sending the current position information of the earphone equipment to the normally connected equipment corresponding to the communication address information.
9. An earphone device, characterized in that the earphone device comprises: memory, a processor and a headset positioning program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the headset positioning method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a headset positioning program, which when executed by a processor implements the steps of the headset positioning method according to any one of claims 1 to 7.
CN202111395096.2A 2021-11-23 2021-11-23 Earphone positioning method and device, earphone equipment and storage medium Pending CN113993076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111395096.2A CN113993076A (en) 2021-11-23 2021-11-23 Earphone positioning method and device, earphone equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111395096.2A CN113993076A (en) 2021-11-23 2021-11-23 Earphone positioning method and device, earphone equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113993076A true CN113993076A (en) 2022-01-28

Family

ID=79750012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111395096.2A Pending CN113993076A (en) 2021-11-23 2021-11-23 Earphone positioning method and device, earphone equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113993076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499535A (en) * 2022-08-23 2022-12-20 广东以诺通讯有限公司 Bluetooth headset searching method, device, medium, computer equipment and mobile phone equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150078574A1 (en) * 2012-03-29 2015-03-19 Haebora Co., Ltd Headset having mobile communication terminal loss prevention function and headset system having loss prevention function
CN107277657A (en) * 2017-05-18 2017-10-20 深圳市冠旭电子股份有限公司 A kind of earphone method for retrieving, device and earphone
CN108763978A (en) * 2018-05-28 2018-11-06 Oppo广东移动通信有限公司 Information cuing method, device, terminal, earphone and readable storage medium storing program for executing
CN110650408A (en) * 2019-10-29 2020-01-03 歌尔股份有限公司 Earphone, anti-lost method, anti-lost system and computer readable storage medium
CN111063170A (en) * 2019-11-29 2020-04-24 歌尔股份有限公司 TWS earphone loss prevention method, TWS earphone and computer readable storage medium
CN111818165A (en) * 2020-07-09 2020-10-23 深圳市科奈信科技有限公司 Earphone retrieving prompting method and system, electronic equipment and storage medium
CN113068114A (en) * 2019-12-31 2021-07-02 东莞市誉达通信科技有限公司 Wireless earphone anti-lost method and related product

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150078574A1 (en) * 2012-03-29 2015-03-19 Haebora Co., Ltd Headset having mobile communication terminal loss prevention function and headset system having loss prevention function
CN107277657A (en) * 2017-05-18 2017-10-20 深圳市冠旭电子股份有限公司 A kind of earphone method for retrieving, device and earphone
CN108763978A (en) * 2018-05-28 2018-11-06 Oppo广东移动通信有限公司 Information cuing method, device, terminal, earphone and readable storage medium storing program for executing
CN110650408A (en) * 2019-10-29 2020-01-03 歌尔股份有限公司 Earphone, anti-lost method, anti-lost system and computer readable storage medium
CN111063170A (en) * 2019-11-29 2020-04-24 歌尔股份有限公司 TWS earphone loss prevention method, TWS earphone and computer readable storage medium
CN113068114A (en) * 2019-12-31 2021-07-02 东莞市誉达通信科技有限公司 Wireless earphone anti-lost method and related product
CN111818165A (en) * 2020-07-09 2020-10-23 深圳市科奈信科技有限公司 Earphone retrieving prompting method and system, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499535A (en) * 2022-08-23 2022-12-20 广东以诺通讯有限公司 Bluetooth headset searching method, device, medium, computer equipment and mobile phone equipment

Similar Documents

Publication Publication Date Title
CN108476060B (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
KR101820392B1 (en) Method, device and system for establishing data connection
CN106714081B (en) Network connection method and intelligent device
CN106714214B (en) Condition control method, device, user equipment and the base station of user equipment
CN110944406B (en) Link establishment method of sidelink and terminal
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
CN113660650B (en) Method and related device for device reconnection
US11109222B2 (en) Information processing method and device, computer-readable storage medium and electronic device
KR20150065410A (en) Access point connection method of electronic apparatus and electronic appparatus thereof
CN111464994B (en) Method and system for realizing public search of Bluetooth equipment
CN110831227B (en) Random access method, network equipment and terminal
CN107609407A (en) Method and device for protecting information security in user terminal
CN114500730B (en) Popup function control method, popup function control device and computer readable storage medium
CN113993076A (en) Earphone positioning method and device, earphone equipment and storage medium
CN106503023B (en) Method and device for prompting nearby friends
CN108430115B (en) Random access control method and device and mobile terminal
KR102328431B1 (en) Method, device and storage medium for processing paging collision in dual sim card mobile phone
KR20160096646A (en) Method and device for managing blacklist
CN108702422B (en) Incoming call management method and device for one number and multiple terminals, managed equipment and server
CN111757317A (en) Request processing method, related device and system
US20220141734A1 (en) Network switching method
CN107659976B (en) Network access method and related product
CN111858182B (en) Data reading method and device, storage medium and mobile terminal
CN103873682B (en) A kind of information processing method and electronic equipment
CN112291722A (en) Call waiting state setting method, device, 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