CN112367654A - TWS equipment team forming method and device, electronic equipment and storage medium - Google Patents

TWS equipment team forming method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112367654A
CN112367654A CN202011233021.XA CN202011233021A CN112367654A CN 112367654 A CN112367654 A CN 112367654A CN 202011233021 A CN202011233021 A CN 202011233021A CN 112367654 A CN112367654 A CN 112367654A
Authority
CN
China
Prior art keywords
team
equipment
data
tws
search
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.)
Granted
Application number
CN202011233021.XA
Other languages
Chinese (zh)
Other versions
CN112367654B (en
Inventor
陈金宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ju Li Zhuhai Microelectronics Co Ltd
Original Assignee
Ju Li Zhuhai Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ju Li Zhuhai Microelectronics Co Ltd filed Critical Ju Li Zhuhai Microelectronics Co Ltd
Priority to CN202011233021.XA priority Critical patent/CN112367654B/en
Publication of CN112367654A publication Critical patent/CN112367654A/en
Application granted granted Critical
Publication of CN112367654B publication Critical patent/CN112367654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of communication equipment control, and provides a TWS equipment team forming method, a TWS equipment team forming device, electronic equipment and a storage medium, wherein the TWS equipment team forming method comprises the following steps: acquiring equipment matching information of body equipment, wherein the equipment matching information comprises expected matching data and expected feedback data; initiating search according to the equipment matching information, and calculating the searched search data of the team forming equipment and the expected feedback data to obtain recombined data; and if the reorganization data is consistent with the expected matching data, the body equipment and the team equipment are successfully matched, and a connection request is sent to the team equipment. The invention can combine the two processes of finding the team forming device and connecting the team forming device into one process, quickens the team forming of the TWS device and reduces the time consumption; and the upper layer only needs to send the equipment matching information without repeated operation, and the simplification of the upper layer operation is realized.

Description

TWS equipment team forming method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications device control technologies, and in particular, to a TWS device team forming method, apparatus, electronic device, and storage medium.
Background
When TWS equipment is currently grouped, two processes of discovery and connection are needed. During the discovery process, one of the headsets is required to be in a search (acquisition) mode and the other headset is required to be in a discoverable (acquisition scan) mode. The method is a standard Bluetooth searching process, the TWS main body device and a Bluetooth controller all send searched device information to an upper layer application through a searching result event, and the upper layer device detects whether the searched device is a TWS team device according to a matching rule (Bluetooth name, Bluetooth MAC address and the like) required by the upper layer device. When the TWS team device is confirmed, the upper layer ends the search process, and then the upper layer starts to enter the connection process. When the TWS main body device connects to the TWS team device, it is required that one of the headsets is in a call (page) mode and the other headset is in a connectable (page scan) mode, which is a standard bluetooth connection procedure. And when the TWS main body device is successfully connected with the two earphones, the connection between the TWS main body device and the TWS team device is completed. However, the TWS main device performs the process of forming a group with the TWS group device through the standard bluetooth search process, including the discovery process and the connection process, which has the problems of large occupied bluetooth bandwidth and long consumed time.
Disclosure of Invention
The embodiment of the invention provides a TWS equipment team forming method which can accelerate the TWS equipment team forming speed and reduce time consumption.
In a first aspect, an embodiment of the present invention provides a TWS device team forming method, where the method includes the following steps:
acquiring equipment matching information of body equipment, wherein the equipment matching information comprises expected matching data and expected feedback data;
initiating search according to the equipment matching information, and calculating the searched search data of the team forming equipment and the expected feedback data to obtain recombined data;
and if the reorganization data is consistent with the expected matching data, the body equipment and the team equipment are successfully matched, and a connection request is sent to the team equipment.
Optionally, the method further includes:
and searching the team forming equipment meeting the preset distance, and extracting the search data of the team forming equipment meeting the preset distance.
Optionally, the step of searching for the team device meeting the preset distance, and extracting the search data of the team device meeting the preset distance includes:
searching the team forming equipment, and judging whether the signal intensity of the team forming equipment meets a preset signal intensity threshold value or not;
if the signal intensity of the team forming equipment meets a preset signal intensity threshold value, calculating the search data of the team forming equipment and the expected feedback data;
and if the signal intensity of the team equipment does not meet the preset signal intensity threshold value, re-initiating search according to the equipment matching information.
Optionally, the step of calculating the searched data of the team device with the expected feedback data to obtain the reassembly data includes:
converting the search data and the desired feedback data into binary data;
and computing the same phase of the binary data of the search data and the expected feedback data to obtain the recombined data.
Optionally, the main device and the team device are in communication connection through a bluetooth controller, and the team device includes a first earphone and a second earphone, and the first earphone is in communication connection with the second earphone.
In a second aspect, an embodiment of the present invention further provides a TWS device for forming a team, including:
the device matching information acquisition module is used for acquiring device matching information of the body device, and the device matching information comprises expected matching data and expected feedback data;
the computing module is used for initiating search according to the equipment matching information and calculating the searched search data of the team equipment and the expected feedback data to obtain recombined data;
and the request module is used for successfully matching the body equipment with the team equipment and sending a connection request to the team equipment if the recombined data is consistent with the expected matching data.
Optionally, the apparatus further comprises:
and the extraction module is used for searching the team forming equipment meeting the preset distance and extracting the search data of the team forming equipment meeting the preset distance.
Optionally, the extracting module includes:
the judging unit is used for searching the team forming equipment and judging whether the signal intensity of the team forming equipment meets a preset signal intensity threshold value or not;
the first calculation unit is used for calculating the search data of the team forming equipment and the expected feedback data if the signal intensity of the team forming equipment meets a preset signal intensity threshold;
and the re-searching unit is used for re-initiating the search according to the equipment matching information if the signal strength of the team equipment does not meet a preset signal strength threshold value.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the TWS device team organizing method comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the TWS device team organizing method provided by the embodiment when executing the computer program.
In a fourth aspect, a computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps in the TWS device team formation method provided by the embodiments.
In the embodiment of the invention, the equipment matching information of the body equipment is acquired, wherein the equipment matching information comprises expected matching data and expected feedback data; initiating search according to the equipment matching information, and calculating the searched search data of the team forming equipment and the expected feedback data to obtain recombined data; and if the reorganization data is consistent with the expected matching data, the body equipment and the team equipment are successfully matched, and a connection request is sent to the team equipment. According to the invention, the device matching information provided by the upper layer to the local device is directly received and then searched, after the search data of the team device is obtained, data operation is carried out on the search data and the expected feedback data, and under the condition that the obtained recombined data is consistent with the expected matching data, the link request is directly sent to the team device. After the mode of the standard Bluetooth communication protocol is adjusted in the whole process, the two processes of discovering the team forming device and connecting the team forming device are combined into one process, the rapid team forming of the TWS device is accelerated, and the time consumption is reduced; and the upper layer only needs to send the equipment matching information without repeated operation, and the simplification of the upper layer operation is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1a is a flowchart of a TWS device team forming method according to an embodiment of the present invention;
fig. 1b is a flowchart of another TWS device team formation method according to an embodiment of the present invention;
fig. 2a is a flowchart of another TWS device team formation method according to an embodiment of the present invention;
fig. 2b is a flowchart of a TWS device team forming method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a TWS device team forming apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another TWS device team formation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another TWS device team formation apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another TWS device team formation apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
The terms "comprising" and "having," and any variations thereof, in the description and claims of this application and the description of the figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1a, fig. 1a is a flowchart of a TWS device team forming method according to an embodiment of the present invention, where the TWS device team forming method includes the following steps:
s101, acquiring equipment matching information of the body equipment, wherein the equipment matching information comprises expected matching data and expected feedback data.
In this embodiment, the TWS device team organizing method may be applied to bluetooth speakers, bluetooth wearable, bluetooth low energy, portable audio, portable video, voice interaction, and the like. The body equipment can be TWS (True Wireless Stereo) equipment, a Bluetooth controller can be carried in the TWS equipment, the TWS equipment can mean that control equipment such as a mobile phone is connected with a main sound box, and then the main sound box is connected with a slave sound box in a Wireless mode provided by the Bluetooth controller, so that real Bluetooth left and right sound channels are separated wirelessly and used. When the slave loudspeaker box is not connected, the master loudspeaker box returns to the monophonic tone quality.
As shown in fig. 1b, the device matching information may be information provided to the ontology device through an upper layer, including expected matching data (ref _ data) of the TWS device, that is, indicating what the data content is when a match is expected, and the meaning of the data may be customized by the upper layer. And the method also comprises expected feedback data (mask), wherein the mask indicates which bits in the data sent by the team forming equipment expected to be searched need to be matched. Specifically, when a bit with mask 1 indicates that matching is required, a bit with mask 0 indicates that matching is not required. In addition, the device matching information may further include a preset signal strength threshold rssi _ thres, which is used to limit a range where devices that can be grouped are located. The upper layer may set the desired matching data to be the same length as the desired feedback data. Of course, under the condition of different lengths, the excessive parts can be removed, so that the bits with the same phase can be compared conveniently in the subsequent comparison, and the condition that the bits are disordered is avoided.
And S102, initiating search according to the equipment matching information, and calculating the searched search data of the team equipment and the expected feedback data to obtain recombined data.
Wherein, the team device is the TWS device as well. After the upper layer of the body equipment starts the team, the Bluetooth controller can receive equipment matching information sent by the upper layer and start a searching process for searching through a Bluetooth connection mode. The search process is a continuous process, and the search is stopped only when a search timeout occurs. The search timeout may indicate that the search time exceeds a preset search threshold time. After the search is stopped, the search can be performed again or for multiple times according to a re-search instruction given by the upper layer.
After a team device is searched, the search data of the team device may be obtained first, and whether the search data is valid is determined, for example: the extracted search data is null data, which may indicate that the data is invalid. When the search data is judged to be valid, the search data and the expected feedback data mask provided by the upper layer can be calculated, and the obtained new calculated data is the restructured data. Specifically, the calculation may be to convert the search data and the expected feedback data mask into corresponding binary numbers, and perform calculation according to a phase and formula, where the obtained binary numbers are the restructured data. In the calculation process, the calculation is carried out in a complementary code mode, so that the search data can be ensured to be consistent with the expected feedback data mask provided by an upper layer and the bits of the expected matching data ref _ data. The bitwise and operation is performed in this embodiment to remove bitfields that need not be of interest in the search data. It is also possible if other operations can achieve the same effect.
S103, if the restructuring data is consistent with the expected matching data, the body equipment is successfully matched with the team equipment, and a connection request is sent to the team equipment.
After the restructuring data are obtained through calculation, the restructuring data can be compared with expected matching data ref _ data provided by an upper layer. Since the reassembly data is a binary number, the expected matching data ref _ data can be converted to a binary number before comparison, which facilitates comparison of the same bits between the two. When each bit number of the restructuring data is the same as each bit number of the expected matching data ref _ data, it can indicate that the team device meets the upper layer requirement, and also indicate that the matching is successful.
As a possible embodiment, for the successfully matched team device, the successfully matched message may be sent to the upper layer through bluetooth communication. After a certain time, if the upper layer does not confirm the successfully matched message, the TWS body device may directly send a connection request to the TWS team device through bluetooth communication. Of course, after the TWS team device meeting the upper requirement is matched, the TWS body device may also directly send a connection request to the TWS team device through bluetooth communication.
In the embodiment of the invention, the equipment matching information of the body equipment is acquired, and the equipment matching information comprises expected matching data and expected feedback data; initiating search according to the equipment matching information, and calculating the searched search data of the team forming equipment and the expected feedback data to obtain recombined data; and if the reorganization data is consistent with the expected matching data, the body equipment is successfully matched with the team equipment, and a connection request is sent to the team equipment. The invention searches after directly receiving the device matching information provided by the upper layer to the local device, and after obtaining the search data of the team device, the invention calculates with the expected feedback data, and directly sends the link request to the team device under the condition that the obtained recombined data is consistent with the expected matching data. After the mode of the standard Bluetooth communication protocol is adjusted in the whole process, the two processes of discovering the team forming device and connecting the team forming device are combined into one process, the rapid team forming of the TWS device is accelerated, and the time consumption is reduced; and the upper layer only needs to send the equipment matching information without repeated operation, and the simplification of the upper layer operation is realized.
As shown in fig. 2a, fig. 2a is a flowchart of another method provided in the embodiment of the present invention, which specifically includes the following steps:
s201, acquiring equipment matching information of the body equipment.
S202, searching the team forming equipment meeting the preset distance, and extracting the search data of the team forming equipment meeting the preset distance.
Wherein, before searching the pair-to-device, the search range (preset distance) can be preset. By presetting the distance, the signals of other equipment outside a certain range can be shielded, so that the signals sent by other equipment outside the preset distance can be reduced for searching. And the signal intensity of other devices outside the preset range is low, which is not beneficial to the data transmission and control after connection. Meanwhile, the time for searching the team device is saved.
As a possible embodiment mode, the main body device and the team device are in communication connection through the Bluetooth controller, and the team device comprises a first earphone and a second earphone. That is, the team device may be a headset device, where the headset device includes a first headset and a second headset, the first headset is in communication connection with the second headset, and one of the first headset and the second headset is a master headset and the other is a slave headset. After the bluetooth controller sends a connection request to the team device for connection, the bluetooth controller can be connected with the master earphone first, and after the master earphone is successfully connected, the master earphone can be connected with the slave earphone through bluetooth communication connection.
After the earphone device is searched within the preset distance, the search data of the earphone device can be extracted for data calculation with the expected feedback data mask. Of course, in the process of searching for the headset devices, a plurality of headset devices that can be grouped may be searched within a preset distance, and in order to avoid time consumption caused by obtaining the search data of each headset device that can be grouped, a device with the strongest signal may be selected from a plurality of selectable devices as a final grouping device.
And S203, calculating the searched data of the team forming equipment and the expected feedback data to obtain recombined data.
And S204, if the recombined data is consistent with the expected matching data, the body equipment and the team equipment are successfully matched, and a connection request is sent to the team equipment.
Optionally, step S202 includes:
and searching the team forming equipment, and judging whether the signal intensity value of the team forming equipment meets a preset signal intensity threshold value.
Referring to fig. 2b, the team devices that eventually need to be connected can be determined by the signal strength. The preset signal strength threshold rssi _ thres may be used as a value for determining whether the signal strength rx _ rssi reaches a standard. If the signal strength value rx _ rssi of each device capable of being grouped is matched with a plurality of devices capable of being grouped, the signal strength value rx _ rssi is compared with a signal strength threshold value rssi _ thres, and whether the signal strength value rx _ rssi meets the signal strength threshold value rssi _ thres is judged.
And if the signal intensity value of the team forming equipment meets a preset signal intensity threshold value, carrying out phase and calculation on the search data and the expected feedback data of the team forming equipment.
The signal strength value rx _ rssi of the team forming device satisfies a preset signal strength threshold rssi _ thres, which may indicate that the device corresponding to the signal strength value rx _ rssi may be used as a final team forming device. At this time, the search data of the team device may be extracted, and the phase and calculation may be performed on the search data and the desired feedback data mask.
And if the signal intensity value of the team equipment does not meet the preset signal intensity threshold value, re-initiating the search according to the equipment matching information.
Of course, if the signal strength value rx _ rssi of the team device does not satisfy the preset signal strength threshold rssi _ thres, the search may be initiated again according to the device matching information.
Optionally, step S203 includes:
the search data and the desired feedback data are converted into binary data.
The search data and the desired feedback data mask may be converted into binary numbers corresponding to each of them, for example: the search data is converted into a binary number of 10100011, and the feedback data mask is expected to be 00001111.
And operating the same phase of the binary data of the search data and the expected feedback data to obtain recombined data.
Wherein the bitwise and operator is "&", which is a binocular operator. Its function is to take part in the binary AND of the two numbers respectively corresponding to the operation. Only if the two corresponding bins are both 1, the result bit is 1, otherwise it is 0. For example: the 9&5 writable formula is as follows: 00001001 (complement of 9) &00000101 (complement of 5) 00000001 (complement of 1) indicates that 9&5 ═ 1. The bitwise and operation is typically used to clear 0 or reserve some bits, for example: the upper eight bits of a are cleared to 0, and the lower eight bits are reserved for a &255 operations (binary number of 255 is 11111111). According to the above manner, the search data and the binary number obtained by converting the expected feedback data mask can be subjected to the same calculation, and the obtained calculation result is the restructured data. After the reassembly data is obtained, the reassembly data may be compared to the expected match data ref _ data, which may also be in binary form, and in case that the binary comparison is the same, i.e., indicating a successful match, a connection request may be sent to the paired device.
In the embodiment of the invention, the team forming equipment meeting the upper layer requirement is screened by setting the signal intensity threshold, so that the time consumption can be reduced, and the screened team forming equipment has the characteristic of strong signal. Meanwhile, the search data and the expected feedback data mask are converted into binary form for phase and calculation, the digits can be guaranteed to be consistent, the digits of the calculated recombined data are consistent with the digits of the expected matching data ref _ data, comparison between the two is facilitated, and under the condition that the digits of the recombined data are consistent, a connection request can be directly sent to successfully paired equipment through Bluetooth communication. The two processes of discovering the team forming equipment and connecting the team forming equipment are combined into one process, the rapid team forming of the TWS equipment is accelerated, and the time consumption is reduced; and the upper layer only needs to send the equipment matching information without repeated operation, and the simplification of the upper layer operation is realized.
As shown in fig. 3, fig. 3 is a schematic structural diagram of a TWS device team forming apparatus according to an embodiment of the present invention, where the TWS device team forming apparatus 300 includes:
a first obtaining module 301, configured to obtain device matching information of a body device, where the device matching information includes expected matching data and expected feedback data;
the calculation module 302 is configured to initiate a search according to the device matching information, and perform phase and operation on the searched search data of the team device and the expected feedback data to obtain recombined data;
the request module 303 is configured to, if the reassembly data is consistent with the expected matching data, successfully match the ontology device with the team device, and send a connection request to the team device.
Optionally, as shown in fig. 4, fig. 4 is a schematic structural diagram of another TWS device team forming apparatus according to an embodiment of the present invention, where the apparatus 300 further includes:
and the extracting module 304 is configured to search for the team devices meeting the preset distance, and extract search data of the team devices meeting the preset distance.
Optionally, as shown in fig. 5, fig. 5 is a schematic structural diagram of another TWS device formation apparatus according to an embodiment of the present invention, where the extraction module 304 includes:
a determining unit 3041, configured to search for a team forming device, and determine whether a signal strength value of the team forming device meets a preset signal strength threshold;
a first calculating unit 3042, configured to calculate search data and expected feedback data of the team devices if the signal intensity value of the team device meets a preset signal intensity threshold;
the re-search unit 3043 is configured to, if the signal strength value of the team device does not meet the preset signal strength threshold, re-initiate a search according to the device matching information.
Optionally, as shown in fig. 6, fig. 6 is a schematic structural diagram of another TWS device formation apparatus according to an embodiment of the present invention, where the calculating module 302 includes:
a conversion unit 3021 for converting the search data and the desired feedback data into binary data;
the second calculating unit 3022 is configured to and-operate the same phase of the binary data of the search data and the desired feedback data to obtain reconstructed data.
Optionally, body equipment and group's equipment carry out communication connection through the bluetooth controller, and group's equipment includes first earphone and second earphone, first earphone and second earphone communication connection.
As shown in fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 700 includes: the TWS device queuing method provided by the embodiment comprises a processor 701, a memory 702 and a computer program stored on the memory 702 and capable of running on the processor 701, wherein the steps in the TWS device queuing method provided by the embodiment are realized when the computer program is executed by the processor 701.
Specifically, the processor 701 is configured to perform the following steps:
acquiring equipment matching information of the body equipment, wherein the equipment matching information comprises expected matching data and expected feedback data;
initiating search according to the equipment matching information, and carrying out phase and operation on the searched search data of the team forming equipment and the expected feedback data to obtain recombined data;
and if the reorganization data is consistent with the expected matching data, the body equipment is successfully matched with the team equipment, and a connection request is sent to the team equipment.
Optionally, the processor 701 is further configured to search for a team forming device meeting the preset distance, and extract search data of the team forming device meeting the preset distance.
Optionally, the step of searching for a team device meeting the preset distance and extracting search data of the team device meeting the preset distance, executed by the processor 701, includes:
searching team forming equipment, and judging whether the signal intensity value of the team forming equipment meets a preset signal intensity threshold value or not;
if the signal intensity value of the team forming equipment meets a preset signal intensity threshold value, calculating search data and expected feedback data of the team forming equipment;
and if the signal intensity value of the team equipment does not meet the preset signal intensity threshold value, re-initiating the search according to the equipment matching information.
Optionally, the step of performing phase and operation on the searched data of the team device and the expected feedback data by the processor 701 to obtain the reassembly data includes:
converting the search data and the desired feedback data into binary data;
and operating the same phase of the binary data of the search data and the expected feedback data to obtain recombined data.
Optionally, the body device executed by the processor 701 is in communication connection with the team forming device through a bluetooth controller, the team forming device includes a first earphone and a second earphone, and the first earphone is in communication connection with the second earphone.
The electronic device 700 provided in the embodiment of the present invention can implement each implementation manner in the TWS device team formation method embodiment, and has corresponding beneficial effects, and for avoiding repetition, details are not described here.
It is noted that only 701-702 having components are shown, but it is understood that not all of the illustrated components are required and that more or fewer components may alternatively be implemented. As will be understood by those skilled in the art, the electronic device 700 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device 700 may be a TWS device including, but not limited to, a bluetooth speaker, a bluetooth wearable, a bluetooth low energy, portable audio, portable video, voice interactive, etc. device.
The memory 702 includes at least one type of readable storage medium including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 702 may be an internal storage unit of the electronic device 700, such as a hard disk or a memory of the electronic device 700. In other embodiments, the memory 702 may also be an external storage device of the electronic device 700, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the electronic device 700. Of course, the memory 702 may also include both internal and external memory units of the electronic device 700. In this embodiment, the memory 702 is generally used for storing an operating system and various types of application software installed in the electronic device 700, such as program codes of a TWS device team organizing method. In addition, the memory 702 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 701 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 701 is generally configured to control the overall operation of the electronic device 700. In this embodiment, the processor 701 is configured to execute program code stored in the memory 702 or process data, for example, program code for executing a TWS device team formation method.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by the processor 701, the computer program implements each process in the TWS device team organizing method provided in the embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It will be understood by those skilled in the art that all or part of the processes in the TWS device team formation method according to the embodiments may be implemented by instructing relevant hardware through a computer program, and the program may be stored in a computer-readable storage medium, and when executed, may include processes according to the embodiments of the methods. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The first, second, etc. mentioned in the embodiments of the present invention do not indicate the size, but are merely for convenience of description. The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A TWS device team forming method is characterized by comprising the following steps:
acquiring equipment matching information of body equipment, wherein the equipment matching information comprises expected matching data and expected feedback data;
initiating search according to the equipment matching information, and calculating the searched search data of the team forming equipment and the expected feedback data to obtain recombined data;
and if the reorganization data is consistent with the expected matching data, the body equipment and the team equipment are successfully matched, and a connection request is sent to the team equipment.
2. The TWS device team method of claim 1, wherein the method further comprises:
and searching the team forming equipment meeting the preset distance, and extracting the search data of the team forming equipment meeting the preset distance.
3. The TWS device team organizing method of claim 2 wherein the step of finding the team device satisfying a preset distance and extracting the search data of the team device satisfying the preset distance comprises:
searching the team forming equipment, and judging whether the signal intensity of the team forming equipment meets a preset signal intensity threshold value or not;
if the signal intensity of the team forming equipment meets a preset signal intensity threshold value, calculating the search data of the team forming equipment and the expected feedback data;
and if the signal intensity of the team equipment does not meet the preset signal intensity threshold value, re-initiating search according to the equipment matching information.
4. The TWS device team organizing method of claim 1 wherein said step of computing the search data of the searched team devices with the desired feedback data to obtain the regrouping data comprises:
converting the search data and the desired feedback data into binary data;
and computing the same phase of the binary data of the search data and the expected feedback data to obtain the recombined data.
5. The TWS device grouping method of claim 1, wherein the ontology device and the grouping device are communicatively connected through a bluetooth controller, the grouping device comprising a first device and a second device, the first device communicatively connected with the second device.
6. A TWS device team apparatus, comprising:
the device matching information acquisition module is used for acquiring device matching information of the body device, and the device matching information comprises expected matching data and expected feedback data;
the computing module is used for initiating search according to the equipment matching information and calculating the searched search data of the team equipment and the expected feedback data to obtain recombined data;
and the request module is used for successfully matching the body equipment with the team equipment and sending a connection request to the team equipment if the recombined data is consistent with the expected matching data.
7. The TWS device grouping apparatus of claim 6, wherein the apparatus further comprises:
and the extraction module is used for searching the team forming equipment meeting the preset distance and extracting the search data of the team forming equipment meeting the preset distance.
8. The TWS device team apparatus of claim 7, wherein the extraction module comprises:
the judging unit is used for searching the team forming equipment and judging whether the signal intensity of the team forming equipment meets a preset signal intensity threshold value or not;
the first calculation unit is used for calculating the search data of the team forming equipment and the expected feedback data if the signal intensity of the team forming equipment meets a preset signal intensity threshold;
and the re-searching unit is used for re-initiating the search according to the equipment matching information if the signal strength of the team equipment does not meet a preset signal strength threshold value.
9. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the TWS device team method according to any of claims 1 to 5 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when being executed by a processor, realizes the steps in the TWS device team forming method according to any of the claims 1 to 5.
CN202011233021.XA 2020-11-06 2020-11-06 TWS equipment team forming method and device, electronic equipment and storage medium Active CN112367654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011233021.XA CN112367654B (en) 2020-11-06 2020-11-06 TWS equipment team forming method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011233021.XA CN112367654B (en) 2020-11-06 2020-11-06 TWS equipment team forming method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112367654A true CN112367654A (en) 2021-02-12
CN112367654B CN112367654B (en) 2023-05-12

Family

ID=74509656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011233021.XA Active CN112367654B (en) 2020-11-06 2020-11-06 TWS equipment team forming method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112367654B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114786139A (en) * 2022-02-28 2022-07-22 Oppo广东移动通信有限公司 Connection establishing method, device, equipment, storage medium and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571160A (en) * 2012-01-16 2012-07-11 华为终端有限公司 Bluetooth searching method and equipment
CN105516902A (en) * 2015-12-22 2016-04-20 惠州Tcl移动通信有限公司 Method and system for Bluetooth connection and Bluetooth device
CN111107667A (en) * 2019-12-31 2020-05-05 歌尔股份有限公司 Bluetooth headset pairing method and device and readable storage medium
CN111356120A (en) * 2020-04-20 2020-06-30 遂宁摩天时代科技有限公司 Method for automatically detecting wireless earphone in range of mobile phone with Bluetooth function
CN111885571A (en) * 2020-07-21 2020-11-03 歌尔科技有限公司 Bluetooth device pairing method, device and storage medium
CN111885562A (en) * 2020-07-01 2020-11-03 精伦电子股份有限公司 Bluetooth networking method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571160A (en) * 2012-01-16 2012-07-11 华为终端有限公司 Bluetooth searching method and equipment
CN105516902A (en) * 2015-12-22 2016-04-20 惠州Tcl移动通信有限公司 Method and system for Bluetooth connection and Bluetooth device
CN111107667A (en) * 2019-12-31 2020-05-05 歌尔股份有限公司 Bluetooth headset pairing method and device and readable storage medium
CN111356120A (en) * 2020-04-20 2020-06-30 遂宁摩天时代科技有限公司 Method for automatically detecting wireless earphone in range of mobile phone with Bluetooth function
CN111885562A (en) * 2020-07-01 2020-11-03 精伦电子股份有限公司 Bluetooth networking method and system
CN111885571A (en) * 2020-07-21 2020-11-03 歌尔科技有限公司 Bluetooth device pairing method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114786139A (en) * 2022-02-28 2022-07-22 Oppo广东移动通信有限公司 Connection establishing method, device, equipment, storage medium and program product

Also Published As

Publication number Publication date
CN112367654B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN108551670B (en) Bluetooth connection method and device and intelligent terminal
CN111629369B (en) Bluetooth headset, pairing connection method and device thereof, and TWS headset
EP3629562A1 (en) Data transmitting method and system
CN103440867B (en) Audio recognition method and system
CN106936987B (en) Method and device capable of identifying voice source of Bluetooth headset
CN111629370B (en) Bluetooth headset, pairing connection method and device thereof, and TWS headset
CN106851530A (en) The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment
CN108616927B (en) Data sending and receiving method and device
CN105516897A (en) Method and device for one-key establishment of communication connection between Bluetooth devices
CN110856086A (en) Method and device for controlling sound system and readable storage medium
CN105120528A (en) A method, apparatus and system for carrying out configuration setting between devices
US20230217515A1 (en) Method for pairing tws earphone, storage medium, chip and tws earphone
CN115278624A (en) Information updating method and device, audio sharing method and system and electronic equipment
CN104966526A (en) Random play method and apparatus
CN104092720A (en) Playlist sharing method and device
CN112367654A (en) TWS equipment team forming method and device, electronic equipment and storage medium
CN107528793B (en) Bluetooth transmission processing method, storage device and mobile terminal
CN114040510B (en) Data transmission method and related device
CN114374958A (en) Bluetooth communication method, device and equipment
CN110164411A (en) A kind of voice interactive method, equipment and storage medium
CN117479131A (en) Bluetooth connection method, bluetooth connection device, electronic equipment and computer readable storage medium
CN112367125B (en) Information transmission method, information transmission device, communication equipment and computer readable storage medium
CN105704288B (en) A kind of incoming information acquisition methods and equipment
CN111145741B (en) Method and device for providing multimedia content, electronic equipment and storage medium
CN114520958A (en) Bluetooth communication method and 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
GR01 Patent grant
GR01 Patent grant