CN113727463A - Device connection method, device, electronic device and storage medium - Google Patents

Device connection method, device, electronic device and storage medium Download PDF

Info

Publication number
CN113727463A
CN113727463A CN202111203750.5A CN202111203750A CN113727463A CN 113727463 A CN113727463 A CN 113727463A CN 202111203750 A CN202111203750 A CN 202111203750A CN 113727463 A CN113727463 A CN 113727463A
Authority
CN
China
Prior art keywords
electronic device
specified
configuration file
connection
sdp data
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
CN202111203750.5A
Other languages
Chinese (zh)
Other versions
CN113727463B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111203750.5A priority Critical patent/CN113727463B/en
Publication of CN113727463A publication Critical patent/CN113727463A/en
Priority to PCT/CN2022/123994 priority patent/WO2023061273A1/en
Application granted granted Critical
Publication of CN113727463B publication Critical patent/CN113727463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a device connection method, a device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method is applied to a first electronic device and comprises the following steps: when initiating a specified connection to a second electronic device, a first electronic device acquires SDP data of a specified configuration file from the local part of the first electronic device, wherein the specified connection is a device connection based on the specified configuration file, and the first electronic device performs the specified connection with the second electronic device based on the SDP data of the specified configuration file. According to the method and the device, the SDP data of the specified configuration file is stored locally, so that the subsequent flow in the connection process based on the specified configuration file is simplified, and the speed of Bluetooth connection is improved.

Description

Device connection method, device, electronic device and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a device connection method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more and more widely used and has more and more functions, and the electronic equipment becomes one of the necessary things in daily life of people. At present, electronic devices can be connected by means of bluetooth, but the process of bluetooth connection is time-consuming.
Disclosure of Invention
In view of the above problems, the present application provides a device connection method, apparatus, electronic device, and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a device connection method, which is applied to a first electronic device, and the method includes: when initiating a specified connection to a second electronic device, the first electronic device locally acquires SDP data of a specified configuration file from the first electronic device, wherein the specified connection is a device connection based on the specified configuration file; and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
In a second aspect, an embodiment of the present application provides an apparatus connecting device, which is applied to a first electronic device, and the apparatus includes: an obtaining module, configured to, when a specified connection is initiated to a second electronic device by the first electronic device, obtain SDP data of a specified configuration file from a local area of the first electronic device, where the specified connection is a device connection based on the specified configuration file; and the connection module is used for carrying out the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the above method when the instructions are executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
According to the device connection method and device, the electronic device and the storage medium, when the first electronic device initiates the designated connection to the second electronic device, the first electronic device locally acquires the SDP data of the designated configuration file, wherein the designated connection is the device connection based on the designated configuration file, and the designated connection is performed with the second electronic device based on the SDP data of the designated configuration file, so that the SDP data of the designated configuration file is locally stored, the flow in the subsequent connection process based on the designated configuration file is simplified, and the speed of Bluetooth connection is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application environment that can be used in the device connection method provided by the embodiment of the present application;
FIG. 2 is a schematic diagram of another application environment that can be used in the device connection method provided by the embodiment of the present application;
FIG. 3 is a schematic diagram of another application environment that can be used in the device connection method provided by the embodiment of the present application;
fig. 4 is a flowchart illustrating a device connection method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a device connection method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a device connection method according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a device connection method according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a device connection method according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a device connection method according to an embodiment of the present application;
fig. 10 is a flowchart illustrating a device connection method according to an embodiment of the present application;
FIG. 11 is a block diagram of an apparatus connection device provided by an embodiment of the present application;
fig. 12 is a block diagram of an electronic device according to an embodiment of the present application, configured to execute a device connection method according to an embodiment of the present application;
fig. 13 illustrates a storage unit for storing or carrying program codes for implementing the device connection method according to the embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Among them, in the bluetooth Protocol stack, a Service Discovery Protocol (SDP), also called bluetooth SDP, is used to provide specific meanings of applications in the bluetooth environment, and is used to discover which services are available and to determine the features of the available services. SDP defines a method by which an electronic device discovers available bluetooth server services and features. Wherein the PDU of each SDP includes a PDU Header (Header) and a PDU specific Parameter (Parameter); the PDU header includes three fields: PDU identifier (PDU ID), Transaction identifier (Transaction ID), and Parameter Length (Parameter Length).
Currently, electronic devices can be connected by means of bluetooth. However, in the process of performing bluetooth connection with another electronic device each time, an SDP procedure needs to be performed on each designated connection (connection based on profile) to discover some service attribute values of the profile corresponding to the designated connection by the other electronic device, which results in a long time consuming process of bluetooth connection. The inventor finds that, each time when the bluetooth connection is established, the upper layer profile based on the bluetooth link needs to perform the SDP procedure first and then perform the connection of the profile layer, so that if a plurality of profiles are run on a certain electronic device and another electronic device, the SDP procedure may be executed for a plurality of times, and further, the time consumption of the bluetooth connection may be increased.
In view of the above problems, the inventors have found through long-term research and propose a device connection method, an apparatus, an electronic device, and a storage medium provided in the embodiments of the present application, and simplify a subsequent process in a connection process based on a specific configuration file by locally storing SDP data of the specific configuration file, thereby increasing a speed of bluetooth connection. Specific device connection methods are described in detail in the following embodiments.
The following description is directed to an application environment that can be used in the device connection method provided in the embodiments of the present application.
As shown in fig. 1, the first electronic device 100 may be a user terminal (e.g., may be a smart phone), the second electronic device 200 may be a smart home device, and the smart home device may include an electronic device such as a smart television, an air conditioner, a curtain, and the like, and when the first electronic device 100 is close to the second electronic device 200 and the first electronic device 100 and the second electronic device 200 are within a certain distance range, the first electronic device 100 and the second electronic device 200 may perform a bluetooth connection. Wherein, if the first electronic device 100 and the second electronic device 200 have been bluetooth connected before, the first electronic device 100 and the second electronic device 200 may be connected back. The loopback refers to that the first electronic device 100 sends a page packet to the second electronic device 200 to request to establish a communication connection with the second electronic device 200, where the page is usually called connection (paging), and the operation of connecting/activating the second electronic device 200 is called page, specifically, the page refers to that the device (the first electronic device) initiating the connection knows the address of the device (the second electronic device) to be connected, so that the page can be directly paged.
As shown in fig. 2, the first electronic device 100 may be a user terminal (e.g., may be a smart phone), the second electronic device 200 may be a true wireless bluetooth headset (TWS) device, and when the second electronic device 200 is close to the first electronic device 100 and the second electronic device 200 are within a certain distance range, the first electronic device 100 and the second electronic device 200 may perform bluetooth connection. In an embodiment of the present application, the TWS bluetooth headset apparatus may include a headset 220 and a headset case (charging apparatus) 210, and the headset case 210 may accommodate the headset 220, in an embodiment of the present application, an inner wall of the case of the headset case 210 forms an accommodating cavity, and the headset 220 may be accommodated in the accommodating cavity of the headset case 210. In addition, the earphone box 210 may not only provide an accommodating cavity for accommodating the earphone 220, but also communicate with the earphone 220, so as to obtain information such as an electric quantity, a name, or a network parameter of the earphone 220, so that the first electronic device can be successfully paired with the earphone 220 through the earphone box 210 and realize communication connection. In one embodiment, the earphone box 210 is also used to charge the earphone 220. In an embodiment of the application, when the earphone box 210 is opened, the earphone 220 may be triggered to transmit a Bluetooth Low Energy (BLE) broadcast, and after receiving the BLE broadcast, the first electronic device 100, for example, a smart phone, may establish a bluetooth connection with the earphone 220 based on the BLE broadcast.
As shown in fig. 3, the first electronic device 100 may be a user terminal (e.g., may be a smart phone), and the second electronic device 200 may be a headset in a true wireless bluetooth headset apparatus. When the user terminal 100 is connected to the headset 200, the user terminal 100 and the headset 200 may perform audio data transmission. For example, the user terminal 100 may transmit voice data of a call counterpart to the headset 200, the headset 200 may transmit voice data of a call counterpart to the user terminal 100, and the like, which are not limited herein.
Referring to fig. 4, fig. 4 is a flowchart illustrating a device connection method according to an embodiment of the present disclosure. The device connection method is used for locally storing the SDP data of the specified configuration file, simplifying the flow in the subsequent connection process based on the specified configuration file and improving the speed of Bluetooth connection. In a specific embodiment, the device connection method is applied to the device connection apparatus 300 shown in fig. 11 and the electronic device (first electronic device) 100 (fig. 12) provided with the device connection apparatus 300. The specific process of this embodiment will be described below by taking an electronic device as an example, and it is understood that the electronic device applied in this embodiment may include a smart phone, a tablet computer, a wearable electronic device, a bluetooth headset, and other devices having a bluetooth connection function. As will be described in detail with respect to the flow shown in fig. 4, the device connection method may specifically include the following steps:
step S110: the method comprises the steps that when a first electronic device initiates a specified connection to a second electronic device, SDP data of a specified configuration file is obtained from the local part of the first electronic device, wherein the specified connection is a device connection based on the specified configuration file.
When two electronic devices establish a bluetooth connection (e.g., the first electronic device and the second electronic device in this embodiment are establishing a bluetooth connection), they acquire the protocol provided by the other device. Only devices using the same protocol can exchange data as if two people had a meaningful conversation using the same language. Where the bluetooth specification establishes commands and functions that the electronic device performing the bluetooth connection can exchange using bluetooth technology, as the bluetooth protocol defines the physical wireless connection between the two electronic devices.
In some embodiments, the first electronic device and the second electronic device may establish a profile-based connection when performing a bluetooth connection. The Profile may include (cell phone specification, Head-Set-Profile, HSP), Hands-Free specification (hand-Free-Profile, HFP), Advanced Audio Distribution Profile (A2 DP), Audio/Video Remote Control specification (Audio/Video Remote Control Profile, AVRCP), and the like, which are not limited herein. Among them, the HSP and HFP bluetooth specifications are those required for typical monaural bluetooth electronic device operation, and A2DP and AVRCP are important for stereo bluetooth electronic devices.
The HSP is a configuration which is commonly used in Bluetooth connection, and provides basic functions required by communication between the smart phone and the Bluetooth headset for current popular support such as use of the Bluetooth headset and the smart phone. After connection and configuration, the bluetooth headset may be used as an audio input and output interface for the remote device.
Among them, HFP adds some extended functions on the basis of HSP, and is often used to allow, for example, a vehicle-mounted hands-free device to control a smartphone. It uses continuous variable slope delta modulation or pulse code log-one or mu-method quantization audio channel modulation. It is described how the gateway device is used for placing and receiving calls for hands-free devices. Typical configurations such as automobiles use a smartphone as the gateway device. In a car, a stereo system is used for telephone audio, while a microphone mounted in the car is used for transmitting output audio during a call. HFP can also be used in the case of personal computers as smartphone speakers in the home or office environment.
Among other things, A2DP allows for the transmission of stereo audio signals (better quality than mono encryption for HSP and HFP). A2DP enables two electronic devices that also support bluetooth sound transmission to be connected to each other and to output music such as CD sound (16bits, 44.1 kHz). If one party does not support A2DP, then the sound effect can only output Handsfree Profile (8bits, 8 kHz).
Among other things, AVRCP is used to send commands (e.g., skip ahead, pause, and play) from a second electronic device (e.g., stereo headphones) to a first electronic device (e.g., a MediaPlayer-equipped computer). AVRCP is designed to provide a standard interface for controlling TV, Hi-Fi devices, etc. This specification is used to permit a single remote control device (or other device) to control all a/V devices that a user may access. It can be used with A2DP or VDP.
In this embodiment, the first electronic device may initiate the designated connection to the second electronic device. The designated connection may be a device connection based on a designated profile, wherein the designated profile may be one or a combination of HSP, HFP, A2DP, and AVRCP. For example, a designated connection may be an HSP-based device connection initiated by a first electronic device to a second electronic device; the designated connection may be, without limitation, a device connection based on A2DP initiated by the first electronic device to the second electronic device, and so on.
After the pairing is completed and before the connection is performed, the first electronic device and the second electronic device both need to perform service search, where a flow of the service search is SDP, that is, the first electronic device needs to execute an SDP flow to obtain SDP data of the second electronic device in the connection. In this embodiment, when initiating the specified connection to the second electronic device, the first electronic device may obtain SDP data of the specified configuration file (hereinafter referred to as profile) from a local location of the first electronic device, so that an SDP procedure is not performed any more, and an obtaining speed of the SDP data is increased.
As a mode, before initiating the specified connection to the second electronic device this time, the first electronic device has already made the specified connection with the second electronic device, and has already obtained the SDP data of the specified profile when making the specified connection before, so the first electronic device may locally store the SDP data of the specified profile obtained when making the specified connection before, so that when making the specified connection subsequently, the SDP data of the specified profile may be directly obtained from the local, and thus, the obtaining speed of the SDP data may be effectively increased.
Step S120: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
In some embodiments, after the first electronic device obtains the SDP data of the specified profile from the local, the first electronic device may perform specified connection with the second electronic device based on the SDP data of the specified profile, so that the speed of specified connection may be increased.
According to the device connection method provided by the embodiment of the application, when the first electronic device initiates the designated connection to the second electronic device, the first electronic device locally acquires the SDP data of the designated configuration file, wherein the designated connection is based on the designated configuration file, and the SDP data of the designated configuration file is in designated connection with the second electronic device, so that the SDP data of the designated configuration file is locally stored, the flow in the subsequent connection process based on the designated configuration file is simplified, and the speed of Bluetooth connection is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a device connection method according to an embodiment of the present disclosure. The method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 5, where the device connection method may specifically include the following steps:
step S210: the method comprises the steps that when a first electronic device initiates a specified connection to a second electronic device, SDP data of a specified configuration file is obtained from the local part of the first electronic device, wherein the specified connection is a device connection based on the specified configuration file.
Step S220: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For the detailed description of steps S210 to S220, refer to steps S110 to S120, which are not described herein again.
Step S230: and when the SDP data of the specified configuration file is not stored locally in the first electronic equipment, performing service search to the second electronic equipment based on the specified configuration file.
In some embodiments, when initiating a specified connection to a second electronic device, a first electronic device may determine whether SDP data specifying a profile is stored locally on the first electronic device. As one mode, the first electronic device may preset a storage area corresponding to SDP data of a profile, and therefore, when the first electronic device initiates a specified connection to the second electronic device, it may be determined whether the storage area of the first electronic device includes the SDP data of the specified profile, so that the data volume of the query may be reduced.
When the judgment result represents that the first electronic device locally stores the SDP data of the specified profile, the SDP data of the specified profile can be locally acquired, and the first electronic device is in specified connection with the second electronic device based on the SDP data of the specified profile.
When the judgment result indicates that the SDP data of the specified profile is not locally stored in the first electronic device, service search may be performed on the second electronic device based on the specified profile, that is, when the judgment result indicates that the SDP data of the specified profile is not locally stored in the first electronic device, an SDP service discovery procedure may be performed on the second electronic device based on the specified profile.
Step S240: and when the service search is completed, acquiring SDP data of the specified configuration file from the second electronic equipment.
In some embodiments, when the first electronic device completes service search to the second electronic device based on the specified profile, that is, when the first electronic device completes an SDP service discovery procedure to the second electronic device based on the specified profile, the SDP data of the specified profile may be acquired from the second electronic device.
Step S250: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
In some embodiments, after acquiring the SDP data of the specified profile from the second electronic device, the first electronic device may perform specified connection with the second electronic device based on the SDP data of the specified profile, so as to ensure a success rate of specified connection.
Compared with the device connection method shown in fig. 4, in the device connection method provided in an embodiment of the present application, when the SDP data of the specified configuration file is not stored locally in the first electronic device, the SDP data of the specified configuration file is obtained in a service search manner from the second electronic device to perform specified connection with the second electronic device, so as to ensure a success rate of bluetooth connection.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a device connection method according to an embodiment of the present disclosure. The method is applied to the electronic device, and will be described in detail with reference to the flow shown in fig. 6, where the device connection method may specifically include the following steps:
step S310: the method comprises the steps that when a first electronic device initiates a specified connection to a second electronic device, SDP data of a specified configuration file is obtained from the local part of the first electronic device, wherein the specified connection is a device connection based on the specified configuration file.
Step S320: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For the detailed description of steps S310 to S320, please refer to steps S110 to S120, which are not described herein again.
Step S330: and when the SDP data of the specified configuration file is not stored locally in the first electronic equipment, performing service search to the second electronic equipment based on the specified configuration file.
Step S340: and when the service search is completed, acquiring SDP data of the specified configuration file from the second electronic equipment.
Step S350: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For detailed description of steps S330 to S350, please refer to steps S230 to S250, which are not described herein again.
Step S360: storing SDP data of the specified configuration file locally at the first electronic device.
In some embodiments, after the first electronic device acquires the SDP data of the specified profile from the second electronic device, the SDP data of the specified profile may be stored locally in the first electronic device, so that the SDP data of the specified profile may be directly acquired locally when a specified connection is performed subsequently, and thus, the acquisition speed of subsequent SDP data may be effectively increased.
As one way, the first electronic device may not set the storage time limit. Based on this, after the first electronic device stores the profile-specified SDP data locally at the first electronic device, the profile-specified SDP data may be always stored locally at the first electronic device.
Alternatively, the first electronic device may set a storage time limit. Based on this, after the first electronic device stores the profile-specified SDP data locally in the first electronic device, the profile-specified SDP data may be automatically deleted after being stored in the set storage time limit. For example, the first electronic device may set the storage time limit to be half a year, and when the time after the first electronic device stores the SDP data of the specified profile locally in the first electronic device reaches half a year, the SDP data of the specified profile may be automatically deleted locally in the first electronic device.
As still another way, the first electronic device may set a storage time limit. Based on this, after the first electronic device stores the profile-specified SDP data locally in the first electronic device, the profile-specified SDP data may be stored to the set storage time limit, and then the selection information may be output. The selection information is used for the user to select to delete the SDP data of the specified profile or to reserve the SDP data of the specified profile. In some embodiments, if a deletion instruction that a user selects to delete SDP data of a specified profile is received, the SDP data of the specified profile may be deleted locally at the first electronic device in response to the deletion instruction. In some embodiments, if a reservation instruction is received that the user selects to reserve SDP data specifying a profile, the SDP data specifying the profile may be kept stored locally at the first electronic device in response to the reservation instruction. As an implementable manner, if a reservation instruction for reserving SDP data of a specified profile selected by a user is received, an information input box may be displayed, where the information input box is used for the user to input a duration for continuously storing SDP data of the specified profile, and when a target duration input based on the information input box is received, the SDP data of the specified profile may be continuously stored in the local of the first electronic device for the target duration.
Compared with the device connection method shown in fig. 4, in the device connection method provided in an embodiment of the present application, when the SDP data of the specified configuration file is not stored locally in the first electronic device, the SDP data of the specified configuration file is obtained in a service search manner from the second electronic device to perform specified connection with the second electronic device, so as to ensure a success rate of bluetooth connection. In addition, the SDP data of the specified configuration file is acquired and then stored locally, so that the speed of subsequent Bluetooth connection is improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating a device connection method according to an embodiment of the present disclosure. The method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 7, where the device connection method may specifically include the following steps:
step S410: the method comprises the steps that when a first electronic device initiates a specified connection to a second electronic device, SDP data of a specified configuration file is obtained from the local part of the first electronic device, wherein the specified connection is a device connection based on the specified configuration file.
Step S420: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For the detailed description of steps S410 to S420, refer to steps S110 to S120, which are not described herein again.
Step S430: and when the SDP data of the specified configuration file is not stored locally in the first electronic equipment, performing service search to the second electronic equipment based on the specified configuration file.
Step S440: and when the service search is completed, acquiring SDP data of the specified configuration file from the second electronic equipment.
Step S450: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For detailed description of steps S430 to S450, please refer to steps S230 to S250, which are not described herein again.
Step S460: and extracting key data from SDP data of the specified configuration file, wherein the key data is used for carrying out the specified connection with the second electronic equipment.
In some embodiments, after the first electronic device obtains the profile-specified SDP data from the second electronic device, the first electronic device may extract key data from the profile-specified SDP data. Wherein the key data is used for making a designated connection with the second electronic device. As one mode, after acquiring the SDP data of the specified profile from the second electronic device, the first electronic device may acquire key data defined by a profile protocol of the specified profile, and extract the key data from the SDP data of the specified profile according to the key data defined by the profile protocol.
For example, when all the SDP data in the profile-specified SDP data are key data, all the data in the profile-specified SDP data may be directly extracted. For another example, when part of the SDP data in the profile-designated SDP data is key data, part of the SDP data (key data) in the profile-designated SDP data may be extracted.
Step S470: storing the critical data locally to the first electronic device.
In some embodiments, after extracting the critical data from the profile-specific SDP data, the critical data may be stored locally at the first electronic device, while non-critical data in the profile-specific SDP data may not be stored. Based on this, not only can guarantee follow-up bluetooth connection's speed and success rate. The storage volume pressure may also be reduced.
Compared with the device connection method shown in fig. 4, in the device connection method provided in an embodiment of the present application, when the SDP data of the specified configuration file is not stored locally in the first electronic device, the SDP data of the specified configuration file is obtained in a service search manner from the second electronic device to perform specified connection with the second electronic device, so as to ensure a success rate of bluetooth connection. In addition, key data are stored locally after SDP data of a specified configuration file is acquired, so that the speed of subsequent Bluetooth connection is increased and the storage pressure is reduced.
Referring to fig. 8, fig. 8 is a flowchart illustrating a device connection method according to an embodiment of the present disclosure. The method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 8, where the device connection method may specifically include the following steps:
step S510: the method comprises the steps that when a first electronic device initiates a specified connection to a second electronic device, SDP data of a specified configuration file is obtained from the local part of the first electronic device, wherein the specified connection is a device connection based on the specified configuration file.
Step S520: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For the detailed description of steps S510 to S520, refer to steps S110 to S120, which are not described herein again.
Step S530: and when the SDP data of the specified configuration file is not stored locally in the first electronic equipment, performing service search to the second electronic equipment based on the specified configuration file.
Step S540: and when the service search is completed, acquiring SDP data of the specified configuration file from the second electronic equipment.
Step S550: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For detailed description of steps S530 to S540, please refer to steps S230 to S250, which are not described herein again.
Step S560: and acquiring the change condition of the SDP data of the specified configuration file based on the configuration protocol in the specified configuration file.
In some embodiments, after the first electronic device acquires the SDP data of the specified profile from the second electronic device, the first electronic device may acquire a change condition of the SDP data of the specified profile based on a configuration protocol in the specified profile. As one mode, after acquiring the SDP data of the specified profile from the second electronic device, the first electronic device may acquire the profile protocol of the specified profile, where the profile protocol defines whether the SDP data of the specified profile is fixed or dynamically changed, that is, defines a change condition of the SDP data of the specified profile, and therefore, after acquiring the profile protocol of the specified profile, the change condition of the SDP data of the specified profile may be acquired based on the profile protocol.
Step S570: and when the change condition represents that the SDP data of the specified configuration file is fixed data, storing the SDP data of the specified configuration file in the local of the first electronic equipment.
In this embodiment, when it is determined that the change condition of the SDP data of the specified profile indicates that the SDP data of the specified profile is fixed data, it may be determined that the SDP data of the specified profile does not change in the subsequent specified connection process between the first electronic device and the second electronic device, that is, the first electronic device may also be based on the SDP data of the specified profile when the subsequent specified connection process between the first electronic device and the second electronic device is performed. Therefore, the SDP data of the specified profile can be stored locally in the first electronic device, so that the SDP data of the specified profile can be directly acquired locally when a specified connection is performed subsequently, and the acquisition speed of the subsequent SDP data can be effectively increased.
Step S580: and when the change condition represents that the SDP data of the specified configuration file is dynamic change data, not storing the SDP data of the specified configuration file in the local of the first electronic equipment.
In this embodiment, when it is determined that the change condition of the SDP data of the specified profile indicates that the SDP data of the specified profile is dynamically changed data, it may be determined that the SDP data of the specified profile is dynamically changed in the subsequent specified connection process between the first electronic device and the second electronic device, that is, the first electronic device cannot be based on the SDP data of the specified profile any more when the first electronic device is in the subsequent specified connection with the second electronic device. Therefore, the profile-specified SDP data may not be stored locally at the first electronic device to reduce the storage pressure of the first electronic device.
Compared with the device connection method shown in fig. 4, in the device connection method provided in an embodiment of the present application, when the SDP data of the specified configuration file is not stored locally in the first electronic device, the SDP data of the specified configuration file is obtained in a service search manner from the second electronic device to perform specified connection with the second electronic device, so as to ensure a success rate of bluetooth connection. In addition, when the SDP data of the specified configuration file is fixed data, the SDP data of the specified configuration file is stored locally so as to improve the success rate of Bluetooth connection.
Referring to fig. 9, fig. 9 is a schematic flowchart illustrating a device connection method according to an embodiment of the present disclosure. The method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 9, where the device connection method may specifically include the following steps:
step S610: the method comprises the steps that when a first electronic device initiates a designated connection to a second electronic device, SDP data of a designated configuration file is obtained from the first electronic device locally, wherein the designated connection is a connection based on the designated configuration file
Step S620: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For the detailed description of steps S610 to S620, refer to steps S110 to S120, which are not described herein again.
Step S630: and when the SDP data of the specified configuration file is not stored locally in the first electronic equipment, performing service search to the second electronic equipment based on the specified configuration file.
Step S640: and when the service search is completed, acquiring SDP data of the specified configuration file from the second electronic equipment.
Step S650: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For detailed description of steps S630 to S650, refer to steps S230 to S250, which are not described herein again.
Step S660: and when the second electronic equipment meets the preset equipment condition, storing the SDP data of the specified configuration file in the local of the first electronic equipment.
In some embodiments, the first electronic device may preset and store a preset device condition, where the preset device condition is used as a criterion of the second electronic device. Therefore, in this embodiment, after the SDP data of the specified profile is acquired from the second electronic device, the second electronic device may be compared with the preset device condition to determine whether the second electronic device meets the preset device condition.
When the judgment result indicates that the second electronic device meets the preset device condition, the second electronic device can be considered to meet the condition that the SDP data of the specified profile of the second electronic device is stored in the local of the first electronic device. Thus, SDP data specifying a profile may be stored locally at the first electronic device.
As one way, the preset device condition may include that a connection frequency with the first electronic device is greater than a preset connection frequency. In some embodiments, after the first electronic device acquires the SDP data specifying the profile from the second electronic device, the connection frequency between the first electronic device and the second electronic device may be acquired, and the acquired connection frequency between the first electronic device and the second electronic device is compared with a preset connection frequency to determine whether the connection frequency is greater than the preset connection frequency. When the connection frequency is determined to be greater than the preset connection frequency, it may be determined that the second electronic device is a commonly-used electronic device, and SDP data of the specified profile may be stored locally in the first electronic device, so as to increase the specified connection speed of the first electronic device and the second electronic device. When the connection frequency is determined to be not greater than the preset connection frequency, it may be determined that the second electronic device is an unusual electronic device, and SDP data specifying a profile may not be stored locally in the first electronic device, so as to reduce storage pressure of the first electronic device. The connection frequency may be a connection frequency of the first electronic device and the second electronic device within a preset time period. The preset time period may be in months, weeks, years, etc.
As one way, the preset device condition may include that the number of connections with the first electronic device is greater than a preset number of connections. In some embodiments, after the first electronic device acquires the SDP data specifying the profile from the second electronic device, the connection times of the first electronic device and the second electronic device may be acquired, and the acquired connection times of the first electronic device and the second electronic device are compared with the preset connection times to determine whether the connection times are greater than the preset connection times. When the connection times are determined to be greater than the preset connection times, it can be determined that the second electronic device is a commonly-used electronic device, and SDP data of the specified profile can be stored locally in the first electronic device, so that the specified connection speed of the first electronic device and the second electronic device is increased. When the connection times are determined not to be larger than the preset connection times, the second electronic device can be determined to be an unusual electronic device, and the SDP data of the specified profile may not be stored locally in the first electronic device, so as to reduce the storage pressure of the first electronic device. The connection frequency may be the connection frequency of the first electronic device and the second electronic device within a preset time period. The preset time period may be in months, weeks, years, etc.
As one way, the preset device condition may include an electronic device to which the first electronic device is first connected. In some embodiments, after the first electronic device obtains the SDP data specifying the profile from the second electronic device, it may be determined whether the second electronic device is the electronic device to which the first electronic device is connected for the first time. When it is determined that the second electronic device is the electronic device to which the first electronic device is connected for the first time, the first electronic device and the second electronic device can be considered to have a higher probability of belonging to the same user, and SDP data specifying profile can be stored locally in the first electronic device, so that the specified connection speed of the first electronic device and the second electronic device can be increased. When it is determined that the second electronic device is not the electronic device to which the first electronic device is first connected, it may be considered that the first electronic device and the second electronic device have a greater probability of belonging to one user, and SDP data specifying profile may not be stored locally in the first electronic device, so as to reduce the storage pressure of the first electronic device. In some embodiments, the first electronic device may store a bluetooth connection record, and determine whether the second electronic device is the first electronic device connected to the first electronic device based on the bluetooth connection record.
As one way, the preset device condition may include that the logged-in account is consistent with or associated with the logged-in account of the first electronic device. In some embodiments, after the first electronic device acquires SDP data specifying a profile from the second electronic device, an account registered by the first electronic device and an account registered by the second electronic device may be acquired, and whether the account registered by the first electronic device and the account registered by the second electronic device are consistent or associated is determined. When the account number logged in by the first electronic device is determined to be consistent with or associated with the account number logged in by the second electronic device, the first electronic device and the second electronic device can be considered to have a higher probability of belonging to the same user, and SDP data of the specified profile can be stored in the local of the first electronic device, so that the specified connection speed of the first electronic device and the second electronic device is increased. When it is determined that the account registered by the first electronic device is inconsistent and not associated with the account registered by the second electronic device, the first electronic device and the second electronic device may be considered to belong to one user with a higher probability of different, and SDP data specifying profile may not be stored locally in the first electronic device, so as to reduce storage pressure of the first electronic device.
Step S670: and when the second electronic equipment does not meet the preset equipment condition, acquiring the search frequency for performing service search on the second electronic equipment based on the specified configuration file.
In some embodiments, when the determination result indicates that the second electronic device does not satisfy the preset device condition, it may be determined that the second electronic device does not satisfy the condition that the SDP data of the specified profile of the second electronic device is stored in the local of the first electronic device. Thus, the SDP data specifying the profile may not be stored locally at the first electronic device.
In some embodiments, when the determination result indicates that the second electronic device does not satisfy the preset device condition, it may be determined that the second electronic device is suspected to not satisfy a condition that SDP data of a specified profile of the second electronic device is stored in the local of the first electronic device, and then a search frequency of the first electronic device for performing service search on the second electronic device based on the specified profile may be obtained. That is, the frequency at which the first electronic device performs the SDP procedure to the second electronic device based on the specified profile may be obtained as the search frequency.
Step S680: and when the search frequency is greater than the preset search frequency, storing the SDP data of the specified configuration file in the local of the first electronic equipment.
In some embodiments, the first electronic device may preset and store a preset search frequency, where the preset search frequency is used as a criterion for the first electronic device to perform a service search to the second electronic device based on the specified profile. Therefore, in this embodiment, after the search frequency is obtained, the search frequency may be compared with a preset search frequency to determine whether the search frequency is greater than the preset search frequency.
When the search frequency is greater than the preset search frequency, the probability that the first electronic device and the second electronic device are connected in an appointed mode is considered to be high, and the SDP data of the appointed profile can be stored in the local of the first electronic device, so that the success rate of the appointed connection of the first electronic device and the second electronic device is improved.
When the search frequency is not greater than the preset search frequency, the probability that the first electronic device and the second electronic device are connected in the designated manner is considered to be low, and the SDP data of the designated profile may not be stored locally in the first electronic device, so that the storage pressure of the first electronic device is reduced.
Compared with the device connection method shown in fig. 4, in the device connection method provided in an embodiment of the present application, when the SDP data of the specified configuration file is not stored locally in the first electronic device, the SDP data of the specified configuration file is obtained in a service search manner from the second electronic device to perform specified connection with the second electronic device, so as to ensure a success rate of bluetooth connection. In addition, when the second electronic device meets the preset device condition, or when the second electronic device does not meet the preset device condition and the search frequency of service search to the second electronic device based on the specified configuration file is greater than the preset search frequency, the SDP of the specified configuration file is stored locally, so that the reasonability of the stored SDP is improved.
Referring to fig. 10, fig. 10 is a schematic flow chart illustrating a device connection method according to an embodiment of the present application. In this embodiment, the first electronic device locally stores target SDP data of a plurality of configuration files, and the device connection method specifically includes the following steps:
step S710: and when the first electronic equipment initiates a specified connection to the second electronic equipment, determining a configuration file corresponding to the specified configuration file from the plurality of configuration files.
In some embodiments, the target SDP data for each of the plurality of configuration files may be stored locally on the first electronic device. For example, when the plurality of profiles include HSP, HFP, A2DP, and AVRCP, then SDP data of HSP, SDP data of HFP, SDP data of A2DP, and SDP data of AVRCP may be stored locally at the first electronic device.
In this embodiment, when the first electronic device initiates the designated connection to the second electronic device, the profile corresponding to the designated profile may be determined from a plurality of profiles stored locally. For example, assuming that the plurality of profiles include HSP, HFP, A2DP, and AVRCP, if a profile is designated as HSP, HSP corresponding to the designated profile may be determined from among HSP, HFP, A2DP, and AVRCP.
Step S720: and acquiring the SDP data of the configuration file corresponding to the specified configuration file from the local part of the first electronic equipment as the SDP data of the specified configuration file.
In some embodiments, after determining the profile corresponding to the specified profile, the SDP data of the profile corresponding to the specified profile may be acquired from the local of the first electronic device as the SDP data of the specified profile. For example, when it is determined that the profile corresponding to the specified profile is the HSP, the SDP data of the HSP may be acquired from the local of the first electronic device as the SDP data of the specified profile.
Step S730: and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
For detailed description of step S730, please refer to step S120, which is not described herein.
Compared with the device connection method shown in fig. 4, in the device connection method provided in an embodiment of the present application, SDP data of a plurality of configuration files is stored locally in the first electronic device, so as to improve the speed of various types of bluetooth connections.
Referring to fig. 11, fig. 11 is a block diagram illustrating a device connecting apparatus according to an embodiment of the present disclosure. The device connecting apparatus 300 is applied to the electronic device, and will be explained with reference to the block diagram shown in fig. 11, where the device connecting apparatus 300 includes: an acquisition module 310 and a connection module 320, wherein:
an obtaining module 310, configured to, when initiating a specified connection to a second electronic device, the first electronic device obtains SDP data of a specified configuration file from a local location of the first electronic device, where the specified connection is a device connection based on the specified configuration file.
Further, target SDP data of a plurality of configuration files are stored locally in the first electronic device, and the obtaining module 310 includes: a configuration file determining submodule and an obtaining submodule, wherein:
and the configuration file determining submodule is used for determining a configuration file corresponding to the specified configuration file from the plurality of configuration files when the first electronic equipment initiates the specified connection to the second electronic equipment.
And the obtaining sub-module is used for obtaining the SDP data of the configuration file corresponding to the specified configuration file from the local part of the first electronic equipment, and the SDP data is used as the SDP data of the specified configuration file.
A connection module 320, configured to perform the specified connection with the second electronic device based on the SDP data of the specified configuration file.
Further, the device connecting apparatus 300 further includes: service search module, SDP data acquisition module and appointed connection module, wherein:
and the service searching module is used for searching for the service to the second electronic equipment based on the specified configuration file when the SDP data of the specified configuration file is not locally stored in the first electronic equipment.
And the SDP data acquisition module is used for acquiring the SDP data of the specified configuration file from the second electronic equipment when the service search is completed.
And the appointed connection module is used for carrying out the appointed connection with the second electronic equipment based on the SDP data of the appointed configuration file.
Further, the device connecting apparatus 300 further includes: a local storage module, wherein:
a local storage module, configured to store the SDP data of the specified configuration file locally in the first electronic device.
Further, the local storage module includes: the key data extraction submodule and the key data storage submodule, wherein:
and the key data extraction submodule is used for extracting key data from SDP data of the specified configuration file, wherein the key data is used for performing the specified connection with the second electronic equipment.
And the key data storage submodule is used for storing the key data locally in the first electronic equipment.
Further, the local storage module includes: the device comprises a change condition acquisition submodule, a first storage submodule and a second storage submodule, wherein:
and the change condition acquisition submodule is used for acquiring the change condition of the SDP data of the specified configuration file based on the configuration protocol in the specified configuration file.
And the first storage submodule is used for storing the SDP data of the specified configuration file in the local of the first electronic device when the change condition represents that the SDP data of the specified configuration file is fixed data.
And the second storage submodule is used for not storing the SDP data of the specified configuration file in the local of the first electronic device when the change condition represents that the SDP data of the specified configuration file is dynamic change data.
Further, the local storage module includes: a third storage submodule, wherein:
and the third storage submodule is used for storing the SDP data of the specified configuration file in the local of the first electronic device when the second electronic device meets the preset device condition.
Further, the local storage module includes: a search frequency acquisition submodule and a fourth storage submodule, wherein:
and the search frequency acquisition sub-module is used for acquiring the search frequency for performing service search on the second electronic equipment based on the specified configuration file when the second electronic equipment does not meet the preset equipment condition.
And the fourth storage submodule is used for storing the SDP data of the specified configuration file in the local of the first electronic device when the search frequency is greater than the preset search frequency.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 12, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 400 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 400 includes a non-volatile computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. Program code 410 may be compressed, for example, in a suitable form.
To sum up, according to the device connection method, the device, the electronic device, and the storage medium provided in the embodiments of the present application, when initiating the designated connection to the second electronic device, the first electronic device locally obtains the SDP data of the designated configuration file from the first electronic device, where the designated connection is the device connection based on the designated configuration file, and performs the designated connection with the second electronic device based on the SDP data of the designated configuration file, so that the procedure in the subsequent connection process based on the designated configuration file is simplified by locally storing the SDP data of the designated configuration file, and the speed of bluetooth connection is increased.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. A device connection method is applied to a first electronic device, and comprises the following steps:
when initiating a specified connection to a second electronic device, the first electronic device locally acquires SDP data of a specified configuration file from the first electronic device, wherein the specified connection is a device connection based on the specified configuration file;
and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
2. The method of claim 1, further comprising:
when the SDP data of the specified configuration file is not stored locally in the first electronic equipment, performing service search to the second electronic equipment based on the specified configuration file;
when the service search is completed, acquiring SDP data of the specified configuration file from the second electronic equipment;
and performing the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
3. The method of claim 2, further comprising, after said obtaining SDP data for the specified configuration file from the second electronic device when the service search is complete:
storing SDP data of the specified configuration file locally at the first electronic device.
4. The method of claim 3, wherein storing the SDP data for the specified configuration file locally at the first electronic device comprises:
extracting key data from SDP data of the specified configuration file, wherein the key data is used for performing the specified connection with the second electronic equipment;
storing the critical data locally to the first electronic device.
5. The method of claim 3, wherein storing the SDP data for the specified configuration file locally at the first electronic device comprises:
acquiring the change condition of SDP data of the specified configuration file based on the configuration protocol in the specified configuration file;
when the change condition represents that the SDP data of the specified configuration file is fixed data, storing the SDP data of the specified configuration file in the local of the first electronic equipment; or
And when the change condition represents that the SDP data of the specified configuration file is dynamic change data, not storing the SDP data of the specified configuration file in the local of the first electronic equipment.
6. The method of claim 3, wherein storing the SDP data for the specified configuration file locally at the first electronic device comprises:
and when the second electronic equipment meets the preset equipment condition, storing the SDP data of the specified configuration file in the local of the first electronic equipment.
7. The method of claim 6, further comprising:
when the second electronic equipment does not meet preset equipment conditions, acquiring a search frequency for performing service search on the second electronic equipment based on the specified configuration file;
and when the search frequency is greater than the preset search frequency, storing the SDP data of the specified configuration file in the local of the first electronic equipment.
8. The method of claim 6, wherein the preset device conditions comprise:
the connection frequency with the first electronic equipment is greater than a preset connection frequency;
the connection times with the first electronic equipment are larger than the preset connection times; or
The electronic equipment which is connected with the first electronic equipment for the first time; or
The logged-in account is consistent with or associated with the account logged in by the first electronic device.
9. The method according to any of claims 1-8, wherein the first electronic device locally stores target SDP data for each of a plurality of configuration files, and wherein the first electronic device obtains SDP data for a specified configuration file from locally at the first electronic device when initiating a specified connection to a second electronic device, comprises:
when the first electronic equipment initiates a specified connection to second electronic equipment, determining a configuration file corresponding to the specified configuration file from the plurality of configuration files;
and acquiring the SDP data of the configuration file corresponding to the specified configuration file from the local part of the first electronic equipment as the SDP data of the specified configuration file.
10. An apparatus for connecting devices, applied to a first electronic device, the apparatus comprising:
an obtaining module, configured to, when a specified connection is initiated to a second electronic device by the first electronic device, obtain SDP data of a specified configuration file from a local area of the first electronic device, where the specified connection is a device connection based on the specified configuration file;
and the connection module is used for carrying out the specified connection with the second electronic equipment based on the SDP data of the specified configuration file.
11. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
CN202111203750.5A 2021-10-15 2021-10-15 Device connection method, device, electronic device and storage medium Active CN113727463B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111203750.5A CN113727463B (en) 2021-10-15 2021-10-15 Device connection method, device, electronic device and storage medium
PCT/CN2022/123994 WO2023061273A1 (en) 2021-10-15 2022-10-09 Device connection method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111203750.5A CN113727463B (en) 2021-10-15 2021-10-15 Device connection method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN113727463A true CN113727463A (en) 2021-11-30
CN113727463B CN113727463B (en) 2024-05-03

Family

ID=78686005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111203750.5A Active CN113727463B (en) 2021-10-15 2021-10-15 Device connection method, device, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN113727463B (en)
WO (1) WO2023061273A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023061273A1 (en) * 2021-10-15 2023-04-20 Oppo广东移动通信有限公司 Device connection method and apparatus, and electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110281519A1 (en) * 2010-05-11 2011-11-17 Plantronics, Inc. Information Exchange Via Bluetooth Service Discovery Protocol Service Records
CN104507034A (en) * 2014-11-24 2015-04-08 小米科技有限责任公司 Equipment connecting method, device and terminal equipment
KR20180057919A (en) * 2016-11-23 2018-05-31 전자부품연구원 System and method to registration of wearable device
CN110784846A (en) * 2019-10-10 2020-02-11 RealMe重庆移动通信有限公司 Vehicle-mounted Bluetooth device identification method and device, electronic device and storage medium
CN112868244A (en) * 2018-11-30 2021-05-28 华为技术有限公司 Point-to-multipoint data transmission method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160073219A1 (en) * 2013-04-26 2016-03-10 Clarion Co., Ltd. Communication device and bluetooth communication system
US10356232B1 (en) * 2018-03-22 2019-07-16 Bose Corporation Dual-transceiver wireless calling
CN113727463B (en) * 2021-10-15 2024-05-03 Oppo广东移动通信有限公司 Device connection method, device, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110281519A1 (en) * 2010-05-11 2011-11-17 Plantronics, Inc. Information Exchange Via Bluetooth Service Discovery Protocol Service Records
CN104507034A (en) * 2014-11-24 2015-04-08 小米科技有限责任公司 Equipment connecting method, device and terminal equipment
KR20180057919A (en) * 2016-11-23 2018-05-31 전자부품연구원 System and method to registration of wearable device
CN112868244A (en) * 2018-11-30 2021-05-28 华为技术有限公司 Point-to-multipoint data transmission method and device
CN110784846A (en) * 2019-10-10 2020-02-11 RealMe重庆移动通信有限公司 Vehicle-mounted Bluetooth device identification method and device, electronic device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023061273A1 (en) * 2021-10-15 2023-04-20 Oppo广东移动通信有限公司 Device connection method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
WO2023061273A1 (en) 2023-04-20
CN113727463B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
US11812485B2 (en) Bluetooth communication method and terminal
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
CN109257500B (en) Audio playing method and device, electronic equipment and storage medium
US11501779B2 (en) Bluetooth speaker base, method and system for controlling thereof
CN113766477A (en) Device connection method, device, electronic device and computer readable medium
WO2014090040A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
CN103391121A (en) Method for pairing and connecting multiple devices and Bluetooth device
US11991612B2 (en) Bluetooth data transmission method and apparatus, terminal and storage medium
WO2023040517A1 (en) Audio data playback method, device, electronic equipment, and storage medium
WO2023160212A1 (en) Connection establishment method and apparatus, device, storage medium, and program product
CN111556439A (en) Terminal connection control method, terminal and computer storage medium
WO2023061273A1 (en) Device connection method and apparatus, and electronic device and storage medium
CN113810890A (en) Device loop-back method, device, electronic device and storage medium
CN115119190A (en) Bluetooth connection method and device, computer equipment and readable storage medium
CN109298846B (en) Audio transmission method and device, electronic equipment and storage medium
CN110602683A (en) Bluetooth control method, device, mobile terminal and storage medium
CN103546422A (en) Vehicular screen multiplexing system, application method thereof and multimedia interaction system
US20140163971A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
CN116321084A (en) Bluetooth communication method, bluetooth communication device, electronic equipment and computer readable medium
CN112312368A (en) Data processing method, device, equipment and storage medium
WO2021239032A1 (en) Bluetooth protocol connection method and apparatus, storage medium, and related device
CN113132440B (en) Audio transmission method, audio transmission system and electronic equipment
CN107436747B (en) Terminal application program control method and device, storage medium and electronic equipment
WO2024012072A1 (en) Intercom method and apparatus for earphones, bluetooth earphones, and storage medium
CN116744244B (en) Communication method, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant