CN112672245A - Earphone control method, earphone box and computer readable storage medium - Google Patents
Earphone control method, earphone box and computer readable storage medium Download PDFInfo
- Publication number
- CN112672245A CN112672245A CN202011370833.9A CN202011370833A CN112672245A CN 112672245 A CN112672245 A CN 112672245A CN 202011370833 A CN202011370833 A CN 202011370833A CN 112672245 A CN112672245 A CN 112672245A
- Authority
- CN
- China
- Prior art keywords
- earphone
- identification information
- equipment
- connection
- earphones
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000004891 communication Methods 0.000 claims description 22
- 230000006870 function Effects 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 19
- 230000004913 activation Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 10
- 238000001514 detection method Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 101150092599 Padi2 gene Proteins 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 210000005069 ears Anatomy 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 101100460844 Mus musculus Nr2f6 gene Proteins 0.000 description 1
- 101100084902 Mus musculus Psmd14 gene Proteins 0.000 description 1
- 102100023170 Nuclear receptor subfamily 1 group D member 1 Human genes 0.000 description 1
- 101150057849 Padi1 gene Proteins 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
- Headphones And Earphones (AREA)
Abstract
Determining earphone identification information of a first earphone which preferentially enters a use state in a double-ear earphone according to an earphone control method, the earphone, an earphone box and a computer readable storage medium provided by the application; acquiring first equipment identification information corresponding to the earphone identification information, wherein the earphone identification information of two earphones in the double-ear earphones respectively corresponds to the equipment identification information of different historical connection equipment; and controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information. Through the implementation of the scheme, the two earphones of the double-ear earphones are respectively bound with different historical connecting devices, a user can establish connection by preferentially selecting the corresponding earphones according to the current devices to be connected in hope, the user is not required to frequently perform connection resetting operation under the multi-device connection use scene, the user operation is effectively simplified, and the earphone connection efficiency is improved.
Description
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an earphone control method, an earphone box, and a computer-readable storage medium.
Background
The development of wireless earphones is rapid in recent years, and the wireless earphones become a new development hotspot in the earphone field. The wireless headset is connected with a user device (e.g., a mobile phone, a tablet computer, etc.) through a wireless communication mode (e.g., bluetooth, etc.), so that the wireless headset is free from the restriction of wires and is more and more favored by users.
Currently, both earphones of a wireless earphone generally only remain bound to the last device used for connection, so that when a user needs to use the wireless earphone, only the last device used for connection is connected by default each time. However, in practical applications, a wireless headset of a user usually has a requirement of one-machine-multiple-use, that is, it is necessary to switch connections between different user devices, so that if a historical connection device that the user needs to connect and use currently is different from a device that the user uses to connect and use last time, the user is required to perform a connection resetting operation on the device side and the headset side to unpair the device that the user uses to connect and pair the device that the user needs to connect and use last time, and then to allow the connection between the two devices to be established. Therefore, the wireless earphone in the related art is relatively complex in connection operation and relatively low in connection efficiency in a multi-device connection use scene.
Disclosure of Invention
The embodiment of the application provides an earphone control method, an earphone box and a computer readable storage medium, which can at least solve the problems that in the related art, the connection operation of a wireless earphone in a multi-device connection use scene is more complicated and the connection efficiency is lower.
A first aspect of an embodiment of the present application provides an earphone control method, which is applied to a binaural earphone, and includes:
determining earphone identification information of a first earphone which preferentially enters a use state; the earphone identification information of two earphones of the double-ear earphones corresponds to the equipment identification information of different historical connection equipment respectively;
acquiring first equipment identification information corresponding to the earphone identification information;
and controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information.
A second aspect of the embodiments of the present application provides an earphone control method, which is applied to an earphone box, where the earphone box is used to accommodate a binaural earphone, and the earphone box is provided with an equipment configuration function component, where the earphone control method includes:
selecting two target historical connection devices from a plurality of different historical connection devices according to a trigger instruction acting on the device configuration functional component;
correspondingly associating the equipment identification information of the two target historical connection equipment with the earphone identification information of two earphones of the double-ear earphones respectively to obtain equipment configuration information;
and sending a device configuration instruction carrying the device configuration information to the double-ear earphones based on the communication connection with the double-ear earphones, so that the earphones which preferentially enter the use state in the double-ear earphones are connected with corresponding historical connection devices according to the device configuration information.
A third aspect of embodiments of the present application provides a binaural headphone comprising: the system comprises a first memory, a first processor and a first bus, wherein the first bus is used for realizing connection communication between the first memory and the first processor; the first processor is configured to execute a first computer program stored on the first memory, and when the first processor executes the first computer program, the first processor implements the steps in the earphone control method provided in the first aspect of the embodiment of the present application.
A fourth aspect of the embodiments of the present application provides an earphone box, including: the second bus is used for realizing the connection communication between the second memory and the second processor; the second processor is configured to execute a second computer program stored on the second memory, and when the second processor executes the second computer program, the steps in the earphone control method provided in the second aspect of the embodiment of the present application are implemented.
A fifth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a first computer program or a second computer program is stored, wherein the first computer program, when executed by a processor, implements the steps in the earphone control method provided by the first aspect of the embodiments of the present application, and the second computer program, when executed by a processor, implements the steps in the earphone control method provided by the second aspect of the embodiments of the present application.
As can be seen from the above, according to the earphone control method, the earphone box, and the computer-readable storage medium provided in the present application, the earphone identification information of the first earphone preferentially entering the use state in the binaural earphone is determined; acquiring first equipment identification information corresponding to the earphone identification information, wherein the earphone identification information of two earphones in the double-ear earphones respectively corresponds to the equipment identification information of different historical connection equipment; and controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information. Through the implementation of the scheme, the two earphones of the double-ear earphones are respectively bound with different historical connecting devices, a user can establish connection by preferentially selecting the corresponding earphones according to the current devices to be connected in hope, the user is not required to frequently perform connection resetting operation under the multi-device connection use scene, the user operation is effectively simplified, and the earphone connection efficiency is improved.
Drawings
Fig. 1 is a basic flowchart of a headphone control method applied to a binaural headphone side according to a first embodiment of the present application;
fig. 2 is a schematic diagram of a device binding according to a first embodiment of the present application;
fig. 3 is a schematic diagram of a device switching according to a first embodiment of the present application;
fig. 4 is a schematic basic flowchart of a headphone control method applied to a headphone box side according to a second embodiment of the present application;
fig. 5 is a schematic view of an earphone box according to a second embodiment of the present application;
fig. 6 is a schematic diagram of an apparatus configuration according to a second embodiment of the present application;
fig. 7 is a schematic view of another apparatus configuration provided in the second embodiment of the present application;
fig. 8 is a detailed flowchart of a headphone control method according to a third embodiment of the present application;
fig. 9 is a schematic diagram of program modules of a headphone control apparatus applied to a binaural headphone side according to a fourth embodiment of the present application;
fig. 10 is a schematic diagram of program modules of a headphone control device applied to a headphone case side according to a fourth embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to overcome the defects that the connection operation of the wireless headset in the related art is complicated and the connection efficiency is low in a multi-device connection use scene, a first embodiment of the application provides a headset control method, which is applied to a binaural headset, wherein the binaural headset comprises a first headset and a second headset, and the binaural headset can be a wireless headset or a wired headset in practical application. Fig. 1 is a basic flowchart of a headphone control method applied to a binaural headphone side according to this embodiment, where the headphone control method includes the following steps:
Specifically, in this embodiment, the headphone identification information of two headphones in the headphones respectively corresponds to the Device identification information of different history connection devices, where the headphone identification information is used to identify the identities of the two headphones, such as ear 1, ear 2, ear L, and ear R, and similarly, the Device identification information is the same as the identity of different history connection devices, such as Phone1, Pad1, Device1, and Device 2. In practical application, a user connects and uses a binaural headset with a plurality of different devices in a historical use process, such as a user mobile phone, a tablet computer, a smart watch, and the like, which is different from the default binding of two headsets with a device connected during the last use in the prior art, and the two headsets of this embodiment are respectively bound with two different historical connection devices in an initial state, that is, the identification information of the first headset is associated with the identification information of the first historical connection device, and the identification information of the second headset is associated with the identification information of the second historical connection device.
In addition, it should be noted that the preferential use state of the present embodiment refers to one of the two earphones which is triggered to be used by the user first, and this state may be implemented by earphone taking-out detection and/or earphone entering detection. Taking a wireless earphone as an example, in practical applications, a user usually needs to sequentially take out two earphones from an earphone box to wear, and then the earphone taken out first enters a use state preferentially.
Specifically, in this embodiment, the device identification information corresponding to the earphone preferentially entering the use state is obtained according to the earphone identification information of the earphone currently entering the use state, so as to determine the history connection device bound to the earphone. Fig. 2 is a schematic diagram of device binding according to this embodiment, where a in fig. 2 represents a device Phone1, B represents a device Pad2, a represents a left headset, and B represents a right headset, in this embodiment, device identification information corresponding to headset identification information of each headset may be stored in each headset, for example, identification information of Phone1 is stored in the left headset, and identification information of Pad2 is stored in the right headset.
And 103, controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information.
Specifically, this embodiment binds two earphones of ears earphone with different historical junction devices respectively, and the user is according to the equipment that is expected to connect at present comes the preferred earphone of selecting for use and can establish the connection that corresponds, need not the user and frequently connects the reset operation under the use scene is connected to many equipment, has effectively simplified user operation, has promoted earphone connection efficiency. For example, in practical applications, a user usually holds two devices, namely a mobile phone and a tablet computer, the mobile phone is usually used when the user is out of home, and the tablet computer is used more at home, so that the user can bind one of identification information of two earphones with identification information of the mobile phone and the other one with the tablet computer, and then in a corresponding application scene, when the user needs to use a wireless earphone, the user only needs to take out the earphone bound correspondingly to the device which is currently expected to be connected, and then the wireless connection can be automatically established.
In some embodiments of this embodiment, the configuration manner of associating the headset identification information with the device identification information includes, but is not limited to, the following two manners:
the method comprises the steps that on the basis of communication connection with an earphone box, an equipment configuration instruction which is sent by the earphone box and carries equipment configuration information is received; and respectively configuring equipment identification information corresponding to the earphone identification information of the two earphones according to the equipment configuration instruction.
Specifically, in this embodiment, the headphone case is configured to accommodate a headphone, and the device configuration information includes: and the corresponding relation between the earphone identification information of the two earphones and the equipment identification information of different historical connection equipment. That is, in this embodiment, the user may configure the historical connection device to which the headset needs to be bound from the main device through the headset box, and then send the configured association relationship of the identification information to the headset for storage.
The second mode is that based on historical connection information, the connection frequency of different historical connection devices is counted; and correspondingly associating the equipment identification information of the two historical connection equipment with the highest connection frequency with the earphone identification information of the two earphones respectively.
Specifically, in the present embodiment, the correspondence between the headphone identification information and the device identification information may be automatically configured by the binaural headphone. In practical application, the device with the higher connection frequency is the device which is frequently connected with the earphones for use by the user, so that the embodiment can count the connection frequencies of different historical connection devices, and then associate the device identification information of the two devices with the highest connection frequency with the earphone identification information of the two earphones respectively.
In some embodiments of this embodiment, after controlling the first headset to connect with the first historical connection device and the corresponding first historical connection device based on the first device identification information, the method further includes: acquiring a connection establishment result of a first earphone and a first historical connection device; and controlling the second earphone which enters the use state to be connected with the corresponding historical connection equipment according to the connection establishment result.
The connection establishment result of this embodiment includes: at least one of a connection establishment success and a connection establishment failure. And if the connection establishment result is that the connection establishment is successful, controlling the second earphone entering the use state to be connected with the first historical connection equipment. If the connection establishment result is that the connection establishment fails, acquiring corresponding second equipment identification information according to the earphone identification information of the second earphone; and controlling the first earphone and the second earphone to be connected with the corresponding second historical connection equipment simultaneously based on the second equipment identification information.
Specifically, in practical applications, under the influence of objective factors, the earphone preferentially taken out for use does not necessarily succeed in establishing connection when trying to connect with the corresponding device, for example, connection fails when the device is not in the communication range of the earphone. Since the two-ear earphones are usually taken out and used in sequence, in this embodiment, when the earphone which is preferentially taken out and used is successfully connected with the earphone which is correspondingly bound with the earphone, it is indicated that the equipment is effective connection equipment which meets the current use requirement of the user, and when the user subsequently takes out another earphone, the other earphone is controlled to be simultaneously connected with the equipment. On the contrary, in a scene such as that the user takes the wrong earphone, the device bound to the earphone preferentially taken out may not be in the current use environment, so that the earphone is not successfully connected with the device, when the user takes out another earphone for use, the device identification information of the history connection device bound to the other earphone is obtained, and then the two earphones are controlled to try to connect with the history connection device.
In some embodiments of this embodiment, after controlling the first headset to connect to the corresponding first historically connected device based on the first device identification information, the method further includes: acquiring corresponding identification information of the equipment to be switched according to the equipment switching instruction; and controlling the earphone entering the use state to be connected with the corresponding historical connecting equipment to be switched based on the identification information of the equipment to be switched.
Specifically, in this embodiment, in a scenario where the devices are switched to be connected, when a plurality of wireless devices need to be used and switched among the devices, the devices can be switched quickly only by obtaining corresponding device identification information through the device switching instruction.
Further, in some embodiments of this embodiment, the manner of obtaining the device switching instruction includes, but is not limited to, the following two manners:
generating a device switching instruction according to a trigger operation acting on an earphone in a first mode;
receiving a device switching instruction sent by the earphone box based on the communication connection with the earphone box; wherein, the earphone box is used for accommodating the double-ear earphones.
As shown in fig. 3, which is a schematic diagram of device switching provided by this embodiment, specifically, in an implementation, a user may generate a device switching instruction by manually triggering a device switching function component (shown as a in fig. 3) disposed on an earphone box, and then send the device switching instruction to a binaural earphone; in another embodiment, a user may manually trigger a device switching function component (as shown in b in fig. 3) disposed on the headset to generate a device switching instruction, so as to implement quick connection switching of devices required to be used in multiple scenes, such as work, life, and learning. It should be noted that the device switching functional components of this embodiment may be implemented by a push type control or a touch type control, and the number of the device switching functional components may be set according to actual use requirements. In addition, in order to ensure the perception of the user to the switched device, on one hand, a display component can be arranged on the earphone box and used for displaying the device identification information of the switched device, and on the other hand, a prompt tone can be played through the earphone to prompt the name of the switched device. It should also be noted that, in practical applications, a device switching instruction may also be sent to the headset through the device to which the headset is currently connected, so as to control the headset to disconnect from the current device and connect to other target devices.
Further, in some embodiments of the present embodiment, generating the device switching instruction according to a trigger operation applied to the headset includes: when the two earphones are both in a use state, entering a device switching activation mode according to a first trigger operation simultaneously acting on the two earphones; and generating a device switching instruction according to a second trigger operation acting on any one earphone in the device switching activation mode.
Specifically, when the user switches the device connection through the earphones, in order to avoid the user from accidentally touching the earphones to cause the false switching, in this embodiment, when the two earphones are in the connection use state, the user simultaneously triggers the switching function components on the two earphones to start the device switching activation mode, and then the user arbitrarily triggers the switching function component on one earphone to generate the device switching instruction to perform the device switching connection, so as to fully ensure the effectiveness of the device switching.
Based on the technical scheme of the embodiment of the application, determining earphone identification information of a first earphone which preferentially enters a use state in the double-ear earphones; acquiring first equipment identification information corresponding to the earphone identification information, wherein the earphone identification information of two earphones in the double-ear earphones respectively corresponds to the equipment identification information of different historical connection equipment; and controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information. Through the implementation of the scheme, the two earphones of the double-ear earphones are respectively bound with different historical connecting devices, a user can establish connection by preferentially selecting the corresponding earphones according to the current devices to be connected in hope, the user is not required to frequently perform connection resetting operation under the multi-device connection use scene, the user operation is effectively simplified, and the earphone connection efficiency is improved.
A second embodiment of the present invention provides an earphone control method, which is applied to an earphone box, where the earphone box is used to accommodate a binaural earphone, and an equipment configuration function component is disposed on the earphone box, as shown in fig. 4, which is a basic flowchart of the earphone control method applied to the earphone box side provided in this embodiment, the earphone control method includes the following steps:
Specifically, in practical applications, the binaural earphones are used by being connected to a plurality of devices, and when a user needs to configure the correspondence between the earphone identification information of the two earphones and the device identification information of different history connection devices, the user can configure the functional components through the devices on the earphone boxes. As shown in fig. 5, which is a schematic view of an earphone box provided in this embodiment, the device configuration function component refers to the pressure control area shown in a in fig. 5, and two device configuration function components are provided in this embodiment and can be respectively used for configuring device identification information of two earphones.
As shown in fig. 6, which is a schematic diagram of a device configuration provided in this embodiment, after the user triggers the device configuration function component on the earphone box, the default device identification information or the previously configured device identification information stored in the earphone can be switched to other device identification information, for example, by triggering the device configuration function component for configuring the device identification information of the left ear shown in a in fig. 6, the device identification information stored in the left ear can be switched from Phone1 to be configured as device 2.
In this embodiment, after the device identification information that needs to be configured for the headphones is acquired through the headphone box, the device identification information and the headphone identification information are correspondingly associated to generate device configuration information, and then the device configuration information is carried to the binaural headphones, and the binaural headphones configure the device identification information with reference to the device configuration information, so that the headphones that preferentially enter the use state in the binaural headphones can be connected with the corresponding history connection devices according to the configured device identification information.
In some embodiments of this embodiment, the earphone box is further provided with a device switching function component. Correspondingly, after sending the device configuration instruction carrying the device configuration information to the binaural headset, the method further includes: determining identification information of equipment to be switched corresponding to the earphone entering the use state according to a trigger instruction acting on the equipment switching functional component; and sending the equipment switching instruction carrying the identification information of the equipment to be switched to the earphone entering the using state based on the communication connection with the earphone entering the using state, so that the earphone entering the using state is connected with the corresponding historical connecting equipment to be switched.
Specifically, the device switching functional component of this embodiment may be a functional component independent from the device configuration functional component, or may be the same component as the device configuration functional component, that is, in the device configuration mode, the functional component in fig. 6 is used as the device configuration functional component, and in the device switching mode, the functional component is used as the device switching functional component, and for the identification of the specific mode in which the functional component is located, the determination may be performed with reference to the state of the headset, if the headset is in the unused state, the functional component is in the device configuration mode by default, and if the headset is in the used state, the functional component is in the device switching mode by default. The user can generate an equipment switching instruction by manually triggering the equipment switching functional component arranged on the earphone box, and then the instruction is sent to the earphone to control the earphone to carry out equipment connection switching so as to realize quick connection switching of equipment required to be used in a plurality of scenes such as work, life, learning and the like.
In some embodiments of this embodiment, the earphone box is further provided with a display function component. Correspondingly, after two target historical connecting devices are selected from a plurality of different historical connecting devices, the method further comprises the following steps: and controlling the display functional component to display the equipment identification information of the two target historical connection equipment.
Specifically, referring to fig. 5 again, the information prompt area on the front side of the earphone box is a display function component setting area, and is embodied as a display screen in practical application, and in practical application, the device identification information of the historical connection device selected and configured by the user is displayed, so that the user can fully sense the current device configuration behavior, and the problem of mis-configuration is avoided. As shown in fig. 7, another schematic diagram of the earphone box provided in this embodiment is that, in practical applications, a display function component may also be disposed inside the earphone box, for example, the display function component is disposed in an information prompting area inside the cover body of the earphone box in fig. 7, so as to wake up and display when a user opens the cover, so that the user can effectively sense a historical connection device bound to each current earphone.
Based on the technical scheme of the embodiment of the application, determining earphone identification information of a first earphone which preferentially enters a use state in the double-ear earphones; acquiring first equipment identification information corresponding to the earphone identification information, wherein the earphone identification information of two earphones in the double-ear earphones respectively corresponds to the equipment identification information of different historical connection equipment; and controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information. Through the implementation of the scheme, the two earphones of the double-ear earphones are respectively bound with different historical connecting devices, a user can establish connection by preferentially selecting the corresponding earphones according to the current devices to be connected in hope, the user is not required to frequently perform connection resetting operation under the multi-device connection use scene, the user operation is effectively simplified, and the earphone connection efficiency is improved.
A third embodiment of the present application provides a refined headphone control method, which is applied to a headphone control system including a binaural headphone and a headphone box, and as shown in fig. 8, which is a refined flowchart of the headphone control method provided in this embodiment, the headphone control method includes:
Specifically, in this embodiment, after the device configuration functional component on the headphone case acquires the device identification information that needs to be configured on the headphone, the device identification information and the headphone identification information are correspondingly associated to generate the device configuration information, and then the device configuration information is carried to the device configuration instruction and sent to the binaural headphone.
And step 803, responding to the device configuration instruction by the two earphones of the double-ear earphones, and respectively configuring corresponding device identification information according to the device configuration information.
Specifically, the two earphones of this embodiment configure corresponding device identification information according to the identification information association relationship in the device configuration information, so as to bind the two earphones with different historical connection devices, respectively.
And step 804, determining corresponding first equipment identification information by the first earphone which preferentially enters the use state in the double-ear earphones according to the earphone identification information.
Specifically, the preferential use state of the present embodiment refers to one of the two earphones that is triggered and used by the user first, and this state may be implemented by earphone taking-out detection and/or earphone insertion detection
Specifically, in this embodiment, two earphones of the binaural earphone are respectively bound to different historical connection devices, so that the user can establish connection by preferentially selecting the corresponding earphone according to the currently connected device.
And step 807, when the second earphone of the two-ear earphones enters the use state, connecting with the first historical connection equipment according to the first equipment identification information.
In this embodiment, since the two-ear headphones are usually taken out and used in sequence, when the headphones that are preferentially taken out and used are successfully connected with the headphones that are correspondingly bound to the headphones, the device is an effective connection device that meets the current use requirement of the user, and when the user subsequently takes out another headphone, the other headphone is controlled to be simultaneously connected with the device.
And 808, when a second earphone of the two-ear earphones enters a use state, connecting the first earphone and the second earphone with corresponding second historical connection equipment according to second equipment identification information related to the earphone identification information of the second earphone.
Specifically, in this embodiment, in a scenario, for example, when a user takes an earphone by mistake, the device bound to the earphone preferentially taken out may not be in the current usage environment, and the earphone is not successfully connected to the device, then when the user takes out another earphone for use, the device identification information of the history connection device bound to the other earphone correspondingly is obtained, and then both earphones are controlled to try to connect to the history connection device.
It should be understood that, the size of the serial number of each step in this embodiment does not mean the execution sequence of the step, and the execution sequence of each step should be determined by its function and inherent logic, and should not be limited uniquely to the implementation process of the embodiment of the present application.
The embodiment of the application discloses an earphone control method, two earphones of a double-ear earphone are respectively bound with different historical connecting devices through a device configuration functional component on an earphone box, a user can establish connection by preferentially selecting the corresponding earphone according to the current devices to be connected in hopes, the user does not need to frequently perform connection resetting operation under a multi-device connection use scene, user operation is effectively simplified, and earphone connection efficiency is improved.
Fig. 9 is a headset control device according to a fourth embodiment of the present application. The headphone control device is applied to a headphone, and as shown in fig. 9, the headphone control device applied to a headphone side mainly includes:
a determining module 901, configured to determine earphone identification information of a first earphone that preferentially enters a use state; the earphone identification information of two earphones in the double-ear earphones respectively corresponds to the equipment identification information of different historical connection equipment;
an obtaining module 902, configured to obtain first device identification information corresponding to the headset identification information;
a control module 903, configured to control the first headset to connect to the corresponding first historical connecting device based on the first device identification information.
In some implementations of this embodiment, the obtaining module 902 is further configured to: the method comprises the steps that after a first earphone and first historical connection equipment are controlled to be connected with corresponding first historical connection equipment based on first equipment identification information, a connection establishment result of the first earphone and the first historical connection equipment is obtained; wherein the connection establishment result comprises: at least one of a connection establishment success and a connection establishment failure. The control module 903 is further configured to: and controlling the second earphone which enters the use state to be connected with the corresponding historical connection equipment according to the connection establishment result.
Further, in some embodiments of this embodiment, the control module 903 is specifically configured to: and if the connection establishment result is that the connection establishment is successful, controlling the second earphone entering the use state to be connected with the first historical connection equipment.
Further, in other embodiments of this embodiment, the obtaining module 902 is further configured to: if the connection establishment result is that the connection establishment fails, acquiring corresponding second equipment identification information according to the earphone identification information of the second earphone; the control module 903 is specifically configured to: and controlling the first earphone and the second earphone to be connected with the corresponding second historical connection equipment simultaneously based on the second equipment identification information.
In some implementations of this embodiment, the obtaining module 902 is further configured to: and after controlling the first earphone and the first historical connecting equipment to be connected with the corresponding first historical connecting equipment based on the first equipment identification information, acquiring corresponding equipment identification information to be switched according to the equipment switching instruction. The control module 903 is further configured to: and controlling the earphone entering the use state to be connected with the corresponding historical connecting equipment to be switched based on the identification information of the equipment to be switched.
Further, in some embodiments of the present embodiment, the headphone control device applied to the binaural headphone side further includes: the device comprises a generating module and a receiving module, wherein the generating module is used for: and generating a device switching instruction according to the trigger operation acted on the earphone before acquiring the corresponding identification information of the device to be switched according to the device switching instruction. The receiving module is used for: receiving a device switching instruction sent by the earphone box based on the communication connection with the earphone box; wherein, the earphone box is used for accommodating the double-ear earphones.
Further, in some embodiments of this embodiment, the generating module is specifically configured to: when the two earphones are both in a use state, entering a device switching activation mode according to a first trigger operation simultaneously acting on the two earphones; and generating a device switching instruction according to a second trigger operation acting on any one earphone in the device switching activation mode.
In some implementations of this embodiment, the generating module is further to: before determining the earphone identification information of the first earphone preferentially entering the use state, receiving an equipment configuration instruction which is sent by an earphone box and carries equipment configuration information based on communication connection with the earphone box; wherein, the earphone box is used for holding the ears earphone, and the equipment configuration information includes: and the corresponding relation between the earphone identification information of the two earphones and the equipment identification information of different historical connection equipment. Accordingly, the headphone control device applied to the binaural headphone side further includes: and the configuration module is used for respectively configuring the equipment identification information corresponding to the earphone identification information of the two earphones according to the equipment configuration instruction.
In other embodiments of this embodiment, the headphone control device applied to the binaural headphone side further includes: a statistic module and an association module. Wherein, the statistics module is used for: before determining the earphone identification information of a first earphone which preferentially enters a use state, counting the connection frequency of different historical connection devices based on historical connection information; the association module is to: and correspondingly associating the equipment identification information of the two historical connection equipment with the highest connection frequency with the earphone identification information of the two earphones respectively.
In addition, this embodiment also provides a headphone control apparatus applied to a headphone box side, where the headphone box is used to accommodate a binaural headphone, and the headphone box is provided with a device configuration functional component, as shown in fig. 10, the headphone control apparatus mainly includes:
a selecting module 1001 configured to select two target historical connection devices from a plurality of different historical connection devices according to a trigger instruction acting on a device configuration functional component;
the association module 1002 is configured to associate device identification information of two target historical connection devices with earphone identification information of two earphones of the binaural earphones, respectively, to obtain device configuration information;
a sending module 1003, configured to send, based on communication connection with the binaural headset, a device configuration instruction carrying device configuration information to the binaural headset, so that a headset that preferentially enters a use state in the binaural headset is connected to a corresponding history connection device according to the device configuration information.
In some embodiments of this embodiment, the earphone box is further provided with a device switching function component. And the earphone control device applied to the earphone box side further comprises: and the determining module is used for determining the identification information of the equipment to be switched corresponding to the earphone entering the use state according to the trigger instruction acting on the equipment switching functional component after the equipment configuration instruction carrying the equipment configuration information is sent to the double-ear earphone. Correspondingly, the sending module 1003 is further configured to: and sending the equipment switching instruction carrying the identification information of the equipment to be switched to the earphone entering the using state based on the communication connection with the earphone entering the using state, so that the earphone entering the using state is connected with the corresponding historical connecting equipment to be switched.
In some embodiments of this embodiment, the earphone box is further provided with a display function component. And the earphone control device applied to the earphone box side further comprises: and the control module is used for controlling the display functional component to display the equipment identification information of the two target historical connection equipment after the two target historical connection equipment is selected from the plurality of different historical connection equipment.
It should be noted that, the earphone control methods in the first, second, and third embodiments can be implemented based on the earphone control device provided in this embodiment, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the earphone control device described in this embodiment may refer to the corresponding process in the foregoing method embodiment, and details are not described here again.
According to the earphone control device provided by the embodiment, the earphone identification information of the first earphone which preferentially enters the use state in the double-ear earphones is determined; acquiring first equipment identification information corresponding to the earphone identification information, wherein the earphone identification information of two earphones in the double-ear earphones respectively corresponds to the equipment identification information of different historical connection equipment; and controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information. Through the implementation of the scheme, the two earphones of the double-ear earphones are respectively bound with different historical connecting devices, a user can establish connection by preferentially selecting the corresponding earphones according to the current devices to be connected in hope, the user is not required to frequently perform connection resetting operation under the multi-device connection use scene, the user operation is effectively simplified, and the earphone connection efficiency is improved.
Referring to fig. 11, fig. 11 is an electronic device according to a fifth embodiment of the present application. The electronic device can be used for realizing the earphone control method in the foregoing embodiment. As shown in fig. 11, the electronic device mainly includes:
a memory 1101, a processor 1102, a bus 1103 and a computer program stored on the memory 1101 and executable on the processor 1102, the memory 1101 and the processor 1102 being connected by the bus 1103. The processor 1102, when executing the computer program, implements the headphone control method in the foregoing embodiments. Wherein the number of processors may be one or more.
The Memory 1101 may be a Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a magnetic disk Memory. The memory 1101 is used to store executable program code, and the processor 1102 is coupled to the memory 1101.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 11.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the headphone control method in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the earphone control method, the earphone box and the computer readable storage medium provided by the present application, those skilled in the art will recognize that there are variations in the embodiments and applications of the earphone control method, the earphone box and the computer readable storage medium provided by the present application.
Claims (14)
1. A headphone control method is applied to a binaural headphone, and is characterized by comprising the following steps:
determining earphone identification information of a first earphone which preferentially enters a use state; the earphone identification information of two earphones in the double-ear earphones corresponds to the equipment identification information of different historical connection equipment respectively;
acquiring first equipment identification information corresponding to the earphone identification information of the first earphone;
and controlling the first earphone to be connected with the corresponding first historical connection equipment based on the first equipment identification information.
2. The method of claim 1, wherein after controlling the first headset and the first historically-connected device to connect with the corresponding first historically-connected device based on the first device identification information, the method further comprises:
acquiring a connection establishment result of the first earphone and the first historical connection equipment; wherein the connection establishment result comprises: at least one of a connection establishment success and a connection establishment failure;
and controlling the second earphone which enters the use state to be connected with the corresponding historical connection equipment according to the connection establishment result.
3. The method for controlling the earphones according to claim 2, wherein the controlling the second earphones entering the using state to connect with the corresponding historical connection device according to the connection establishment result comprises:
and if the connection establishment result is that the connection establishment is successful, controlling the second earphone entering the use state to be connected with the first historical connection equipment.
4. The method for controlling the earphones according to claim 2, wherein the controlling the second earphones entering the using state to connect with the corresponding historical connection device according to the connection establishment result comprises:
if the connection establishment result is that the connection establishment fails, acquiring corresponding second equipment identification information according to the earphone identification information of the second earphone;
and controlling the first earphone and the second earphone to be connected with corresponding second historical connection equipment simultaneously based on the second equipment identification information.
5. The method according to any one of claims 1 to 4, wherein after controlling the first headset to connect to the corresponding first historical connection device based on the first device identification information, the method further comprises:
acquiring corresponding identification information of the equipment to be switched according to the equipment switching instruction;
and controlling the earphone entering the use state to be connected with the corresponding historical connecting equipment to be switched based on the identification information of the equipment to be switched.
6. The method according to claim 5, wherein before acquiring the identifier information of the corresponding device to be switched according to the device switching instruction, the method further comprises:
generating the equipment switching instruction according to the trigger operation acting on the earphone;
or receiving a device switching instruction sent by the earphone box based on communication connection with the earphone box; wherein, the earphone box is used for accommodating the double-ear earphones.
7. The headset control method according to claim 6, wherein the generating the device switching instruction according to a trigger operation applied to a headset comprises:
when the two earphones are both in a use state, entering a device switching activation mode according to a first trigger operation simultaneously acting on the two earphones;
and generating the equipment switching instruction according to a second trigger operation acting on any one earphone in the equipment switching activation mode.
8. The headphone control method according to any one of claims 1 to 4, wherein before determining the headphone identification information of the first headphone that preferentially enters the use state, the method further comprises:
receiving a device configuration instruction which is sent by an earphone box and carries device configuration information based on communication connection with the earphone box; wherein the headphone case is configured to house the binaural headphones, the device configuration information including: the corresponding relation between the earphone identification information of the two earphones and the equipment identification information of the different historical connection equipment;
respectively configuring equipment identification information corresponding to the earphone identification information of the two earphones according to the equipment configuration instruction;
or, based on historical connection information, counting the connection frequency of the different historical connection devices;
and correspondingly associating the equipment identification information of the two historical connection equipment with the highest connection frequency with the earphone identification information of the two earphones respectively.
9. An earphone control method is applied to an earphone box, the earphone box is used for accommodating a binaural earphone, and an equipment configuration functional component is arranged on the earphone box, and the earphone control method is characterized by comprising the following steps:
selecting two target historical connection devices from a plurality of different historical connection devices according to a trigger instruction acting on the device configuration functional component;
correspondingly associating the equipment identification information of the two target historical connection equipment with the earphone identification information of two earphones of the double-ear earphones respectively to obtain equipment configuration information;
and sending a device configuration instruction carrying the device configuration information to the double-ear earphones based on the communication connection with the double-ear earphones, so that the earphones which preferentially enter the use state in the double-ear earphones are connected with corresponding historical connection devices according to the device configuration information.
10. The headphone control method according to claim 9, wherein an apparatus switching function component is further disposed on the headphone case, and after sending the apparatus configuration instruction carrying the apparatus configuration information to the binaural headphone, the method further includes:
determining the identification information of the equipment to be switched corresponding to the earphone entering the use state according to a trigger instruction acting on the equipment switching functional component;
and sending a device switching instruction carrying the identification information of the device to be switched to the headset in the using state based on the communication connection with the headset in the using state, so that the headset in the using state is connected with corresponding historical connecting equipment to be switched.
11. The headphone control method according to claim 9 or 10, wherein the headphone case is further provided with a display function component, and after selecting two target historical connection devices from a plurality of different historical connection devices, the method further comprises:
and controlling the display function component to display the equipment identification information of the two target historical connection equipment.
12. An earphone, comprising: the system comprises a first memory, a first processor and a first bus, wherein the first bus is used for realizing connection communication between the first memory and the first processor; the first processor is configured to execute a first computer program stored on the first memory, and when the first processor executes the first computer program, the steps of the method of any one of claims 1 to 8 are implemented.
13. An earphone box, comprising: the system comprises a second memory, a second processor and a second bus, wherein the second bus is used for realizing the connection communication between the second memory and the second processor; the second processor is configured to execute a second computer program stored on the second memory, and when the second processor executes the second computer program, the steps of the method according to any one of claims 9 to 11 are implemented.
14. A computer-readable storage medium, on which a first computer program or a second computer program is stored, characterized in that the first computer program realizes the steps of the method of any one of claims 1 to 8 when being executed by a processor, and the second computer program realizes the steps of the method of any one of claims 9 to 11 when being executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011370833.9A CN112672245A (en) | 2020-11-30 | 2020-11-30 | Earphone control method, earphone box and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011370833.9A CN112672245A (en) | 2020-11-30 | 2020-11-30 | Earphone control method, earphone box and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112672245A true CN112672245A (en) | 2021-04-16 |
Family
ID=75402982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011370833.9A Pending CN112672245A (en) | 2020-11-30 | 2020-11-30 | Earphone control method, earphone box and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112672245A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022237353A1 (en) * | 2021-05-12 | 2022-11-17 | Oppo广东移动通信有限公司 | Method, apparatus, and device for configuring earphones in earphone holding case, and program product |
WO2023202161A1 (en) * | 2022-04-20 | 2023-10-26 | Oppo广东移动通信有限公司 | Device connection method and apparatus, first device, and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108924706A (en) * | 2018-06-26 | 2018-11-30 | 努比亚技术有限公司 | Bluetooth headset method for handover control, bluetooth headset and computer readable storage medium |
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A kind of Bluetooth connecting method, equipment and system |
CN111147973A (en) * | 2019-12-27 | 2020-05-12 | 深圳春沐源控股有限公司 | Control method of earphone assembly, earphone assembly and computer readable storage medium |
CN111225346A (en) * | 2019-11-28 | 2020-06-02 | 深圳传音控股股份有限公司 | Connection switching method of wireless earphone, wireless earphone and storage medium |
CN111757307A (en) * | 2020-06-29 | 2020-10-09 | 维沃移动通信有限公司 | Wireless earphone control method, wireless earphone and readable storage medium |
CN111787444A (en) * | 2020-06-19 | 2020-10-16 | 深圳市蓝色冰川教育科技有限公司 | Bluetooth headset pairing method and device, Bluetooth headset and storage medium |
-
2020
- 2020-11-30 CN CN202011370833.9A patent/CN112672245A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108924706A (en) * | 2018-06-26 | 2018-11-30 | 努比亚技术有限公司 | Bluetooth headset method for handover control, bluetooth headset and computer readable storage medium |
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A kind of Bluetooth connecting method, equipment and system |
WO2020211733A1 (en) * | 2019-04-18 | 2020-10-22 | 华为技术有限公司 | Bluetooth connection method, device and system |
CN111225346A (en) * | 2019-11-28 | 2020-06-02 | 深圳传音控股股份有限公司 | Connection switching method of wireless earphone, wireless earphone and storage medium |
CN111147973A (en) * | 2019-12-27 | 2020-05-12 | 深圳春沐源控股有限公司 | Control method of earphone assembly, earphone assembly and computer readable storage medium |
CN111787444A (en) * | 2020-06-19 | 2020-10-16 | 深圳市蓝色冰川教育科技有限公司 | Bluetooth headset pairing method and device, Bluetooth headset and storage medium |
CN111757307A (en) * | 2020-06-29 | 2020-10-09 | 维沃移动通信有限公司 | Wireless earphone control method, wireless earphone and readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022237353A1 (en) * | 2021-05-12 | 2022-11-17 | Oppo广东移动通信有限公司 | Method, apparatus, and device for configuring earphones in earphone holding case, and program product |
WO2023202161A1 (en) * | 2022-04-20 | 2023-10-26 | Oppo广东移动通信有限公司 | Device connection method and apparatus, first device, and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11368777B2 (en) | Method and system for upgrading program of TWS headset, and TWS headset | |
CN108810697B (en) | Wireless earphone pairing method and device and wireless earphone | |
CN112672245A (en) | Earphone control method, earphone box and computer readable storage medium | |
CN105451299B (en) | A kind of method and its electronic equipment controlling WiFi connection | |
CN111061447A (en) | Wireless screen transmission method, device and system | |
WO2018049892A1 (en) | Data transmission method and apparatus, and terminal | |
CN109547897A (en) | A kind of method, apparatus, system and the wireless headset box of wireless headset connection | |
WO2020019843A1 (en) | Microphone hole blockage detection method and related product | |
WO2017063493A1 (en) | Bluetooth communication method and communication apparatus | |
WO2019019050A1 (en) | Wireless communication pairing method, wireless receiving device, and wireless transmitting device and system | |
KR20200106743A (en) | Electronic device for transmitting response message in bluetooth network environment and method thereof | |
CN104837128A (en) | Multi-card multi-standby single-pass implementation method and apparatus, and electronic device | |
CN114245362B (en) | Device reconnection method and Bluetooth peripheral | |
CN112491102B (en) | Single-wire communication method and related product | |
US9854621B2 (en) | Wireless connection switching method, wireless terminal, and system thereof | |
CN110602683A (en) | Bluetooth control method, device, mobile terminal and storage medium | |
US9497576B2 (en) | NFC configuration method, NFC data transmission method, controller, and NFC controller | |
CN111988693B (en) | Earphone control method and system based on earphone charging box and readable storage medium | |
CN116074679B (en) | Method, device, equipment and storage medium for determining left and right states of intelligent earphone | |
CN113905382B (en) | Personalized wireless earphone box and using method thereof | |
CN111294259B (en) | Method and device for controlling household appliance | |
WO2022061551A1 (en) | Address transmission method, bluetooth chip, bluetooth headset, and electronic device | |
CN115168062A (en) | Control method, device, equipment and storage medium | |
CN103873682B (en) | A kind of information processing method and electronic equipment | |
CN112104943B (en) | Address transmission method, Bluetooth chip, Bluetooth headset and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210416 |