Device connection method, terminal, and storage medium

Through multiple answer pairing and UWB ultra-wideband technology, the bandwidth limitation and anti-interference problems of the prior art in high-sampled audio transmission are solved, and stable and low-latency multi-channel audio transmission is achieved.

WO2025055027A1PCT designated stage expired Publication Date: 2025-03-20QUESTYLE AUDIO TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/122309
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-15
Filing Date
2023-09-27
Publication Date
2025-03-20

AI Technical Summary

Technical Problem

Existing WIFI and BT technologies have bandwidth limitations when transmitting high sampling, high fidelity, lossless audio and low latency, resulting in problems such as out-of-synchronization of audio, poor anti-interference, and large delays, which affects the user experience.

Method used

The pairing and connection with at least one audio receiving device is achieved through multiple responses, and the audio transmission is carried out using UWB ultra-wideband technology to ensure the stability and anti-interference of the device connection.

Benefits of technology

It improves the stability and anti-interference of device connections, realizes low-latency transmission of high sampling, high fidelity, lossless audio, and improves the synchronization and user experience of multi-channel audio transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023122309_20032025_PF_FP_ABST
    Figure CN2023122309_20032025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed is a device connection method. An audio sending device generates pairing information on the basis of a first sequence and sends same to an audio receiving device, receives first response information and second response information of the audio receiving device to complete pairing with the audio receiving device, and then is connected to the audio receiving device on the basis of a second sequence. According to embodiments of the present application, pairing and connection with at least one audio receiving device are achieved by means of multiple responses, improving the stability and anti-interference performance of device connection.
Need to check novelty before this filing date? Find Prior Art

Description

Device connection method, terminal and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 15, 2023, with application number 2023112007871 and application name “Device connection method, terminal and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of information technology, and in particular to a device connection method, a terminal, and a storage medium. Background Art

[0003] With the advancement of wireless technology, traditional technologies like Wi-Fi, BT, and LE-audio are becoming increasingly mature as wireless transmission methods for multi-channel audio. Freed from the constraints of wired connections, people can now enjoy 5.1 / 7.1 multi-channel music at any time, providing greater flexibility and convenience for daily life and a superior entertainment experience. Bluetooth TWS earphones, Bluetooth speakers, Wi-Fi speakers, and other products adapted to multi-channel applications have emerged, and corresponding audio transmission technologies and processing algorithms have also evolved. Combined with superior audio decoding technology, these technologies create a concert-like experience.

[0004] However, due to bandwidth limitations, current technologies such as WIFI and BT are not good enough in transmitting high-sampling, high-fidelity, lossless audio, and low latency. In addition, when applied to multi-channel audio transmission, there are problems such as audio asynchrony, poor anti-interference, and large latency, which affect the user experience.

[0005] Summary of the Invention

[0006] The embodiments of the present invention provide a device connection method, a terminal, and a storage medium, which can achieve pairing and connection with at least one audio receiving device through multiple responses, thereby improving the stability of the device connection, and having strong anti-interference ability without interfering with each other in multi-channel audio transmission.

[0007] An embodiment of the present invention provides a device connection method, applied to an audio sending device, comprising:

[0008] Entering pairing mode, setting the current leading sequence information as the first sequence, generating pairing information according to the first sequence and sending it to the audio receiving device;

[0009] receiving a first response message from the audio receiving device, and parsing the chip ID of the audio receiving device from the first response message;

[0010] Generate a key according to the chip ID of the audio receiving device and send it to the audio receiving device;

[0011] receiving a second response message from the audio receiving device, and completing pairing with the audio receiving device according to the second response message;

[0012] The current preamble sequence information is set again as the second sequence, and the audio receiving device is connected with the second sequence.

[0013] An embodiment of the present invention further provides a device connection method, which is applied to an audio receiving device, comprising:

[0014] Entering pairing mode and receiving pairing information of the audio sending device, generating and returning a first response message based on the pairing information and the chip ID of the audio receiving device;

[0015] receiving a key from the audio sending device, generating and returning a second response message based on the key to complete pairing with the audio sending device;

[0016] Receiving connection information of an audio sending device and parsing the connection information;

[0017] The audio sending device is connected according to the analysis result and the audio of the audio channel allocated by the audio sending device is received.

[0018] An embodiment of the present invention further provides a multi-channel receiving synchronization method, which is applied to a multi-channel receiving synchronization system. The multi-channel receiving synchronization system transmits audio through one audio transmitting device, and the multiple audio receiving devices sequentially receive audio of their respective assigned channels according to the assigned channel sequence, including:

[0019] When the audio sending device is connected to the audio receiving device, the audio receiving device is assigned a channel number in the order of connection. After the connection is completed, the audio of each channel is sent to the audio receiving device according to the channel number.

[0020] The audio sending device sends a connection message to an audio receiving device that has been paired but is not powered on and not connected to the audio sending device when in use, waiting for connection;

[0021] After the paired audio receiving device is turned on and connected to the audio sending device, the audio sending device sends the channel audio to the audio receiving device according to the channel sequence assigned during the connection, thereby dynamically allocating the channel sequence and realizing synchronous processing of multi-channel audio reception.

[0022] An embodiment of the present invention further provides a terminal comprising: a memory and a processor, wherein the memory stores an application processing program, and when the application processing program is executed by the processor, the steps of any one of the device connection methods provided in the embodiments of the present invention are implemented.

[0023] An embodiment of the present invention further provides a storage medium storing a plurality of instructions suitable for loading by a processor to execute any device connection method provided in an embodiment of the present invention.

[0024] The device connection method provided by the embodiment of the present invention can enable the audio sending device to enter the pairing mode, set the current leading sequence information as the first sequence, generate pairing information according to the first sequence and send it to the audio receiving device, receive the first response information of the audio receiving device, parse the audio receiving device chip ID in the first response information, generate a key according to the audio receiving device chip ID and send it to the audio receiving device, receive the second response information of the audio receiving device, complete the pairing with the audio receiving device according to the second response information, set the current leading sequence information as the second sequence again, and connect the audio receiving device with the second sequence. The solution provided by the embodiment of the present application realizes pairing and connection with at least one audio receiving device through multiple responses, and after multiple audio receiving devices are connected, they can receive the audio of their respective channels in sequence according to the channel sequence assigned by the audio sending device, thereby improving the stability of the device connection, and synchronous transmission in multi-channel audio transmission does not interfere with each other, and has strong anti-interference ability. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0026] FIG1 is a schematic diagram of a first flow chart of a device connection method provided by an embodiment of the present invention;

[0027] FIG2 is a schematic diagram of a pairing process of a host and a slave provided by an embodiment of the present invention;

[0028] 3 is a schematic diagram of the connection process between the host and the slave provided in an embodiment of the present invention;

[0029] FIG4 is a schematic diagram of a second flow chart of a device connection method provided in an embodiment of the present invention;

[0030] 5 is a schematic structural diagram of a device connection apparatus provided in an embodiment of the present invention;

[0031] FIG6 is a schematic structural diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0033] It should be noted that, in this document, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0034] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order, and they can be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0035] It should be noted that in this article, step codes such as 101 and 102 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the order. When technical personnel in this field implement the specific steps, they may execute 102 first and then 101, etc., but these should all be within the scope of protection of this application.

[0036] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0037] An embodiment of the present invention provides a device connection method, and the execution subject of the device connection method may be the audio sending device provided by the embodiment of the present invention.

[0038] As shown in FIG1 , FIG1 is a schematic diagram of a first process of a device connection method provided by an embodiment of the present invention. The specific process of the device connection method may be as follows:

[0039] 101. Enter a pairing mode, set current leading sequence information as a first sequence, generate pairing information according to the first sequence, and send the pairing information to an audio receiving device.

[0040] In an embodiment of the present application, the method is applied to an audio sending device, and through this method, pairing and connection with at least one audio receiving device are achieved, thereby forming an audio transmission system, which can be a one-to-one (one audio sending device corresponds to one audio receiving device) or a one-to-many (one audio sending device corresponds to multiple audio receiving devices) relationship, wherein the audio sending device can serve as a master device, and the audio receiving device serves as a slave device. Among them, the device connection method provided in the embodiment of the present application is based on UWB (Ultra Wide Band) technology. UWB technology has the advantages of low system complexity, low power spectrum density of transmitted signals, insensitivity to channel fading, low interception capability, high positioning accuracy, etc., and is particularly suitable for high-speed wireless access in dense multipath places such as indoors. Therefore, the devices connected by the method provided by the present application can bring high-order, high-fidelity, and low-latency audio wireless transmission due to the use of UWB ultra-wideband technology.

[0041] In one embodiment, the audio transmitting device may first enter pairing mode and further set the current preamble sequence information as the first sequence. Specifically, the preamble may be set to a pairing preamble, for example, 30. The preamble is a series of signals sent before a useful signal is transmitted. The preamble serves to alert the receiving chip that a valid signal is about to be transmitted and to ensure proper reception to avoid missing the useful signal. More specifically, it assists the receiving chip with frequency synchronization and automatic gain control.

[0042] Furthermore, pairing information is generated based on the above-mentioned first sequence and sent to the audio receiving device, wherein this step may specifically include: obtaining the currently assigned first audio channel and the audio sending device chip ID, integrating the first audio channel, the audio sending device chip ID and the first sequence into pairing information and sending it to the audio receiving device. The above-mentioned audio sending device chip ID may be the EUI of the chip, wherein each chip has a unique number EUI, so that pairing information can be generated based on the chip number EUI, the audio channel and the Preamble (preamble sequence). Furthermore, the above-mentioned Preamble can be obtained through the index related to the UWB underlying channel, which will not be further elaborated in this embodiment.

[0043] 102. Receive first response information from the audio receiving device, and parse the first response information to obtain a chip ID of the audio receiving device.

[0044] In one embodiment, after receiving the pairing information, the slave device can record the host's chip ID information and send the received host chip ID and slave chip ID information to the host. If no pairing information is received, the slave device waits for reception. Specifically, the host chip ID and slave chip ID information can be combined into an ACK message and returned to the host. The ACK message, also known as an acknowledgment message, is part of the communication protocol on a computer network. It is a message sent by a device or process to reply that data has been received. After receiving the ACK message, the host device can parse the ACK message to obtain the audio receiving device chip ID, i.e., the slave chip ID.

[0045] 103. Generate a key according to the chip ID of the audio receiving device and send the key to the audio receiving device.

[0046] In one embodiment, the key can be generated by combining the audio receiver chip ID with a random number. Specifically, after the host receives an ACK message from the slave with an EUI, the slave EUI and the random number are combined to generate the key, which is then sent to the slave. It should be noted that if the host does not receive an ACK, it continues to send pairing information and waits for an ACK from the slave.

[0047] 104. Receive second response information from the audio receiving device, and complete pairing with the audio receiving device according to the second response information.

[0048] Specifically, the slave waits to receive the KEY value from the host. If it receives it, it saves the pairing ID and KEY in the flash, and then sends an ACK with the KEY, which is the second response information, to the host. If it does not receive the KEY, it continues to send an ACK with its own EUI and waits to receive the KEY.

[0049] The host receives the ACK of the slave for the KEY, which is the second response information. After receiving the above ACK, it can set the audio channel and store the KEY, and then set the Preamble to the Preamble for transmitting audio, for example, it can be set to 29. The pairing process of the above host and slave can be referred to in Figure 2. In the embodiment of the present application, the host can be paired with one slave or multiple slaves. When it is necessary to pair multiple slaves, the above steps can be repeated to pair other slaves in sequence. This embodiment will not be further described.

[0050] 105. Set the current preamble sequence information again as the second sequence, and connect the audio receiving device with the second sequence.

[0051] In one embodiment, when it is necessary to connect to a paired audio receiving device, unused leading sequence information in the current environment can be scanned as a second sequence, connection information can be generated according to the second sequence and sent to the audio receiving device, third response information from the audio receiving device can be received, and the audio receiving device can be connected according to the third response information, and a second audio channel can be allocated to the audio receiving device.

[0052] Specifically, after power-on and pairing, the master and slave devices form an audio transmission system. The master-slave connection process is illustrated in Figure 3. When a connection is needed, the master first scans and sets an unused preamble in the environment. The slave then sets the preamble to the value stored in flash memory. If the signal strength meets the requirements, it waits for a connection message. If no pairing message is received after a period of time, it cycles through the preamble values ​​in the list and waits for a connection message.

[0053] Furthermore, after setting the Preamble, the host can send connection information, which may include the currently set Preamble, current channel, host EUI, and KEY value. After receiving the connection information sent by the host, the slave can parse and determine whether it is consistent with the saved host EUI and its own EUI. If the conditions are met, the saved ID information can be sent as ACK, which is the third response information. Otherwise, it continues to wait for receiving the correct connection information. After receiving the ACK for the connection, the host will save the current Preamble and channel. Otherwise, it will continue to send connection information and wait for receiving the slave ACK. Once the connection process is completed, the host can perform audio data transmission on the channel according to the connected slave. The slave needs to determine whether the audio channel data is its own based on the channel at the time of connection to perform subsequent audio reception processing.

[0054] For example, suppose a host is paired with seven slave devices, and only three of them are active in the saved records, namely channels 1, 4, and 6. Each cycle, the host connects to each slave device sequentially according to time slots. Connected audio channels transmit audio data corresponding to those channels, while unconnected channels continue to transmit connection information until a connection is established. As time passes, the polling interval for unconnected channels increases. After connecting to devices on channels 1, 4, and 6, the channels are actually set to 1, 2, and 3, respectively. Unconnected channels are initially polled once per cycle, and then every few cycles to increase data processing efficiency. In other words, as time passes, the polling interval for unconnected channels increases. Therefore, the channel numbers of the actual connected channels are reassigned based on whichever successfully connected first, thereby increasing audio processing efficiency for the connected devices. Specifically, when there are multiple audio receiving devices, the step of assigning a second audio channel to each of the audio receiving devices may include determining multiple first audio channels corresponding to each of the successfully paired audio receiving devices, and determining the second audio channel from among the multiple first audio channels based on the order in which the audio receiving devices were connected.

[0055] It should be noted that in the same system, only the same signal audio channel and the same preamble can receive data. In other words, only paired slaves can synchronize with the master and parse voice data, thereby increasing the anti-interference ability of the multi-channel system.

[0056] As described above, the device connection method proposed in the embodiment of the present invention can enable the audio sending device to enter the pairing mode, set the current leading sequence information as the first sequence, generate pairing information according to the first sequence and send it to the audio receiving device, receive the first response information of the audio receiving device, parse the audio receiving device chip ID in the first response information, generate a key according to the audio receiving device chip ID and send it to the audio receiving device, receive the second response information of the audio receiving device, complete the pairing with the audio receiving device according to the second response information, set the current leading sequence information as the second sequence again, and connect the audio receiving device with the second sequence. The solution provided in the embodiment of the present application realizes pairing and connection with at least one audio receiving device through multiple responses, and after the multiple audio receiving devices are connected, they can receive the audio of their respective channels in sequence according to the channel sequence assigned by the audio sending device, thereby improving the stability of the device connection, and synchronous transmission in multi-channel audio transmission does not interfere with each other, and has strong anti-interference ability.

[0057] The method described in the above embodiment will be further described below.

[0058] Please refer to Figure 4, which is a schematic diagram of a second flow chart of a device connection method provided by an embodiment of the present invention. The method includes:

[0059] 201. Enter pairing mode and receive pairing information of an audio sending device, generate first response information according to the pairing information and a chip ID of the audio receiving device, and return the response information.

[0060] In an embodiment of the present application, the method is applied to an audio receiving device, and pairing and connection with an audio sending device are achieved through the method, thereby forming an audio transmission system.

[0061] Furthermore, after receiving the pairing information of the audio sending device, the method may further include: obtaining and storing the audio channel and the chip ID of the audio sending device in the pairing information. The chip ID of the audio sending device may be the EUI of the chip,

[0062] 202. Receive a key from the audio sending device, generate a second response message based on the key, and return the second response message to complete pairing with the audio sending device.

[0063] For example, the audio receiving device waits to receive the KEY value of the audio sending device. If it receives it, it saves the pairing ID and KEY in the flash, and then sends an ACK with the KEY, which is the second response information, to the host to complete the pairing with the audio sending device. If it does not receive the KEY, it continues to send an ACK with its own EUI and waits to receive the KEY.

[0064] 203. Receive connection information of the audio sending device and parse the connection information.

[0065] 204. Connect to an audio sending device according to the analysis result and receive audio of an audio channel allocated by the audio sending device.

[0066] In one embodiment, the above-mentioned connection information may include the Preamble currently set by the audio sending device, the current channel, the host EUI and the KEY value, etc. After receiving the connection information sent by the host, the slave can parse and determine whether it is consistent with the saved host EUI and whether it is consistent with its own EUI. If the conditions are met, the saved ID information can be sent as ACK, that is, the third response information, otherwise continue to wait for receiving the correct connection information. That is, the step of connecting the audio sending device according to the analysis result may include: if the chip ID contained in the connection information is consistent with the stored audio sending device chip ID, then generate a third response information and return it to connect the audio sending device; if the chip ID contained in the connection information is inconsistent with the stored audio sending device chip ID, then continue to receive the connection information in the next polling cycle. When the connection process is completed, the host can perform audio data transmission of the channel according to the connected slave.

[0067] As described above, the device connection method proposed in the embodiment of the present invention can enter the pairing mode and receive the pairing information of the audio sending device, generate a first response message based on the pairing information and the chip ID of the audio receiving device and return it, receive the key of the audio sending device, generate a second response message based on the key and return it to complete the pairing with the audio sending device, receive the connection information of the audio sending device, and parse the connection information, connect the audio sending device according to the parsing result and receive the audio of the audio channel assigned by the audio sending device. The solution provided in the embodiment of the present application realizes pairing and connection with the audio sending device through multiple responses, and after the connection, the audio of each channel can be received in sequence according to the channel sequence assigned by the audio sending device, thereby improving the stability of the device connection, and synchronous transmission in multi-channel audio transmission does not interfere with each other, and has strong anti-interference ability.

[0068] In one embodiment, the present application further provides a multi-channel receiving synchronization method, which is applied to a multi-channel receiving synchronization system, wherein the multi-channel receiving synchronization system sends audio through one audio sending device, and the multiple audio receiving devices sequentially receive audio of their respective assigned channels according to the assigned channel sequence, including:

[0069] When the audio sending device is connected to the audio receiving device, the audio receiving device is assigned a channel number in the order of connection. After the connection is completed, the audio of each channel is sent to the audio receiving device according to the channel number.

[0070] The audio sending device sends a connection message to an audio receiving device that has been paired but is not powered on and not connected to the audio sending device when in use, waiting for connection;

[0071] After the paired audio receiving device is turned on and connected to the audio sending device, the audio sending device sends the channel audio to the audio receiving device according to the channel sequence assigned during the connection, thereby dynamically allocating the channel sequence and realizing synchronous processing of multi-channel audio reception.

[0072] In order to implement the above method, an embodiment of the present invention further provides a device connection apparatus, which can be used to send audio data and can be specifically integrated into a terminal device such as a mobile phone, a tablet computer, or the like.

[0073] For example, as shown in FIG5 , it is a schematic diagram of the first structure of the device connection device provided by an embodiment of the present invention. The device connection device may include:

[0074] The sending unit 301 is configured to enter a pairing mode, set the current preamble sequence information as a first sequence, generate pairing information according to the first sequence, and send the pairing information to the audio receiving device;

[0075] The parsing unit 302 is configured to receive a first response message from the audio receiving device and parse the first response message to obtain a chip ID of the audio receiving device.

[0076] A generating unit 303 is configured to generate a key according to the chip ID of the audio receiving device and send the key to the audio receiving device;

[0077] A pairing unit 304 is configured to receive a second response message from the audio receiving device and complete pairing with the audio receiving device according to the second response message;

[0078] The connecting unit 305 is configured to set the current preamble sequence information as a second sequence again, and connect the audio receiving device with the second sequence.

[0079] The device connection device proposed in the embodiment of the present invention can enter the pairing mode to set the current leading sequence information as the first sequence, generate pairing information based on the first sequence and send it to the audio receiving device, receive the first response information of the audio receiving device, parse the audio receiving device chip ID in the first response information, generate a key based on the audio receiving device chip ID and send it to the audio receiving device, receive the second response information of the audio receiving device, complete the pairing with the audio receiving device based on the second response information, set the current leading sequence information as the second sequence again, and connect the audio receiving device with the second sequence. The solution provided in the embodiment of the present application realizes pairing and connection with at least one audio receiving device through multiple responses, improves the stability of the device connection, and does not interfere with each other in multi-channel audio transmission, and has strong anti-interference ability.

[0080] An embodiment of the present invention further provides a terminal, as shown in FIG6 , which may include a radio frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. It will be understood by those skilled in the art that the terminal structure shown in FIG6 does not constitute a limitation on the terminal, and may include more or fewer components than shown, or combine certain components, or arrange the components differently. Among them:

[0081] The RF circuit 601 can be used to receive and send signals during information transmission or calls. In particular, after receiving downlink information from the base station, it is handed over to one or more processors 608 for processing; in addition, uplink data is sent to the base station. Generally, the RF circuit 601 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 601 can also communicate with the network and other devices via wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0082] The memory 602 can be used to store software programs and modules. The processor 608 executes various functional applications and information processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created according to the use of the terminal (such as audio data, a phone book, etc.). In addition, the memory 602 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 with access to the memory 602.

[0083] The input unit 603 can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control. Specifically, in one embodiment, the input unit 603 may include a touch-sensitive surface and other input devices. A touch-sensitive surface, also known as a touch display or touchpad, can detect user touch operations on or near it (for example, operations performed by a user using a finger, stylus, or any other suitable object or accessory on or near the touch-sensitive surface) and drive corresponding connected devices according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. The touch detection device detects the user's touch direction and detects signals generated by the touch operation, transmitting the signals to the touch controller. The touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 608. It can also receive and execute commands from the processor 608. In addition, touch-sensitive surfaces can be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0084] The display unit 604 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 604 may include a display panel. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface can cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 608 to determine the type of touch event. The processor 608 then provides a corresponding visual output on the display panel based on the type of touch event. Although in Figure 6, the touch-sensitive surface and the display panel are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to implement input and output functions.

[0085] The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the terminal, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.

[0086] Audio circuit 606, a speaker, and a microphone provide an audio interface between the user and the terminal. Audio circuit 606 converts received audio data into electrical signals and transmits them to the speaker, which then converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 606 and converted into audio data. The audio data is then processed by output processor 608 and transmitted via RF circuit 601 to, for example, another terminal. Alternatively, the audio data is output to memory 602 for further processing. Audio circuit 606 may also include an earphone jack to allow communication between an external headset and the terminal.

[0087] WiFi is a short-range wireless transmission technology. The terminal uses WiFi module 607 to help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband Internet access. Although FIG6 shows WiFi module 607, it is understood that it is not a required component of the terminal and can be omitted as needed without changing the essence of the invention.

[0088] Processor 608 is the terminal's control center, connecting all components of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 602 and accessing data stored in memory 602, it executes various terminal functions and processes data, thereby providing overall monitoring of the phone. Optionally, processor 608 may include one or more processing cores; preferably, processor 608 may integrate an application processor and a modem processor, with the application processor primarily handling the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 608.

[0089] The terminal also includes a power supply 609 (e.g., a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 608 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 609 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0090] Although not shown, the terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 608 in the terminal will load the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 608 will run the applications stored in the memory 602 to implement various functions:

[0091] Entering pairing mode, setting the current leading sequence information as the first sequence, generating pairing information according to the first sequence and sending it to the audio receiving device;

[0092] receiving a first response message from the audio receiving device, and parsing the chip ID of the audio receiving device from the first response message;

[0093] Generate a key according to the chip ID of the audio receiving device and send it to the audio receiving device;

[0094] receiving a second response message from the audio receiving device, and completing pairing with the audio receiving device according to the second response message;

[0095] The current preamble sequence information is set again as the second sequence, and the audio receiving device is connected with the second sequence.

[0096] In the above embodiments, the description of each embodiment has its own focus. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the device connection method above, which will not be repeated here.

[0097] As can be seen from the above, the terminal of the embodiment of the present invention can enable the audio sending device to enter the pairing mode, set the current leading sequence information as the first sequence, generate pairing information according to the first sequence and send it to the audio receiving device, receive the first response information of the audio receiving device, parse the audio receiving device chip ID in the first response information, generate a key according to the audio receiving device chip ID and send it to the audio receiving device, receive the second response information of the audio receiving device, complete the pairing with the audio receiving device according to the second response information, set the current leading sequence information as the second sequence again, and connect the audio receiving device with the second sequence. The solution provided by the embodiment of the present application realizes pairing and connection with at least one audio receiving device through multiple responses, improves the stability of the device connection, and does not interfere with each other in multi-channel audio transmission, and has strong anti-interference ability.

[0098] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0099] To this end, an embodiment of the present invention provides a storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any device connection method provided in an embodiment of the present invention. For example, the instructions can execute the following steps:

[0100] Entering pairing mode, setting the current leading sequence information as the first sequence, generating pairing information according to the first sequence and sending it to the audio receiving device;

[0101] receiving a first response message from the audio receiving device, and parsing the chip ID of the audio receiving device from the first response message;

[0102] Generate a key according to the chip ID of the audio receiving device and send it to the audio receiving device;

[0103] receiving a second response message from the audio receiving device, and completing pairing with the audio receiving device according to the second response message;

[0104] The current preamble sequence information is set again as the second sequence, and the audio receiving device is connected with the second sequence.

[0105] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0106] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0107] Since the instructions stored in the storage medium can execute the steps in any device connection method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any device connection method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0108] The above is a detailed introduction to a device connection method, terminal and storage medium provided in an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.

Claims

1. A device connection method, applied to an audio sending device, wherein: include: Entering pairing mode, setting the current leading sequence information as the first sequence, generating pairing information according to the first sequence and sending it to the audio receiving device; Receiving first response information from the audio receiving device, and parsing a chip ID of the audio receiving device in the first response information; Generate a key according to the chip ID of the audio receiving device and send it to the audio receiving device; receiving second response information of the audio receiving device, and completing pairing with the audio receiving device according to the second response information; The current leading sequence information is set again as the second sequence, and the audio receiving device is connected with the second sequence.

2. The device connection method according to claim 1, wherein: Generating pairing information according to the first sequence and sending the pairing information to the audio receiving device includes: Get the currently allocated first audio channel and the audio sending device chip ID; The first audio channel, the audio sending device chip ID and the first sequence are integrated into pairing information and sent to the audio receiving device.

3. The device connection method according to claim 1, wherein: Generating a key according to the chip ID of the audio receiving device and sending the key to the audio receiving device, including: The audio receiving device chip ID is combined with a random number to obtain the key, and the key is sent to the audio receiving device.

4. The device connection method according to claim 2, wherein: The method of setting the current leading sequence information as the second sequence again and connecting the audio receiving device with the second sequence includes: Scanning the leading sequence information that has not been used in the current environment as the second sequence; Generate connection information according to the second sequence and send it to the audio receiving device; receiving third response information from the audio receiving device, and connecting to the audio receiving device according to the third response information; A second audio channel is allocated to the audio receiving device.

5. The device connection method according to claim 4, wherein: There are multiple audio receiving devices, and the step of allocating a second audio channel to the audio receiving devices includes: Determine a plurality of first audio channels corresponding to each of all successfully paired audio receiving devices; A second audio channel is determined among the plurality of first audio channels according to a connection order of the audio receiving devices.

6. A device connection method, applied to an audio receiving device, wherein: include: Entering pairing mode and receiving pairing information of the audio sending device, generating and returning first response information according to the pairing information and the chip ID of the audio receiving device; receiving a key of the audio sending device, generating and returning a second response message according to the key, so as to complete pairing with the audio sending device; Receiving connection information of an audio sending device and parsing the connection information; The audio sending device is connected according to the analysis result and the audio of the audio channel allocated by the audio sending device is received.

7. The device connection method according to claim 6, wherein: After receiving the pairing information of the audio sending device, the method further includes: The audio channel and the audio sending device chip ID in the pairing information are obtained and stored.

8. The device connection method according to claim 6, wherein: Connecting the audio sending device according to the analysis result includes: If the chip ID included in the connection information is consistent with the stored chip ID of the audio sending device, a third response message is generated and returned to connect to the audio sending device; If the chip ID included in the connection information is inconsistent with the stored chip ID of the audio sending device, the connection information continues to be received in the next polling cycle.

9. A terminal, wherein: The terminal comprises: a memory and a processor, wherein the memory stores an application processing program, and when the application processing program is executed by the processor, the steps of the device connection method according to any one of claims 1 to 8 are implemented.

10. A storage medium, wherein: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the device connection method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Equipment connection method, terminal and storage medium

    CN117062084A

  • Wireless streaming of an audio signal to multiple audio receiver devices

    CN105284134A

  • Voice communication method and device based on TWS Bluetooth earphone

    CN113709737A

  • Electronic equipment connection method and electronic equipment

    CN113810884A

  • Equipment connection method, terminal and storage medium

    CN114268935A