WO2021129529A1 - Device switching method and related device - Google Patents

Device switching method and related device Download PDF

Info

Publication number
WO2021129529A1
WO2021129529A1 PCT/CN2020/137483 CN2020137483W WO2021129529A1 WO 2021129529 A1 WO2021129529 A1 WO 2021129529A1 CN 2020137483 W CN2020137483 W CN 2020137483W WO 2021129529 A1 WO2021129529 A1 WO 2021129529A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
identifier
input
connection
user
Prior art date
Application number
PCT/CN2020/137483
Other languages
French (fr)
Chinese (zh)
Inventor
余文杰
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021129529A1 publication Critical patent/WO2021129529A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Definitions

  • the present invention relates to the field of communication technology, in particular to a device switching method and related devices.
  • Bluetooth devices such as Bluetooth headsets, Bluetooth speakers, etc.
  • Device or play audio from electronic devices through Bluetooth devices.
  • Bluetooth devices are usually only allowed to connect to one electronic device at a time.
  • a series of operations are often required to complete. For example, when a user is away from home, he is connected to his mobile phone through a Bluetooth headset. When he returns home, he expects to switch to a tablet to play music. Then the user needs to disconnect the Bluetooth headset on the phone first, and then connect to the tablet.
  • the computer terminal initiates the pairing connection to the Bluetooth headset to complete, and this user interaction experience is not very friendly.
  • the embodiment of the present invention provides a device switching method and related devices to solve the problem of complicated operation and low efficiency of the device switching method in the prior art.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides a device switching method, which is applied to a first electronic device, and the method includes:
  • the at least one electronic device identifier In response to the first input, disconnect the connection between the first electronic device and the second electronic device, and control the connection between the second electronic device and the third electronic device, the at least one electronic device identifier Including the identifier corresponding to the third electronic device.
  • an embodiment of the present invention provides another device switching method, which is applied to a first electronic device, and the method includes:
  • Configuration interface includes at least one electronic device identifier
  • the association relationship is sent to a second electronic device connected to the first electronic device.
  • an embodiment of the present invention provides another device switching method, which is applied to a second electronic device, and the method includes:
  • the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • an embodiment of the present invention provides another device switching method, which is applied to a second electronic device, and the method includes:
  • the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
  • an embodiment of the present invention provides a first electronic device, including:
  • a display module configured to display at least one electronic device identifier when the first electronic device is connected to the second electronic device;
  • the first receiving module is configured to receive the first input
  • the control module is adapted to disconnect the connection between the first electronic device and the second electronic device in response to the first input, and control the connection between the second electronic device and the third electronic device, the
  • the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • an embodiment of the present invention provides another first electronic device, including:
  • a display module configured to display a configuration interface, the configuration interface including at least one electronic device identifier
  • Receiving module for receiving the second input
  • An establishment module configured to establish an association relationship between each electronic device corresponding to the at least one electronic device identifier and an operation item in response to the second input;
  • the sending module is configured to send the association relationship to a second electronic device connected to the first electronic device.
  • an embodiment of the present invention provides a second electronic device, including:
  • the sending module is configured to send historical paired device information to the first electronic device, wherein the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • an embodiment of the present invention provides a second electronic device, including:
  • the first receiving module is configured to receive the association relationship between each electronic device and the operation item corresponding to at least one electronic device identifier sent by the first electronic device when the second electronic device is connected to the first electronic device;
  • the second receiving module is used to receive the third input
  • a switching module configured to disconnect the second electronic device from the first electronic device in response to the third input, and establish a connection between the second electronic device and the fourth electronic device;
  • the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
  • an embodiment of the present invention provides an electronic device including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program When the computer program is executed by the processor, Implement the steps in the device switching method described in the first aspect or the second aspect; or, when the computer program is executed by the processor, implement the steps in the device switching method described in the third or fourth aspect above .
  • an embodiment of the present invention provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned first or second aspect is implemented Or, when the computer program is executed by a processor, the steps in the device switching method described in the third aspect or the fourth aspect are implemented.
  • the first electronic device when the first electronic device is connected to the second electronic device, at least one electronic device identifier is displayed; a first input is received; in response to the first input, the first electronic device is disconnected from the The connection between the second electronic device and the connection between the second electronic device and the third electronic device are controlled, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • the user when it is necessary to switch the connected device to the second electronic device, the user only needs to perform the first input based on the displayed device identification on the first electronic device, instead of performing a series of switching operations among multiple devices, so that the switch The operation of the connected equipment is simple and convenient, and the efficiency is high.
  • FIG. 1 is one of the flowcharts of a device switching method provided by an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an interface for selecting a switching device on a first electronic device according to an embodiment of the present invention
  • FIG. 3 is the second flowchart of a device switching method provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an interface for configuring a switching operation mode of each device on a first electronic device according to an embodiment of the present invention
  • FIG. 5 is the third flowchart of a device switching method provided by an embodiment of the present invention.
  • FIG. 6 is the fourth flow chart of a device switching method provided by an embodiment of the present invention.
  • FIG. 7 is one of the structural diagrams of a first electronic device according to an embodiment of the present invention.
  • FIG. 8 is a second structural diagram of a first electronic device according to an embodiment of the present invention.
  • FIG. 9 is a third structural diagram of a first electronic device according to an embodiment of the present invention.
  • FIG. 10 is a fourth structural diagram of a first electronic device according to an embodiment of the present invention.
  • FIG. 11 is one of the structural diagrams of a second electronic device according to an embodiment of the present invention.
  • FIG. 12 is a second structural diagram of a second electronic device according to an embodiment of the present invention.
  • FIG. 13 is a third structural diagram of a second electronic device according to an embodiment of the present invention.
  • FIG. 14 is a hardware structure diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 1 is a flowchart of a device switching method provided by an embodiment of the present invention, which is applied to a Bluetooth device. As shown in FIG. 1, the method includes the following steps:
  • Step 101 When the first electronic device is connected to the second electronic device, display at least one electronic device identifier.
  • the above-mentioned first electronic device may be a mobile terminal such as a mobile phone, a tablet, or a fixed terminal such as a computer, a notebook, a computer
  • the above-mentioned second electronic device may be a Bluetooth device that supports Bluetooth transmission, such as a Bluetooth headset and a Bluetooth speaker.
  • a Bluetooth headset and a Bluetooth speaker
  • wearable devices such as smart bracelets, glasses, or other external devices.
  • connection of the first electronic device and the second electronic device may mean that the first electronic device and the second electronic device have established a communication connection through Bluetooth or a wireless network or the like.
  • the aforementioned at least one electronic device identification may be sent by the second electronic device to the first electronic device, or may be an identification of a nearby electronic device searched by the first electronic device, such as searching for nearby electronic devices via Bluetooth
  • the device identifier can be the name, IP address, and other identifiers of the electronic device.
  • At least one electronic device identifier received or searched can be displayed for the user to display the second electronic device on the first electronic device.
  • the electronic device selects the target electronic device to be switched or configures the switching operation mode of the electronic device corresponding to each electronic device identifier.
  • the method further includes:
  • the second electronic device may first send its stored historical paired device information, such as the name or address of the historical paired device, to the first electronic device, so that the first electronic device can receive
  • the at least one electronic device identifier is an identifier such as the name or address of the at least one historical paired device of the second electronic device.
  • the first electronic device may extract at least one electronic device identification based on the received historical paired device information, and display the at least one electronic device identification on a user interface, so that the user can identify the at least one electronic device Logo to choose.
  • the user can switch the connected device according to the historical paired device information of the second electronic device.
  • the pairing address information of each historical paired device is stored, so that the corresponding pairing address can be quickly found according to the device identification, and then the corresponding device can be quickly switched to.
  • Step 102 Receive a first input.
  • the above-mentioned first input may be a user's selection operation of at least one electronic device identification displayed on the first electronic device.
  • each electronic device identification corresponds to a device option, and the user may select one from the at least one electronic device identification.
  • the target device identifier is used to control the second electronic device to switch to the electronic device connection corresponding to the target device identifier.
  • the above-mentioned first input may also be the user's switching operation configuration for the electronic device corresponding to each electronic device identification, that is, to select a switching operation mode for each electronic device identification, such as configuring the switching operation of the first electronic device identification as long Press 2s, configure the switching operation of the second electronic device identification as a long press for 3s, configure the switching operation of the third electronic device identification as a double-click operation, and so on.
  • a switching operation mode for each electronic device identification such as configuring the switching operation of the first electronic device identification as long Press 2s, configure the switching operation of the second electronic device identification as a long press for 3s, configure the switching operation of the third electronic device identification as a double-click operation, and so on.
  • a switching operation corresponding to the target electronic device is executed on the electronic device to switch to the target electronic device.
  • the step 102 includes:
  • the first input may be a selection input for the target device identifier in the at least one electronic device identifier.
  • the first electronic device displays the at least one electronic device identifier, it may A device identification option is generated for each electronic device identification for the user to select the device identification that the user desires to switch. After receiving the target device identification selected by the user, it can respond to the user's selection input, that is, control the second electronic device. The device switches to the electronic device connection corresponding to the target device identifier.
  • the method further includes:
  • the target device identification can be returned to the second electronic device, so that the second electronic device can determine the corresponding target device identification according to the received target device identification.
  • the target electronic device initiates a connection request to the target electronic device according to the connection address information of the target electronic device, and then switches to connect to the target electronic device.
  • the first electronic device may display a device selection interface 20.
  • the device selection interface 20 displays a plurality of information including the second electronic device.
  • Device option 21 of the name of the historical paired device and prompts the user to select a device identifier from them.
  • the user can click on the device option corresponding to any one of the device identifiers, and the first electronic device sends the target device identifier corresponding to the device option selected by the user to
  • the second electronic device after receiving the target device identifier, the second electronic device can disconnect from the first electronic device and connect to the third electronic device corresponding to the target device identifier.
  • Step 103 In response to the first input, disconnect the connection between the first electronic device and the second electronic device, and control the connection between the second electronic device and the third electronic device, and the at least one
  • the electronic device identification includes an identification corresponding to the third electronic device.
  • the target device identification selected by the first input may be sent to the first input.
  • Second electronic device to control the second electronic device to switch to the third electronic device connection corresponding to the target device identifier, and at the same time to disconnect the connection between the first electronic device and the second electronic device; when the When the first input is a switch operation configuration input, corresponding switch configuration information can be generated and sent to the second electronic device, so that the second electronic device can switch the connected device according to the switch configuration information, that is, disconnect Open the connection with the first electronic device, and switch to the corresponding third electronic device according to the user's switching operation.
  • the device switching method in this embodiment when the first electronic device is connected to the second electronic device, at least one electronic device identifier is displayed; a first input is received; in response to the first input, the first electronic device is disconnected.
  • the connection between the electronic device and the second electronic device and controlling the connection between the second electronic device and the third electronic device, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • FIG. 3 is a flowchart of another device switching method provided by an embodiment of the present invention, which is applied to a first electronic device. As shown in FIG. 3, the method includes the following steps:
  • Step 301 A configuration interface is displayed, and the configuration interface includes at least one electronic device identifier.
  • the aforementioned at least one electronic device identifier may be sent to the first electronic device by a second electronic device connected to the first electronic device, or may be an identifier of a nearby electronic device searched by the first electronic device, such as The identification of nearby electronic devices is searched through Bluetooth, and the device identification may be an identification such as the name and IP address of the electronic device.
  • the target switching connection device when the target switching connection device is far away from the user's location or is not convenient for the user to obtain, in order to reduce the connection operation performed by the user on the device, a convenient way for the user to connect to the first electronic device (user The electronic device that is convenient to operate) and the second electronic device connected to the first electronic device perform corresponding operations to complete the switching of the connected device of the second electronic device.
  • the first electronic device may be The configuration interface is displayed on the configuration interface, and the at least one electronic device identification is displayed in the configuration interface. The user can select the corresponding operation item for each electronic device identification on the configuration interface, that is, corresponding to each electronic device identification The electronic device configuration switch operation mode.
  • the method further includes:
  • the second electronic device may first send its stored historical paired device information, such as the name or address of the historical paired device, to the first electronic device, so that the first electronic device can receive
  • the at least one electronic device identifier is an identifier such as the name or address of the at least one historical paired device of the second electronic device.
  • the first electronic device may extract at least one electronic device identifier from the received historical paired device information, and display the at least one electronic device identifier on the configuration interface, so that the user can check the at least one Each electronic device configuration operation item corresponding to the electronic device identifier.
  • the user can configure the operation items of each historical paired device of the second electronic device on the first electronic device, so that the user can follow the configuration
  • the information is that the second electronic device switches and connects to the device.
  • Step 302 Receive a second input.
  • the above-mentioned second input may be an input of selecting a corresponding operation item for each electronic device identifier in the at least one electronic device identifier, that is, configuring a corresponding switching operation mode for each electronic device corresponding to each electronic device identifier, That is, the operation item is an operation option corresponding to a certain operation mode.
  • the user can configure the corresponding operation item for the first electronic device identification as long press for 2s, configure the corresponding operation item for the second electronic device identification as long press for 3s, and configure the corresponding operation item for the third electronic device identification on the configuration interface.
  • the operation item is double-click operation, and so on.
  • the user can perform corresponding operations on the second electronic device according to the operation mode indicated by the operation item corresponding to the target electronic device, so as to realize the switch connection of the second electronic device to the target electronic device.
  • Step 303 In response to the second input, establish an association relationship between each electronic device corresponding to the at least one electronic device identifier and the operation item.
  • Step 304 Send the association relationship to a second electronic device connected to the first electronic device.
  • the association relationship between each electronic device corresponding to the at least one electronic device identifier and the operation item can be established based on the configured information, and The association relationship may be sent to the second electronic device, so that the second electronic device determines the electronic device corresponding to the switching operation subsequently performed by the user based on the association relationship.
  • the user can follow the operation items configured for each electronic device corresponding to the at least one electronic device in the second input, and switch the operation corresponding to the connected third electronic device on the second electronic device as desired
  • the operation mode indicated by the item performs the corresponding switching operation
  • the second electronic device may determine that the current switching operation corresponds to the third electronic device according to the electronic device corresponding to each operation item indicated in the association relationship, and then It can be switched to connect with the third electronic device.
  • the first electronic device may display a device switching configuration interface 40, and the device switching configuration interface 40 displays a plurality of devices containing the second electronic device.
  • the device option 41 of the name of the historical paired device and the switch operation mode option 42 of each historical paired device and prompt the user to configure the switching operation mode for each device, that is, to select different operation items, the user can respectively correspond to each historical paired device Switch operation mode option 42 for each historical paired device, select the corresponding operation item for each historical paired device.
  • the user can click the "configuration" button 43, and the first electronic device can send the association relationship between each historical paired device configured by the user and the corresponding operation item to the second electronic device.
  • the user wants to switch to electronic device A, he can press and hold one time on the second electronic device. If he wants to switch to electronic device B, he can press and hold two times on the second electronic device. If he wants to switch to electronic Device C, you can press and hold 3 times on the second electronic device.
  • connection device of the second electronic device when the connection device of the second electronic device needs to be switched, it is only necessary to configure the operation items corresponding to each electronic device identifier on the first electronic device, and execute the desired connected electronic device on the second electronic device
  • the corresponding switching operation is sufficient, without the user disconnecting the original connected device and clicking the connection on the target electronic device. It is suitable for operations such as the first electronic device and the second electronic device within the user’s reach, but When it is inconvenient to operate the third electronic device that is desired to be connected, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
  • FIG. 5 is a flowchart of another device switching method according to an embodiment of the present invention, which is applied to a second electronic device. As shown in FIG. 5, the method includes the following steps:
  • Step 501 Send historical paired device information to the first electronic device, where the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • the second electronic device may send its historical paired device information to the first electronic device. Specifically, it may first obtain It stores historical paired device information, such as the recorded name of the paired device, and then sends the historical paired device information to the first electronic device.
  • the first electronic device After the first electronic device receives the historical paired device information sent by the second electronic device, it may display the historical paired device information, such as the electronic device identifier, on the user interface, so that the user can select the desired second Second, the identification corresponding to the electronic device to which the electronic device is switched and connected, after receiving the user's device selection input, the first electronic device can control the second electronic device to switch the connected device, that is, control the second electronic device to disconnect Open a connection with the first electronic device, and establish a connection with the electronic device corresponding to the electronic device identifier selected by the user.
  • the second electronic device to switch the connected device, that is, control the second electronic device to disconnect Open a connection with the first electronic device, and establish a connection with the electronic device corresponding to the electronic device identifier selected by the user.
  • the historical pairing device information may include at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to a third electronic device, so that the user can select the third electronic device by selecting the third electronic device on the first electronic device.
  • the method further includes:
  • the first electronic device may select the third electronic device selected by the user.
  • the identification corresponding to the electronic device is returned to the second electronic device, so that the second electronic device can receive the identification corresponding to the third electronic device sent by the first electronic device, and based on the identification, from the history
  • the connection information of the third electronic device corresponding to the identifier is found in the paired device information, such as a Bluetooth address, and then the connection with the first electronic device can be disconnected, and through the connection information of the third electronic device, The third electronic device establishes a connection.
  • the user can directly select the identification of the electronic device that is desired to switch the connection for the second electronic device on the first electronic device, and switch the connected device of the second electronic device without having to switch between multiple devices.
  • Operations between devices can improve device switching efficiency and operation convenience, and are suitable for scenarios where a user quickly completes a connected device switch to a second electronic device through the current handheld device.
  • the second electronic device may directly implement the switching of the connected device by receiving the voice switching instruction input by the user.
  • the device switching method may also include:
  • the voice switching instruction includes identification information of the third electronic device
  • the second electronic device can support the voice recognition function, so that it can recognize the voice switching instruction that contains the device switching information issued by the user, that is, the user can voice input the identification information of the third electronic device that needs to be switched. , Such as inputting the name of the third electronic device by voice, wherein the third electronic device may be a historical pairing device of the second electronic device.
  • the second electronic device After receiving the voice switching instruction, the second electronic device can respond by recognizing the identification information of the third electronic device included therein by voice, that is, disconnecting the connection with the first electronic device, and
  • the connection information of the third electronic device such as a Bluetooth address, can be searched for through the identification information of the third electronic device, and a connection with the third electronic device can be established based on the connection information.
  • the method before the receiving the voice switching instruction input by the user, the method further includes:
  • the receiving the voice switching instruction input by the user includes:
  • the second electronic device may support a voice recognition function, and before receiving the user's voice switching instruction, may first receive a user's preset input, and the preset input may be preset for triggering
  • the input for the second electronic device to enter the device switching mode for example, the preset input is tapping three times on the second electronic device, so that after receiving the preset input, the device switching mode can be entered, And turn on the voice function to receive and recognize the voice switching instructions input by the user.
  • the voice switching instruction input by the user may carry an identifier for indicating the connected third electronic device, such as the name of the third electronic device, so that the second electronic device recognizes the voice switching instruction. After the identification of the third electronic device, you can switch to connect with the third electronic device.
  • the user does not need to rely on other electronic devices and can directly operate on the second electronic device to complete the switching operation of the connected device of the second electronic device.
  • the third electronic device may be a historical pairing device of the second electronic device, that is, the second electronic device stores and records the information of the third electronic device Information, such as Bluetooth address, name, etc., in this way, according to the third electronic device indicated by the device switching instruction, the second electronic device can quickly connect to the third electronic device through the recorded information of the third electronic device Three electronic equipment.
  • the third electronic device Information such as Bluetooth address, name, etc.
  • the establishing a connection with the third electronic device includes:
  • the third electronic device is a historical pairing device, establish a connection with the third electronic device, and if the connection is successful, output a first prompt voice to prompt that the handover connection is successful;
  • the method further includes:
  • the third electronic device after receiving the device switching instruction input by the user, in order to ensure that the device switching is successful, it can first determine whether the third electronic device is a historical paired device, that is, it can be based on the third electronic device indicated by the device switching instruction To determine whether the third electronic device is a historical paired device.
  • connection information of the third electronic device such as Bluetooth address
  • the connection information of the third electronic device such as Bluetooth address
  • the Bluetooth headset Take the Bluetooth headset as an example.
  • the user can obtain feedback on the switching result, thereby improving the user experience.
  • the embodiment of the present invention can also be applied to complete the switching of the connected device of the second electronic device through an electronic device that has not established a communication connection with the second electronic device, that is, before the step 501,
  • the method may also include:
  • the fourth electronic device In the case that the fourth electronic device has established a communication connection with the second electronic device, send historical pairing device information to the fourth electronic device based on the established communication connection mode; or
  • the fourth electronic device does not establish a communication connection with the second electronic device, send the historical paired device information to the fourth electronic device by way of Bluetooth Low Energy (BLE) broadcasting .
  • BLE Bluetooth Low Energy
  • the second electronic device may send the historical paired device information in a different manner according to whether the fourth electronic device establishes a communication connection with it.
  • the second electronic device may send its historical pairing to the fourth electronic device based on the established communication connection mode Device information, for example, if the fourth electronic device and the second electronic device establish a serial port profile (Serial Port Profile, SPP) connection, the second electronic device can connect to all devices based on the established SPP connection.
  • SPP Serial Port Profile
  • the fourth electronic device sends the historical paired device information; if the fourth electronic device establishes a Bluetooth hands-free application (Hands-free Profile, HFP) connection with the second electronic device, the second electronic device
  • the historical paired device information may be sent to the fourth electronic device based on the established HFP connection.
  • the second electronic device can broadcast its historical paired device information using BLE, so that all the devices within its broadcast range are broadcasted.
  • the fourth electronic device may receive historical paired device information broadcast by the Bluetooth device.
  • the user can use the electronic device currently connected to the second electronic device to assist in completing the switch of the connected device of the second electronic device, or according to the actual scenario, use an electronic device that is convenient to operate (such as a device closer to the user). ) To assist in completing the switching of the connected device of the second electronic device, so that the user's device switching operation is more flexible, and is not restricted by the location of the device.
  • the second electronic device may send the historical paired device information to the fourth electronic device based on a user's trigger operation or a request of the fourth electronic device to enter the device switching process.
  • the device switching method of this embodiment by sending historical paired device information to the first electronic device, it is convenient for the user to select the electronic device that the user wants to switch to and connect to on the first electronic device for the second electronic device, and based on the user The selection controls the second electronic device to switch to establish a connection with the third electronic device, so that when switching the connected device for the second electronic device, the user does not need to perform excessive operations among multiple electronic devices, making the operation of switching the connected device simple Convenient and efficient.
  • FIG. 6 is a flowchart of another device switching method provided by an embodiment of the present invention, which is applied to a second electronic device. As shown in FIG. 6, the method includes the following steps:
  • Step 601 When the second electronic device is connected to the first electronic device, receive the association relationship between each electronic device and the operation item corresponding to the at least one electronic device identifier sent by the first electronic device.
  • Step 602 Receive a third input.
  • Step 603 In response to the third input, disconnect the second electronic device from the first electronic device, and establish a connection between the second electronic device and the fourth electronic device;
  • the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
  • the foregoing association relationship may be established by the first electronic device based on the user configuring the corresponding operation items for each electronic device identifier on the configuration interface.
  • the correlation in the method embodiment shown in FIG. 3 Description in order to avoid repetition, I will not repeat it here.
  • the foregoing third input may be a device switching operation input by the user on the second electronic device, and the second electronic device may determine the connection indicated by the third input based on the association relationship sent by the first electronic device
  • the third electronic device of, specifically, the operation item corresponding to the third input may be determined, and the electronic device associated with the operation item may be determined according to the association relationship.
  • the method further includes:
  • the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the fourth electronic device.
  • the second electronic device may first send its stored historical paired device information, such as the name or address of the historical paired device, to the first electronic device.
  • the first electronic device may display a device switching configuration interface including at least one electronic device identifier on the user interface, so that the user can configure the operation items corresponding to each electronic device identifier for the second electronic device on the interface, This enables the second electronic device to determine the fourth electronic device that the user desires to switch to, according to the user's subsequent switching operation on the second electronic device.
  • the first electronic device may return the information of the operation item corresponding to each electronic device identifier configured by the user, that is, the association relationship to the second electronic device, and then the user may switch the connection as desired According to the operation mode indicated by the operation item corresponding to the device, the corresponding device switching operation is performed on the second electronic device, and the second electronic device may determine the fourth electronic device corresponding to the device switching operation according to the association relationship. Device, and then switch to connect with the fourth electronic device.
  • the first electronic device may return the information of the operation item corresponding to each electronic device identifier configured by the user, that is, the association relationship to the second electronic device, and then the user may switch the connection as desired
  • the operation mode indicated by the operation item corresponding to the device the corresponding device switching operation is performed on the second electronic device, and the second electronic device may determine the fourth electronic device corresponding to the device switching operation according to the association relationship. Device, and then switch to connect with the fourth electronic device.
  • the second electronic device may send the historical paired device information to the first electronic device based on a user's trigger operation or the request of the first electronic device to enter the device switching process.
  • connection device of the second electronic device when the connection device of the second electronic device needs to be switched, only the switching operation mode of each electronic device needs to be configured on the first electronic device, and the corresponding electronic device that is expected to be connected is executed on the second electronic device.
  • the switching operation is sufficient, without the user disconnecting the original connected device and clicking connect on the target electronic device. It is suitable for operations where the first electronic device and the second electronic device are both within the reach of the user, but it is inconvenient In the case of operating the target electronic device, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
  • FIG. 7 is a structural diagram of a first electronic device according to an embodiment of the present invention. As shown in FIG. 7, the first electronic device 700 includes:
  • the display module 701 is configured to display at least one electronic device identification when the first electronic device is connected to the second electronic device;
  • the first receiving module 702 is configured to receive a first input
  • the control module 703 is configured to disconnect the connection between the first electronic device and the second electronic device in response to the first input, and control the connection between the second electronic device and the third electronic device, so
  • the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • the first electronic device 700 further includes:
  • the second receiving module 704 is configured to receive historical paired device information sent by the second electronic device, where the historical paired device information includes the at least one electronic device identifier.
  • the first receiving module 702 is configured to receive a selection input for a target device identifier in the at least one electronic device identifier, where the target device identifier is an identifier corresponding to the third electronic device;
  • the first electronic device 700 further includes:
  • the sending module 705 is configured to send the target device identifier to the second electronic device.
  • the first electronic device 700 can implement each process implemented by the first electronic device in the method embodiment of FIG. 1, and in order to avoid repetition, details are not described herein again.
  • the user when it is necessary to switch the connected device to the second electronic device, the user only needs to perform the first input based on the displayed device identification on the first electronic device, instead of performing a series of switching operations among multiple devices. , Which makes the operation of switching connected devices simple and convenient, and the efficiency is high.
  • FIG. 10 is a structural diagram of another first electronic device according to an embodiment of the present invention.
  • the first electronic device 1000 includes:
  • the display module 1001 is configured to display a configuration interface, and the configuration interface includes at least one electronic device identifier;
  • the receiving module 1002 is used to receive the second input
  • the establishment module 1003 is configured to establish an association relationship between each electronic device corresponding to the at least one electronic device identifier and an operation item in response to the second input;
  • the sending module 1004 is configured to send the association relationship to a second electronic device connected to the first electronic device.
  • the first electronic device 1000 can implement each process implemented by the first electronic device in the method embodiment of FIG. 3, and in order to avoid repetition, details are not described herein again.
  • the connection device of the second electronic device needs to be switched, it is only necessary to configure the operation items corresponding to each electronic device identifier on the first electronic device, and execute the corresponding operation items corresponding to the electronic device that is expected to be connected on the second electronic device.
  • the switch operation is sufficient, without the user disconnecting the original connected device and clicking connect on the target electronic device. It is suitable for operations where both the first electronic device and the second electronic device are within the reach of the user, but it is inconvenient. In the case where the connected third electronic device is expected to operate, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
  • FIG. 11 is a structural diagram of a second electronic device according to an embodiment of the present invention. As shown in FIG. 11, the second electronic device 1100 includes:
  • the sending module 1101 is configured to send historical paired device information to the first electronic device, where the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  • the second electronic device 1100 further includes:
  • the receiving module 1102 is configured to receive the identifier corresponding to the third electronic device sent by the first electronic device;
  • the switching module 1103 is used to disconnect the connection with the first electronic device and establish a connection with the third electronic device.
  • the second electronic device 1100 can implement each process implemented by the second electronic device in the method embodiment of FIG. 5, and in order to avoid repetition, details are not described herein again.
  • the second electronic device 1100 of the embodiment of the present invention can send historical paired device information to the first electronic device, which can facilitate the user to select the electronic device that is desired to switch the connection for the second electronic device on the first electronic device, and based on The user's selection controls the second electronic device to switch to establish a connection with the third electronic device, so that when switching the connected device for the second electronic device, there is no need for the user to perform excessive operations among multiple electronic devices, so that the operation of switching the connected device Simple and convenient, high efficiency.
  • FIG. 13 is a structural diagram of another second electronic device according to an embodiment of the present invention. As shown in FIG. 13, the second electronic device 1300 includes:
  • the first receiving module 1301 is configured to receive the association relationship between each electronic device and the operation item corresponding to at least one electronic device identifier sent by the first electronic device when the second electronic device is connected to the first electronic device;
  • the second receiving module 1302 is configured to receive the third input
  • the switching module 1303 is configured to disconnect the second electronic device from the first electronic device in response to the third input, and establish a connection between the second electronic device and the fourth electronic device;
  • the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
  • the second electronic device 1300 can implement each process implemented by the second electronic device in the method embodiment of FIG. 6, and to avoid repetition, details are not described herein again.
  • the connected device of the second electronic device needs to be switched, it is only necessary to configure the switching operation mode of each electronic device on the first electronic device, and perform the switching corresponding to the electronic device that is expected to be connected on the second electronic device
  • the operation can be performed without the user disconnecting the original connected device and clicking connect on the target electronic device. It is suitable for operations where the first electronic device and the second electronic device are both within the reach of the user, but it is inconvenient for the target When the electronic device is operating, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
  • the electronic device is a first electronic device.
  • the electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, and an input Unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, processor 1410, power supply 1411 and other components.
  • a radio frequency unit 1401 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, and an input Unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, processor 1410, power supply 1411 and other components.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 1410 is configured to display at least one electronic device identifier when the first electronic device is connected to the second electronic device;
  • the at least one electronic device identifier In response to the first input, disconnect the connection between the first electronic device and the second electronic device, and control the connection between the second electronic device and the third electronic device, the at least one electronic device identifier Including the identifier corresponding to the third electronic device.
  • the radio frequency unit 1401 is used for:
  • processor 1410 is also used to:
  • the radio frequency unit 1401 is also used for:
  • the processor 1410 is configured to display a configuration interface, and the configuration interface includes at least one electronic device identifier;
  • the radio frequency unit 1401 is configured to send the association relationship to a second electronic device connected to the first electronic device.
  • the electronic device 1400 can implement each process implemented by the first electronic device in the foregoing embodiment, and can achieve the same beneficial effects. To avoid repetition, details are not described herein again.
  • the radio frequency unit 1401 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1410; Uplink data is sent to the base station.
  • the radio frequency unit 1401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 1401 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 1402, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 1403 may convert the audio data received by the radio frequency unit 1401 or the network module 1402 or stored in the memory 1409 into audio signals and output them as sounds. Moreover, the audio output unit 1403 may also provide audio output related to a specific function performed by the electronic device 1400 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 1403 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 1404 is used to receive audio or video signals.
  • the input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042.
  • the graphics processor 14041 is configured to respond to images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 1406.
  • the image frame processed by the graphics processor 14041 may be stored in the memory 1409 (or other storage medium) or sent via the radio frequency unit 1401 or the network module 1402.
  • the microphone 14042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 1401 for output in the case of a telephone call mode.
  • the electronic device 1400 further includes at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 14061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 14061 and the display panel 14061 when the electronic device 1400 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; the sensor 1405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 1406 is used to display information input by the user or information provided to the user.
  • the display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 1407 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 1407 includes a touch panel 14071 and other input devices 14072.
  • the touch panel 14071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 14071 or near the touch panel 14071. operating).
  • the touch panel 14071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 1410, the command sent by the processor 1410 is received and executed.
  • the touch panel 14071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 1407 may also include other input devices 14072.
  • other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 14071 can cover the display panel 14061.
  • the touch panel 14071 detects a touch operation on or near it, it transmits it to the processor 1410 to determine the type of the touch event, and then the processor 1410 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 14061.
  • the touch panel 14071 and the display panel 14061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 14071 and the display panel 14061 may be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 1408 is an interface for connecting an external device and the electronic device 1400.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 1408 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 1400 or can be used to connect to the electronic device 1400 and the external device. Transfer data between devices.
  • the memory 1409 can be used to store software programs and various data.
  • the memory 1409 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 1409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 1410 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 1409, and calls the data stored in the memory 1409 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 1410 may include one or more processing units; preferably, the processor 1410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1410.
  • the electronic device 1400 may also include a power source 1411 (such as a battery) for supplying power to various components.
  • a power source 1411 such as a battery
  • the power source 1411 may be logically connected to the processor 1410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 1400 includes some functional modules not shown, which will not be repeated here.
  • An embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor.
  • the computer program is executed by the processor, the implementation shown in FIG. 1 or FIG. 3
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is executed by a processor, each process of the device switching method embodiment shown in FIG. 1 or FIG. 3 is implemented.
  • the computer program is executed by the processor, each process of the device switching method embodiment shown in FIG. 5 or FIG. 6 is implemented, and the same technical effect can be achieved.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a device switching method and a related device. The method comprises: displaying at least one electronic device identifier in a case that a first electronic device is connected to a second electronic device; receiving a first input; disconnecting the first electronic device from the second electronic device in response to the first input, and controlling the second electronic device to be connected to a third electronic device, the at least one electronic device identifier comprising an identifier corresponding to the third electronic device.

Description

设备切换方法及相关设备Device switching method and related equipment
相关申请的交叉引用Cross references to related applications
本申请主张在2019年12月24日在中国提交的中国专利申请号No.201911345734.2的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911345734.2 filed in China on December 24, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种设备切换方法及相关设备。The present invention relates to the field of communication technology, in particular to a device switching method and related devices.
背景技术Background technique
随着电子技术的发展和电子产品的不断普及,电子设备成为人们生活中不可或缺的重要工具,并且一个用户或家庭中还常会持有多台电子设备,如手机、笔记本电脑、平板电脑等等。为了获得更为便捷的操作感受或高品质的听觉感受,人们还习惯将一些穿戴设备、蓝牙设备(如蓝牙耳机、蓝牙音箱等)等连接常用的电子设备,以通过该电子设备来操控这些穿戴设备,或通过蓝牙设备来播放电子设备中的音频。With the development of electronic technology and the continuous popularization of electronic products, electronic devices have become indispensable and important tools in people’s lives, and a user or family often holds multiple electronic devices, such as mobile phones, laptops, tablets, etc. Wait. In order to obtain a more convenient operation experience or high-quality auditory experience, people are also used to connecting some wearable devices, Bluetooth devices (such as Bluetooth headsets, Bluetooth speakers, etc.) to commonly used electronic devices to control these wearables through the electronic device. Device, or play audio from electronic devices through Bluetooth devices.
然而,以蓝牙设备为例,目前蓝牙设备在同一时刻通常只允许连接一台电子设备,这样,当用户需要切换与蓝牙设备连接的电子设备时,往往需要进行一系列的操作才能完成。例如,用户出门在外时是通过蓝牙耳机连接的手机,当回到家中时,期望切换至连接平板电脑来播放音乐,那么此时用户需要先在手机端断开与蓝牙耳机的连接,再从平板电脑端发起对蓝牙耳机的配对连接才能完成,这种用户交互体验并不十分友好。However, taking Bluetooth devices as an example, currently Bluetooth devices are usually only allowed to connect to one electronic device at a time. In this way, when a user needs to switch electronic devices connected to the Bluetooth device, a series of operations are often required to complete. For example, when a user is away from home, he is connected to his mobile phone through a Bluetooth headset. When he returns home, he expects to switch to a tablet to play music. Then the user needs to disconnect the Bluetooth headset on the phone first, and then connect to the tablet. The computer terminal initiates the pairing connection to the Bluetooth headset to complete, and this user interaction experience is not very friendly.
可见,现有技术中的设备切换方法存在操作较为繁琐,效率较低的问题。It can be seen that the device switching method in the prior art has the problems of cumbersome operation and low efficiency.
发明内容Summary of the invention
本发明实施例提供一种设备切换方法及相关设备,以解决现有技术中的设备切换方法操作较为繁琐,效率较低的问题。The embodiment of the present invention provides a device switching method and related devices to solve the problem of complicated operation and low efficiency of the device switching method in the prior art.
为解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
第一方面,本发明实施例提供了一种设备切换方法,应用于第一电子设 备,所述方法包括:In the first aspect, an embodiment of the present invention provides a device switching method, which is applied to a first electronic device, and the method includes:
在所述第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;When the first electronic device is connected to the second electronic device, display at least one electronic device identifier;
接收第一输入;Receive the first input;
响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。In response to the first input, disconnect the connection between the first electronic device and the second electronic device, and control the connection between the second electronic device and the third electronic device, the at least one electronic device identifier Including the identifier corresponding to the third electronic device.
第二方面,本发明实施例提供了另一种设备切换方法,应用于第一电子设备,所述方法包括:In the second aspect, an embodiment of the present invention provides another device switching method, which is applied to a first electronic device, and the method includes:
显示配置界面,所述配置界面上包括至少一个电子设备标识;Display a configuration interface, where the configuration interface includes at least one electronic device identifier;
接收第二输入;Receive the second input;
响应于所述第二输入,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系;In response to the second input, establishing an association relationship between each electronic device corresponding to the at least one electronic device identifier and the operation item;
将所述关联关系发送至与所述第一电子设备连接的第二电子设备。The association relationship is sent to a second electronic device connected to the first electronic device.
第三方面,本发明实施例提供了另一种设备切换方法,应用于第二电子设备,所述方法包括:In the third aspect, an embodiment of the present invention provides another device switching method, which is applied to a second electronic device, and the method includes:
向第一电子设备发送历史配对设备信息,其中,所述历史配对设备信息中包括至少一个电子设备标识,所述至少一个电子设备标识包括第三电子设备对应的标识。Send historical paired device information to the first electronic device, where the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
第四方面,本发明实施例提供了另一种设备切换方法,应用于第二电子设备,所述方法包括:In the fourth aspect, an embodiment of the present invention provides another device switching method, which is applied to a second electronic device, and the method includes:
在所述第二电子设备与第一电子设备连接的情况下,接收第一电子设备发送的至少一个电子设备标识对应的各电子设备与操作项的关联关系;When the second electronic device is connected to the first electronic device, receiving the association relationship between each electronic device and the operation item corresponding to the at least one electronic device identifier sent by the first electronic device;
接收第三输入;Receive the third input;
响应于所述第三输入,断开所述第二电子设备与所述第一电子设备的连接,并建立所述第二电子设备与第四电子设备的连接;In response to the third input, disconnect the second electronic device from the first electronic device, and establish a connection between the second electronic device and the fourth electronic device;
其中,所述第四电子设备的标识包含于所述至少一个电子设备标识中,且所述第四电子设备与所述第三输入对应的操作项关联。Wherein, the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
第五方面,本发明实施例提供一种第一电子设备,包括:In a fifth aspect, an embodiment of the present invention provides a first electronic device, including:
显示模块,用于在所述第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;A display module, configured to display at least one electronic device identifier when the first electronic device is connected to the second electronic device;
第一接收模块,用于接收第一输入;The first receiving module is configured to receive the first input;
控制模块,用于响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。The control module is adapted to disconnect the connection between the first electronic device and the second electronic device in response to the first input, and control the connection between the second electronic device and the third electronic device, the The at least one electronic device identifier includes an identifier corresponding to the third electronic device.
第六方面,本发明实施例提供另一种第一电子设备,包括:In a sixth aspect, an embodiment of the present invention provides another first electronic device, including:
显示模块,用于显示配置界面,所述配置界面上包括至少一个电子设备标识;A display module, configured to display a configuration interface, the configuration interface including at least one electronic device identifier;
接收模块,用于接收第二输入;Receiving module for receiving the second input;
建立模块,用于响应于所述第二输入,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系;An establishment module, configured to establish an association relationship between each electronic device corresponding to the at least one electronic device identifier and an operation item in response to the second input;
发送模块,用于将所述关联关系发送至与所述第一电子设备连接的第二电子设备。The sending module is configured to send the association relationship to a second electronic device connected to the first electronic device.
第七方面,本发明实施例提供一种第二电子设备,包括:In a seventh aspect, an embodiment of the present invention provides a second electronic device, including:
发送模块,用于向第一电子设备发送历史配对设备信息,其中,所述历史配对设备信息中包括至少一个电子设备标识,所述至少一个电子设备标识包括第三电子设备对应的标识。The sending module is configured to send historical paired device information to the first electronic device, wherein the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
第八方面,本发明实施例提供一种第二电子设备,包括:In an eighth aspect, an embodiment of the present invention provides a second electronic device, including:
第一接收模块,用于在所述第二电子设备与第一电子设备连接的情况下,接收第一电子设备发送的至少一个电子设备标识对应的各电子设备与操作项的关联关系;The first receiving module is configured to receive the association relationship between each electronic device and the operation item corresponding to at least one electronic device identifier sent by the first electronic device when the second electronic device is connected to the first electronic device;
第二接收模块,用于接收第三输入;The second receiving module is used to receive the third input;
切换模块,用于响应于所述第三输入,断开所述第二电子设备与所述第一电子设备的连接,并建立所述第二电子设备与第四电子设备的连接;A switching module, configured to disconnect the second electronic device from the first electronic device in response to the third input, and establish a connection between the second electronic device and the fourth electronic device;
其中,所述第四电子设备的标识包含于所述至少一个电子设备标识中,且所述第四电子设备与所述第三输入对应的操作项关联。Wherein, the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
第九方面,本发明实施例提供一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序 被所述处理器执行时实现上述第一方面或第二方面所述的设备切换方法中的步骤;或者,所述计算机程序被所述处理器执行时实现上述第三方面或第四方面所述的设备切换方法中的步骤。In a ninth aspect, an embodiment of the present invention provides an electronic device including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, Implement the steps in the device switching method described in the first aspect or the second aspect; or, when the computer program is executed by the processor, implement the steps in the device switching method described in the third or fourth aspect above .
第十方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面或第二方面所述的设备切换方法中的步骤;或者,所述计算机程序被处理器执行时实现上述第三方面或第四方面所述的设备切换方法中的步骤。In a tenth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned first or second aspect is implemented Or, when the computer program is executed by a processor, the steps in the device switching method described in the third aspect or the fourth aspect are implemented.
本发明实施例中,在第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;接收第一输入;响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。这样,当需要对第二电子设备切换连接设备时,用户只需在第一电子设备上基于显示的设备标识,进行第一输入即可,而无需在多个设备间进行系列切换操作,使得切换连接设备的操作简单便捷,效率较高。In the embodiment of the present invention, when the first electronic device is connected to the second electronic device, at least one electronic device identifier is displayed; a first input is received; in response to the first input, the first electronic device is disconnected from the The connection between the second electronic device and the connection between the second electronic device and the third electronic device are controlled, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device. In this way, when it is necessary to switch the connected device to the second electronic device, the user only needs to perform the first input based on the displayed device identification on the first electronic device, instead of performing a series of switching operations among multiple devices, so that the switch The operation of the connected equipment is simple and convenient, and the efficiency is high.
附图说明Description of the drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是本发明实施例提供的一种设备切换方法的流程图之一;FIG. 1 is one of the flowcharts of a device switching method provided by an embodiment of the present invention;
图2是本发明实施例提供的一种在第一电子设备上选择切换设备的界面示意图;2 is a schematic diagram of an interface for selecting a switching device on a first electronic device according to an embodiment of the present invention;
图3是本发明实施例提供的一种设备切换方法的流程图之二;FIG. 3 is the second flowchart of a device switching method provided by an embodiment of the present invention;
图4是本发明实施例提供的一种在第一电子设备上配置各设备的切换操作方式的界面示意图;4 is a schematic diagram of an interface for configuring a switching operation mode of each device on a first electronic device according to an embodiment of the present invention;
图5是本发明实施例提供的一种设备切换方法的流程图之三;FIG. 5 is the third flowchart of a device switching method provided by an embodiment of the present invention;
图6是本发明实施例提供的一种设备切换方法的流程图之四;FIG. 6 is the fourth flow chart of a device switching method provided by an embodiment of the present invention;
图7是本发明实施例提供的一种第一电子设备的结构图之一;FIG. 7 is one of the structural diagrams of a first electronic device according to an embodiment of the present invention;
图8是本发明实施例提供的一种第一电子设备的结构图之二;FIG. 8 is a second structural diagram of a first electronic device according to an embodiment of the present invention;
图9是本发明实施例提供的一种第一电子设备的结构图之三;FIG. 9 is a third structural diagram of a first electronic device according to an embodiment of the present invention;
图10是本发明实施例提供的一种第一电子设备的结构图之四;FIG. 10 is a fourth structural diagram of a first electronic device according to an embodiment of the present invention;
图11是本发明实施例提供的一种第二电子设备的结构图之一;FIG. 11 is one of the structural diagrams of a second electronic device according to an embodiment of the present invention;
图12是本发明实施例提供的一种第二电子设备的结构图之二;FIG. 12 is a second structural diagram of a second electronic device according to an embodiment of the present invention;
图13是本发明实施例提供的一种第二电子设备的结构图之三;FIG. 13 is a third structural diagram of a second electronic device according to an embodiment of the present invention;
图14是本发明实施例提供的一种电子设备的硬件结构图。FIG. 14 is a hardware structure diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
参见图1,图1是本发明实施例提供的一种设备切换方法的流程图,应用于蓝牙设备,如图1所示,所述方法包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a device switching method provided by an embodiment of the present invention, which is applied to a Bluetooth device. As shown in FIG. 1, the method includes the following steps:
步骤101、在所述第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识。Step 101: When the first electronic device is connected to the second electronic device, display at least one electronic device identifier.
本发明实施例中,上述第一电子设备可以是手机、平板等移动终端,或电脑、笔记本、计算机等固定终端,上述第二电子设备可以是指蓝牙耳机、蓝牙音箱等支持蓝牙传输的蓝牙设备,也可以是智能手环、眼镜等穿戴设备或其他外部设备。In the embodiment of the present invention, the above-mentioned first electronic device may be a mobile terminal such as a mobile phone, a tablet, or a fixed terminal such as a computer, a notebook, a computer, and the above-mentioned second electronic device may be a Bluetooth device that supports Bluetooth transmission, such as a Bluetooth headset and a Bluetooth speaker. , It can also be wearable devices such as smart bracelets, glasses, or other external devices.
上述第一电子设备与第二电子设备连接可以是指所述第一电子设备与所述第二电子设备通过蓝牙或无线网络等建立有通信连接。The above-mentioned connection of the first electronic device and the second electronic device may mean that the first electronic device and the second electronic device have established a communication connection through Bluetooth or a wireless network or the like.
上述至少一个电子设备标识可以是所述第二电子设备发送给所述第一电子设备的,也可以是所述第一电子设备搜寻到的附近电子设备的标识,如通过蓝牙搜寻附近的电子设备的标识,所述设备标识可以是电子设备的名称、IP地址等标识。The aforementioned at least one electronic device identification may be sent by the second electronic device to the first electronic device, or may be an identification of a nearby electronic device searched by the first electronic device, such as searching for nearby electronic devices via Bluetooth The device identifier can be the name, IP address, and other identifiers of the electronic device.
该步骤中,在所述第一电子设备与第二电子设备连接的情况下,可以显示接收或搜寻到的至少一个电子设备标识,用于用户在所述第一电子设备端 为所述第二电子设备选择待切换的目标电子设备或配置各电子设备标识对应的电子设备的切换操作方式。In this step, when the first electronic device is connected to the second electronic device, at least one electronic device identifier received or searched can be displayed for the user to display the second electronic device on the first electronic device. The electronic device selects the target electronic device to be switched or configures the switching operation mode of the electronic device corresponding to each electronic device identifier.
可选的,所述显示至少一个电子设备标识之前,所述方法还包括:Optionally, before the displaying at least one electronic device identifier, the method further includes:
接收所述第二电子设备发送的历史配对设备信息,所述历史配对设备信息中包括所述至少一个电子设备标识。Receiving historical paired device information sent by the second electronic device, where the historical paired device information includes the at least one electronic device identifier.
即该实施方式中,所述第二电子设备可以先将其存储的历史配对设备信息,如历史配对设备的名称或地址等发送至所述第一电子设备,从而所述第一电子设备可以接收到所述第二电子设备发送的历史配对设备信息,所述至少一个电子设备标识即为所述第二电子设备的至少一个历史配对设备的名称或地址等标识。That is, in this embodiment, the second electronic device may first send its stored historical paired device information, such as the name or address of the historical paired device, to the first electronic device, so that the first electronic device can receive To the historical paired device information sent by the second electronic device, the at least one electronic device identifier is an identifier such as the name or address of the at least one historical paired device of the second electronic device.
所述第一电子设备可以基于接收的所述历史配对设备信息,从中提取出至少一个电子设备标识,并将所述至少一个电子设备标识展示在用户界面上,以便用户对所述至少一个电子设备标识进行选择。The first electronic device may extract at least one electronic device identification based on the received historical paired device information, and display the at least one electronic device identification on a user interface, so that the user can identify the at least one electronic device Logo to choose.
这样,通过接收所述第二电子设备发送的历史配对设备信息,可以使用户依据所述第二电子设备的历史配对设备信息,对其进行连接设备切换,且由于所述第二电子设备往往会存储每个历史配对设备的配对地址信息,从而可以依据设备标识快速找到对应的配对地址,进而快速切换至对应的设备。In this way, by receiving the historical paired device information sent by the second electronic device, the user can switch the connected device according to the historical paired device information of the second electronic device. The pairing address information of each historical paired device is stored, so that the corresponding pairing address can be quickly found according to the device identification, and then the corresponding device can be quickly switched to.
步骤102、接收第一输入。Step 102: Receive a first input.
上述第一输入可以是用户对所述第一电子设备上显示的至少一个电子设备标识的选择操作,如每个电子设备标识对应一个设备选项,用户可以从所述至少一个电子设备标识中选择一个目标设备标识,以控制所述第二电子设备切换至与所述目标设备标识对应的电子设备连接。The above-mentioned first input may be a user's selection operation of at least one electronic device identification displayed on the first electronic device. For example, each electronic device identification corresponds to a device option, and the user may select one from the at least one electronic device identification. The target device identifier is used to control the second electronic device to switch to the electronic device connection corresponding to the target device identifier.
上述第一输入也可以是用户对于每个电子设备标识对应的电子设备进行切换操作配置,即分别为每个电子设备标识选择一个切换操作方式,如将第一电子设备标识的切换操作配置为长按2s,将第二电子设备标识的切换操作配置为长按3s,将第三电子设备标识的切换操作配置为双击操作,等等,这样,通过所述第一输入,用户可在所述第二电子设备上执行与目标电子设备对应的切换操作,来实现切换连接至目标电子设备。The above-mentioned first input may also be the user's switching operation configuration for the electronic device corresponding to each electronic device identification, that is, to select a switching operation mode for each electronic device identification, such as configuring the switching operation of the first electronic device identification as long Press 2s, configure the switching operation of the second electronic device identification as a long press for 3s, configure the switching operation of the third electronic device identification as a double-click operation, and so on. In this way, through the first input, the user can enter the first 2. A switching operation corresponding to the target electronic device is executed on the electronic device to switch to the target electronic device.
可选的,所述步骤102包括:Optionally, the step 102 includes:
接收针对所述至少一个电子设备标识中的目标设备标识的选择输入,所述目标设备标识为所述第三电子设备对应的标识。Receiving a selection input for a target device identifier in the at least one electronic device identifier, where the target device identifier is an identifier corresponding to the third electronic device.
该实施方式中,所述第一输入可以为针对所述至少一个电子设备标识中的目标设备标识的选择输入,具体地,所述第一电子设备在显示所述至少一个电子设备标识时,可以将每个电子设备标识生成一个设备标识选项,以供用户选择期望切换的设备标识,在接收到用户选择的目标设备标识之后,便可以对用户的选择输入进行响应,即控制所述第二电子设备切换至与所述目标设备标识对应的电子设备连接。In this embodiment, the first input may be a selection input for the target device identifier in the at least one electronic device identifier. Specifically, when the first electronic device displays the at least one electronic device identifier, it may A device identification option is generated for each electronic device identification for the user to select the device identification that the user desires to switch. After receiving the target device identification selected by the user, it can respond to the user's selection input, that is, control the second electronic device. The device switches to the electronic device connection corresponding to the target device identifier.
进一步地,所述接收针对所述至少一个电子设备标识中的目标设备标识的选择输入之后,所述方法还包括:Further, after the receiving the selection input for the target device identification in the at least one electronic device identification, the method further includes:
向所述第二电子设备发送所述目标设备标识。Sending the target device identifier to the second electronic device.
也就是说,在接收到用户选择的目标设备标识之后,便可以将所述目标设备标识返回至所述第二电子设备,以使所述第二电子设备依据接收的目标设备标识,确定对应的目标电子设备,并根据目标电子设备的连接地址信息,向该目标电子设备发起连接请求,进而切换至与该目标电子设备连接。That is, after receiving the target device identification selected by the user, the target device identification can be returned to the second electronic device, so that the second electronic device can determine the corresponding target device identification according to the received target device identification. The target electronic device initiates a connection request to the target electronic device according to the connection address information of the target electronic device, and then switches to connect to the target electronic device.
例如,如图2所示,第一电子设备在接收第二电子设备发送的历史配对设备信息后,可以显示设备选择界面20,该设备选择界面20上显示多个包含所述第二电子设备的历史配对设备的名称的设备选项21,并提示用户从中选择一个设备标识,用户可点击其中任一设备标识对应的设备选项,第一电子设备则将用户选择的设备选项对应的目标设备标识发送至第二电子设备,第二电子设备在接收到该目标设备标识后,便可以断开与第一电子设备的连接,并与目标设备标识对应的第三电子设备连接。For example, as shown in FIG. 2, after receiving the historical paired device information sent by the second electronic device, the first electronic device may display a device selection interface 20. The device selection interface 20 displays a plurality of information including the second electronic device. Device option 21 of the name of the historical paired device, and prompts the user to select a device identifier from them. The user can click on the device option corresponding to any one of the device identifiers, and the first electronic device sends the target device identifier corresponding to the device option selected by the user to The second electronic device, after receiving the target device identifier, the second electronic device can disconnect from the first electronic device and connect to the third electronic device corresponding to the target device identifier.
这样,在需要切换第二电子设备的连接设备时,只需在第一电子设备上选择期望连接的目标电子设备对应的标识即可,而无需用户在原连接设备断开连接,并在目标电子设备上点击连接等操作,适用于用户通过当前手持设备快速完成对第二电子设备的连接设备切换的场景。In this way, when the connected device of the second electronic device needs to be switched, only the identification corresponding to the target electronic device to be connected needs to be selected on the first electronic device, and the user does not need to disconnect the original connected device and log in to the target electronic device. Operations such as upper-click to connect are applicable to scenarios where the user quickly completes the switching of the connected device of the second electronic device through the current handheld device.
步骤103、响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。Step 103: In response to the first input, disconnect the connection between the first electronic device and the second electronic device, and control the connection between the second electronic device and the third electronic device, and the at least one The electronic device identification includes an identification corresponding to the third electronic device.
在接收到所述第一输入后,可以响应于所述第一输入,如当所述第一输入为设备标识选择输入时,可以将所述第一输入选择的目标设备标识发送给所述第二电子设备,以控制所述第二电子设备切换至与目标设备标识对应的第三电子设备连接,同时断开所述第一电子设备与所述第二电子设备之间的连接;当所述第一输入为切换操作配置输入时,可以生成相应的切换配置信息,并发送至所述第二电子设备,使得所述第二电子设备可以依据该切换配置信息,来进行连接设备切换,即断开与所述第一电子设备的连接,并按照用户的切换操作,切换至对应的第三电子设备。After receiving the first input, in response to the first input, for example, when the first input is a device identification selection input, the target device identification selected by the first input may be sent to the first input. Second electronic device to control the second electronic device to switch to the third electronic device connection corresponding to the target device identifier, and at the same time to disconnect the connection between the first electronic device and the second electronic device; when the When the first input is a switch operation configuration input, corresponding switch configuration information can be generated and sent to the second electronic device, so that the second electronic device can switch the connected device according to the switch configuration information, that is, disconnect Open the connection with the first electronic device, and switch to the corresponding third electronic device according to the user's switching operation.
本实施例中的设备切换方法,在第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;接收第一输入;响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。这样,当需要对第二电子设备切换连接设备时,用户只需在第一电子设备上基于显示的设备标识,进行第一输入即可,而无需在多个设备间进行系列切换操作,使得切换连接设备的操作简单便捷,效率较高。In the device switching method in this embodiment, when the first electronic device is connected to the second electronic device, at least one electronic device identifier is displayed; a first input is received; in response to the first input, the first electronic device is disconnected. The connection between the electronic device and the second electronic device and controlling the connection between the second electronic device and the third electronic device, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device. In this way, when it is necessary to switch the connected device to the second electronic device, the user only needs to perform the first input based on the displayed device identification on the first electronic device, instead of performing a series of switching operations among multiple devices, so that the switch The operation of the connected equipment is simple and convenient, and the efficiency is high.
参见图3,图3是本发明实施例提供的另一种设备切换方法的流程图,应用于第一电子设备,如图3所示,所述方法包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of another device switching method provided by an embodiment of the present invention, which is applied to a first electronic device. As shown in FIG. 3, the method includes the following steps:
步骤301、显示配置界面,所述配置界面上包括至少一个电子设备标识。Step 301: A configuration interface is displayed, and the configuration interface includes at least one electronic device identifier.
上述至少一个电子设备标识可以是与所述第一电子设备连接的第二电子设备发送给所述第一电子设备的,也可以是所述第一电子设备搜寻到的附近电子设备的标识,如通过蓝牙搜寻附近的电子设备的标识,所述设备标识可以是电子设备的名称、IP地址等标识。The aforementioned at least one electronic device identifier may be sent to the first electronic device by a second electronic device connected to the first electronic device, or may be an identifier of a nearby electronic device searched by the first electronic device, such as The identification of nearby electronic devices is searched through Bluetooth, and the device identification may be an identification such as the name and IP address of the electronic device.
本实施例中,当目标切换连接设备离用户位置较远或不便于用户获取到时,为减少用户在该设备上进行的连接操作,可设计一种便于用户在所述第一电子设备(用户方便操作的电子设备)和与所述第一电子设备连接的第二电子设备上进行相应操作来完成对所述第二电子设备的连接设备切换,具体地,可先在所述第一电子设备上显示配置界面,并在所述配置界面中显示所述至少一个电子设备标识,用户可以在该配置界面上分别对每个电子设备标识选择对应的操作项,也即对每个电子设备标识对应的电子设备配置切换操 作方式。In this embodiment, when the target switching connection device is far away from the user's location or is not convenient for the user to obtain, in order to reduce the connection operation performed by the user on the device, a convenient way for the user to connect to the first electronic device (user The electronic device that is convenient to operate) and the second electronic device connected to the first electronic device perform corresponding operations to complete the switching of the connected device of the second electronic device. Specifically, the first electronic device may be The configuration interface is displayed on the configuration interface, and the at least one electronic device identification is displayed in the configuration interface. The user can select the corresponding operation item for each electronic device identification on the configuration interface, that is, corresponding to each electronic device identification The electronic device configuration switch operation mode.
可选的,所述显示配置界面之前,所述方法还包括:Optionally, before the displaying the configuration interface, the method further includes:
接收所述第二电子设备发送的历史配对设备信息,所述历史配对设备信息中包括所述至少一个电子设备标识。Receiving historical paired device information sent by the second electronic device, where the historical paired device information includes the at least one electronic device identifier.
即该实施方式中,所述第二电子设备可以先将其存储的历史配对设备信息,如历史配对设备的名称或地址等发送至所述第一电子设备,从而所述第一电子设备可以接收到所述第二电子设备发送的历史配对设备信息,所述至少一个电子设备标识即为所述第二电子设备的至少一个历史配对设备的名称或地址等标识。That is, in this embodiment, the second electronic device may first send its stored historical paired device information, such as the name or address of the historical paired device, to the first electronic device, so that the first electronic device can receive To the historical paired device information sent by the second electronic device, the at least one electronic device identifier is an identifier such as the name or address of the at least one historical paired device of the second electronic device.
所述第一电子设备可以基于接收的所述历史配对设备信息,从中提取出至少一个电子设备标识,并将所述至少一个电子设备标识展示在所述配置界面上,以便用户对所述至少一个电子设备标识对应的各电子设备配置操作项。The first electronic device may extract at least one electronic device identifier from the received historical paired device information, and display the at least one electronic device identifier on the configuration interface, so that the user can check the at least one Each electronic device configuration operation item corresponding to the electronic device identifier.
这样,通过接收所述第二电子设备发送的历史配对设备信息,可以使用户在所述第一电子设备上对所述第二电子设备的各历史配对设备进行操作项配置,便于用户按照该配置信息为所述第二电子设备切换连接设备。In this way, by receiving the historical paired device information sent by the second electronic device, the user can configure the operation items of each historical paired device of the second electronic device on the first electronic device, so that the user can follow the configuration The information is that the second electronic device switches and connects to the device.
步骤302、接收第二输入。Step 302: Receive a second input.
上述第二输入可以是对所述至少一个电子设备标识中的每个电子设备标识分别选择对应的操作项的输入,也就是对每个电子设备标识对应的电子设备分别配置对应的切换操作方式,即所述操作项为对应某一操作方式的操作选项。例如,用户可在所述配置界面为第一电子设备标识配置对应的操作项为长按2s,为第二电子设备标识配置对应的操作项为长按3s,为第三电子设备标识配置对应的操作项为双击操作,等等。The above-mentioned second input may be an input of selecting a corresponding operation item for each electronic device identifier in the at least one electronic device identifier, that is, configuring a corresponding switching operation mode for each electronic device corresponding to each electronic device identifier, That is, the operation item is an operation option corresponding to a certain operation mode. For example, the user can configure the corresponding operation item for the first electronic device identification as long press for 2s, configure the corresponding operation item for the second electronic device identification as long press for 3s, and configure the corresponding operation item for the third electronic device identification on the configuration interface. The operation item is double-click operation, and so on.
这样,用户可在所述第二电子设备上,按照与目标电子设备对应的操作项所指示的操作方式,进行相应的操作,实现将所述第二电子设备切换连接至所述目标电子设备。In this way, the user can perform corresponding operations on the second electronic device according to the operation mode indicated by the operation item corresponding to the target electronic device, so as to realize the switch connection of the second electronic device to the target electronic device.
步骤303、响应于所述第二输入,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系。Step 303: In response to the second input, establish an association relationship between each electronic device corresponding to the at least one electronic device identifier and the operation item.
步骤304、将所述关联关系发送至与所述第一电子设备连接的第二电子设备。Step 304: Send the association relationship to a second electronic device connected to the first electronic device.
在用户在所述配置界面上对每个电子设备标识配置完对应的操作项后,便可基于配置的信息,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系,并可将该关联关系发送至所述第二电子设备,使所述第二电子设备基于该关联关系,确定用户后续执行的切换操作所对应的电子设备。After the user configures the corresponding operation item for each electronic device identifier on the configuration interface, the association relationship between each electronic device corresponding to the at least one electronic device identifier and the operation item can be established based on the configured information, and The association relationship may be sent to the second electronic device, so that the second electronic device determines the electronic device corresponding to the switching operation subsequently performed by the user based on the association relationship.
具体地,用户可按照所述第二输入中为所述至少一个电子设备对应的各电子设备配置的操作项,在所述第二电子设备上,按照期望切换连接的第三电子设备对应的操作项所指示的操作方式,执行对应的切换操作,所述第二电子设备则可以按照所述关联关系中指示的各操作项对应的电子设备,确定当前切换操作对应的是第三电子设备,进而可切换至与所述第三电子设备连接。Specifically, the user can follow the operation items configured for each electronic device corresponding to the at least one electronic device in the second input, and switch the operation corresponding to the connected third electronic device on the second electronic device as desired The operation mode indicated by the item performs the corresponding switching operation, and the second electronic device may determine that the current switching operation corresponds to the third electronic device according to the electronic device corresponding to each operation item indicated in the association relationship, and then It can be switched to connect with the third electronic device.
例如,如图4所示,第一电子设备在接收第二电子设备发送的历史配对设备信息后,可以显示设备切换配置界面40,该设备切换配置界面40上显示多个包含所述第二电子设备的历史配对设备的名称的设备选项41,以及各历史配对设备的切换操作方式选项42,并提示用户为各设备配置切换操作方式即选择不同的操作项,用户可分别通过各历史配对设备对应的切换操作方式选项42,为各历史配对设备选择对应的操作项,如配置电子设备A的操作项为“长按1下”,配置电子设备B的操作项为“长按2下”,配置电子设备C的操作项为“长按3下”。在选择完后,用户可以点击“配置”按钮43,第一电子设备则可将用户配置好的各历史配对设备与对应的操作项之间的关联关系发送至第二电子设备。这样,用户若期望切换至电子设备A,则可以在第二电子设备上长按1下,若期望切换至电子设备B,则可以在第二电子设备上长按2下,若期望切换至电子设备C,则可以在第二电子设备上长按3下。For example, as shown in FIG. 4, after receiving the historical paired device information sent by the second electronic device, the first electronic device may display a device switching configuration interface 40, and the device switching configuration interface 40 displays a plurality of devices containing the second electronic device. The device option 41 of the name of the historical paired device and the switch operation mode option 42 of each historical paired device, and prompt the user to configure the switching operation mode for each device, that is, to select different operation items, the user can respectively correspond to each historical paired device Switch operation mode option 42 for each historical paired device, select the corresponding operation item for each historical paired device. For example, configure the operation item of electronic device A as "long press 1 time", and configure the operation item of electronic device B as "long press 2 times", configure The operation item of the electronic device C is "long press 3 times". After the selection, the user can click the "configuration" button 43, and the first electronic device can send the association relationship between each historical paired device configured by the user and the corresponding operation item to the second electronic device. In this way, if the user wants to switch to electronic device A, he can press and hold one time on the second electronic device. If he wants to switch to electronic device B, he can press and hold two times on the second electronic device. If he wants to switch to electronic Device C, you can press and hold 3 times on the second electronic device.
这样,本实施例中,在需要切换第二电子设备的连接设备时,只需在第一电子设备上配置各电子设备标识对应的操作项,并在第二电子设备上执行期望连接的电子设备对应的切换操作即可,而无需用户在原连接设备断开连接,并在目标电子设备上点击连接等操作,适用于在第一电子设备和第二电子设备均位于用户的可触范围内,但不便对期望连接的第三电子设备进行操 作的情况下,用户通过第一电子设备和第二电子设备快速完成连接设备切换的场景。In this way, in this embodiment, when the connection device of the second electronic device needs to be switched, it is only necessary to configure the operation items corresponding to each electronic device identifier on the first electronic device, and execute the desired connected electronic device on the second electronic device The corresponding switching operation is sufficient, without the user disconnecting the original connected device and clicking the connection on the target electronic device. It is suitable for operations such as the first electronic device and the second electronic device within the user’s reach, but When it is inconvenient to operate the third electronic device that is desired to be connected, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
参见图5,图5是本发明实施例提供的另一种设备切换方法的流程图,应用于第二电子设备,如图5所示,所述方法包括以下步骤:Referring to FIG. 5, FIG. 5 is a flowchart of another device switching method according to an embodiment of the present invention, which is applied to a second electronic device. As shown in FIG. 5, the method includes the following steps:
步骤501、向第一电子设备发送历史配对设备信息,其中,所述历史配对设备信息中包括至少一个电子设备标识,所述至少一个电子设备标识包括第三电子设备对应的标识。Step 501: Send historical paired device information to the first electronic device, where the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
本实施例中,为便于用户在第一电子设备上为第二电子设备切换连接设备,所述第二电子设备可以向所述第一电子设备发送其历史配对设备信息,具体地,可以先获取其存储的历史配对设备信息,如记录的配对过的设备的名称,然后将所述历史配对设备信息发送至所述第一电子设备。In this embodiment, in order to facilitate the user to switch the connected device for the second electronic device on the first electronic device, the second electronic device may send its historical paired device information to the first electronic device. Specifically, it may first obtain It stores historical paired device information, such as the recorded name of the paired device, and then sends the historical paired device information to the first electronic device.
所述第一电子设备在接收到所述第二电子设备发送的历史配对设备信息之后,可以将所述历史配对设备信息如电子设备标识在用户界面展示出来,以使用户从中选择期望所述第二电子设备切换连接的电子设备对应的标识,在接收到用户的设备选择输入之后,所述第一电子设备便可以控制所述第二电子设备切换连接设备,即控制所述第二电子设备断开与所述第一电子设备的连接,并与用户选择的电子设备标识对应的电子设备建立连接。其具体实施方式可以参见图2所示的实施方式中的相关描述,为避免重复,此处不再赘述。After the first electronic device receives the historical paired device information sent by the second electronic device, it may display the historical paired device information, such as the electronic device identifier, on the user interface, so that the user can select the desired second Second, the identification corresponding to the electronic device to which the electronic device is switched and connected, after receiving the user's device selection input, the first electronic device can control the second electronic device to switch the connected device, that is, control the second electronic device to disconnect Open a connection with the first electronic device, and establish a connection with the electronic device corresponding to the electronic device identifier selected by the user. For specific implementation manners, reference may be made to related descriptions in the implementation manner shown in FIG.
其中,所述历史配对设备信息中可以包括至少一个电子设备标识,所述至少一个电子设备标识包括第三电子设备对应的标识,以便用户通过在所述第一电子设备上选择所述第三电子设备对应的标识,来控制所述第二电子设备切换至与所述第三电子设备连接。Wherein, the historical pairing device information may include at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to a third electronic device, so that the user can select the third electronic device by selecting the third electronic device on the first electronic device. An identifier corresponding to the device to control the second electronic device to switch to be connected to the third electronic device.
可选的,所述步骤501之后,所述方法还包括:Optionally, after the step 501, the method further includes:
接收所述第一电子设备发送的所述第三电子设备对应的标识;Receiving the identifier corresponding to the third electronic device sent by the first electronic device;
断开与所述第一电子设备之间的连接,并与所述第三电子设备建立连接。Disconnect the connection with the first electronic device, and establish a connection with the third electronic device.
该实施方式中,当用户在所述第一电子设备上,从所述至少一个电子设备标识中选择第三电子设备对应的标识后,所述第一电子设备可以将用户选择的所述第三电子设备对应的标识返回至所述第二电子设备,从而所述第二 电子设备可以接收到所述第一电子设备发送的所述第三电子设备对应的标识,并可基于该标识,从历史配对设备信息中找到该标识对应的第三电子设备的连接信息,如蓝牙地址,进而可断开与所述第一电子设备之间的连接,并通过所述第三电子设备的连接信息,与所述第三电子设备建立连接。In this implementation manner, after the user selects the identification corresponding to the third electronic device from the at least one electronic device identification on the first electronic device, the first electronic device may select the third electronic device selected by the user. The identification corresponding to the electronic device is returned to the second electronic device, so that the second electronic device can receive the identification corresponding to the third electronic device sent by the first electronic device, and based on the identification, from the history The connection information of the third electronic device corresponding to the identifier is found in the paired device information, such as a Bluetooth address, and then the connection with the first electronic device can be disconnected, and through the connection information of the third electronic device, The third electronic device establishes a connection.
这样,用户可直接在所述第一电子设备上为所述第二电子设备选择期望切换连接的电子设备的标识,便可实现对所述第二电子设备的连接设备切换,而无需在多个设备之间进行操作,可提高设备切换效率和操作便捷性,适用于用户通过当前手持设备快速完成对第二电子设备的连接设备切换的场景。In this way, the user can directly select the identification of the electronic device that is desired to switch the connection for the second electronic device on the first electronic device, and switch the connected device of the second electronic device without having to switch between multiple devices. Operations between devices can improve device switching efficiency and operation convenience, and are suitable for scenarios where a user quickly completes a connected device switch to a second electronic device through the current handheld device.
需说明的是,为更加简化用户的切换操作,所述第二电子设备可以直接通过接收用户输入的语音切换指令,来实现连接设备的切换。也就是说,所述设备切换方法也可以包括:It should be noted that, in order to further simplify the user's switching operation, the second electronic device may directly implement the switching of the connected device by receiving the voice switching instruction input by the user. In other words, the device switching method may also include:
接收用户输入的语音切换指令,其中,所述语音切换指令中包括第三电子设备的标识信息;Receiving a voice switching instruction input by a user, wherein the voice switching instruction includes identification information of the third electronic device;
响应于所述语音切换指令,断开与第一电子设备之间的连接,并与所述第三电子设备建立连接。In response to the voice switching instruction, disconnect the connection with the first electronic device, and establish a connection with the third electronic device.
即所述第二电子设备可支持语音识别功能,从而能够对用户发出的包含设备切换信息的语音切换指令进行识别,也就是说,用户可以语音输入所需切换连接的第三电子设备的标识信息,如语音输入第三电子设备的名称,其中,所述第三电子设备可以为所述第二电子设备的历史配对设备。That is, the second electronic device can support the voice recognition function, so that it can recognize the voice switching instruction that contains the device switching information issued by the user, that is, the user can voice input the identification information of the third electronic device that needs to be switched. , Such as inputting the name of the third electronic device by voice, wherein the third electronic device may be a historical pairing device of the second electronic device.
所述第二电子设备在接收到所述语音切换指令后,通过语音识别其中包括的第三电子设备的标识信息,便可做出响应,即断开与第一电子设备之间的连接,并可通过所述第三电子设备的标识信息,查找所述第三电子设备的连接信息,如蓝牙地址,进而基于该连接信息与所述第三电子设备建立连接。After receiving the voice switching instruction, the second electronic device can respond by recognizing the identification information of the third electronic device included therein by voice, that is, disconnecting the connection with the first electronic device, and The connection information of the third electronic device, such as a Bluetooth address, can be searched for through the identification information of the third electronic device, and a connection with the third electronic device can be established based on the connection information.
可选的,所述接收用户输入的语音切换指令之前,所述方法还包括:Optionally, before the receiving the voice switching instruction input by the user, the method further includes:
接收用于触发所述第二电子设备进入设备切换模式的预设输入;Receiving a preset input used to trigger the second electronic device to enter a device switching mode;
响应于所述预设输入,进入设备切换模式,并开启语音功能;In response to the preset input, enter the device switching mode and turn on the voice function;
所述接收用户输入的语音切换指令,包括:The receiving the voice switching instruction input by the user includes:
接收用户输入的携带有所述第三电子设备对应的标识的语音切换指令。Receiving a voice switching instruction that is input by a user and carries an identifier corresponding to the third electronic device.
该实施方式中,所述第二电子设备可以支持语音识别功能,且在接收用 户的语音切换指令之前,可以先接收用户的预设输入,所述预设输入可以是预先设定的用于触发所述第二电子设备进入设备切换模式的输入,如所述预设输入为在所述第二电子设备上敲击三次,这样,在接收到所述预设输入后,可以进入设备切换模式,并开启语音功能,以接收并识别用户输入的语音切换指令。In this implementation manner, the second electronic device may support a voice recognition function, and before receiving the user's voice switching instruction, may first receive a user's preset input, and the preset input may be preset for triggering The input for the second electronic device to enter the device switching mode, for example, the preset input is tapping three times on the second electronic device, so that after receiving the preset input, the device switching mode can be entered, And turn on the voice function to receive and recognize the voice switching instructions input by the user.
用户输入的所述语音切换指令中可以携带有用于指示连接的第三电子设备的标识,如所述第三电子设备的名称,这样,所述第二电子设备在识别出所述语音切换指令中的第三电子设备的标识之后,便可以切换至与所述第三电子设备连接。The voice switching instruction input by the user may carry an identifier for indicating the connected third electronic device, such as the name of the third electronic device, so that the second electronic device recognizes the voice switching instruction. After the identification of the third electronic device, you can switch to connect with the third electronic device.
这样,用户无需依赖其他电子设备,可直接在第二电子设备上操作,便可完成对所述第二电子设备的连接设备切换操作。In this way, the user does not need to rely on other electronic devices and can directly operate on the second electronic device to complete the switching operation of the connected device of the second electronic device.
需说明的是,为保证切换连接的成功率,所述第三电子设备可以为所述第二电子设备的历史配对设备,即所述第二电子设备中存储记录了所述第三电子设备的信息,如蓝牙地址、名称等,这样,根据所述设备切换指令所指示的第三电子设备,所述第二电子设备可以通过记录的所述第三电子设备的信息,快速连接至所述第三电子设备。It should be noted that, in order to ensure the success rate of handover connection, the third electronic device may be a historical pairing device of the second electronic device, that is, the second electronic device stores and records the information of the third electronic device Information, such as Bluetooth address, name, etc., in this way, according to the third electronic device indicated by the device switching instruction, the second electronic device can quickly connect to the third electronic device through the recorded information of the third electronic device Three electronic equipment.
可选的,所述与所述第三电子设备建立连接,包括:Optionally, the establishing a connection with the third electronic device includes:
判断所述第三电子设备是否为历史配对设备;Determine whether the third electronic device is a historical paired device;
若所述第三电子设备是历史配对设备,则与所述第三电子设备建立连接,并在连接成功的情况下输出第一提示语音,以提示切换连接成功;If the third electronic device is a historical pairing device, establish a connection with the third electronic device, and if the connection is successful, output a first prompt voice to prompt that the handover connection is successful;
所述判断所述第三电子设备是否为历史配对设备之后,所述方法还包括:After the determining whether the third electronic device is a historical pairing device, the method further includes:
若所述第三电子设备不是历史配对设备,则输出第二提示语音,以提示所述第三电子设备不是历史配对设备。If the third electronic device is not a historical paired device, output a second prompt voice to prompt that the third electronic device is not a historical paired device.
该方式中,在接收用户输入的设备切换指令后,为保证设备切换成功,可先判断所述第三电子设备是否为历史配对设备,即可以基于所述设备切换指令所指示的第三电子设备的信息和历史配对设备信息,判断所述第三电子设备是否为历史配对设备。In this method, after receiving the device switching instruction input by the user, in order to ensure that the device switching is successful, it can first determine whether the third electronic device is a historical paired device, that is, it can be based on the third electronic device indicated by the device switching instruction To determine whether the third electronic device is a historical paired device.
若是,则可以从所述历史配对设备信息中查找所述第三电子设备的连接信息,如蓝牙地址,并按照其连接信息,与所述第三电子设备进行连接,并 可在连接成功的情况下,输出第一提示语音,以提示用户切换成功;若不是,则难以为所述第二电子设备切换至连接该设备,从而可输出第二提示语音,以提示用户所述第三电子设备不是历史配对设备,需重新输入期望连接的设备信息。If so, you can search for the connection information of the third electronic device, such as Bluetooth address, from the historical paired device information, and connect with the third electronic device according to the connection information, and if the connection is successful If it is not, it is difficult for the second electronic device to switch to connect to the device, so that the second prompt voice can be output to remind the user that the third electronic device is not For historical paired devices, you need to re-enter the information of the device you want to connect to.
以蓝牙耳机为例,在需要切换蓝牙耳机的连接设备时,可以采用约定的方式在蓝牙耳机上敲击三次,以使蓝牙耳机进入设备切换模式,并开启录音功能,接着,用户可以语音输入需连接的电子设备的名称,如输入“切换至与电子设备A连接”的语音消息;蓝牙耳机在识别出用户语音中的设备名称时,可以先判断电子设备A是否为其历史配对设备,若是,则可以断开与原设备的连接,并按照电子设备A的蓝牙地址,试图与电子设备A连接,在连接成功的情况下,可以输出“连接至电子设备A成功”的语音提示消息,在连接失败的情况下,可以输出“连接至电子设备A失败”的语音提示消息;若不是,则可以直接输出“电子设备A不在历史配对设备列表中,请重新输入设备名称”的语音提示消息。Take the Bluetooth headset as an example. When you need to switch the connected device of the Bluetooth headset, you can tap the Bluetooth headset three times in an agreed manner to make the Bluetooth headset enter the device switching mode and turn on the recording function. Then, the user can voice input The name of the connected electronic device, such as inputting the voice message "switch to connect with electronic device A"; when the Bluetooth headset recognizes the device name in the user's voice, it can first determine whether electronic device A is a historical paired device, if so, Then you can disconnect from the original device, and try to connect with electronic device A according to the Bluetooth address of electronic device A. If the connection is successful, you can output the voice prompt message "Connecting to electronic device A successfully". In the case of failure, the voice prompt message "Failed to connect to electronic device A" can be output; if not, the voice prompt message "Electronic device A is not in the historical paired device list, please re-enter the device name" can be output directly.
这样,通过判断目标电子设备是否为历史配对设备,以及根据判断结果输出不同的语音提示,可使用户获得切换结果反馈,进而可提升用户体验。In this way, by judging whether the target electronic device is a historical paired device, and outputting different voice prompts according to the judgment result, the user can obtain feedback on the switching result, thereby improving the user experience.
还需说明的是,本发明实施例也可应用于通过未与所述第二电子设备建立通信连接的电子设备来完成对所述第二电子设备的连接设备切换,即所述步骤501之前,所述方法还可以包括:It should also be noted that the embodiment of the present invention can also be applied to complete the switching of the connected device of the second electronic device through an electronic device that has not established a communication connection with the second electronic device, that is, before the step 501, The method may also include:
在第四电子设备与所述第二电子设备建立有通信连接的情况下,基于已建立的通信连接方式向所述第四电子设备发送历史配对设备信息;或者In the case that the fourth electronic device has established a communication connection with the second electronic device, send historical pairing device information to the fourth electronic device based on the established communication connection mode; or
在所述第四电子设备未与所述第二电子设备建立通信连接的情况下,通过蓝牙低能耗(Bluetooh Low Energy,BLE)广播的方式向所述第四电子设备发送所述历史配对设备信息。In the case that the fourth electronic device does not establish a communication connection with the second electronic device, send the historical paired device information to the fourth electronic device by way of Bluetooth Low Energy (BLE) broadcasting .
该实施方式中,所述第二电子设备在发送其历史配对设备信息前,可以根据所述第四电子设备是否与其建立通信连接,而采用不同的方式来发送所述历史配对设备信息。In this embodiment, before the second electronic device sends its historical paired device information, it may send the historical paired device information in a different manner according to whether the fourth electronic device establishes a communication connection with it.
一种方式中,在第四电子设备与所述第二电子设备建立有通信连接的情况下,所述第二电子设备可以基于已建立的通信连接方式向所述第四电子设 备发送其历史配对设备信息,例如,若所述第四电子设备与所述第二电子设备建立有串行端口配置文件(Serial Port Profile,SPP)连接,则所述第二电子设备可以基于建立的SPP连接向所述第四电子设备发送所述历史配对设备信息;若所述第四电子设备与所述第二电子设备建立有蓝牙免提应用(Hands-free Profile,HFP)连接,则所述第二电子设备可以基于建立的HFP连接向所述第四电子设备发送所述历史配对设备信息。In one manner, in a case where a communication connection between the fourth electronic device and the second electronic device is established, the second electronic device may send its historical pairing to the fourth electronic device based on the established communication connection mode Device information, for example, if the fourth electronic device and the second electronic device establish a serial port profile (Serial Port Profile, SPP) connection, the second electronic device can connect to all devices based on the established SPP connection. The fourth electronic device sends the historical paired device information; if the fourth electronic device establishes a Bluetooth hands-free application (Hands-free Profile, HFP) connection with the second electronic device, the second electronic device The historical paired device information may be sent to the fourth electronic device based on the established HFP connection.
另一种方式中,在第四电子设备未与所述第二电子设备建立通信连接的情况下,所述第二电子设备可以采用BLE广播其历史配对设备信息,从而位于其广播范围内的所述第四电子设备可以接收到所述蓝牙设备广播的历史配对设备信息。In another way, when the fourth electronic device does not establish a communication connection with the second electronic device, the second electronic device can broadcast its historical paired device information using BLE, so that all the devices within its broadcast range are broadcasted. The fourth electronic device may receive historical paired device information broadcast by the Bluetooth device.
这样,用户可通过当前与第二电子设备连接的电子设备来辅助完成对所述第二电子设备的连接设备切换,也可以根据实际场景,采用便于操作的电子设备(如离用户较近的设备)来辅助完成对所述第二电子设备的连接设备切换,使得用户的设备切换操作较为灵活,可不受设备位置限制。In this way, the user can use the electronic device currently connected to the second electronic device to assist in completing the switch of the connected device of the second electronic device, or according to the actual scenario, use an electronic device that is convenient to operate (such as a device closer to the user). ) To assist in completing the switching of the connected device of the second electronic device, so that the user's device switching operation is more flexible, and is not restricted by the location of the device.
其中,需指出的是,所述第二电子设备可以基于用户的触发操作或所述第四电子设备的请求,向所述第四电子设备发送所述历史配对设备信息,以进入设备切换流程。It should be noted that the second electronic device may send the historical paired device information to the fourth electronic device based on a user's trigger operation or a request of the fourth electronic device to enter the device switching process.
本实施例中的设备切换方法,通过向第一电子设备发送历史配对设备信息,可便于用户在所述第一电子设备上为所述第二电子设备选择期望切换连接的电子设备,并基于用户的选择控制所述第二电子设备切换至与第三电子设备建立连接,从而在为第二电子设备切换连接设备时,无需用户在多台电子设备间作过多操作,使得切换连接设备的操作简单便捷,效率较高。In the device switching method of this embodiment, by sending historical paired device information to the first electronic device, it is convenient for the user to select the electronic device that the user wants to switch to and connect to on the first electronic device for the second electronic device, and based on the user The selection controls the second electronic device to switch to establish a connection with the third electronic device, so that when switching the connected device for the second electronic device, the user does not need to perform excessive operations among multiple electronic devices, making the operation of switching the connected device simple Convenient and efficient.
参见图6,图6是本发明实施例提供的另一种设备切换方法的流程图,应用于第二电子设备,如图6所示,所述方法包括以下步骤:Referring to FIG. 6, FIG. 6 is a flowchart of another device switching method provided by an embodiment of the present invention, which is applied to a second electronic device. As shown in FIG. 6, the method includes the following steps:
步骤601、在第二电子设备与第一电子设备连接的情况下,接收第一电子设备发送的至少一个电子设备标识对应的各电子设备与操作项的关联关系。Step 601: When the second electronic device is connected to the first electronic device, receive the association relationship between each electronic device and the operation item corresponding to the at least one electronic device identifier sent by the first electronic device.
步骤602、接收第三输入。Step 602: Receive a third input.
步骤603、响应于所述第三输入,断开所述第二电子设备与所述第一电子设备的连接,并建立所述第二电子设备与第四电子设备的连接;Step 603: In response to the third input, disconnect the second electronic device from the first electronic device, and establish a connection between the second electronic device and the fourth electronic device;
其中,所述第四电子设备的标识包含于所述至少一个电子设备标识中,且所述第四电子设备与所述第三输入对应的操作项关联。Wherein, the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
本实施例中,上述关联关系可以是所述第一电子设备基于用户在配置界面上为各电子设备标识配置对应的操作项时建立的,具体可以参见图3所示的方法实施例中的相关描述,为避免重复,此处不再赘述。In this embodiment, the foregoing association relationship may be established by the first electronic device based on the user configuring the corresponding operation items for each electronic device identifier on the configuration interface. For details, please refer to the correlation in the method embodiment shown in FIG. 3 Description, in order to avoid repetition, I will not repeat it here.
上述第三输入可以是用户在所述第二电子设备上输入的设备切换操作,所述第二电子设备可以基于所述第一电子设备发送的所述关联关系确定所述第三输入所指示连接的第三电子设备,具体地,可以确定所述第三输入对应的操作项,并根据所述关联关系确定该操作项所关联的电子设备。The foregoing third input may be a device switching operation input by the user on the second electronic device, and the second electronic device may determine the connection indicated by the third input based on the association relationship sent by the first electronic device The third electronic device of, specifically, the operation item corresponding to the third input may be determined, and the electronic device associated with the operation item may be determined according to the association relationship.
可选的,所述步骤601之前,所述方法还包括:Optionally, before the step 601, the method further includes:
向所述第一电子设备发送历史配对设备信息,其中,所述历史配对设备信息中包括至少一个电子设备标识,所述至少一个电子设备标识包括所述第四电子设备对应的标识。Send historical paired device information to the first electronic device, where the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the fourth electronic device.
也就是说,在接收第一电子设备发送的所述关联关系之前,所述第二电子设备可以先将其存储的历史配对设备信息,如历史配对设备名称或地址等发送给所述第一电子设备,所述第一电子设备则可以在用户界面上显示包括至少一个电子设备标识的设备切换配置界面,以便用户在该界面上为所述第二电子设备配置各电子设备标识对应的操作项,使得所述第二电子设备能够根据用户后续在第二电子设备上的切换操作,确定用户期望切换连接的第四电子设备。在用户配置完后,所述第一电子设备可以将用户配置的各电子设备标识对应的操作项的信息即所述关联关系返回至所述第二电子设备,然后,用户可按照期望切换连接的设备对应的操作项所指示的操作方式,在所述第二电子设备上执行相应的设备切换操作,所述第二电子设备可按照所述关联关系,确定所述设备切换操作对应的第四电子设备,进而切换至与所述第四电子设备连接。具体实施方式可以参见图4所示的实施方式中的相关描述,为避免重复,此处不再赘述。That is, before receiving the association relationship sent by the first electronic device, the second electronic device may first send its stored historical paired device information, such as the name or address of the historical paired device, to the first electronic device. Device, the first electronic device may display a device switching configuration interface including at least one electronic device identifier on the user interface, so that the user can configure the operation items corresponding to each electronic device identifier for the second electronic device on the interface, This enables the second electronic device to determine the fourth electronic device that the user desires to switch to, according to the user's subsequent switching operation on the second electronic device. After the user completes the configuration, the first electronic device may return the information of the operation item corresponding to each electronic device identifier configured by the user, that is, the association relationship to the second electronic device, and then the user may switch the connection as desired According to the operation mode indicated by the operation item corresponding to the device, the corresponding device switching operation is performed on the second electronic device, and the second electronic device may determine the fourth electronic device corresponding to the device switching operation according to the association relationship. Device, and then switch to connect with the fourth electronic device. For specific implementation manners, reference may be made to related descriptions in the implementation manner shown in FIG.
其中,需指出的是,所述第二电子设备可以基于用户的触发操作或所述第一电子设备的请求,向所述第一电子设备发送所述历史配对设备信息,以进入设备切换流程。It should be noted that the second electronic device may send the historical paired device information to the first electronic device based on a user's trigger operation or the request of the first electronic device to enter the device switching process.
这样,本实施例中,在需要切换第二电子设备的连接设备时,只需在第一电子设备上配置各电子设备的切换操作方式,并在第二电子设备上执行期望连接的电子设备对应的切换操作即可,而无需用户在原连接设备断开连接,并在目标电子设备上点击连接等操作,适用于在第一电子设备和第二电子设备均位于用户的可触范围内,但不便对目标电子设备进行操作的情况下,用户通过第一电子设备和第二电子设备快速完成连接设备切换的场景。In this way, in this embodiment, when the connection device of the second electronic device needs to be switched, only the switching operation mode of each electronic device needs to be configured on the first electronic device, and the corresponding electronic device that is expected to be connected is executed on the second electronic device. The switching operation is sufficient, without the user disconnecting the original connected device and clicking connect on the target electronic device. It is suitable for operations where the first electronic device and the second electronic device are both within the reach of the user, but it is inconvenient In the case of operating the target electronic device, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
参见图7,图7是本发明实施例提供的一种第一电子设备的结构图,如图7所示,第一电子设备700包括:Referring to FIG. 7, FIG. 7 is a structural diagram of a first electronic device according to an embodiment of the present invention. As shown in FIG. 7, the first electronic device 700 includes:
显示模块701,用于在所述第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;The display module 701 is configured to display at least one electronic device identification when the first electronic device is connected to the second electronic device;
第一接收模块702,用于接收第一输入;The first receiving module 702 is configured to receive a first input;
控制模块703,用于响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。The control module 703 is configured to disconnect the connection between the first electronic device and the second electronic device in response to the first input, and control the connection between the second electronic device and the third electronic device, so The at least one electronic device identifier includes an identifier corresponding to the third electronic device.
可选的,如图8所示,第一电子设备700还包括:Optionally, as shown in FIG. 8, the first electronic device 700 further includes:
第二接收模块704,用于接收所述第二电子设备发送的历史配对设备信息,所述历史配对设备信息中包括所述至少一个电子设备标识。The second receiving module 704 is configured to receive historical paired device information sent by the second electronic device, where the historical paired device information includes the at least one electronic device identifier.
可选的,第一接收模块702用于接收针对所述至少一个电子设备标识中的目标设备标识的选择输入,所述目标设备标识为所述第三电子设备对应的标识;Optionally, the first receiving module 702 is configured to receive a selection input for a target device identifier in the at least one electronic device identifier, where the target device identifier is an identifier corresponding to the third electronic device;
可选的,如图9所示,第一电子设备700还包括:Optionally, as shown in FIG. 9, the first electronic device 700 further includes:
发送模块705,用于向所述第二电子设备发送所述目标设备标识。The sending module 705 is configured to send the target device identifier to the second electronic device.
第一电子设备700能够实现图1的方法实施例中第一电子设备实现的各个过程,为避免重复,这里不再赘述。本实施例中,当需要对第二电子设备切换连接设备时,用户只需在第一电子设备上基于显示的设备标识,进行第一输入即可,而无需在多个设备间进行系列切换操作,使得切换连接设备的操作简单便捷,效率较高。The first electronic device 700 can implement each process implemented by the first electronic device in the method embodiment of FIG. 1, and in order to avoid repetition, details are not described herein again. In this embodiment, when it is necessary to switch the connected device to the second electronic device, the user only needs to perform the first input based on the displayed device identification on the first electronic device, instead of performing a series of switching operations among multiple devices. , Which makes the operation of switching connected devices simple and convenient, and the efficiency is high.
参见图10,图10是本发明实施例提供的另一种第一电子设备的结构图,如图10所示,第一电子设备1000包括:Referring to FIG. 10, FIG. 10 is a structural diagram of another first electronic device according to an embodiment of the present invention. As shown in FIG. 10, the first electronic device 1000 includes:
显示模块1001,用于显示配置界面,所述配置界面上包括至少一个电子设备标识;The display module 1001 is configured to display a configuration interface, and the configuration interface includes at least one electronic device identifier;
接收模块1002,用于接收第二输入;The receiving module 1002 is used to receive the second input;
建立模块1003,用于响应于所述第二输入,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系;The establishment module 1003 is configured to establish an association relationship between each electronic device corresponding to the at least one electronic device identifier and an operation item in response to the second input;
发送模块1004,用于将所述关联关系发送至与所述第一电子设备连接的第二电子设备。The sending module 1004 is configured to send the association relationship to a second electronic device connected to the first electronic device.
第一电子设备1000能够实现图3的方法实施例中第一电子设备实现的各个过程,为避免重复,这里不再赘述。本实施例中,在需要切换第二电子设备的连接设备时,只需在第一电子设备上配置各电子设备标识对应的操作项,并在第二电子设备上执行期望连接的电子设备对应的切换操作即可,而无需用户在原连接设备断开连接,并在目标电子设备上点击连接等操作,适用于在第一电子设备和第二电子设备均位于用户的可触范围内,但不便对期望连接的第三电子设备进行操作的情况下,用户通过第一电子设备和第二电子设备快速完成连接设备切换的场景。The first electronic device 1000 can implement each process implemented by the first electronic device in the method embodiment of FIG. 3, and in order to avoid repetition, details are not described herein again. In this embodiment, when the connection device of the second electronic device needs to be switched, it is only necessary to configure the operation items corresponding to each electronic device identifier on the first electronic device, and execute the corresponding operation items corresponding to the electronic device that is expected to be connected on the second electronic device. The switch operation is sufficient, without the user disconnecting the original connected device and clicking connect on the target electronic device. It is suitable for operations where both the first electronic device and the second electronic device are within the reach of the user, but it is inconvenient. In the case where the connected third electronic device is expected to operate, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
参见图11,图11是本发明实施例提供的一种第二电子设备的结构图,如图11所示,第二电子设备1100包括:Referring to FIG. 11, FIG. 11 is a structural diagram of a second electronic device according to an embodiment of the present invention. As shown in FIG. 11, the second electronic device 1100 includes:
发送模块1101,用于向第一电子设备发送历史配对设备信息,其中,所述历史配对设备信息中包括至少一个电子设备标识,所述至少一个电子设备标识包括第三电子设备对应的标识。The sending module 1101 is configured to send historical paired device information to the first electronic device, where the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
可选的,如图12所示,第二电子设备1100还包括:Optionally, as shown in FIG. 12, the second electronic device 1100 further includes:
接收模块1102,用于接收所述第一电子设备发送的所述第三电子设备对应的标识;The receiving module 1102 is configured to receive the identifier corresponding to the third electronic device sent by the first electronic device;
切换模块1103,用于断开与所述第一电子设备之间的连接,并与所述第三电子设备建立连接。The switching module 1103 is used to disconnect the connection with the first electronic device and establish a connection with the third electronic device.
第二电子设备1100能够实现图5的方法实施例中第二电子设备实现的各个过程,为避免重复,这里不再赘述。本发明实施例的第二电子设备1100可以向第一电子设备发送历史配对设备信息,可便于用户在所述第一电子设备上为所述第二电子设备选择期望切换连接的电子设备,并基于用户的选择控 制所述第二电子设备切换至与第三电子设备建立连接,从而在为第二电子设备切换连接设备时,无需用户在多台电子设备间作过多操作,使得切换连接设备的操作简单便捷,效率较高。The second electronic device 1100 can implement each process implemented by the second electronic device in the method embodiment of FIG. 5, and in order to avoid repetition, details are not described herein again. The second electronic device 1100 of the embodiment of the present invention can send historical paired device information to the first electronic device, which can facilitate the user to select the electronic device that is desired to switch the connection for the second electronic device on the first electronic device, and based on The user's selection controls the second electronic device to switch to establish a connection with the third electronic device, so that when switching the connected device for the second electronic device, there is no need for the user to perform excessive operations among multiple electronic devices, so that the operation of switching the connected device Simple and convenient, high efficiency.
参见图13,图13是本发明实施例提供的另一种第二电子设备的结构图,如图13所示,第二电子设备1300包括:Referring to FIG. 13, FIG. 13 is a structural diagram of another second electronic device according to an embodiment of the present invention. As shown in FIG. 13, the second electronic device 1300 includes:
第一接收模块1301,用于在所述第二电子设备与第一电子设备连接的情况下,接收第一电子设备发送的至少一个电子设备标识对应的各电子设备与操作项的关联关系;The first receiving module 1301 is configured to receive the association relationship between each electronic device and the operation item corresponding to at least one electronic device identifier sent by the first electronic device when the second electronic device is connected to the first electronic device;
第二接收模块1302,用于接收第三输入;The second receiving module 1302 is configured to receive the third input;
切换模块1303,用于响应于所述第三输入,断开所述第二电子设备与所述第一电子设备的连接,并建立所述第二电子设备与第四电子设备的连接;The switching module 1303 is configured to disconnect the second electronic device from the first electronic device in response to the third input, and establish a connection between the second electronic device and the fourth electronic device;
其中,所述第四电子设备的标识包含于所述至少一个电子设备标识中,且所述第四电子设备与所述第三输入对应的操作项关联。Wherein, the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
第二电子设备1300能够实现图6的方法实施例中第二电子设备实现的各个过程,为避免重复,这里不再赘述。本实施例中,在需要切换第二电子设备的连接设备时,只需在第一电子设备上配置各电子设备的切换操作方式,并在第二电子设备上执行期望连接的电子设备对应的切换操作即可,而无需用户在原连接设备断开连接,并在目标电子设备上点击连接等操作,适用于在第一电子设备和第二电子设备均位于用户的可触范围内,但不便对目标电子设备进行操作的情况下,用户通过第一电子设备和第二电子设备快速完成连接设备切换的场景。The second electronic device 1300 can implement each process implemented by the second electronic device in the method embodiment of FIG. 6, and to avoid repetition, details are not described herein again. In this embodiment, when the connected device of the second electronic device needs to be switched, it is only necessary to configure the switching operation mode of each electronic device on the first electronic device, and perform the switching corresponding to the electronic device that is expected to be connected on the second electronic device The operation can be performed without the user disconnecting the original connected device and clicking connect on the target electronic device. It is suitable for operations where the first electronic device and the second electronic device are both within the reach of the user, but it is inconvenient for the target When the electronic device is operating, the user quickly completes the scene of switching the connected device through the first electronic device and the second electronic device.
图14为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备为第一电子设备,电子设备1400包括但不限于:射频单元1401、网络模块1402、音频输出单元1403、输入单元1404、传感器1405、显示单元1406、用户输入单元1407、接口单元1408、存储器1409、处理器1410、以及电源1411等部件。本领域技术人员可以理解,图14中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设 备、以及计步器等。14 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention. The electronic device is a first electronic device. The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, and an input Unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, processor 1410, power supply 1411 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,一种实施方式中,处理器1410,用于在所述第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;Among them, in one embodiment, the processor 1410 is configured to display at least one electronic device identifier when the first electronic device is connected to the second electronic device;
接收第一输入;Receive the first input;
响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。In response to the first input, disconnect the connection between the first electronic device and the second electronic device, and control the connection between the second electronic device and the third electronic device, the at least one electronic device identifier Including the identifier corresponding to the third electronic device.
可选的,射频单元1401用于:Optionally, the radio frequency unit 1401 is used for:
接收所述第二电子设备发送的历史配对设备信息,所述历史配对设备信息中包括所述至少一个电子设备标识。Receiving historical paired device information sent by the second electronic device, where the historical paired device information includes the at least one electronic device identifier.
可选的,处理器1410还用于:Optionally, the processor 1410 is also used to:
接收针对所述至少一个电子设备标识中的目标设备标识的选择输入,所述目标设备标识为所述第三电子设备对应的标识;Receiving a selection input for a target device identifier in the at least one electronic device identifier, where the target device identifier is an identifier corresponding to the third electronic device;
可选的,射频单元1401还用于:Optionally, the radio frequency unit 1401 is also used for:
向所述第二电子设备发送所述目标设备标识。Sending the target device identifier to the second electronic device.
另一种实施方式中,处理器1410,用于显示配置界面,所述配置界面上包括至少一个电子设备标识;In another implementation manner, the processor 1410 is configured to display a configuration interface, and the configuration interface includes at least one electronic device identifier;
接收第二输入;Receive the second input;
响应于所述第二输入,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系;In response to the second input, establishing an association relationship between each electronic device corresponding to the at least one electronic device identifier and the operation item;
射频单元1401,用于将所述关联关系发送至与所述第一电子设备连接的第二电子设备。The radio frequency unit 1401 is configured to send the association relationship to a second electronic device connected to the first electronic device.
电子设备1400能够实现前述实施例中第一电子设备实现的各个过程,且能达到相同的有益效果,为避免重复,这里不再赘述。The electronic device 1400 can implement each process implemented by the first electronic device in the foregoing embodiment, and can achieve the same beneficial effects. To avoid repetition, details are not described herein again.
应理解的是,本发明实施例中,射频单元1401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1410处理;另外,将上行的数据发送给基站。通常,射频单元1401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 1401 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1410; Uplink data is sent to the base station. Generally, the radio frequency unit 1401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1401 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块1402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 1402, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元1403可以将射频单元1401或网络模块1402接收的或者在存储器1409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1403还可以提供与电子设备1400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1403包括扬声器、蜂鸣器以及受话器等。The audio output unit 1403 may convert the audio data received by the radio frequency unit 1401 or the network module 1402 or stored in the memory 1409 into audio signals and output them as sounds. Moreover, the audio output unit 1403 may also provide audio output related to a specific function performed by the electronic device 1400 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 1403 includes a speaker, a buzzer, a receiver, and the like.
输入单元1404用于接收音频或视频信号。输入单元1404可以包括图形处理器(Graphics Processing Unit,GPU)14041和麦克风14042,图形处理器14041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1406上。经图形处理器14041处理后的图像帧可以存储在存储器1409(或其它存储介质)中或者经由射频单元1401或网络模块1402进行发送。麦克风14042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1401发送到移动通信基站的格式输出。The input unit 1404 is used to receive audio or video signals. The input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042. The graphics processor 14041 is configured to respond to images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed. The processed image frame can be displayed on the display unit 1406. The image frame processed by the graphics processor 14041 may be stored in the memory 1409 (or other storage medium) or sent via the radio frequency unit 1401 or the network module 1402. The microphone 14042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 1401 for output in the case of a telephone call mode.
电子设备1400还包括至少一种传感器1405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板14061的亮度,接近传感器可在电子设备1400移动到耳边时,关闭显示面板14061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 1400 further includes at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 14061 according to the brightness of the ambient light. The proximity sensor can close the display panel 14061 and the display panel 14061 when the electronic device 1400 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; the sensor 1405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元1406用于显示由用户输入的信息或提供给用户的信息。显示单元1406可包括显示面板14061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配 置显示面板14061。The display unit 1406 is used to display information input by the user or information provided to the user. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元1407可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1407包括触控面板14071以及其他输入设备14072。触控面板14071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板14071上或在触控面板14071附近的操作)。触控面板14071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1410,接收处理器1410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板14071。除了触控面板14071,用户输入单元1407还可以包括其他输入设备14072。具体地,其他输入设备14072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 1407 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 1407 includes a touch panel 14071 and other input devices 14072. The touch panel 14071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 14071 or near the touch panel 14071. operating). The touch panel 14071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 1410, the command sent by the processor 1410 is received and executed. In addition, the touch panel 14071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 14071, the user input unit 1407 may also include other input devices 14072. Specifically, other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板14071可覆盖在显示面板14061上,当触控面板14071检测到在其上或附近的触摸操作后,传送给处理器1410以确定触摸事件的类型,随后处理器1410根据触摸事件的类型在显示面板14061上提供相应的视觉输出。虽然在图14中,触控面板14071与显示面板14061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板14071与显示面板14061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 14071 can cover the display panel 14061. When the touch panel 14071 detects a touch operation on or near it, it transmits it to the processor 1410 to determine the type of the touch event, and then the processor 1410 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 14061. Although in FIG. 14, the touch panel 14071 and the display panel 14061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 14071 and the display panel 14061 may be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元1408为外部装置与电子设备1400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备1400内的一个或多个元件或者可以用于在电子设备1400和外部装置之间传输数据。The interface unit 1408 is an interface for connecting an external device and the electronic device 1400. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 1408 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 1400 or can be used to connect to the electronic device 1400 and the external device. Transfer data between devices.
存储器1409可用于存储软件程序以及各种数据。存储器1409可主要包 括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1409 can be used to store software programs and various data. The memory 1409 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 1409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器1410是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1409内的软件程序和/或模块,以及调用存储在存储器1409内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器1410可包括一个或多个处理单元;优选的,处理器1410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1410中。The processor 1410 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 1409, and calls the data stored in the memory 1409 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 1410 may include one or more processing units; preferably, the processor 1410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1410.
电子设备1400还可以包括给各个部件供电的电源1411(比如电池),优选的,电源1411可以通过电源管理系统与处理器1410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 1400 may also include a power source 1411 (such as a battery) for supplying power to various components. Preferably, the power source 1411 may be logically connected to the processor 1410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备1400包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 1400 includes some functional modules not shown, which will not be repeated here.
本发明实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的计算机程序,该计算机程序被处理器执行时实现图1或图3所示的设备切换方法实施例的各个过程,或者,该计算机程序被处理器执行时实现图5或图6所示的设备切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the implementation shown in FIG. 1 or FIG. 3 Each process of the device switching method embodiment of the device switching method embodiment, or when the computer program is executed by a processor, realizes the various processes of the device switching method embodiment shown in FIG. 5 or FIG. 6, and can achieve the same technical effect. In order to avoid repetition, I won't repeat it here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现图1或图3所示的设备切换方法实施例的各个过程,或者,该计算机程序被处理器执行时实现图5或图6所示的设备切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the device switching method embodiment shown in FIG. 1 or FIG. 3 is implemented. Or, when the computer program is executed by the processor, each process of the device switching method embodiment shown in FIG. 5 or FIG. 6 is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (20)

  1. 一种设备切换方法,应用于第一电子设备,包括:A device switching method, applied to a first electronic device, includes:
    在所述第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;When the first electronic device is connected to the second electronic device, display at least one electronic device identifier;
    接收第一输入;Receive the first input;
    响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。In response to the first input, disconnect the connection between the first electronic device and the second electronic device, and control the connection between the second electronic device and the third electronic device, the at least one electronic device identifier Including the identifier corresponding to the third electronic device.
  2. 根据权利要求1所述的方法,其中,所述显示至少一个电子设备标识之前,所述方法还包括:The method according to claim 1, wherein before the displaying at least one electronic device identification, the method further comprises:
    接收所述第二电子设备发送的历史配对设备信息,所述历史配对设备信息中包括所述至少一个电子设备标识。Receiving historical paired device information sent by the second electronic device, where the historical paired device information includes the at least one electronic device identifier.
  3. 根据权利要求1所述的方法,其中,所述接收第一输入,包括:The method according to claim 1, wherein said receiving the first input comprises:
    接收针对所述至少一个电子设备标识中的目标设备标识的选择输入,所述目标设备标识为所述第三电子设备对应的标识。Receiving a selection input for a target device identifier in the at least one electronic device identifier, where the target device identifier is an identifier corresponding to the third electronic device.
  4. 根据权利要求3所述的方法,还包括:The method according to claim 3, further comprising:
    向所述第二电子设备发送所述目标设备标识。Sending the target device identifier to the second electronic device.
  5. 一种设备切换方法,应用于第一电子设备,包括:A device switching method, applied to a first electronic device, includes:
    显示配置界面,所述配置界面上包括至少一个电子设备标识;Display a configuration interface, where the configuration interface includes at least one electronic device identifier;
    接收第二输入;Receive the second input;
    响应于所述第二输入,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系;In response to the second input, establishing an association relationship between each electronic device corresponding to the at least one electronic device identifier and the operation item;
    将所述关联关系发送至与所述第一电子设备连接的第二电子设备。The association relationship is sent to a second electronic device connected to the first electronic device.
  6. 一种设备切换方法,应用于第二电子设备,包括:A device switching method, applied to a second electronic device, includes:
    向第一电子设备发送历史配对设备信息,其中,所述历史配对设备信息中包括至少一个电子设备标识,所述至少一个电子设备标识包括第三电子设备对应的标识。Send historical paired device information to the first electronic device, where the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  7. 根据权利要求6所述的方法,其中,所述向所述第一电子设备发送历 史配对设备信息之后,所述方法还包括:The method according to claim 6, wherein after the sending the historical paired device information to the first electronic device, the method further comprises:
    接收所述第一电子设备发送的所述第三电子设备对应的标识;Receiving the identifier corresponding to the third electronic device sent by the first electronic device;
    断开与所述第一电子设备之间的连接,并与所述第三电子设备建立连接。Disconnect the connection with the first electronic device, and establish a connection with the third electronic device.
  8. 一种设备切换方法,应用于第二电子设备,包括:A device switching method, applied to a second electronic device, includes:
    在所述第二电子设备与第一电子设备连接的情况下,接收第一电子设备发送的至少一个电子设备标识对应的各电子设备与操作项的关联关系;When the second electronic device is connected to the first electronic device, receiving the association relationship between each electronic device and the operation item corresponding to the at least one electronic device identifier sent by the first electronic device;
    接收第三输入;Receive the third input;
    响应于所述第三输入,断开所述第二电子设备与所述第一电子设备的连接,并建立所述第二电子设备与第四电子设备的连接;In response to the third input, disconnect the second electronic device from the first electronic device, and establish a connection between the second electronic device and the fourth electronic device;
    其中,所述第四电子设备的标识包含于所述至少一个电子设备标识中,且所述第四电子设备与所述第三输入对应的操作项关联。Wherein, the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
  9. 一种第一电子设备,包括:A first electronic device, including:
    显示模块,用于在所述第一电子设备与第二电子设备连接的情况下,显示至少一个电子设备标识;A display module, configured to display at least one electronic device identifier when the first electronic device is connected to the second electronic device;
    第一接收模块,用于接收第一输入;The first receiving module is configured to receive the first input;
    控制模块,用于响应于所述第一输入,断开所述第一电子设备与所述第二电子设备之间的连接,并控制所述第二电子设备与第三电子设备连接,所述至少一个电子设备标识包括所述第三电子设备对应的标识。The control module is adapted to disconnect the connection between the first electronic device and the second electronic device in response to the first input, and control the connection between the second electronic device and the third electronic device, the The at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  10. 根据权利要求9所述的第一电子设备,其中,所述第一电子设备还包括:The first electronic device according to claim 9, wherein the first electronic device further comprises:
    第二接收模块,用于接收所述第二电子设备发送的历史配对设备信息,所述历史配对设备信息中包括所述至少一个电子设备标识。The second receiving module is configured to receive historical paired device information sent by the second electronic device, where the historical paired device information includes the at least one electronic device identifier.
  11. 根据权利要求9所述的第一电子设备,其中,所述第一接收模块用于接收针对所述至少一个电子设备标识中的目标设备标识的选择输入,所述目标设备标识为所述第三电子设备对应的标识。The first electronic device according to claim 9, wherein the first receiving module is configured to receive a selection input for a target device identifier in the at least one electronic device identifier, and the target device identifier is the third The identifier corresponding to the electronic device.
  12. 根据权利要求11所述的第一电子设备,其中,所述第一电子设备还包括:The first electronic device according to claim 11, wherein the first electronic device further comprises:
    发送模块,用于向所述第二电子设备发送所述目标设备标识。The sending module is configured to send the target device identifier to the second electronic device.
  13. 一种第一电子设备,包括:A first electronic device, including:
    显示模块,用于显示配置界面,所述配置界面上包括至少一个电子设备标识;A display module, configured to display a configuration interface, the configuration interface including at least one electronic device identifier;
    接收模块,用于接收第二输入;Receiving module for receiving the second input;
    建立模块,用于响应于所述第二输入,建立所述至少一个电子设备标识对应的各电子设备与操作项的关联关系;An establishment module, configured to establish an association relationship between each electronic device corresponding to the at least one electronic device identifier and an operation item in response to the second input;
    发送模块,用于将所述关联关系发送至与所述第一电子设备连接的第二电子设备。The sending module is configured to send the association relationship to a second electronic device connected to the first electronic device.
  14. 一种第二电子设备,包括:A second electronic device, including:
    发送模块,用于向第一电子设备发送历史配对设备信息,其中,所述历史配对设备信息中包括至少一个电子设备标识,所述至少一个电子设备标识包括第三电子设备对应的标识。The sending module is configured to send historical paired device information to the first electronic device, wherein the historical paired device information includes at least one electronic device identifier, and the at least one electronic device identifier includes an identifier corresponding to the third electronic device.
  15. 根据权利要求14所述的第二电子设备,其中,所述第二电子设备还包括:The second electronic device according to claim 14, wherein the second electronic device further comprises:
    接收模块,用于接收所述第一电子设备发送的所述第三电子设备对应的标识;A receiving module, configured to receive the identifier corresponding to the third electronic device sent by the first electronic device;
    切换模块,用于断开与所述第一电子设备之间的连接,并与所述第三电子设备建立连接。The switching module is used to disconnect the connection with the first electronic device and establish a connection with the third electronic device.
  16. 一种第二电子设备,包括:A second electronic device, including:
    第一接收模块,用于在所述第二电子设备与第一电子设备连接的情况下,接收第一电子设备发送的至少一个电子设备标识对应的各电子设备与操作项的关联关系;The first receiving module is configured to receive the association relationship between each electronic device and the operation item corresponding to at least one electronic device identifier sent by the first electronic device when the second electronic device is connected to the first electronic device;
    第二接收模块,用于接收第三输入;The second receiving module is used to receive the third input;
    切换模块,用于响应于所述第三输入,断开所述第二电子设备与所述第一电子设备的连接,并建立所述第二电子设备与第四电子设备的连接;A switching module, configured to disconnect the second electronic device from the first electronic device in response to the third input, and establish a connection between the second electronic device and the fourth electronic device;
    其中,所述第四电子设备的标识包含于所述至少一个电子设备标识中,且所述第四电子设备与所述第三输入对应的操作项关联。Wherein, the identifier of the fourth electronic device is included in the at least one electronic device identifier, and the fourth electronic device is associated with an operation item corresponding to the third input.
  17. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的设备切换方法中的步骤;或者所述计算机 程序被所述处理器执行时实现如权利要求6至8中任一项所述的设备切换方法中的步骤。An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 5 One of the steps in the device switching method; or, when the computer program is executed by the processor, the steps in the device switching method according to any one of claims 6 to 8 are implemented.
  18. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的设备切换方法中的步骤;或者,所述计算机程序被处理器执行时实现如权利要求6至8中任一项所述的设备切换方法中的步骤。A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the device switching method according to any one of claims 1 to 5; or, the computer When the program is executed by the processor, the steps in the device switching method according to any one of claims 6 to 8 are implemented.
  19. 一种计算机程序产品,其中,所述程序产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的设备切换方法中的步骤;或者,所述计算机程序产品被处理器执行时实现如权利要求6至8中任一项所述的设备切换方法中的步骤。A computer program product, wherein the program product is executed by at least one processor to implement the steps in the device switching method according to any one of claims 1 to 5; or, the computer program product is executed by the processor When executed, the steps in the device switching method according to any one of claims 6 to 8 are realized.
  20. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至5中任一项所述的设备切换方法中的步骤;或者,所述电子设备被配置成用于执行如权利要求6至8中任一项所述的设备切换方法中的步骤。An electronic device, comprising the electronic device configured to execute the steps in the device switching method according to any one of claims 1 to 5; or, the electronic device is configured to execute The steps in the device switching method described in any one of 6 to 8 are required.
PCT/CN2020/137483 2019-12-24 2020-12-18 Device switching method and related device WO2021129529A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911345734.2A CN111083755B (en) 2019-12-24 2019-12-24 Equipment switching method and related equipment
CN201911345734.2 2019-12-24

Publications (1)

Publication Number Publication Date
WO2021129529A1 true WO2021129529A1 (en) 2021-07-01

Family

ID=70317198

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137483 WO2021129529A1 (en) 2019-12-24 2020-12-18 Device switching method and related device

Country Status (2)

Country Link
CN (1) CN111083755B (en)
WO (1) WO2021129529A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4322565A1 (en) * 2022-08-09 2024-02-14 Beijing Xiaomi Mobile Software Co., Ltd. Connection method and apparatus for wireless smart wearable device and storage medium
EP4322564A1 (en) * 2022-08-09 2024-02-14 Beijing Xiaomi Mobile Software Co., Ltd. Control method and apparatus for wireless smart wearable device and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083755B (en) * 2019-12-24 2022-06-10 维沃移动通信有限公司 Equipment switching method and related equipment
CN114125792A (en) * 2020-09-01 2022-03-01 华为技术有限公司 Communication connection establishing method, Bluetooth headset and readable storage medium
CN112492442A (en) * 2020-11-24 2021-03-12 江苏紫米电子技术有限公司 Connection switching method, device, equipment and storage medium of Bluetooth headset
CN113194417B (en) * 2021-04-30 2022-03-15 深圳市欢太科技有限公司 Device connection method and device, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160134997A1 (en) * 2014-11-12 2016-05-12 Beijing Guochengwantong Information Technology Co. Ltd First device, system and method to communicate with second device
CN108696851A (en) * 2018-05-18 2018-10-23 西安蜂语信息科技有限公司 Control the method and device of smart machine linking objective equipment
CN110167194A (en) * 2019-05-20 2019-08-23 安徽华米信息科技有限公司 Equipment connection method, device, bluetooth headset and system
CN111083755A (en) * 2019-12-24 2020-04-28 维沃移动通信有限公司 Equipment switching method and related equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105407225A (en) * 2015-11-27 2016-03-16 青岛海信信芯科技有限公司 Data transmission method and Bluetooth equipment
CN106851530A (en) * 2016-12-14 2017-06-13 青岛海信电器股份有限公司 The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment
CN108632796B (en) * 2018-04-16 2021-05-28 Oppo广东移动通信有限公司 Bluetooth connection method, device, terminal and computer readable storage medium
CN109819529A (en) * 2019-03-18 2019-05-28 维沃移动通信有限公司 A kind of target switching method and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160134997A1 (en) * 2014-11-12 2016-05-12 Beijing Guochengwantong Information Technology Co. Ltd First device, system and method to communicate with second device
CN108696851A (en) * 2018-05-18 2018-10-23 西安蜂语信息科技有限公司 Control the method and device of smart machine linking objective equipment
CN110167194A (en) * 2019-05-20 2019-08-23 安徽华米信息科技有限公司 Equipment connection method, device, bluetooth headset and system
CN111083755A (en) * 2019-12-24 2020-04-28 维沃移动通信有限公司 Equipment switching method and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4322565A1 (en) * 2022-08-09 2024-02-14 Beijing Xiaomi Mobile Software Co., Ltd. Connection method and apparatus for wireless smart wearable device and storage medium
EP4322564A1 (en) * 2022-08-09 2024-02-14 Beijing Xiaomi Mobile Software Co., Ltd. Control method and apparatus for wireless smart wearable device and storage medium

Also Published As

Publication number Publication date
CN111083755A (en) 2020-04-28
CN111083755B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
WO2021098678A1 (en) Screencast control method and electronic device
WO2021129529A1 (en) Device switching method and related device
WO2021109926A1 (en) Application sharing method, electronic device and computer-readable storage medium
WO2021109907A1 (en) Application sharing method, first electronic device and computer-readable storage medium
US20200257433A1 (en) Display method and mobile terminal
WO2021204045A1 (en) Audio control method and electronic device
WO2021147779A1 (en) Configuration information sharing method, terminal device and computer-readable storage medium
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
WO2021104230A1 (en) Synchronization method and electronic device
WO2021098705A1 (en) Display method and electronic device
WO2020156123A1 (en) Information processing method and terminal device
WO2019201271A1 (en) Call processing method and mobile terminal
WO2021077908A1 (en) Parameter adjusting method and electronic device
WO2020199986A1 (en) Video call method and terminal device
CN111432071B (en) Call control method and electronic equipment
WO2021104251A1 (en) Control method and first electronic device
WO2021037074A1 (en) Audio output method and electronic apparatus
WO2021136141A1 (en) Playback method and electronic device
WO2021238719A1 (en) Information display method and electronic device
WO2020024770A1 (en) Method for determining communication object, and mobile terminal
WO2021129771A1 (en) Application sharing method, first electronic device, and computer-readable storage medium
WO2021190373A1 (en) Interaction method, interaction system, and display device
WO2021104232A1 (en) Display method and electronic device
WO2021129835A1 (en) Volume control method and device, and computer-readable storage medium
WO2021238844A1 (en) Audio output method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20906658

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20906658

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 17/01/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20906658

Country of ref document: EP

Kind code of ref document: A1