CN116634609A - Loss prompting method and device, terminal equipment, earphone equipment and storage medium - Google Patents

Loss prompting method and device, terminal equipment, earphone equipment and storage medium Download PDF

Info

Publication number
CN116634609A
CN116634609A CN202210128439.7A CN202210128439A CN116634609A CN 116634609 A CN116634609 A CN 116634609A CN 202210128439 A CN202210128439 A CN 202210128439A CN 116634609 A CN116634609 A CN 116634609A
Authority
CN
China
Prior art keywords
earphone
state information
equipment
loss
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210128439.7A
Other languages
Chinese (zh)
Inventor
包建全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210128439.7A priority Critical patent/CN116634609A/en
Publication of CN116634609A publication Critical patent/CN116634609A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • 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)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

The method is applied to the terminal equipment, and the terminal equipment and the earphone equipment establish communication connection, and comprises the following steps: under the condition that the earphone equipment generates a connection disconnection event, acquiring target state information corresponding to the earphone equipment, wherein the target state information is used for representing the last equipment state of the earphone equipment before the connection disconnection event; determining a loss state corresponding to the earphone equipment according to the target state information; and when the loss state indicates that the earphone equipment is lost, outputting loss prompt information corresponding to the loss state. By implementing the embodiment of the application, whether the earphone equipment is lost or not can be accurately judged, and the user is prompted to timely find out the condition of the earphone equipment loss, so that the safety and reliability of wearing the earphone equipment by the user are improved.

Description

Loss prompting method and device, terminal equipment, earphone equipment and storage medium
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and apparatus for prompting loss, a terminal device, an earphone device, and a storage medium.
Background
Currently, a user may use an earphone device to connect with a terminal device (such as a smart phone, a tablet computer, an intelligent wearable device, etc.), so as to cooperatively implement multiple functions such as listening to music, watching video (i.e., the earphone device outputs an audio signal corresponding to the video), and audio-video communication. However, in practice, it is found that the earphone device, especially the wireless earphone device, is easy to be lost, and the terminal device side is often not easy to perceive the situation that the earphone device is lost, and it is also difficult to accurately judge whether the earphone device is actually lost, thereby reducing the safety and reliability of wearing the earphone device by the user.
Disclosure of Invention
The embodiment of the application discloses a loss prompting method and device, terminal equipment, earphone equipment and a storage medium, which can accurately judge whether the earphone equipment is lost or not and prompt a user to discover the situation of the loss of the earphone equipment in time, thereby being beneficial to improving the safety and reliability of wearing the earphone equipment by the user.
The first aspect of the embodiment of the application discloses a loss prompting method which is applied to terminal equipment, wherein the terminal equipment and earphone equipment are in communication connection, and the method comprises the following steps:
under the condition that the earphone equipment generates a connection disconnection event, acquiring target state information corresponding to the earphone equipment, wherein the target state information is used for representing the last equipment state of the earphone equipment before the connection disconnection event;
Determining a loss state corresponding to the earphone equipment according to the target state information;
and outputting loss prompt information corresponding to the loss state under the condition that the loss state indicates that the earphone equipment is lost.
The second aspect of the embodiment of the application discloses a loss prompting method, which is applied to earphone equipment, wherein the earphone equipment and terminal equipment are in communication connection, and the method comprises the following steps:
continuously sending real-time state information to the terminal equipment under the condition that the terminal equipment and the earphone equipment are in communication connection, so that when the terminal equipment generates a connection disconnection event, acquiring the state information which is finally sent by the earphone equipment before the connection disconnection event occurs, and taking the state information as target state information corresponding to the earphone equipment;
the target state information is used for determining a loss state corresponding to the earphone device, so that the terminal device outputs loss prompt information corresponding to the loss state when the loss state indicates that the earphone device is lost.
The third aspect of the embodiment of the application discloses a loss prompting device which is applied to terminal equipment, wherein the terminal equipment and earphone equipment are in communication connection, and the loss prompting device comprises:
An information obtaining unit, configured to obtain, when a connection disconnection event occurs in the earphone device, target state information corresponding to the earphone device, where the target state information is used to indicate a last device state of the earphone device before the connection disconnection event occurs;
a state determining unit, configured to determine a loss state corresponding to the earphone device according to the target state information;
and the loss prompting unit is used for outputting loss prompting information corresponding to the loss state under the condition that the loss state indicates that the earphone equipment is lost.
The fourth aspect of the embodiment of the application discloses a loss prompting device, which is applied to earphone equipment, wherein the earphone equipment establishes communication connection with terminal equipment, and the loss prompting device comprises:
an information sending unit, configured to continuously send real-time status information to the terminal device when the terminal device maintains a communication connection with the earphone device, so that when the terminal device generates a connection disconnection event, obtain status information that is sent by the earphone device last before sending the connection disconnection event, as target status information corresponding to the earphone device;
The target state information is used for determining a loss state corresponding to the earphone device, so that the terminal device outputs loss prompt information corresponding to the loss state when the loss state indicates that the earphone device is lost.
The fifth aspect of the embodiment of the application discloses a terminal device, which comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor realizes all or part of the steps in any one of the loss prompting methods disclosed in the first aspect of the embodiment of the application.
A sixth aspect of the present application discloses an earphone device, including a memory and a processor, where the memory stores a computer program, where the computer program, when executed by the processor, causes the processor to implement all or part of the steps in any one of the loss notification methods disclosed in the second aspect of the present application.
A seventh aspect of the embodiments of the present application discloses a computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements all or part of the steps of any one of the loss notification methods disclosed in the first or second aspects of the embodiments of the present application.
Compared with the related art, the embodiment of the application has the following beneficial effects:
the loss prompting method in the embodiment of the application can be applied to the terminal equipment, and the terminal equipment can establish communication connection with the earphone equipment. Under the condition that the connection and disconnection event occurs in the earphone device, the terminal device can acquire target state information corresponding to the earphone device, wherein the target state information can be used for representing the last device state of the earphone device before the connection and disconnection event occurs. On the basis, the terminal equipment can determine the loss state corresponding to the earphone equipment according to the target state information, and output loss prompt information corresponding to the loss state under the condition that the loss state indicates that the earphone equipment is lost. It can be seen that when the connection and disconnection event occurs in the earphone device, the terminal device can accurately judge whether the earphone device is lost according to the last device state of the disconnected earphone device before disconnection, and send corresponding loss prompt information to the user when the earphone device is determined to be lost. The loss prompting mode can comprehensively consider connection and disconnection events of the earphone equipment and changes of states of various equipment of the earphone equipment, improves accuracy of judging whether the earphone equipment is lost by the terminal equipment, is further beneficial to prompting a user to find out the situation that the earphone equipment is lost in time, and simultaneously reduces probability of false prompting as much as possible, so that safety and reliability of wearing the earphone equipment by the user are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings needed in the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic diagram of an application scenario of a loss prompting method disclosed in an embodiment of the present application;
fig. 1B is a schematic diagram of another application scenario of the loss prompting method disclosed in the embodiment of the present application;
fig. 2 is a schematic flow chart of a loss prompting method disclosed in the embodiment of the application;
FIG. 3 is a flow chart of another method for loss notification according to an embodiment of the present application;
FIG. 4 is a flow chart of another method for loss notification according to an embodiment of the present application;
fig. 5 is a schematic diagram of an earphone device in an earphone box according to an embodiment of the present application;
FIG. 6 is a flow chart of another method for loss notification according to an embodiment of the present application;
FIG. 7 is a timing diagram of a loss notification method according to an embodiment of the present application;
FIG. 8 is a timing diagram of another method of loss notification according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a loss notification apparatus according to an embodiment of the present disclosure;
FIG. 10 is a modular schematic diagram of another loss notification apparatus according to an embodiment of the present disclosure;
fig. 11 is a schematic diagram of modularization of a terminal device according to an embodiment of the present application;
fig. 12 is a schematic diagram of a headset device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the terms "comprises" and "comprising," along with any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. In case of no conflict, the embodiments, implementations and related technical features of the present application may be combined with each other and replaced, and the explanations of the different embodiments and implementations may be applied to each other. The term "plurality" in the present application means two or more.
The embodiment of the application discloses a loss prompting method and device, terminal equipment, earphone equipment and a storage medium, which can accurately judge whether the earphone equipment is lost or not and prompt a user to discover the situation of the loss of the earphone equipment in time, thereby being beneficial to improving the safety and reliability of wearing the earphone equipment by the user.
The following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1A and fig. 1B together, fig. 1A is a schematic view of an application scenario of a loss prompting method according to an embodiment of the present application, and fig. 1B is a schematic view of another application scenario of a loss prompting method according to an embodiment of the present application. As shown in fig. 1A, the application scenario may include an earphone device 10 and a terminal device 20, where the earphone device 10 may establish a communication connection with the terminal device 20, so that it may be determined by the terminal device 20 whether the earphone device 10 is lost, and a corresponding prompt may be given to the user when it is determined that the earphone device 10 is lost.
The communication connection may comprise, for example, a bluetooth communication connection, such as a classical bluetooth connection, a BLE (Bluetooth Low Energy ) connection, etc. The classical bluetooth connection refers to a bluetooth connection scheme implemented based on technologies (or modes) such as BR/EDR (Basic Rate/Enhanced Data Rate) and AMP (alternative MAC/PHYs) specified in bluetooth protocols of various versions; the above BLE connection refers to a bluetooth connection scheme implemented based on LE (Low Energy) technology (or mode). In some embodiments, in order to achieve Audio data transmission with larger data traffic on the basis of keeping the power consumption of the device Low, the earphone device 10 may also establish an LE Audio (Low Energy Audio) bluetooth connection with the terminal device 20.
It will be appreciated that the above-mentioned earphone device 10 may be used to establish a communication link with the terminal device 20 based on a bluetooth protocol (e.g. standard bluetooth protocol or proprietary bluetooth protocol), for example, to establish a classical bluetooth connection, and may be considered to include establishing a bluetooth physical link such as ACL (Asynchronous Connection less ) or SCO (Synchronous Connection Oriented, synchronous directional link), or may be considered to include establishing an upper layer protocol connection, for example, A2DP (Advanced Audio Distribution Profile, advanced audio transfer specification) or HFP (Hands Free Profile), which may be specified with reference to the relevant bluetooth protocol.
When the connection disconnection event occurs in the headphone device 10, it can be considered that the communication link between the headphone device 10 and the terminal device 20 is disconnected, and the terminal device 20 can further determine whether the headphone device 10 is lost.
In embodiments of the present application, the earphone device 10 may comprise one or more devices. In some embodiments, as shown in fig. 1A, the headset device 10 may include only a single headset that may establish a communication connection directly with the terminal device 20. In some embodiments, as shown in fig. 1B, the headset device 10 may include a first headset 11 and a second headset 12, and the first headset 11 and the second headset 12 may establish a communication connection. On the basis of this, the connection disconnection event of the earphone device 10 may also include that the communication link between the first earphone 11 and the second earphone 12 is disconnected, and the terminal device 20 may further determine whether the earphone device 10 is lost, i.e. whether the first earphone 11 and/or the second earphone 12 are lost.
In the embodiment of the present application, in the case where the connection disconnection event occurs in the earphone device 10, the terminal device 20 may acquire target state information corresponding to the earphone device 10, where the target state information may be used to indicate the last device state of the earphone device 10 before the connection disconnection event occurs. On the basis of this, the terminal device 20 may determine a loss state corresponding to the headphone device 10 from the target state information, and output loss notification information corresponding to the loss state in the case where the loss state indicates that the headphone device 10 is lost.
By implementing the method, when the earphone device 10 is disconnected, the terminal device 20 can accurately judge whether the earphone device 10 is lost according to the last device state of the disconnected earphone device 10 before disconnection, and send corresponding loss prompt information to the user when the earphone device 10 is determined to be lost. The loss prompting mode can comprehensively consider connection and disconnection events occurring in the earphone device 10 and changes of various device states of the earphone device 10, improves the accuracy of judging whether the earphone device 10 is lost by the terminal device 20, is favorable for prompting a user to find out the situation that the earphone device 10 is lost in time, and simultaneously reduces the probability of false prompting as much as possible, thereby being favorable for improving the safety and reliability of wearing the earphone device 10 by the user.
The above-described earphone device 10 may include various types of bluetooth earphones, and may include TWS (True Wireless Stereo ) earphones, for example. The terminal device 20 may include various devices or systems with bluetooth communication functions, such as a mobile phone, a smart wearable device, a vehicle-mounted terminal, a tablet computer, a PC (Personal Computer, a personal computer), a PDA (Personal Digital Assistant, a personal digital assistant), a smart television, and the like, which are not particularly limited in the embodiment of the present application. It should be noted that, the earphone device 10 shown in fig. 1A and 1B is a bluetooth earphone, and the terminal device 20 is a mobile phone, which is merely an example, and does not constitute a specific limitation on the device types of the earphone device 10 and the terminal device 20 in the embodiment of the present application.
Referring to fig. 2, fig. 2 is a schematic flow chart of a loss prompting method disclosed in an embodiment of the present application, where the method can be applied to the above-mentioned terminal device, and the terminal device can establish a communication connection with an earphone device. As shown in fig. 2, the loss notification method may include the steps of:
202. and under the condition that the connection and disconnection event occurs to the earphone device, acquiring target state information corresponding to the earphone device, wherein the target state information is used for representing the last device state of the earphone device before the connection and disconnection event occurs.
The state information corresponding to the earphone device may include various device states of the earphone device, such as a wearing state (including whether the user wears the earphone device, and may further include a wearing posture, a wearing leakage condition, and the like of the user), power information (including a remaining power of the device, and may further include a power of the device, a remaining use time, and the like), connection information (including a connection state between each earphone device, a connection state between the earphone device and the terminal device, and the like), a relative position with the charging box, and the like. On this basis, if the earphone device generates a connection disconnection event, the last device state of the earphone device before the connection disconnection event occurs may be regarded as target state information corresponding to the earphone device.
In some embodiments, the disconnection event of the earphone device may include disconnection of the communication between the earphone device and the terminal device.
In other embodiments, the headset device may include first and second headset pairs (e.g., left and right headset pairs) that may establish a communication connection, and a disconnection event that occurs with the headset device may include disconnection of the first and second headset pairs.
In the embodiment of the present application, no matter which connection disconnection event occurs in the earphone device, the terminal device may acquire final target state information of the earphone device before the connection disconnection event occurs, and further determine, in a subsequent step, a loss state corresponding to the earphone device according to the target state information. In some embodiments, the terminal device may continuously acquire real-time status information sent by the earphone device when the terminal device maintains a communication connection with the earphone device, and further acquire, when a connection disconnection event occurs in the earphone device, status information sent by the earphone device last before the connection disconnection event occurs, as target status information corresponding to the earphone device.
In some embodiments, since the earphone device continuously transmits the real-time status information, when the earphone device actually generates the connection disconnection event, the terminal device may further directly determine, from the acquired real-time status information, the status information that the earphone device last transmitted before the connection disconnection event occurs, and use the status information as the target status information in the subsequent step of determining whether the earphone device is lost.
Alternatively, the information types of the target state information and the real-time state information may be the same. The information types may include the wearing state, the power information, the connection information, the relative position with the charging box, and other various device states.
It will be appreciated that the real-time status information corresponding to the earphone device may include the device status of the earphone device at various times before the disconnection event occurs, and the target status information refers to the last device status of the earphone device before the disconnection event occurs. In some embodiments, the earphone device may include a single or multiple earphones, and the connection disconnection event of the earphone device may include that the single or multiple earphones are disconnected from the terminal device, and the target state information corresponding to the earphone device may refer to final state information of the single or multiple earphones before the connection disconnection event occurs. In other embodiments, the headset device may include a first headset and a second headset paired with each other, and the disconnection event that occurs with the headset device may include disconnection of one of the first and second headsets (indicated by a "disconnected headset") while the other headset may continue to remain communicatively connected with the terminal device (indicated by a "target headset"). On the basis, the real-time state information corresponding to the earphone device can comprise the real-time state information corresponding to each of the target earphone and the disconnected earphone, and the target state information can only comprise the last state information of the disconnected earphone before the connection disconnection event occurs, so that the terminal device can pertinently determine the lost state corresponding to the disconnected earphone in the subsequent steps according to the target state information.
204. And determining the corresponding lost state of the earphone equipment according to the target state information.
In the embodiment of the application, after the terminal equipment acquires the target state information corresponding to the earphone equipment, the terminal equipment can determine the change of the states of various equipment of the earphone equipment according to the target state information, so as to judge whether the earphone equipment is actually lost.
In some embodiments, the earphone device may include only a single earphone, and in the case that the earphone device is disconnected from the terminal device, if the target state information indicates that the earphone device is still in a wearing state, or is turned off due to too low electric quantity, or is placed in a predictable disconnection scene in the earphone box by a user, the terminal device may determine that the earphone device is not lost; otherwise, the terminal device may determine that the earphone device has been lost.
In other embodiments, the earphone device may include a first earphone and a second earphone, where in a case where the first earphone is disconnected from the second earphone, or where both the first earphone and the second earphone are disconnected from the terminal device, if the target state information indicates that the disconnected earphone device (the first earphone and/or the second earphone) is not in the predictable disconnection scenario, the terminal device may determine that the disconnected earphone device is lost. If the first earphone or the second earphone is in the earphone box, the user may refer to a process of determining whether the earphone device is lost when the earphone device includes only a single earphone.
206. And when the loss state indicates that the earphone equipment is lost, outputting loss prompt information corresponding to the loss state.
In the embodiment of the application, when the terminal equipment determines the corresponding lost state of the earphone equipment and determines that the earphone equipment is lost based on the lost state, the terminal equipment can further output corresponding loss prompt information to remind a user to timely find out the lost state of the earphone equipment, so that the user is prompted to retrieve the lost earphone equipment, and the loss caused by complete loss is avoided.
For example, the loss notification information may include at least one or more of image information, sound information, and vibration information. For example, the terminal device may output on its screen the specific case of loss of the headphone device, including the specific headphone device (e.g., left and/or right ear headphones), the possible loss time and loss orientation, etc. For another example, the terminal device may output the specific situation through a built-in speaker. For another example, the terminal device may also drive its built-in vibration motor to output a vibration signal with a specified frequency, so as to remind the user of noticing that the earphone device is lost.
As an optional implementation manner, for the earphone device including the first earphone and the second earphone, where the loss state indicates that only one of the earphones is lost (i.e. the "disconnected earphone" is lost and the "target earphone" is currently connected to the terminal device in a communication manner), the terminal device may also output corresponding loss prompt information through the target earphone. For example, the loss prompt information at this time may include sound information, for example, the terminal device may send a loss prompt instruction corresponding to the loss state to the target earphone, so that the target earphone may respond to the loss prompt instruction and play corresponding loss prompt voice, prompt sound or music, and so on; for another example, the terminal device may directly send the loss prompting audio data corresponding to the loss state to the target earphone, so that the target earphone may directly play the audio data, and remind the user of noticing that the disconnected earphone is lost.
Therefore, when the connection and disconnection event occurs in the earphone device, the terminal device can accurately judge whether the earphone device is lost according to the last device state of the disconnected earphone device before disconnection, and send corresponding loss prompt information to the user when the earphone device is determined to be lost. The loss prompting mode can comprehensively consider connection and disconnection events of the earphone equipment and changes of states of various equipment of the earphone equipment, improves accuracy of judging whether the earphone equipment is lost by the terminal equipment, is further beneficial to prompting a user to find out the situation that the earphone equipment is lost in time, and simultaneously reduces probability of false prompting as much as possible, so that safety and reliability of wearing the earphone equipment by the user are improved.
Referring to fig. 3, fig. 3 is a flow chart of another loss prompting method disclosed in the embodiment of the present application, where the method can be applied to the above-mentioned terminal device, and the terminal device can establish a communication connection with the earphone device. The earphone device may include a first earphone and a second earphone, the first earphone and the second earphone may be connected in communication, and the disconnection event may include disconnection of the first earphone and the second earphone. As shown in fig. 3, the loss notification method may include the steps of:
302. under the condition that the terminal equipment and the earphone equipment are in communication connection, continuously acquiring real-time state information respectively corresponding to the first earphone and the second earphone sent by the earphone equipment.
Step 302 is similar to step 202 described above. In some embodiments, the headset device may establish a classical bluetooth connection with the terminal device, where the first headset and the second headset may have a master-slave relationship, i.e. the first headset is a master headset, the second headset is a slave headset, or the second headset is a master headset, and the first headset is a slave headset. And the master earphone can directly communicate with the terminal equipment and continuously send real-time state information corresponding to the master earphone and the slave earphone to the terminal equipment.
Illustratively, the first earphone is taken as a master earphone, and the second earphone is taken as a slave earphone as an example. The second earphone can actively send the real-time state information of the second earphone to the first earphone so as to realize information synchronization between the first earphone and the second earphone at the first earphone side. For example, the second earpiece may send its own real-time status information to the first earpiece every first time period (e.g., 1 second, 2 seconds, etc.) based on the established communication link with the first earpiece. On the basis, the first earphone can also acquire the real-time state information of the first earphone, and further based on the communication link established between the first earphone and the terminal equipment, the real-time state information corresponding to the first earphone and the second earphone is sent to the terminal equipment at intervals of a second time (for example, 1 second, 2 seconds and the like). Optionally, the first earphone may actively send its real-time status information to the second earphone, so as to achieve information synchronization between the two on the second earphone side.
The first earphone may also obtain real-time status information corresponding to the second earphone by listening. For example, the first earphone may monitor the device state of the second earphone in real time based on the communication link established between the first earphone and the second earphone, and send the real-time state information corresponding to the second earphone and the real-time state information of the first earphone to the terminal device after the real-time state information is obtained. Optionally, the second earphone may also acquire real-time status information corresponding to the first earphone by using a listening manner, so as to realize information synchronization between the two earphones at the second earphone side.
In other embodiments, the earphone device may also establish other types of bluetooth connection (e.g. LE Audio connection, etc.) with the terminal device, so that the first earphone and the second earphone may respectively communicate with the terminal device, and may respectively send respective real-time status information to the terminal device. Optionally, the real-time status information corresponding to each of the first earphone and the second earphone may have a timestamp, so that the terminal device may synchronize the real-time status information from each of the first earphone and the second earphone according to the timestamps, so as to be applied to a subsequent step of determining whether the earphone device is lost.
304. Under the condition that the first earphone and the second earphone are disconnected in communication, the last state information of the disconnected earphone sent by the target earphone before the disconnection event occurs is obtained and is used as the target state information corresponding to the disconnected earphone.
The target earphone may be one of the first earphone and the second earphone, which is currently in communication with the terminal device after the disconnection event occurs, and the disconnected earphone may be the other earphone.
For example, in the case where the first earphone and the second earphone have a master-slave relationship, the first earphone may be used as a master earphone, and the first earphone may be disconnected from the second earphone at this time, which may be disconnected from the first earphone as a master earphone (i.e., the first earphone may be lost), or disconnected from the second earphone as a slave earphone (i.e., the second earphone may be lost).
In some embodiments, if the second earphone is disconnected, the first earphone may only use the last state information of the second earphone (for example, the state information with the last timestamp in the state information sent by the second earphone to the first earphone) before the disconnection event occurs as the target state information, and send the target state information to the terminal device, so that the terminal device may determine, in a subsequent step, the lost state corresponding to the second earphone based on the target state information. Optionally, if the first earphone has sent the last state information of the second earphone before the connection disconnection event occurs to the terminal device, the terminal device may also confirm the above target state information from the state information that it has received.
In other embodiments, if the first earphone is disconnected, the earphone device may first perform a master-slave switch, and switch the second earphone from the slave earphone to the master earphone. On this basis, the second earphone may only take the last state information of the first earphone (for example, the state information with the last timestamp in the state information synchronized by the first earphone to the second earphone) before the connection disconnection event as the target state information, and send the target state information to the terminal device, so that the terminal device may determine the lost state corresponding to the first earphone based on the target state information in a subsequent step. Optionally, if the last state information of the first earphone is already sent to the terminal device by the first earphone itself or the second earphone before the connection disconnection event occurs, the terminal device may also confirm the above target state information from the state information that it has received.
As an alternative embodiment, when the first earphone is disconnected from the second earphone, the target earphone may further generate corresponding disconnection event information, where the disconnection event information may be used to describe a disconnection event occurring in the earphone device. The target earphone may further send the disconnection event information to the terminal device, in addition to sending the target state information corresponding to the disconnection earphone to the terminal device. On the basis, the terminal equipment can accurately determine the loss state corresponding to the disconnected earphone in the subsequent step according to the disconnected event information and the target state information, so that the accuracy of judging whether the earphone equipment is lost by the terminal equipment is improved. Optionally, if the terminal device receives the last state information of the first earphone and the second earphone before the connection disconnection event occurs at the same time, the terminal device may further accurately determine, according to the disconnection event information, the target state information corresponding to the disconnection earphone from the state information, thereby being beneficial to further improving efficiency of loss prompting of the terminal device for the earphone device.
306. And determining the loss state corresponding to the disconnected earphone according to the target state information corresponding to the disconnected earphone.
308. And when the loss state indicates that the disconnected earphone is lost, outputting loss prompt information corresponding to the loss state.
Wherein steps 306 and 308 are similar to steps 204 and 206 described above. If the disconnected earphone is a first earphone, the terminal device may determine a loss state corresponding to the first earphone according to the target state information corresponding to the first earphone sent by the second earphone, and output a loss prompt message corresponding to the loss state and aiming at the first earphone when confirming that the first earphone is lost. For example, the terminal device may output the possible lost time and the lost azimuth of the first earphone through its screen. In another example, if the disconnected earphone is a second earphone, the terminal device may determine, according to the target state information corresponding to the second earphone sent by the first earphone, a lost state corresponding to the second earphone, and output, when confirming that the second earphone is lost, a loss prompt message corresponding to the lost state and specific to the second earphone.
Therefore, when the connection and disconnection event occurs in the earphone device, the terminal device can accurately judge whether the earphone device is lost according to the last device state of the disconnected earphone device before disconnection, and send corresponding loss prompt information to the user when the earphone device is determined to be lost. The loss prompting mode can improve the accuracy of judging whether the earphone equipment is lost or not by the terminal equipment, is further favorable for prompting a user to find the situation that the earphone equipment is lost in time, and simultaneously reduces the probability of false prompting as much as possible, thereby being favorable for improving the safety and reliability of wearing the earphone equipment by the user. In addition, aiming at the situation that the user wears the earphone in two ears and one earphone is lost, the terminal equipment can flexibly identify and judge based on the acquired target state information, so that the accuracy of judging whether the earphone equipment is lost by the terminal equipment is further improved.
Referring to fig. 4, fig. 4 is a flowchart of another loss prompting method according to an embodiment of the present application, where the method may be applied to the above-mentioned terminal device, and the terminal device may establish a communication connection with the earphone device. Wherein the disconnection event may comprise that the earphone device is disconnected from the communication with the terminal device. As shown in fig. 4, the loss notification method may include the steps of:
402. under the condition that the terminal equipment and the earphone equipment are in communication connection, continuously acquiring real-time state information respectively corresponding to the first earphone and the second earphone sent by the earphone equipment.
Step 402 is similar to step 302, and will not be described herein.
404. And under the condition that the earphone device is disconnected from the communication connection with the terminal device, acquiring an earphone connection record of the terminal device.
In the embodiment of the application, the terminal equipment can actively disconnect the communication connection with the earphone equipment under the control of a user or in a designated scene. At this time, since the connection disconnection event occurs in the earphone device, it may be misjudged by the terminal device that the loss of the earphone device occurs. In order to avoid the occurrence of the above situation, when the earphone device and the terminal device are disconnected from each other, the terminal device may first obtain its own earphone connection record, so as to determine whether the connection disconnection event is initiated by the terminal device itself, so as to determine whether to proceed with the subsequent step of determining that the earphone device is lost.
The earphone connection record may include a bluetooth address, a connection mode, a connection time, and the like, where the terminal device is connected with the earphone device through bluetooth. Based on the earphone connection record, the terminal equipment can accurately determine whether the connection disconnection event of the earphone equipment is caused by the earphone equipment (including the situation that the earphone equipment is lost and the like), so that the interference of irrelevant factors is eliminated as much as possible, and the accuracy of judging whether the earphone equipment is lost by the terminal equipment is improved.
406. And under the condition that the earphone connection record indicates that the terminal equipment is not actively disconnected with the earphone equipment, acquiring the last sent state information of the earphone equipment before the connection disconnection event occurs, and taking the last sent state information as the corresponding target state information of the earphone equipment.
In the embodiment of the application, no matter the earphone device comprises a single earphone or a plurality of earphones (for example, the earphone device comprises a first earphone and a second earphone), the earphone device can not send any state information to the terminal device any more under the condition that the earphone device is disconnected from the terminal device in all communication modes, and the earphone device may be lost. On this basis, the terminal device may confirm the state information of the earphone device, which is finally transmitted before the connection disconnection event occurs, as the target state information corresponding to the earphone device, and apply it to the subsequent step of determining whether the earphone device is lost.
408. The target state information corresponding to the earphone device at least comprises electric quantity information, wearing state and whether the earphone device is in an earphone box or not, and when the electric quantity information of the earphone device is larger than a low electric quantity threshold value and the earphone device is not in the wearing state and the earphone device is not in the earphone box, the loss state corresponding to the earphone device is determined to represent that the earphone device is lost.
In the embodiment of the application, the state information corresponding to the earphone device can comprise various device states of the earphone device, so that the terminal device can comprehensively judge whether the earphone device is lost or not when the connection disconnection event occurs according to the multiple target state information corresponding to the earphone device, and determine the lost state corresponding to the earphone device as accurately as possible.
The target state information may include power information (including a remaining power of the device, and may further include a power of the device, a remaining use time, etc.), for example. Taking the remaining power of the device as an example, when the power information of the earphone device is greater than the low power threshold, the earphone device still generates a connection disconnection event, which indicates that the connection disconnection event is not caused by the power of the earphone device being turned off too low, so as to determine that the earphone device may be lost.
The target state information may also include a wearing state (including whether the user wears the earphone device, and may further include a wearing posture of the user, a wearing leakage condition, and the like). Taking an example of whether the user wears the earphone device, when the earphone device is not in a wearing state, a connection disconnection event occurs in the earphone device, which indicates that the earphone device is not actually used by the user at this time, so that it can be judged that the earphone device may be lost.
The above target state information may also include, for example, whether the headphone device is in a headphone case. In the case where the headphone device is not in the headphone case, the headphone device has a connection disconnection event indicating that the headphone device is not actively received by the user at this time either, so that it can be judged that the headphone device may be lost. Specifically, taking an earphone box with a box cover as an example, referring to fig. 5, fig. 5 shows a case where earphone devices (including the first earphone 11 and the second earphone 12) are both in the earphone box 30. Whether the earphone box 30 is opened or not does not affect the determination of whether the earphone device is in the earphone box 30.
In summary, the terminal device may sequentially determine whether the power information of the earphone device is greater than the low power threshold, whether the earphone device is in a wearing state, and whether the earphone device is in an earphone box, so as to comprehensively determine whether the earphone device is lost, and improve accuracy of identifying that the earphone device is lost by the terminal device.
410. And when the loss state indicates that the disconnected earphone is lost, outputting loss prompt information corresponding to the loss state.
Step 410 is similar to step 206, and will not be described again.
Therefore, when the connection and disconnection event occurs in the earphone device, the terminal device can accurately judge whether the earphone device is lost according to the last device state of the disconnected earphone device before disconnection, and send corresponding loss prompt information to the user when the earphone device is determined to be lost. The loss prompting mode can improve the accuracy of judging whether the earphone equipment is lost or not by the terminal equipment, is further favorable for prompting a user to find the situation that the earphone equipment is lost in time, and simultaneously reduces the probability of false prompting as much as possible, thereby being favorable for improving the safety and reliability of wearing the earphone equipment by the user. In addition, aiming at the situation that when the user wears the earphone with one ear or two ears, the worn earphone is lost, the terminal equipment can also carry out flexible identification and judgment based on the earphone connection record of the terminal equipment and the acquired target state information, so that the accuracy of judging whether the earphone equipment is lost by the terminal equipment is further improved.
Referring to fig. 6, fig. 6 is a flowchart of another loss prompting method according to an embodiment of the present application, where the method may be applied to the above-mentioned earphone device, and the earphone device may establish a communication connection with a terminal device. As shown in fig. 6, the loss notification method may include the steps of:
602. under the condition that the terminal equipment and the earphone equipment are in communication connection, continuously sending real-time state information to the terminal equipment, so that when the earphone equipment generates a connection disconnection event, the terminal equipment acquires the state information which is finally sent by the earphone equipment before the connection disconnection event, and the state information is used as target state information corresponding to the earphone equipment; the target state information is used for determining a loss state corresponding to the earphone device, so that the terminal device outputs loss prompt information corresponding to the loss state when the loss state indicates that the earphone device is lost.
In the embodiment of the application, the earphone device may include only a single earphone, or may include a plurality of earphones (for example, may include a first earphone and a second earphone). Taking the example that the earphone device includes a first earphone and a second earphone, the first earphone and the second earphone can be connected in a communication manner, and at this moment, under the condition that the earphone device and the terminal device keep the communication connection, the earphone device can send real-time state information corresponding to the first earphone and the second earphone respectively to the terminal device.
For example, the first earphone and the second earphone may have a master-slave relationship. In some embodiments, the first earphone may be a master earphone, and then the first earphone may send its own real-time status information to the terminal device, and may also acquire real-time status information corresponding to the second earphone that is synchronized by the second earphone, and also forward the real-time status information corresponding to the second earphone to the terminal device.
On the basis, under the condition that the first earphone is disconnected from the second earphone, the target earphone which is currently connected with the terminal equipment in a communication way can take the last state information of the disconnected earphone (namely, the other earphone except the target earphone in the first earphone and the second earphone) before the disconnection event as the corresponding target state information of the disconnected earphone, and send the target state information to the terminal equipment so as to be applied to the step that the terminal equipment further judges whether the disconnected earphone is lost or not.
In some embodiments, if the second earphone is disconnected, the first earphone may only use the last state information of the second earphone (for example, the state information with the last timestamp in the state information sent by the second earphone to the first earphone) before the disconnection event occurs as the target state information, and send the target state information to the terminal device, so that the terminal device may determine, in a subsequent step, the lost state corresponding to the second earphone based on the target state information.
In other embodiments, if the first earphone is disconnected, the earphone device may first perform a master-slave switch, and switch the second earphone from the slave earphone to the master earphone. On this basis, the second earphone may only take the last state information of the first earphone (for example, the state information with the last timestamp in the state information synchronized by the first earphone to the second earphone) before the connection disconnection event as the target state information, and send the target state information to the terminal device, so that the terminal device may determine the lost state corresponding to the first earphone based on the target state information in a subsequent step.
As an optional implementation manner, in the case that the first earphone is disconnected from the second earphone, the target earphone may further generate corresponding disconnection event information, and send the disconnection event information to the terminal device while sending the target state information corresponding to the disconnection earphone to the terminal device. Based on the information, the terminal device can further determine the loss state corresponding to the disconnected earphone in the subsequent step according to the disconnected event information and the target state information, so as to improve the accuracy of judging whether the earphone device is lost by the terminal device.
Therefore, by implementing the loss prompting method described in the above embodiment, whether the earphone device generates a connection disconnection event between two earphones or a connection disconnection event between the earphone device and the terminal device, the last device state before the earphone device is disconnected can be ensured to be sent to the terminal device, so that the terminal device can accurately judge whether the disconnected earphone device is lost according to the corresponding target state information when the connection disconnection event occurs, and send corresponding loss prompting information to the user when the earphone device is determined to be lost. The loss prompting mode can assist the terminal equipment in improving the accuracy of judging whether the earphone equipment is lost or not, so that a prompt user can find out the situation that the earphone equipment is lost in time, meanwhile, the probability of false prompting is reduced as much as possible, and accordingly the safety and reliability of wearing the earphone equipment by the user are improved. In addition, no matter the situation that the single earphone is lost or the double earphone is lost, the earphone equipment can be flexibly adjusted, so that the terminal equipment can receive the last equipment information of the disconnected earphone equipment before disconnection, and the reliability of judging whether the earphone equipment is lost or not by the terminal equipment is further improved.
Referring to fig. 7, fig. 7 is a timing chart of a loss prompting method according to an embodiment of the present application, where the method may be applied to a bluetooth communication system including an earphone device and a terminal device, where the earphone device may include a first earphone and a second earphone, and the first earphone may establish a communication connection with the second earphone. The first earphone may be a master earphone and the second earphone may be a slave earphone, and embodiments of the present application will be described with respect to a case where the second earphone is disconnected as a slave earphone. As shown in fig. 7, the loss notification method may include the steps of:
702. and under the condition that the first earphone is in communication connection with the second earphone, synchronizing real-time state information to the first earphone by the second earphone.
704. And under the condition that the terminal equipment and the earphone equipment are in communication connection, the first earphone and the second earphone respectively correspond to the real-time state information and are sent to the terminal equipment.
706. And under the condition that the first earphone is disconnected with the second earphone, the first earphone generates disconnection event information, and the disconnection event information and final target state information of the second earphone before the disconnection event occurs are sent to the terminal equipment.
708. And the terminal equipment determines the loss state corresponding to the second earphone according to the disconnection event information and the target state information.
For example, the target state information corresponding to the earphone device may include at least power information, wearing state, and whether the earphone device is in the earphone box. On this basis, step 708 may include the following specific judgment steps:
708A: if the power information of the second earphone is greater than the low power threshold, continuing to execute step 708B; otherwise, determining that the second earphone is not lost;
708B: whether the second earphone is in a wearing state or not, if so, determining that the second earphone is not lost; otherwise, go on to step 708C;
708C: whether the second earphone is in the earphone box or not, if so, determining that the second earphone is not lost; otherwise, it is determined that the second earpiece is lost, and step 710 is continued.
710. And the terminal equipment outputs the loss prompt information corresponding to the loss state under the condition that the loss state indicates that the second earphone is lost.
Referring to fig. 8 together, fig. 8 is a timing diagram illustrating another loss notification method according to an embodiment of the present application, which can be applied to a bluetooth communication system similar to that of fig. 7. Exemplary, the embodiments of the present application will be described with respect to a case where a first earphone and a second earphone are disconnected at the same time. As shown in fig. 8, the loss notification method may include the steps of:
802. And under the condition that the first earphone is in communication connection with the second earphone, synchronizing real-time state information to the first earphone by the second earphone.
804. And under the condition that the terminal equipment and the earphone equipment are in communication connection, the first earphone and the second earphone respectively correspond to the real-time state information and are sent to the terminal equipment.
806. Under the condition that the earphone device is disconnected from the terminal device in communication, the terminal device acquires the earphone connection record of the terminal device.
808. And under the condition that the earphone connection record indicates that the terminal equipment does not actively disconnect the communication connection with the earphone equipment, the terminal equipment confirms the last sent state information of the earphone equipment before the connection disconnection event occurs and takes the last sent state information as the corresponding target state information of the earphone equipment.
810. And the terminal equipment determines the loss state corresponding to the earphone equipment according to the target state information.
For example, the target state information corresponding to the earphone device may include at least power information, wearing state, and whether the earphone device is in the earphone box. On this basis, step 810 may include the following specific judgment steps:
810A: whether the power information of the earphone device is greater than the low power threshold, if so, continuing to execute the step 810B; otherwise, determining that the earphone equipment is not lost;
810B: whether the earphone equipment is in a wearing state or not, if so, determining that the earphone equipment is not lost; otherwise, continuing to execute step 810C;
810C: whether the earphone device is in the earphone box or not is determined to be not lost if yes; otherwise, it is determined that the earphone device is lost, and the process continues to step 812.
812. And the terminal equipment outputs the loss prompt information corresponding to the loss state when the loss state indicates that the earphone equipment is lost.
Therefore, when the connection and disconnection event occurs in the earphone device, the terminal device can accurately judge whether the earphone device is lost according to the last device state of the disconnected earphone device before disconnection, and send corresponding loss prompt information to the user when the earphone device is determined to be lost. The loss prompting mode can improve the accuracy of judging whether the earphone equipment is lost or not by the terminal equipment, is further favorable for prompting a user to find the situation that the earphone equipment is lost in time, and simultaneously reduces the probability of false prompting as much as possible, thereby being favorable for improving the safety and reliability of wearing the earphone equipment by the user. In addition, no matter the situation that the single earphone is lost or the double earphone is lost, the terminal equipment can flexibly identify and judge based on the earphone connection record of the terminal equipment and the acquired target state information, so that the accuracy of judging whether the earphone equipment is lost by the terminal equipment is further improved.
Referring to fig. 9, fig. 9 is a schematic diagram of a loss notification apparatus according to an embodiment of the present application, where the loss notification apparatus may be applied to the above-mentioned terminal device, and the terminal device may establish a communication connection with an earphone device. The earphone device may include a first earphone and a second earphone, where the first earphone and the second earphone may establish a communication connection. As shown in fig. 9, the loss notification apparatus may include an information acquisition unit 901, a state determination unit 902, and a loss notification unit 903, wherein:
an information obtaining unit 901, configured to obtain, when a connection disconnection event occurs in an earphone device, target state information corresponding to the earphone device, where the target state information is used to represent a last device state of the earphone device before the connection disconnection event occurs;
a state determining unit 902, configured to determine a loss state corresponding to the earphone device according to the target state information;
and a loss prompting unit 903, configured to output, when the loss state indicates that the earphone device is lost, loss prompting information corresponding to the loss state.
Therefore, by adopting the loss prompting device described in the above embodiment, when the connection and disconnection event occurs in the earphone device, the terminal device can accurately judge whether the earphone device is lost according to the last device state of the disconnected earphone device before disconnection, and send corresponding loss prompting information to the user when the earphone device is determined to be lost. The loss prompting mode can comprehensively consider connection and disconnection events of the earphone equipment and changes of states of various equipment of the earphone equipment, improves accuracy of judging whether the earphone equipment is lost by the terminal equipment, is further beneficial to prompting a user to find out the situation that the earphone equipment is lost in time, and simultaneously reduces probability of false prompting as much as possible, so that safety and reliability of wearing the earphone equipment by the user are improved.
In an embodiment, the information obtaining unit 901 may be further configured to continuously obtain real-time status information sent by the earphone device when the terminal device is in communication connection with the earphone device;
thus, in the case where a connection disconnection event occurs in the headphone device, the above-described information acquisition unit 901 may acquire, as target state information corresponding to the headphone device, state information that the headphone device last transmitted before the connection disconnection event occurred.
In one embodiment, the disconnection event may include the first earpiece being disconnected from communication with the second earpiece. At this time, the information obtaining unit 901 may be specifically configured to continuously obtain real-time status information corresponding to the first earphone and the second earphone sent by the earphone device, where the terminal device is in communication connection with the earphone device;
therefore, in the case that the first earphone is disconnected from the second earphone, the information obtaining unit 901 may obtain, as the target state information corresponding to the disconnected earphone, the last state information of the disconnected earphone sent by the target earphone before the disconnection event occurs, where the target earphone is an earphone currently connected to the terminal device in the first earphone and the second earphone, and the disconnected earphone is the other earphone.
As an alternative embodiment, the above-mentioned information obtaining unit 901 may also be used to obtain disconnection event information sent by the target earphone;
the state determining unit 902 may be configured to determine the loss state corresponding to the disconnected earphone according to the disconnection event information and the target state information.
In one embodiment, the first earphone may be a master earphone, and the second earphone may be a slave earphone. At this time, when the information obtaining unit 901 obtains the real-time status information corresponding to the first earphone and the second earphone respectively, specifically, when the terminal device is in communication connection with the earphone device, the real-time status information corresponding to the first earphone and the second earphone respectively may be continuously obtained, where the real-time status information corresponding to the first earphone is directly sent to the terminal device by the first earphone, the real-time status information corresponding to the second earphone is synchronized to the first earphone by the second earphone, and is forwarded to the terminal device by the first earphone.
On this basis, when the target earphone is a first earphone and the disconnected earphone is a second earphone, the information obtaining unit 901 may specifically determine, when the first earphone is disconnected from the second earphone, the last state information of the second earphone sent by the first earphone before the disconnection event occurs, as the target state information corresponding to the second earphone;
The state determining unit 902 may be configured to determine, according to the target state information corresponding to the second earphone, a lost state corresponding to the second earphone.
Therefore, by adopting the loss prompting device described in the above embodiment, aiming at the situation that the user wears the earphone in two ears and one earphone is lost, the terminal device can flexibly identify and judge based on the obtained target state information, so that the accuracy of judging whether the earphone device is lost by the terminal device is further improved.
In one embodiment, the disconnection event may include disconnection of the headset device from the terminal device. At this time, when the information obtaining unit 901 obtains the target state information, specifically, may obtain the earphone connection record of the terminal device when the earphone device is disconnected from the terminal device;
and under the condition that the earphone connection record indicates that the terminal equipment is not actively disconnected with the earphone equipment, confirming the last sent state information of the earphone equipment before the connection disconnection event occurs, and taking the last sent state information as the corresponding target state information of the earphone equipment.
Therefore, by adopting the loss prompting device described in the above embodiment, aiming at the situation that when the user wears the earphone with one ear or two ears, the worn earphone is lost, the terminal device can also flexibly identify and judge based on the earphone connection record and the acquired target state information thereof, which is beneficial to further improving the accuracy of judging whether the earphone device is lost or not by the terminal device.
In one embodiment, the target state information corresponding to the earphone device may include at least power information, wearing state, and whether the earphone device is in the earphone box. At this time, the state determining unit 902 may specifically be configured to determine that, when the power information is greater than the low power threshold, and the earphone device is not in the wearing state, and the earphone device is not in the earphone box, the loss state corresponding to the earphone device indicates that the earphone device is lost.
Therefore, by adopting the loss prompting device described in the above embodiment, when the connection and disconnection event occurs in the earphone device, the terminal device can accurately judge whether the earphone device is lost according to the last device state of the disconnected earphone device before disconnection, and send corresponding loss prompting information to the user when the earphone device is determined to be lost. The loss prompting mode can improve the accuracy of judging whether the earphone equipment is lost or not by the terminal equipment, is further favorable for prompting a user to find the situation that the earphone equipment is lost in time, and simultaneously reduces the probability of false prompting as much as possible, thereby being favorable for improving the safety and reliability of wearing the earphone equipment by the user. In addition, no matter the situation that the single earphone is lost or the double earphone is lost, the terminal equipment can flexibly identify and judge based on the earphone connection record of the terminal equipment and the acquired target state information, so that the accuracy of judging whether the earphone equipment is lost by the terminal equipment is further improved.
Referring to fig. 10, fig. 10 is a schematic diagram of a loss notification apparatus according to an embodiment of the present application, where the loss notification apparatus may be applied to the above-mentioned earphone device, and the earphone device may establish a communication connection with a terminal device. The earphone device may include a first earphone and a second earphone, where the first earphone and the second earphone may establish a communication connection. As shown in fig. 10, the loss notification apparatus may include an information transmission unit 1001 in which:
an information sending unit 1001, configured to continuously send real-time status information to a terminal device when the terminal device and the earphone device maintain a communication connection, so that the terminal device obtains, when a connection disconnection event occurs in the earphone device, status information that is sent by the earphone device last before the connection disconnection event is sent, as target status information corresponding to the earphone device;
the target state information is used for determining a loss state corresponding to the earphone device, so that the terminal device outputs loss prompt information corresponding to the loss state when the loss state indicates that the earphone device is lost.
In one embodiment, the disconnection event may include the first earpiece being disconnected from communication with the second earpiece. At this time, the information transmission unit 1001 may specifically be configured to:
Under the condition that the terminal equipment and the earphone equipment are in communication connection, real-time state information corresponding to the first earphone and the second earphone respectively is sent to the terminal equipment;
under the condition that the first earphone and the second earphone are disconnected in communication, the last state information of the disconnected earphone before a connection disconnection event occurs is used as target state information corresponding to the disconnected earphone by the target earphone, and the target state information is sent to the terminal equipment, wherein the target earphone is the earphone which is currently connected with the terminal equipment in communication in the first earphone and the second earphone, and the disconnected earphone is the other earphone.
As an alternative embodiment, the first earphone may be a master earphone, and the second earphone may be a slave earphone. At this time, the loss notification apparatus may further include a synchronization acquisition unit, not shown, in which:
the information sending unit 1001 may be configured to, when the terminal device is in communication connection with the headset device, cause the first headset to send real-time status information corresponding to the first headset to the terminal device;
the synchronization acquiring unit may be configured to enable the first earphone to acquire real-time status information corresponding to the second earphone that is synchronized with the second earphone, and forward, by the information sending unit 1001, the real-time status information corresponding to the second earphone to the terminal device.
In an embodiment, the target earphone may be a second earphone, and the disconnected earphone may be a first earphone. At this time, when the first earphone and the second earphone are disconnected from each other, the information sending unit 1001 uses, as the target state information corresponding to the disconnected earphone, the last state information of the disconnected earphone before the disconnection event occurs, and sends the target state information to the terminal device, which may specifically include:
under the condition that the first earphone is disconnected from the second earphone, the second earphone is switched from the slave earphone to the master earphone;
and the second earphone takes the last state information of the first earphone before the connection disconnection event as the target state information corresponding to the first earphone, and sends the target state information to the terminal equipment.
As an optional embodiment, the loss prompting device may further include an information generating unit, which is not illustrated, and the information generating unit may be configured to generate, when the first earphone is disconnected from the second earphone, disconnection event information by the target earphone, and send the disconnection event information to the terminal device by the information sending unit 1001, so that the terminal device determines, according to the disconnection event information and the target state information, a loss state corresponding to the disconnection earphone.
Therefore, by adopting the loss prompting device described in the above embodiment, whether the earphone device generates a connection disconnection event between two earphones or a connection disconnection event between the earphone device and the terminal device, the last device state before the earphone device is disconnected can be ensured to be sent to the terminal device, so that the terminal device can accurately judge whether the disconnected earphone device is lost according to the corresponding target state information when the connection disconnection event occurs, and send corresponding loss prompting information to the user when the earphone device is determined to be lost. The loss prompting mode can assist the terminal equipment in improving the accuracy of judging whether the earphone equipment is lost or not, so that a prompt user can find out the situation that the earphone equipment is lost in time, meanwhile, the probability of false prompting is reduced as much as possible, and accordingly the safety and reliability of wearing the earphone equipment by the user are improved. In addition, no matter the situation that the single earphone is lost or the double earphone is lost, the earphone equipment can be flexibly adjusted, so that the terminal equipment can receive the last equipment information of the disconnected earphone equipment before disconnection, and the reliability of judging whether the earphone equipment is lost or not by the terminal equipment is further improved.
Referring to fig. 11, fig. 11 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in fig. 11, the terminal device may include:
a memory 1101 storing executable program code;
a processor 1102 coupled to the memory 1101;
wherein the processor 1102 invokes executable program code stored in the memory 1101, and may perform all or part of the steps of any of the loss notification methods described in the above embodiments as applied to the terminal device.
Referring to fig. 12, fig. 12 is a schematic diagram of a headset device according to an embodiment of the application. As shown in fig. 12, the earphone device may include:
a memory 1201 in which executable program codes are stored;
a processor 1202 coupled to the memory 1201;
wherein the processor 1202 invokes executable program code stored in the memory 1201, may perform all or part of the steps of any of the loss notification methods described in the above embodiments as applied to the earphone device.
Further, the embodiment of the present application further discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute all or part of the steps of any one of the loss notification methods applied to the audio output device, the first terminal device or the second terminal device described in the above embodiments.
Furthermore, embodiments of the present application further disclose a computer program product that, when run on a computer, enables the computer to perform all or part of the steps of any of the loss notification methods described in the above embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by a program that instructs associated hardware, the program may be stored in a computer readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used for carrying or storing data that is readable by a computer.
The foregoing describes in detail a loss prompting method and apparatus, a terminal device, an earphone device, and a storage medium disclosed in the embodiments of the present application, and specific examples are applied to describe the principles and implementations of the present application, where the descriptions of the foregoing embodiments are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (18)

1. A loss prompting method, which is applied to a terminal device, wherein the terminal device establishes a communication connection with an earphone device, and the method comprises:
under the condition that the earphone equipment generates a connection disconnection event, acquiring target state information corresponding to the earphone equipment, wherein the target state information is used for representing the last equipment state of the earphone equipment before the connection disconnection event;
determining a loss state corresponding to the earphone equipment according to the target state information;
and outputting loss prompt information corresponding to the loss state under the condition that the loss state indicates that the earphone equipment is lost.
2. The method according to claim 1, wherein, in the case where the connection disconnection event occurs in the earphone device, before the target state information corresponding to the earphone device is acquired, the method further includes:
continuously acquiring real-time state information sent by the earphone equipment under the condition that the terminal equipment is in communication connection with the earphone equipment;
under the condition that the earphone device generates a connection disconnection event, acquiring target state information corresponding to the earphone device comprises the following steps:
and under the condition that the earphone equipment generates a connection disconnection event, acquiring state information which is finally transmitted by the earphone equipment before the connection disconnection event occurs, and taking the state information as target state information corresponding to the earphone equipment.
3. The method of claim 2, wherein the headset device includes a first headset and a second headset, the first headset establishes a communication connection with the second headset, the disconnection event includes the first headset disconnecting from the second headset, and the continuously acquiring real-time status information sent by the headset device while the terminal device remains in communication with the headset device includes:
Continuously acquiring real-time state information respectively corresponding to the first earphone and the second earphone sent by the earphone device under the condition that the terminal device is in communication connection with the earphone device;
under the condition that the earphone device generates a connection disconnection event, acquiring state information which is finally transmitted by the earphone device before the connection disconnection event occurs, wherein the state information is used as target state information corresponding to the earphone device and comprises the following steps:
under the condition that the first earphone and the second earphone are disconnected in communication, the last state information of the disconnected earphone sent by the target earphone before the disconnection event occurs is obtained and used as the target state information corresponding to the disconnected earphone, wherein the target earphone is the earphone which is currently connected with the terminal equipment in communication in the first earphone and the second earphone, and the disconnected earphone is the other earphone.
4. A method according to claim 3, wherein prior to said determining a corresponding lost state of the earphone device based on the target state information, the method further comprises:
acquiring disconnection event information sent by the target earphone;
The determining, according to the target state information, a loss state corresponding to the earphone device includes:
and determining the loss state corresponding to the disconnected earphone according to the disconnected event information and the target state information.
5. The method of claim 3, wherein the first earphone is a master earphone and the second earphone is a slave earphone, and continuously acquiring real-time status information corresponding to the first earphone and the second earphone sent by the earphone device when the terminal device and the earphone device are in communication connection, includes:
and under the condition that the terminal equipment and the earphone equipment are in communication connection, continuously acquiring real-time state information corresponding to the first earphone and the second earphone respectively, which are sent by the first earphone, wherein the real-time state information corresponding to the first earphone is directly sent to the terminal equipment by the first earphone, and the real-time state information corresponding to the second earphone is synchronized to the first earphone by the second earphone and is forwarded to the terminal equipment by the first earphone.
6. The method according to claim 5, wherein the target earphone is the first earphone, the disconnected earphone is the second earphone, and the obtaining, when the first earphone is disconnected from the second earphone, last state information of the disconnected earphone sent by the target earphone before the disconnection event occurs, as the target state information corresponding to the disconnected earphone includes:
Under the condition that the first earphone and the second earphone are disconnected from communication, confirming the last state information of the second earphone, sent by the first earphone, before the disconnection event occurs, and taking the last state information as target state information corresponding to the second earphone;
the determining, according to the target state information, a loss state corresponding to the earphone device includes:
and determining the lost state corresponding to the second earphone according to the target state information corresponding to the second earphone.
7. The method according to claim 2, wherein the connection disconnection event includes that the earphone device disconnects communication with the terminal device, and when the connection disconnection event occurs in the earphone device, the obtaining, as target state information corresponding to the earphone device, state information that is last sent by the earphone device before the connection disconnection event occurs, includes:
acquiring an earphone connection record of the terminal equipment under the condition that the earphone equipment is disconnected with the terminal equipment;
and under the condition that the earphone connection record indicates that the terminal equipment does not actively disconnect the communication connection with the earphone equipment, confirming the last sent state information of the earphone equipment before the connection disconnection event occurs, and taking the last sent state information as the corresponding target state information of the earphone equipment.
8. The method according to any one of claims 1 to 7, wherein the target state information corresponding to the earphone device includes at least power information, a wearing state, and whether the earphone device is in an earphone box, and the determining, according to the target state information, a lost state corresponding to the earphone device includes:
and determining that the loss state corresponding to the earphone device indicates that the earphone device is lost under the condition that the electric quantity information is larger than a low electric quantity threshold value, the earphone device is not in a wearing state and the earphone device is not in an earphone box.
9. A loss prompting method, applied to a headset device, where the headset device establishes a communication connection with a terminal device, the method comprising:
continuously sending real-time state information to the terminal equipment under the condition that the terminal equipment and the earphone equipment are in communication connection, so that when the terminal equipment generates a connection disconnection event, acquiring the state information which is finally sent by the earphone equipment before the connection disconnection event occurs, and taking the state information as target state information corresponding to the earphone equipment;
The target state information is used for determining a loss state corresponding to the earphone device, so that the terminal device outputs loss prompt information corresponding to the loss state when the loss state indicates that the earphone device is lost.
10. The method of claim 9, wherein the headset device comprises a first headset and a second headset, the first headset establishing a communication connection with the second headset, the disconnection event comprising the first headset being disconnected from the second headset, the continuously sending real-time status information to the terminal device while the terminal device remains in communication with the headset device, comprising:
under the condition that the terminal equipment and the earphone equipment are in communication connection, real-time state information corresponding to the first earphone and the second earphone respectively is sent to the terminal equipment;
under the condition that the first earphone and the second earphone are disconnected in communication, the last state information of the disconnected earphone before the disconnection event occurs is used as target state information corresponding to the disconnected earphone by a target earphone, and the target state information is sent to the terminal equipment, wherein the target earphone is one of the first earphone and the second earphone, which is currently connected with the terminal equipment in communication, and the disconnected earphone is the other earphone.
11. The method according to claim 10, wherein the first earphone is a master earphone and the second earphone is a slave earphone, and the sending real-time status information corresponding to the first earphone and the second earphone, respectively, to the terminal device when the terminal device and the earphone device are in communication connection, includes:
under the condition that the terminal equipment and the earphone equipment are in communication connection, the first earphone sends real-time state information corresponding to the first earphone to the terminal equipment; and
the first earphone acquires real-time state information corresponding to the second earphone synchronized by the second earphone, and forwards the real-time state information corresponding to the second earphone to the terminal equipment.
12. The method according to claim 10 or 11, wherein the target earphone is the second earphone, the disconnected earphone is the first earphone, and wherein in a case that the first earphone is disconnected from the second earphone, the target earphone uses last state information of the disconnected earphone before the disconnection event occurs as target state information corresponding to the disconnected earphone, and sends the target state information to the terminal device, including:
Switching the second earphone from a slave earphone to a master earphone under the condition that the first earphone is disconnected from the second earphone;
and the second earphone takes the last state information of the first earphone before the connection disconnection event as target state information corresponding to the first earphone, and sends the target state information to the terminal equipment.
13. The method according to claim 10, wherein, in a case where the terminal device is in communication connection with the headset device, after the real-time status information corresponding to the first headset and the second headset is transmitted to the terminal device, the method further comprises:
and under the condition that the first earphone and the second earphone are disconnected in communication, generating disconnection event information by the target earphone, and sending the disconnection event information to the terminal equipment, so that the terminal equipment determines a loss state corresponding to the disconnection earphone according to the disconnection event information and the target state information.
14. A loss notification apparatus, applied to a terminal device, where the terminal device establishes a communication connection with an earphone device, the loss notification apparatus comprising:
An information obtaining unit, configured to obtain, when a connection disconnection event occurs in the earphone device, target state information corresponding to the earphone device, where the target state information is used to indicate a last device state of the earphone device before the connection disconnection event occurs;
a state determining unit, configured to determine a loss state corresponding to the earphone device according to the target state information;
and the loss prompting unit is used for outputting loss prompting information corresponding to the loss state under the condition that the loss state indicates that the earphone equipment is lost.
15. A loss notification apparatus, applied to an earphone device, the earphone device establishing a communication connection with a terminal device, the loss notification apparatus comprising:
an information sending unit, configured to continuously send real-time status information to the terminal device when the terminal device maintains a communication connection with the earphone device, so that when the terminal device generates a connection disconnection event, obtain status information that is sent by the earphone device last before sending the connection disconnection event, as target status information corresponding to the earphone device;
The target state information is used for determining a loss state corresponding to the earphone device, so that the terminal device outputs loss prompt information corresponding to the loss state when the loss state indicates that the earphone device is lost.
16. A terminal device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 1 to 8.
17. A headset device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 9 to 13.
18. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any one of claims 1 to 8 or the method according to any one of claims 9 to 13.
CN202210128439.7A 2022-02-11 2022-02-11 Loss prompting method and device, terminal equipment, earphone equipment and storage medium Pending CN116634609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210128439.7A CN116634609A (en) 2022-02-11 2022-02-11 Loss prompting method and device, terminal equipment, earphone equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210128439.7A CN116634609A (en) 2022-02-11 2022-02-11 Loss prompting method and device, terminal equipment, earphone equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116634609A true CN116634609A (en) 2023-08-22

Family

ID=87601338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210128439.7A Pending CN116634609A (en) 2022-02-11 2022-02-11 Loss prompting method and device, terminal equipment, earphone equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116634609A (en)

Similar Documents

Publication Publication Date Title
CN108834052B (en) TWS earphone anti-lost method, TWS earphone and anti-lost system
CN110475177B (en) Audio class compliant charging accessory for wireless headset and headset
CN109391926B (en) Data processing method of wireless audio equipment and wireless audio equipment
CN111464993B (en) Bluetooth headset pairing method and wireless headset for Bluetooth headset
CN106851530A (en) The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment
US11895456B2 (en) Sharing audio from a source device
US20230069230A1 (en) Switching between multiple earbud architectures
JP6512815B2 (en) Hearing device using position data, voice system and related method
CN112035086B (en) Audio playing method and device
US9756434B2 (en) Method of operating a binaural hearing aid system and a binaural hearing aid system
CN111447600A (en) Audio sharing method for wireless earphone, terminal device and storage medium
US20200413456A1 (en) Method for pairing and connecting secondary earphone with sound source device
CN112437371B (en) BLE link switching method, equipment, earphone pair, chip and medium
CN116615918A (en) Sensor management for wireless devices
CN112105005B (en) Method and device for controlling Bluetooth equipment to play
CN116634609A (en) Loss prompting method and device, terminal equipment, earphone equipment and storage medium
CN115175159B (en) Bluetooth headset playing method and equipment
CN114866998B (en) Bluetooth connection method and Bluetooth device
WO2023061076A1 (en) Bluetooth connection method and apparatus, earphone, and storage medium
CN111182518A (en) Processing method and device
CN115022537B (en) Video shooting method, device, electronic equipment and storage medium
WO2023065881A1 (en) Bluetooth connection method and apparatus, electronic device, and storage medium
US20230205487A1 (en) Accessory device for a hearing device
CN115967926A (en) Bluetooth connection method, device, electronic equipment and computer readable storage medium
CN114584171A (en) Audio equipment, control method thereof and playing system

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