Electronic device performing communciation and method for operating thereof

The electronic device's short-range communication circuit and processor facilitate automatic connection switching between external devices, addressing complex connection procedures and power consumption issues in BLE devices, enhancing usability and efficiency.

KR103044547B1Active Publication Date: 2026-11-06SAMSUNG ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
KR1020210074674
Authority / Receiving Office
KR · KR
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-01-25
Filing Date
2021-06-09
Publication Date
2026-11-06
Estimated Expiration
2041-06-09

AI Technical Summary

Technical Problem

Existing electronic devices using Bluetooth Low Energy (BLE) face challenges in efficiently managing connections between multiple external devices, leading to complex procedures and increased power consumption during device discovery and pairing processes.

Method used

An electronic device equipped with a short-range communication circuit and processor that facilitates automatic switching of connections between external devices by transmitting and receiving connection information, allowing seamless transitions and reduced power consumption.

Benefits of technology

This solution simplifies the connection process between electronic devices, reduces connection time, and enhances usability by enabling automatic switching of connections, thereby improving power efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 112021066487525-PAT00007_ABST
    Figure 112021066487525-PAT00007_ABST
Patent Text Reader

Abstract

Various embodiments of the present disclosure provide an electronic device for performing communication and a method of operating the same. An electronic device according to one embodiment includes a short-range communication circuit and at least one processor functionally connected to the short-range communication circuit, wherein the at least one processor performs a first communication connection with a first external electronic device through the short-range communication circuit, transmits first information associated with the first communication to a second external electronic device through the short-range communication circuit, and, when an event requiring a second communication connection between the second external electronic device and the first external electronic device occurs at the second external electronic device, receives second information from the second external electronic device through the short-range communication circuit announcing that the second communication connection will be performed, and may be configured to release the first communication connection through the short-range communication circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technology Field

[0001] Various embodiments of the present disclosure relate to an electronic device for performing communication and a method of operating the same. Background Technology

[0002] Electronic devices can transmit and / or receive low-power, low-capacity data in the approximately 2.4 GHz frequency band using Bluetooth Low Energy (BLE), one of the short-range communication methods. Electronic devices using BLE operate in active mode only during the time they perform connection operations and data transmission and / or reception operations between devices, and operate in sleep mode during other times. Therefore, when BLE is used, the power consumption of electronic devices can be reduced compared to when standard Bluetooth is used. Accordingly, BLE can be primarily used in electronic devices with limited power supply, such as healthcare devices, sensor devices, or wearable electronic devices (e.g., BLE earphones, smartwatches, or smart glasses).

[0003] Meanwhile, electronic devices using the BLE method can perform device discovery and pairing processes to communicate with external electronic devices. The electronic device searches for and displays nearby external devices capable of connecting via BLE through a scanning operation, selects one of the displayed external devices to send a connection request, and pairing can be established between the electronic device and the external electronic device by the external electronic device sending a response signal. The problem to be solved

[0004] Various embodiments of the present disclosure may provide an electronic device, an external electronic device, and a method of operation thereof, which, in a local area communication network, connect an external electronic device connected to an electronic device to another external electronic device while maintaining a connection between the electronic device and an external electronic device.

[0005] Various embodiments of the present disclosure may provide an electronic device and a method of operation thereof, wherein, in a local area communication network, an electronic device performs a connection with an external electronic device and transmits information related to the connection between the electronic device and the external electronic device to another external electronic device, thereby connecting the external electronic device to the other external electronic device.

[0006] The technical problems to be solved in the various embodiments are not limited to those mentioned above, and other unmentioned technical problems will be clearly understood by those skilled in the art to which the various embodiments of the present disclosure belong from the description below. means of solving the problem

[0007] An electronic device according to various embodiments of the present disclosure comprises: a short-range communication circuit; and at least one processor functionally connected to the short-range communication circuit, wherein the at least one processor performs a first communication connection with a first external electronic device through the short-range communication circuit, transmits first information associated with the first communication to a second external electronic device through the short-range communication circuit, and, when an event requiring a second communication connection between the second external electronic device and the first external electronic device occurs at the second external electronic device, receives second information from the second external electronic device through the short-range communication circuit announcing that the second communication connection will be performed, and may be configured to release the first communication connection through the short-range communication circuit.

[0008] An electronic device according to various embodiments of the present disclosure comprises a short-range communication circuit and at least one processor functionally connected to the short-range communication circuit, wherein the at least one processor performs a first communication connection with a first external electronic device through the short-range communication circuit, and when an event occurs in a second external electronic device requiring a second communication connection between the second external electronic device and the electronic device while the first communication is connected, the processor may be configured to receive a request for the second communication connection from the second external electronic device through the short-range communication circuit, and based on the communication connection request, release the first communication connection and perform the second communication connection through the short-range communication circuit.

[0009] In various embodiments of the present disclosure, the electronic device comprises: a short-range communication circuit; and at least one processor functionally connected to the short-range communication circuit, wherein the at least one processor receives, through the short-range communication circuit, first information associated with a first communication connection between the first external electronic device and the second external electronic device from a second external electronic device connected to the first external electronic device, and when an event requiring a second communication connection to the first external electronic device occurs, transmits, through the short-range communication circuit, to the first external electronic device a request for the disconnection of the first communication connection and the second communication connection, transmits, through the short-range communication circuit, second information announcing that the second communication connection will be performed to the second external electronic device, and may be configured to perform the second communication connection based on the first information through the short-range communication circuit. Effects of the invention

[0010] An electronic device and a method of operation according to various embodiments of the present disclosure can enable an external electronic device to automatically switch the connection between the electronic device and another external electronic device by transmitting connection information between the electronic device and an external electronic device to another external electronic device to perform a connection between the external electronic device and the other external electronic device. Accordingly, the procedure for connecting between electronic devices can be simplified, and the time required for connecting between electronic devices can be reduced and usability improved according to the simplified procedure. Brief explanation of the drawing

[0011] FIG. 1 is a block diagram of an electronic device in a network environment according to various embodiments. FIG. 2 is a block diagram of an electronic device according to various embodiments. FIG. 3 is a block diagram of a first external electronic device in various embodiments. FIG. 4a is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments. FIG. 4b is a diagram illustrating an example in which the automatic switching function of a first external electronic device is enabled in an electronic device according to various embodiments. FIG. 5 is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments. FIG. 6 is a flowchart illustrating the operation of an electronic device that performs a short-range communication connection with a first external electronic device and a second external electronic device according to various embodiments. FIG. 7 is a flowchart illustrating the operation of an electronic device according to various embodiments and a first external electronic device that performs a short-range communication connection with a second external electronic device. FIG. 8 is a flowchart illustrating the operation of an electronic device according to various embodiments and a second external electronic device that performs a short-range communication connection with a first external electronic device. FIG. 9 is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments. FIG. 10 is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments. FIG. 11 is a flowchart illustrating the operation of an electronic device that performs a short-range communication connection with a first external electronic device and a second external electronic device according to various embodiments. FIG. 12 is a flowchart illustrating the operation of an electronic device according to various embodiments and a first external electronic device that performs a short-range communication connection with a second external electronic device. FIG. 13 is a flowchart illustrating the operation of an electronic device according to various embodiments and a second external electronic device that performs a short-range communication connection with a first external electronic device. FIG. 14 is a diagram illustrating the media fade-in / fade-out effect when an electronic device performs an automatic switching function according to various embodiments. Specific details for implementing the invention

[0012] FIG. 1 is a block diagram (100) of an electronic device (101) in a network environment (100) according to various embodiments. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with an electronic device (102) through a first network (198) (e.g., a short-range wireless communication network) or with an electronic device (104) or a server (108) through a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) through a server (108). According to one embodiment, the electronic device (101) may include a processor (120), memory (130), input module (150), sound output module (155), display module (160), audio module (170), sensor module (176), interface (177), connection terminal (178), haptic module (179), camera module (180), power management module (188), battery (189), communication module (190), subscriber identification module (196), or antenna module (197). In some embodiments, at least one of these components (e.g., connection terminal (178)) may be omitted from the electronic device (101), or one or more other components may be added. In some embodiments, some of these components (e.g., sensor module (176), camera module (180), or antenna module (197)) may be integrated into a single component (e.g., display module (160)).

[0013] The processor (120) can control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing software (e.g., a program (140)), and can perform various data processing or operations. According to one embodiment, as at least part of the data processing or operations, the processor (120) can store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in volatile memory (132), process the commands or data stored in volatile memory (132), and store the resulting data in non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) that can operate independently or together with it (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device (101) includes a main processor (121) and an auxiliary processor (123), the auxiliary processor (123) may be configured to use lower power than the main processor (121) or to be specialized for a designated function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as part thereof.

[0014] The auxiliary processor (123) may control at least some of the functions or states associated with at least one component of the electronic device (101) (e.g., display module (160), sensor module (176), or communication module (190)) on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. According to one embodiment, the auxiliary processor (123) (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module (180) or communication module (190)). According to one embodiment, the auxiliary processor (123) (e.g., neural network processing unit) may include a hardware structure specialized for processing an artificial intelligence model. The artificial intelligence model may be generated through machine learning. Such learning may be performed, for example, on the electronic device (101) itself where the artificial intelligence is performed, or through a separate server (e.g., server (108)). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model may include a plurality of artificial neural network layers.An artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to the hardware structure, the artificial intelligence model may include a software structure, either additionally or substantially.

[0015] The memory (130) can store various data used by at least one component of the electronic device (101) (e.g., processor (120) or sensor module (176)). The data may include, for example, input data or output data for software (e.g., program (140)) and related commands. The memory (130) may include volatile memory (132) or non-volatile memory (134).

[0016] The program (140) may be stored as software in memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).

[0017] The input module (150) can receive commands or data to be used for a component of the electronic device (101) (e.g., processor (120)) from outside the electronic device (101) (e.g., user). The input module (150) may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0018] The sound output module (155) can output a sound signal to the outside of the electronic device (101). The sound output module (155) may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as multimedia playback or recording playback. The receiver may be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part thereof.

[0019] The display module (160) can visually provide information to an external (e.g., user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling said device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of the force generated by said touch.

[0020] The audio module (170) can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150) or output sound through the sound output module (155) or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphones) connected directly or wirelessly to the electronic device (101).

[0021] The sensor module (176) can detect the operating state of the electronic device (101) (e.g., power or temperature) or the external environmental state (e.g., user state) and generate an electrical signal or data value corresponding to the detected state. According to one embodiment, the sensor module (176) may include, for example, a gesture sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biosensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0022] The interface (177) may support one or more specified protocols that can be used for the electronic device (101) to be connected directly or wirelessly to an external electronic device (e.g., electronic device (102)). According to one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

[0023] The connection terminal (178) may include a connector through which the electronic device (101) can be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0024] The haptic module (179) can convert an electrical signal into a mechanical stimulus (e.g., vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module (179) may include, for example, a motor, a piezoelectric element, or an electric stimulation device.

[0025] The camera module (180) can capture still images and video. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

[0026] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented, for example, as at least part of a power management integrated circuit (PMIC).

[0027] The battery (189) can supply power to at least one component of the electronic device (101). According to one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0028] The communication module (190) can support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between an electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may include one or more communication processors that operate independently of the processor (120) (e.g., application processor) and support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., cellular communication module, short-range wireless communication module, or GNSS (global navigation satellite system) communication module) or a wired communication module (194) (e.g., LAN (local area network) communication module, or power line communication module). The corresponding communication module among these communication modules can communicate with an external electronic device (104) through a first network (198) (e.g., a short-range communication network such as Bluetooth, WiFi (wireless fidelity) direct, or IrDA (infrared data association)) or a second network (199) (e.g., a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can identify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) using subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module (196).

[0029] The wireless communication module (192) can support 5G networks and next-generation communication technologies following 4G networks, for example, new radio access technology. NR access technology can support high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and connection of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low-latency communications (URLLC)). The wireless communication module (192) can support a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate, for example. The wireless communication module (192) can support various technologies for securing performance in the high-frequency band, such as beamforming, massive MIMO (multiple-input and multiple-output), full-dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large-scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), external electronic device (e.g., electronic device (104)), or network system (e.g., second network (199)). According to one embodiment, the wireless communication module (192) can support a Peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mMTC, or U-plane latency (e.g., downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) for realizing URLLC.

[0030] An antenna module (197) can transmit a signal or power to or from an external source (e.g., an external electronic device). According to one embodiment, the antenna module (197) may include an antenna comprising a radiator made of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as a first network (198) or a second network (199), may be selected from the plurality of antennas, for example, by a communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device through the selected at least one antenna. According to some embodiments, in addition to the radiator, other components (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module (197).

[0031] According to various embodiments, the antenna module (197) may form a mmWave antenna module. According to one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., bottom surface) of the printed circuit board and capable of supporting a specified high frequency band (e.g., mmWave band), and a plurality of antennas (e.g., array antennas) disposed on or adjacent to a second surface (e.g., top surface or side surface) of the printed circuit board and capable of transmitting or receiving a signal of the specified high frequency band.

[0032] At least some of the above components can be connected to each other via a communication method between peripheral devices (e.g., bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)) and exchange signals (e.g., commands or data) with each other.

[0033] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) through a server (108) connected to a second network (199). Each of the external electronic devices (102, or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations performed on the electronic device (101) may be performed on one or more of the external electronic devices (102, 104, or 108). For example, if the electronic device (101) needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device (101) may request one or more external electronic devices to perform at least part of the function or service instead of performing the function or service itself or additionally. One or more external electronic devices that receive the above request may execute at least part of the requested function or service, or additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may provide the result as is or additionally processed as at least part of the response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device (101) may provide ultra-low latency services using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server using machine learning and / or neural networks. According to one embodiment, the external electronic device (104) or the server (108) may be included within a second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0034] The electronic device according to various embodiments of the present disclosure may be a device of various forms. The electronic device may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a consumer electronics device. The electronic device according to the embodiments of the present disclosure is not limited to the devices described above.

[0035] Various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features described in the present disclosure to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of said embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of said items unless the relevant context clearly indicates otherwise. In the present disclosure, each of phrases such as “A or B”, “at least one of A and B”, “at least one of A or B”, “A, B or C”, “at least one of A, B and C”, and “at least one of A, B, or C” may include any one of the items listed together in the corresponding phrase, or all possible combinations thereof. Terms such as “first,” “second,” or “first” or “second” may be used simply to distinguish a component from another component and do not limit the components in any other aspect (e.g., importance or order). Where any (e.g., first) component is referred to as “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicationally,” it means that said component may be connected to said other component directly (e.g., wired), wirelessly, or through a third component.

[0036] The term “module” as used in various embodiments of the present disclosure may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit, for example. A module may be a component formed integrally, or a minimum unit of said component or a part thereof that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0037] Various embodiments of the present disclosure may be implemented as software (e.g., program (140)) comprising one or more instructions stored in a storage medium (e.g., internal memory (136) or external memory (138)) readable by a machine (e.g., electronic device (101)). For example, a processor (e.g., processor (120)) of the machine (e.g., electronic device (101)) may call at least one of the one or more instructions stored in the storage medium and execute it. This enables the machine to be operated to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. The storage medium readable by the machine may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' simply means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently and cases where it is stored temporarily.

[0038] According to one embodiment, the method according to various embodiments of the present disclosure may be provided by being included in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or an application store (e.g., Play Store). TM It can be distributed online (e.g., downloaded or uploaded) through ) or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily created on a device-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

[0039] According to various embodiments, each component (e.g., module or program) of the components described above may include a singular or multiple entities, and some of the multiple entities may be separated and placed in other components. According to various embodiments, one or more of the components or operations among the aforementioned components may be omitted, or one or more other components or operations may be added. Generally or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the multiple components in the same or similar manner as those performed by the corresponding component among the multiple components prior to integration. According to various embodiments, operations performed by the module, program, or other components may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

[0041] In describing the various embodiments of the present disclosure in detail, the description will be based on the Bluetooth low energy (BLE) communication method as a short-range communication method; however, the main point of the present disclosure is that it can be applied with slight modifications to other short-range communication methods having a similar technical background, including general Bluetooth methods (e.g., Wi-Fi communication methods, etc.), without significantly deviating from the scope of the present disclosure, and this will be possible at the judgment of a person with skilled technical knowledge in the technical field of the present disclosure.

[0043] FIG. 2 is a block diagram of an electronic device (200) according to various embodiments.

[0044] Referring to FIG. 2, in one embodiment, the electronic device (200) may include a display (210), a communication circuit (220), a memory (230), and / or a processor (240).

[0045] In one embodiment, the display (210) may visually display, under the control of the processor (240), an operation of connecting and communicating with at least one external electronic device (e.g., electronic device (102)) based on information generated by the processor (240), information transmitted and / or received through the communication circuit (220), or a set communication method (e.g., BLE method). In one embodiment, the display (210) may be included in the display module (160) of FIG. 1.

[0046] In one embodiment, the communication circuit (220) can communicate with an external electronic device based on the BLE method. In one embodiment, the communication circuit (220) can perform at least one of the following operations to perform a short-range communication connection with a first external electronic device (not shown) and / or a second external electronic device (not shown) under the control of a processor (240): for example, an operation to broadcast an advertisement packet containing connection information with the first external electronic device, an operation to receive information broadcast by the first external electronic device and / or the second external electronic device, and a connection operation between electronic devices based on Bluetooth profiles (e.g., SPP (serial port profile), HFP (hands free profile), A2DP (advanced audio distribution profile), etc.).

[0047] In one embodiment, the communication circuit (220) may be included in the communication module (190) of FIG. 1.

[0048] In one embodiment, the memory (230) may store information transmitted and / or received from the communication circuit (220) and information generated by the processor (240). According to various embodiments, the memory (230) may store information, commands, and / or indicators for connection with a first external electronic device and / or a second external electronic device. According to various embodiments, the memory (230) may store account information of the electronic device (200) having the same user account, the first external electronic device and / or the second external electronic device. In one embodiment, the same user account may include various information such as a personal account and a family account.

[0049] In one embodiment, the memory (230) may include volatile memory or non-volatile memory and may be included in the memory (130) of FIG. 1.

[0050] In one embodiment, the processor (240) may be included in the processor (120) of FIG. 1. In one embodiment, the processor (204) may include one or more processors.

[0051] In one embodiment, the processor (240) can perform at least one of the following operations to perform a short-range communication connection with a first external electronic device (not shown) and / or a second external electronic device (not shown) through a communication circuit (220): for example, an operation to broadcast an advertisement packet of connection information with the first external electronic device, an operation to receive information broadcast by the first external electronic device and / or the second external electronic device, and a connection operation between electronic devices based on Bluetooth profiles (e.g., SPP (serial port profile), HFP (hands free profile), A2DP (advanced audio distribution profile), etc.).

[0052] In one embodiment, the processor (240) can control the first external electronic device and the second external electronic device to perform wireless communication in a short distance within a Bluetooth network according to Bluetooth standard technology defined by the Bluetooth SIG (Bluetooth Special Interest Group). The Bluetooth network may include, for example, a Bluetooth legacy network and a BLE network. According to one embodiment, the electronic device (200) can perform wireless communication with the first external electronic device and the second external electronic device through at least one of the Bluetooth legacy network and the BLE network.

[0053] In one embodiment, the processor (240) can be controlled to recognize the first external electronic device and the second external electronic device in advance or to store information (e.g., address information) of the first external electronic device and the second external electronic device in advance.

[0054] According to one embodiment, the processor (240) may transmit a data packet containing content such as text, voice, images, or video to a first external electronic device and a second external electronic device. Depending on the type of content included in the data packet, at least one of the first external electronic device and the second external electronic device, as well as the electronic device (200), may transmit the data packet. For example, when music is played on the electronic device (200), the data packet may be transmitted only to the electronic device (200), whereas when a call is made on the electronic device (200), at least one of the first external electronic device and the second external electronic device, as well as the electronic device (200), may transmit the data packet containing content (e.g., voice data).

[0055] According to one embodiment, the processor (240) can create links with the first external electronic device and the second external electronic device, respectively, for data packet transmission and broadcast connection information for the first external electronic device to the second external electronic device. In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0057] According to one embodiment, if the electronic device (200) is a smartphone and the second external electronic device is a tablet, the processor (240) can control the following operations.

[0058] According to one embodiment, while the electronic device (200) is communicating through a link with the first external electronic device, if the second external electronic device and the first external electronic device are connected as an event requiring a connection with the first external electronic device is triggered from the second external electronic device, the communication connection between the electronic device (200) and the first external electronic device is released, and the processor (240) can control to receive information from the second external electronic device indicating that a communication connection has been established between the first external electronic device and the second external electronic device.

[0059] According to one embodiment, if the first external electronic device supports multiple SPP connections, the processor (240) can control the connection to perform a fast connection when reconnecting with the first external electronic device later by maintaining the SPP connection with the first external electronic device even when the first external electronic device and the second external electronic device are connected.

[0060] According to one embodiment, the processor (240) can control the display of information on the screen for changing the connection between the electronic device (200) and the first external electronic device (e.g., information indicating that the connection with the first external electronic device has been disconnected) and an icon, menu, etc. for requesting a reconnection of communication based on information received from the first external electronic device.

[0061] According to one embodiment, when an event to request a reconnection of communication between a first external electronic device and the electronic device (200) is triggered through the input means of the electronic device (200), the processor (240) can control to perform operations for reconnecting communication with the first external electronic device and to broadcast information regarding the reconnection to the second external electronic device.

[0062] According to one embodiment, when the first external electronic device supports multiple SPP connections, the SPP connection is maintained even when the connection between the electronic device (200) and the first external electronic device is disconnected, so the processor (240) can control the operation of connecting HFP and / or A2DP when reconnecting communication with the first external electronic device.

[0064] According to one embodiment, if the electronic device (200) is a tablet and the second external electronic device is a smartphone, the processor (240) can control the following operations.

[0065] According to one embodiment, when the first external electronic device and the second external electronic device are connected via communication, the processor (240) can receive information related to the connection between the first external electronic device and the second external electronic device from an external server or the second external electronic device.

[0066] According to one embodiment, while the second external electronic device is communicating through a link with the first external electronic device, if an event requiring a connection with the first external electronic device is triggered in the electronic device (200), the processor (240) can check the connection status between the second external electronic device and the first external electronic device based on information previously received from the second external electronic device, and can determine whether a communication connection with the first external electronic device (102) can be performed based on the confirmed connection status.

[0067] According to one embodiment, if it is determined that a communication connection with the first external electronic device (102) is possible, the processor (240) may request the first external electronic device to disconnect the communication connection between the electronic device (200) and the first external electronic device, and establish a communication connection with the first external electronic device by receiving a response signal thereto.

[0068] According to one embodiment, the processor (240) may control the transmission of information to the first external electronic device indicating that a communication connection has been established between the electronic device (200) and the second external electronic device. According to one embodiment, if the first external electronic device supports multiple SPP connections, the processor (240) may establish an SPP connection with the first external electronic device while the first external electronic device and the second external electronic device are connected, thereby enabling a quick connection to the first external electronic device when an event requiring a connection with the first external electronic device occurs.

[0069] According to one embodiment, when communication reconnection between the second external electronic device and the first external electronic device is performed, the processor (240) may control to disconnect the connection with the first external electronic device and receive information regarding the reconnection from the second external electronic device. According to one embodiment, the processor (240) may control to display information on the screen indicating that the connection with the first external electronic device has been disconnected.

[0070] According to one embodiment, when the first external electronic device supports multiple SPP connections, the SPP connection is maintained even if the connection between the electronic device (200) and the first external electronic device is disconnected by reconnecting communication between the second external electronic device and the first external electronic device, so the processor (240) can control the operation of connecting HFP and / or A2DP when reconnecting communication with the first external electronic device.

[0072] FIG. 3 is a block diagram of a first external electronic device (300) according to various embodiments. In one embodiment, the first external electronic device (300) may be an audio device (e.g., Bluetooth earphones) and may be an electronic device (102) wirelessly connected to the electronic device (101) of FIG. 1.

[0073] Referring to FIG. 3, in one embodiment, the first external electronic device (300) may include an audio module (310), a communication circuit (320), a memory (320), and / or a processor (340).

[0074] In one embodiment, the audio module (310) may convert sound into an electrical signal or, conversely, convert an electrical signal into sound under the control of the processor (340). According to one embodiment, the audio module (310) may include an input module and an output module. According to one embodiment, the audio module (310) may acquire sound through the input module and transmit it to a wirelessly connected electronic device (e.g., electronic device (101)), and may acquire sound through the wirelessly connected electronic device (e.g., electronic device (101)) and output sound through the output module.

[0075] In one embodiment, the communication circuit (320) can communicate with an external electronic device based on the BLE method. In one embodiment, the communication circuit (320) can perform at least one of the following operations to perform a short-range communication connection with an electronic device (not shown) and / or a second external electronic device (not shown) under the control of a processor (340): for example, an operation to broadcast an advertisement packet of connection information with a first external electronic device, an operation to receive information broadcast by the first external electronic device and / or the second external electronic device, and a connection operation between electronic devices based on Bluetooth profiles (e.g., SPP (serial port profile), HFP (hands free profile), A2DP (advanced audio distribution profile), etc.).

[0076] In one embodiment, the memory (330) may store information transmitted and / or received from the communication circuit (320) and information generated by the processor (340). Depending on various embodiments, the memory (330) may store information, commands, and / or indicators for connection with an electronic device and / or a second external electronic device. Depending on various embodiments, the memory (330) may store account information of an electronic device (101), a first external electronic device (300), and / or a second external electronic device having the same user account.

[0077] In one embodiment, the memory (330) may include volatile memory or non-volatile memory.

[0078] In one embodiment, the processor (340) can perform at least one of the following operations to perform a short-range communication connection with an electronic device (not shown) and / or a second external electronic device (not shown) through a communication circuit (320): for example, an operation to broadcast an advertisement packet of connection information with a first external electronic device, an operation to receive information broadcast by the first external electronic device and / or the second external electronic device, and a connection operation between electronic devices based on Bluetooth profiles (e.g., SPP (serial port profile), HFP (hands free profile), A2DP (advanced audio distribution profile), etc.).

[0079] According to one embodiment, the processor (340) can perform a communication connection based on a Bluetooth communication method with the electronic device (200) and the second external electronic device by performing all operations for a Bluetooth connection. In one embodiment, the processor (340) can control the connection to be made with the electronic device (200) and the second external electronic device via SPP and HFP or A2DP.

[0080] According to one embodiment, if the first external electronic device (300) supports multiple SPP connections, the processor (340) can perform an SPP connection between the first external electronic device (300) and the second external electronic device based on a request from the second external electronic device while in a state of communication connection with the electronic device.

[0081] According to one embodiment, when an event requiring a connection between the first external electronic device (300) and the second external electronic device is triggered, the processor (340) may receive from the second external electronic device a request for a connection between the first external electronic device (300) and the second external electronic device and a request for a disconnection between the first external electronic device (300) and the electronic device. According to one embodiment, when the first external electronic device (300) supports multiple SPP connections, the processor (340) may receive from the second external electronic device a request for an HFP or A2DP connection between the first external electronic device (300) and the second external electronic device and a request for a disconnection between the first external electronic device (300) and the electronic device. Since an SPP connection has already been established between the first external electronic device (300) and the second external electronic device, the processor (340) may receive from the second external electronic device a request for an HFP or A2DP connection between the first external electronic device (300) and the second external electronic device and a request for a disconnection between the first external electronic device (300) and the electronic device.

[0082] According to one embodiment, the processor (340) can disconnect from the electronic device and perform a connection with a second external electronic device. According to one embodiment, if the first external electronic device (300) supports multiple SPP connections, the processor (340) can control the connection to be maintained even after disconnecting from the electronic device.

[0083] In one embodiment, an event requesting a reconnection between the first external electronic device (300) and the electronic device may be triggered through the input means of the electronic device, and the processor (340) may perform operations for reconnecting with the electronic device. According to one embodiment, if the first external electronic device (300) supports multiple SPP connections, the processor (340) may control the electronic device to maintain an SPP connection and perform an HFP or A2DC reconnection.

[0085] An electronic device (e.g., electronic device (101)) according to various embodiments of the present disclosure comprises a short-range communication circuit (e.g., short-range communication circuit (220)), at least one processor (e.g., processor (240)) functionally connected to said short-range communication circuit, said at least one processor may be configured to perform a first communication connection with a first external electronic device (e.g., first external electronic device (102)) through said short-range communication circuit, transmit first information associated with said first communication to a second external electronic device (e.g., second external electronic device (103)) through said short-range communication circuit, receive second information from said second external electronic device through said short-range communication circuit that the second communication connection will be performed when an event requiring a second communication connection between said second external electronic device and said first external electronic device occurs in said second external electronic device, said second information that the second communication connection will be performed from said second external electronic device through said short-range communication circuit, and be configured to release said first communication connection through said short-range communication circuit.

[0086] In various embodiments, the at least one processor may be configured to receive information from the second external electronic device, via the near-field communication circuit, that the second communication connection has been completed, after the first communication connection has been released.

[0087] In various embodiments, the at least one processor may be configured to display on the display of the electronic device information indicating the disconnection of the first communication connection, information indicating that the second communication connection has been completed, or a menu for requesting the reconnection of the first communication after the first communication connection has been disconnected.

[0088] In various embodiments, the at least one processor may be configured to perform the first communication connection through the near-field communication circuit based on the connections of at least two profiles, and to release the first communication connection by releasing the connection of at least one of the at least two profiles through the near-field communication circuit.

[0089] In various embodiments, the at least two profiles include at least one of an SPP (serial port profile) and an HFP (hands-free profile) or an A2DP (advanced audio distribution profile), and the at least one profile may include at least one of the HFP or the A2DP.

[0090] In various embodiments, the first information is transmitted to a second external electronic device via an external server and may include status information of the electronic device, status information of the first external electronic device, and identification information of the first external electronic device.

[0091] In various embodiments, the electronic device, the first external electronic device, and the second external electronic device may be registered using the same user account.

[0092] An electronic device (e.g., a first external electronic device (102) according to various embodiments of the present disclosure) comprises a short-range communication circuit (e.g., a short-range communication circuit (320)) and at least one processor (e.g., a processor (340)) functionally connected to said short-range communication circuit, and said at least one processor may be configured to perform a first communication connection with a first external electronic device (e.g., an electronic device (101)) through said short-range communication circuit, and when an event requiring a second communication connection between said second external electronic device and said electronic device occurs in a second external electronic device (e.g., a second external electronic device (103)) while said first communication is connected, receive a request for said second communication connection from said second external electronic device through said short-range communication circuit, and based on said communication connection request, release the first communication connection through said short-range communication circuit and perform the second communication connection.

[0093] In various embodiments, the at least one processor may be configured to perform the first communication connection through the near-field communication circuit based on the connections of at least two profiles, and to release the first communication connection by releasing the connection of at least one of the at least two profiles through the near-field communication circuit.

[0094] In various embodiments, the at least one processor may be configured to perform a connection of one of the at least two profiles between the second external electronic device and the electronic device based on a request from the second external electronic device prior to the occurrence of the event while the first communication is connected.

[0095] In various embodiments, the at least two profiles include an SPP (serial port profile) and at least one of an HFP (hands-free profile) or an A2DP (advanced audio distribution profile), the at least one profile includes at least one of the HFP or the A2DP, and the one profile may be the SPP.

[0096] In various embodiments, the at least one processor may be configured to transmit status information of the electronic device and identification information of the electronic device to the first external electronic device when performing the first communication connection through the near-field communication circuit.

[0097] In various embodiments, the at least one processor may be configured to receive the second communication disconnection request along with the second communication connection request from the second external electronic device through the near-field communication circuit.

[0098] In various embodiments, the electronic device, the first external electronic device, and the second external electronic device may be registered using the same user account.

[0099] An electronic device (e.g., a second external electronic device (103) according to various embodiments of the present disclosure) comprises a short-range communication circuit (e.g., a short-range communication circuit (220)), at least one processor (e.g., a processor (240)) functionally connected to said short-range communication circuit, and said at least one processor receives, through said short-range communication circuit, first information associated with a first communication connection between said first external electronic device and said second external electronic device from a second external electronic device (e.g., an electronic device (101)) connected to a first external electronic device (e.g., a first external electronic device (102)), and when an event requiring a second communication connection to said first external electronic device occurs, through said short-range communication circuit, transmits to said first external electronic device a request for the disconnection of the first communication connection and the request for the second communication connection, through said short-range communication circuit, transmits to said second external electronic device information announcing that the second communication connection will be performed, and through said short-range communication circuit, is configured to perform the second communication connection based on said first information. It is possible.

[0100] In various embodiments, the at least one processor may be configured to transmit information notifying that the second communication connection has been completed to the second external electronic device through the near-field communication circuit after the second communication connection has been completed.

[0101] In various embodiments, the first information is received from the second external electronic device via an external server and may include status information of the second external electronic device, status information of the first external electronic device, and identification information of the first external electronic device.

[0102] In various embodiments, the first communication connection is performed based on the connections of at least two profiles, and the disconnection of the first communication connection is the disconnection of at least one of the at least two profiles, and the at least one processor may be configured to request the first external electronic device to perform a connection of one of the at least two profiles between the first external electronic device and the electronic device via the near-field communication circuit before the event occurs while the first communication is connected.

[0103] In various embodiments, the at least two profiles include an SPP (serial port profile) and at least one of an HFP (hands-free profile) or an A2DP (advanced audio distribution profile), the at least one profile includes at least one of the HFP or the A2DP, and the one profile may be the SPP.

[0104] In various embodiments, the electronic device, the first external electronic device, and the second external electronic device may be registered using the same user account.

[0106] FIG. 4a is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments.

[0107] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same type of electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TVs) and personal computers (PCs). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with two separate earbuds, the user may be wearing at least one earphone. That is, one earphone may be connected to the electronic device (101) and the other earphone may be disconnected from the electronic device (101), or both earphones may be connected to the electronic device (101). In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered to an electronic device (e.g., a server) using the same user account, with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices with the function of automatically switching communication connections between multiple electronic devices enabled. FIG. 4b is a diagram illustrating an example in which a function (430) is activated to automatically switch a communication connection between a first external electronic device (102) registered with an electronic device (101) and a plurality of electronic devices through a Bluetooth setting function of an electronic device (101) according to one embodiment.

[0108] Referring to FIG. 4a, in operation 403, the electronic device (101) can perform a communication connection based on a Bluetooth communication method with the first external electronic device (102) by performing all operations for a Bluetooth connection based on a Bluetooth standard. According to one embodiment, when the Bluetooth functions of the electronic device (101) and the first external electronic device (102) are activated, and an input signal is received to scan for surrounding Bluetooth devices through the input means of the electronic device (101), the electronic device (101) transmits an ID packet, and the electronic device (101) can recognize the first external electronic device (102) by the first external electronic device (102) receiving the ID packet. When the recognized first external electronic device (102) is displayed on the display of the electronic device (101) and the recognized first external electronic device (102) is selected through the input means of the electronic device (101), the pairing between the electronic device (101) and the first external electronic device (102) can finally be completed.

[0109] In one embodiment, for Bluetooth communication, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be compatible with Bluetooth profiles required to use the desired service. In one embodiment, the electronic device (101) and the second external electronic device (103) may each be connected to the first external electronic device (102) using the SPP (serial port profile), HFP (hands free profile), and / or A2DP (advanced audio distribution profile) among the Bluetooth profiles. The SP, HFP, and / or A2DP connection process may follow Bluetooth profile standards.

[0110] In one embodiment, the electronic device (101) can establish a virtual serial port between the first external electronic device (102) and the electronic device (101) or between the first external electronic device (102) and the second external electronic device (103) based on the SPP.

[0111] In one embodiment, the HFP can transmit a mono audio channel using a synchronous connection oriented (SCO) link and can provide headset services as well as hands-free services such as last number redial, call waiting, and voice dialing.

[0112] In one embodiment, A2DP may define a method of streaming multimedia audio from an electronic device (101) to a first external electronic device (102) or from a second external electronic device (103) to the first external electronic device (102) via a Bluetooth connection.

[0113] In one embodiment, when Bluetooth communication is established between the first external electronic device (102) and the electronic device (101) or between the first external electronic device (102) and the second external electronic device (103), it can be established via SPP and additionally via HFP or A2DP.

[0114] In one embodiment, the electronic device (101) can receive SPP connection information and wearing status information of the first external electronic device (102) after establishing communication with the first external electronic device (102). According to one embodiment, the SPP connection information and wearing status information of the first external electronic device (102) can be received based on a predefined universal unique identifier (UUID).

[0115] In operation 405, the electronic device (101) can transmit connection information with the first external electronic device (102) to the second external electronic device (103) by broadcasting an advertisement packet containing connection information for the first external electronic device (102) while connected to the first external electronic device (102). In one embodiment, the connection information may be encrypted based on a hash function, and the hash function may be changed at specific time intervals.

[0116] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0117] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0118] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) based on a UUID during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102).

[0119] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a device-to-device (D2D) communication method or a Wi-Fi communication method.

[0120] In operation 407, the second external electronic device (103) may display information on the display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on connection information of the first external electronic device (102) received from the electronic device (101) or an external server. In one embodiment, the second external electronic device (103) may display information on the display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on user account information registered on the server.

[0121] In operation 409, when an event requiring a connection between the second external electronic device (103) and the first external electronic device (102) is triggered, in operation 411, the second external electronic device (103) can check the connection status between the electronic device (101) and the first external electronic device (102) based on information received from the electronic device (101) in operation 405, and can determine whether a communication connection with the first external electronic device (102) can be performed based on the confirmed connection status.

[0122] In one embodiment, the event requiring a connection with the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0123] In one embodiment, the second external electronic device (103) may determine that it cannot perform a communication connection with the first external electronic device (102) if it is confirmed that the electronic device (101) is making a call using the first external electronic device (102), is running an application using the microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102). [Table 1] below shows the connection operation between the second external electronic device (103) and the first external electronic device (102) when an event requiring a connection with the first external electronic device (102) is triggered according to the situation in one embodiment. The operations in Table 1 are settings to ensure stable connection operation between the second external electronic device (103) and the first external electronic device (102), and these settings may be changed as needed.

[0124] [Table 1]

[0125]

[0126] In one embodiment, the second external electronic device (103) may display information on the display of the second external electronic device (103) indicating a result of determining that a communication connection with the first external electronic device (102) cannot be performed.

[0127] In one embodiment, the second external electronic device (103) may determine that it can perform a communication connection with the first external electronic device (102) when it is confirmed that the electronic device (101) is playing media through a media application using the first external electronic device (102), or that the electronic device (101) is connected to the first external electronic device (102) but is in an idle state.

[0128] In operation 413, the second external electronic device (103), having determined that it can establish a communication connection with the first external electronic device (102), may request a communication connection with the first external electronic device (102). In one embodiment, the second external electronic device (103) may request an SPP, HFP, and / or A2DP connection with the first external electronic device (102). In one embodiment, the second external electronic device (103), having determined that it can establish a communication connection with the first external electronic device (102), may notify the first external electronic device (102) to disconnect the connection with the electronic device (101). In one embodiment, the second external electronic device (103), having determined that it can establish a communication connection with the first external electronic device (102), may notify the electronic device (101) that a connection between the second external electronic device (103) and the first external electronic device (102) will be established.

[0129] In operation 413, the first external electronic device (102) that receives a communication connection request from the second external electronic device (103) may disconnect the communication connection with the electronic device (101) in operation 415. According to one embodiment, the first external electronic device (102) may establish a communication connection with the second external electronic device (103) using SPP, HFP, and / or A2DP, and disconnect the SPP, HFP, and / or A2DP connection with the electronic device (101).

[0130] In operation 417, the first external electronic device (102) may transmit a communication connection response to the second external electronic device (103), thereby establishing a communication connection between the first external electronic device (102) and the second external electronic device (103). According to one embodiment, the first external electronic device (102) may notify the second external electronic device (103) through the communication connection response that an SPP, HFP, and / or A2DP connection has been established with the first external electronic device (102).

[0131] In operation 419, the second external electronic device (103) may notify the electronic device (101) that a communication connection between the second external electronic device (103) and the first external electronic device (102) has been completed. According to one embodiment, the second external electronic device (103) may notify the electronic device (101) that an SPP, HFP, and / or A2DP connection has been established with the first external electronic device (102).

[0132] In operation 421, the electronic device (101) may display information on the display indicating that the connection status of the first external electronic device (102) has changed based on information received from the second external electronic device (103) in operation 419. According to one embodiment, if the second external electronic device (103) has established an SPP and HFP or A2DP connection with the first external electronic device (102), the electronic device (101) may display information on the display indicating that the connection with the first external electronic device (102) has been disconnected.

[0133] In one embodiment, the electronic device (101) may display on a display the reason for the change in the connection of the first external electronic device (102) (e.g., incoming / outgoing call from the second external electronic device (103), execution of a media application from the second external electronic device (103), etc.) as information indicating that the connection status has changed.

[0134] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), media is played through the media application by user input from the second external electronic device (103), or a voice recognition artificial intelligence application such as a voice assistant is executed, or an incoming / outgoing call occurs from the second external electronic device (103), thereby disconnecting the connection between the electronic device (101) and the first external electronic device (102) and establishing a connection between the first external electronic device (102) and the second external electronic device (103), the media playback of the electronic device (101) may be switched to a paused state. When the media playback and / or voice recognition artificial intelligence application ends or the incoming / outgoing call ends from the second external electronic device (103), the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected, and between the electronic device (101) and the first external electronic device (102) Communication can be reconnected. In one embodiment, when the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected and communication between the electronic device (101) and the first external electronic device (102) is reconnected, media playback that was paused at the electronic device (101) immediately before the connection between the first external electronic device (102) and the electronic device (101) is disconnected can be resumed.

[0136] FIG. 5 is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments.

[0137] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be in a state where the function of automatically switching communication connections between multiple electronic devices is enabled.

[0138] Referring to FIG. 5, the operations of operations 503 to 521 are identical to the operations of operations 403 to 421 of FIG. 4, so a redundant description is omitted. When the connection between the electronic device (101) and the first external electronic device (102) is released and the connection between the first external electronic device (102) and the second external electronic device (103) is established through the operations of operations 503 to 521, if an event to request a reconnection of communication between the first external electronic device (102) and the electronic device (101) is triggered through the input means of the electronic device (101) in operation 523, then in operation 525, the electronic device (101) can perform all operations for reconnecting communication with the first external electronic device (102).

[0139] In one embodiment, the event requiring reconnection with the first external electronic device (102) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0140] According to one embodiment, the electronic device (101) can perform communication reconnection by touching an icon, menu, etc., requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101), even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102).

[0141] In one embodiment, the electronic device (101) may be configured not to perform communication reconnection even if an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched when the second external electronic device (103) is in a call using the first external electronic device (102).

[0142] In the case where an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to various situations in accordance with one embodiment, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0143] In operation 527, the first external electronic device (102) reconnected with the electronic device (101) may disconnect the communication connection with the second external electronic device (103). According to one embodiment, the electronic device (101) may display information on a display indicating that it has been reconnected with the first external electronic device (102).

[0144] In operation 529, the electronic device (101) can transmit reconnection information with the first external electronic device (102) to the second external electronic device (103) by broadcasting an advertisement packet containing reconnection information while in a state of reconnection with the first external electronic device (102) as in operation 505. In one embodiment, the connection information may be encrypted based on a hash function, and the hash function may be changed at specific time intervals.

[0145] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0146] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a D2D communication method or a Wi-Fi communication method.

[0147] In operation 531, the second external electronic device (103) may display information on the display indicating that the electronic device (101) and the first external electronic device (102) have been reconnected based on connection information of the first external electronic device (102) received from the electronic device (101) or an external server.

[0148] Subsequently, if an event requesting a connection with the first external electronic device (102) occurs again in the second external electronic device (103) or the electronic device (101), the operations of operations 509 to 521 or operations 523 to 531 may be performed, respectively.

[0149] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), if a media application is executed by user input on the second external electronic device (103), or if a voice recognition artificial intelligence application such as a voice assistant is executed, or if an incoming / outgoing call occurs on the second external electronic device (103), and the connection between the electronic device (101) and the first external electronic device (102) is disconnected and the connection between the first external electronic device (102) and the second external electronic device (103) is established, the media playback of the electronic device (101) may be switched to a paused state. If the media playback and / or voice recognition artificial intelligence application is terminated on the second external electronic device (103) or the incoming / outgoing call is terminated, the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected, and communication between the electronic device (101) and the first external electronic device (102) is resumed. It can be connected. In one embodiment, when the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected and communication between the electronic device (101) and the first external electronic device (102) is reconnected, media playback that was paused at the electronic device (101) immediately before the connection between the first external electronic device (102) and the electronic device (101) is disconnected can be resumed.

[0151] FIG. 6 is a flowchart illustrating the operation of an electronic device that performs a short-range communication connection with a first external electronic device and a second external electronic device according to various embodiments.

[0152] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be in a state where the function of automatically switching communication connections between multiple electronic devices is enabled.

[0153] Referring to FIG. 6, in operation 601, the electronic device (101) can perform a communication connection based on a Bluetooth communication method with the first external electronic device (102) by performing all operations for a Bluetooth connection based on a Bluetooth standard. According to one embodiment, when the Bluetooth functions of the electronic device (101) and the first external electronic device (102) are activated, and an input signal is received to scan for surrounding Bluetooth devices through the input means of the electronic device (101), the electronic device (101) transmits an ID packet, and the electronic device (101) can recognize the first external electronic device (102) by the first external electronic device (102) receiving the ID packet. When the recognized first external electronic device (102) is displayed on the display of the electronic device (101) and the recognized first external electronic device (102) is selected through the input means of the electronic device (101), the pairing between the electronic device (101) and the first external electronic device (102) can finally be completed.

[0154] In one embodiment, for Bluetooth communication, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be compatible with Bluetooth profiles required to use the desired service. In one embodiment, the electronic device (101) and the second external electronic device (103) may each be connected to the first external electronic device (102) using SPP, HFP, and / or A2DP among the Bluetooth profiles. The SPP, HFP, and / or A2DP connection process may follow Bluetooth profile standards. In one embodiment, when Bluetooth communication is established between the first external electronic device (102) and the electronic device (101) or between the first external electronic device (102) and the second external electronic device (103), it may be connected via SPP and additionally connected via HFP or A2DP.

[0155] In one embodiment, the electronic device (101) can receive SPP connection information and wearing status information of the first external electronic device (102) after establishing communication with the first external electronic device (102). According to one embodiment, the SPP connection information and wearing status information of the first external electronic device (102) can be received based on a predefined UUID.

[0156] In operation 603, the electronic device (101) can transmit connection information with the first external electronic device (102) to the second external electronic device (103) by broadcasting an advertisement packet containing connection information for the first external electronic device (102) while connected to the first external electronic device (102). In one embodiment, the connection information may be encrypted based on a hash function, and the hash function may be changed at specific time intervals.

[0157] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0158] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0159] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) based on a UUID during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102).

[0160] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a D2D communication method or a Wi-Fi communication method.

[0161] When an event requiring a connection between the second external electronic device (103) and the first external electronic device (102) is triggered, in operation 605, the electronic device (101) may receive a notification from the second external electronic device (103) indicating that a connection between the second external electronic device (103) and the first external electronic device (102) will be performed.

[0162] When an event requiring a connection with the first external electronic device (102) is triggered in the second external electronic device (103), and the first external electronic device (102) is connected to the second external electronic device (102) at the request of the first external electronic device (102), in operation 607, the electronic device (101) can recognize that the communication connection with the first external electronic device (102) has been disconnected.

[0163] In one embodiment, the event requiring a connection with the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0164] In one embodiment, when the electronic device (101) is making a call using the first external electronic device (102), or is running an application that uses a microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102), the communication connection between the electronic device (101) and the first external electronic device (102) may be maintained without being disconnected.

[0165] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), or when the electronic device (101) is connected to the first external electronic device (102) but is in an idle state, the first external electronic device (102) performs a communication connection with the second external electronic device (102) at the request of the second external electronic device (103), and the communication connection between the electronic device (101) and the first external electronic device (102) may be disconnected.

[0166] In one embodiment, when an event requiring a connection with the first external electronic device (102) is triggered, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0167] When communication is established between the first external electronic device (102) and the second external electronic device (102) at the request of the second external electronic device (103), in operation 609, the electronic device (101) receives a notification from the second external electronic device (103) indicating that the communication connection between the second external electronic device (103) and the first external electronic device (102) has been completed, and can display information on the display indicating that the connection status of the first external electronic device (102) has changed based on the information received from the second external electronic device (103).

[0168] In one embodiment, the electronic device (101) may display on a display the reason for the change in the connection of the first external electronic device (102) (e.g., incoming / outgoing call from the second external electronic device (103), execution of a media application from the second external electronic device (103), etc.) as information indicating that the connection status has changed.

[0169] In one embodiment, the electronic device (101) may display on the display an icon, menu, etc., requesting a reconnection between the first external electronic device (102) and the electronic device (101), along with information indicating that the connection status has changed.

[0170] In operation 611, it can be checked whether an event is triggered in which an icon, menu, etc. requesting a reconnection of communication between the first external electronic device (102) and the electronic device (101) is selected through the input means of the electronic device (101).

[0171] In one embodiment, the event requiring reconnection with the first external electronic device (102) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0172] According to one embodiment, the electronic device (101) can perform communication reconnection by touching an icon, menu, etc., requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101), even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102).

[0173] In one embodiment, the electronic device (101) may be configured not to perform communication reconnection even if an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched when the second external electronic device (103) is in a call using the first external electronic device (102).

[0174] If an event requiring communication reconnection is triggered, in operation 613, the electronic device (101) performs all operations for communication reconnection with the first external electronic device (102), and in the same manner as in operation 601, while reconnected with the first external electronic device (102), it may broadcast an advertisement packet containing reconnection information or transmit reconnection information with the first external electronic device (102) to the second external electronic device (103) based on P2P communication or Wi-Fi communication. According to one embodiment, the electronic device (101) may upload reconnection information with the first external electronic device (102) to an external server, and the second external electronic device (103) may receive reconnection information through the external server. According to one embodiment, the electronic device (101) may display information indicating that it has been reconnected with the first external electronic device (102) on a display.

[0175] FIG. 7 is a flowchart illustrating the operation of an electronic device according to various embodiments and a first external electronic device that performs a short-range communication connection with a second external electronic device.

[0176] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be in a state where the function of automatically switching communication connections between multiple electronic devices is enabled.

[0177] Referring to FIG. 7, in operation 703, the first external electronic device (102) can perform a communication connection based on a Bluetooth communication method with the electronic device (101) by performing all operations for a Bluetooth connection based on a Bluetooth standard. According to one embodiment, when the Bluetooth functions of the electronic device (101) and the first external electronic device (102) are activated, if an input signal is received to scan for surrounding Bluetooth devices through the input means of the electronic device (101), the electronic device (101) transmits an ID packet, and the electronic device (101) can recognize the first external electronic device (102) by the first external electronic device (102) receiving the ID packet. When the recognized first external electronic device (102) is displayed on the display of the electronic device (101) and the recognized first external electronic device (102) is selected through the input means of the electronic device (101), the pairing between the electronic device (101) and the first external electronic device (102) can finally be completed.

[0178] In one embodiment, when the electronic device (101) and the first external electronic device (102) are connected, an advertisement packet containing connection information between the first external electronic device (102) can be broadcast to the second external electronic device (103) through the electronic device (101).

[0179] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0180] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0181] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) based on a UUID during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102).

[0182] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a device-to-device (D2D) communication method or a Wi-Fi communication method.

[0183] When an event requiring a connection with the first external electronic device (102) is triggered in the second external electronic device (103), in operation 705, the first external electronic device (102) can receive a connection request from the second external electronic device (103).

[0184] In one embodiment, the event requiring a connection with the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0185] In one embodiment, when the electronic device (101) is making a call using the first external electronic device (102), or is running an application that uses a microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102), the communication connection between the electronic device (101) and the first external electronic device (102) may be maintained without being disconnected.

[0186] According to one embodiment, when an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered, connection operations between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0187] In one embodiment, when the electronic device (101) is playing media through a media application using the first external electronic device (102), or when the electronic device (101) is connected to the first external electronic device (102) but is in an idle state, the first external electronic device (102) may disconnect the communication connection between the electronic device (101) and the first external electronic device (102) at the request of the second external electronic device (103) in operation 707. In one embodiment, the first external electronic device (102) may disconnect the SPP, HFP, and / or A2DP connection with the electronic device (101).

[0188] In operation 709, the first external electronic device (102) can establish a communication connection with the second external electronic device (103). In one embodiment, the first external electronic device (102) can establish an SPP, HFP, and / or A2DP connection with the second external electronic device (103).

[0189] In one embodiment, the reason for the change in the connection between the electronic device (101) and the first external electronic device (102) (e.g., incoming / outgoing call occurring at the second external electronic device (103), execution of a media application at the second external electronic device (103), etc.) may be displayed on the display of the electronic device (101).

[0190] In one embodiment, an event may be triggered in which an icon, menu, etc. requesting a reconnection of communication between the first external electronic device (102) and the electronic device (101) is selected through the input means of the electronic device (101), and the first external electronic device (102) may perform various operations for reconnecting communication with the electronic device (102).

[0191] In one embodiment, the event requiring reconnection of communication between the first external electronic device (102) and the electronic device (101) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0192] According to one embodiment, even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102), communication reconnection between the electronic device (101) and the first external electronic device (102) can be performed by touching an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101).

[0193] In one embodiment, when the second external electronic device (103) is in a call using the first external electronic device (102), the device may be configured so that communication reconnection is not performed even if an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched.

[0194] In the case where an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to various situations in accordance with one embodiment, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0195] According to one embodiment, the first external electronic device (102) reconnected with the electronic device (101) can disconnect the communication connection with the second external electronic device (103). According to one embodiment, the electronic device (101) can display information on a display indicating that it has been reconnected with the first external electronic device (102).

[0197] FIG. 8 is a flowchart illustrating the operation of an electronic device according to various embodiments and a second external electronic device that performs a short-range communication connection with a first external electronic device.

[0198] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be in a state where the function of automatically switching communication connections between multiple electronic devices is enabled.

[0199] Referring to FIG. 8, in operation 801, when communication is established between the electronic device (101) and the first external electronic device (102), the second external electronic device (103) can receive an advertisement packet broadcast from the electronic device (101) that includes connection information between the electronic device (101) and the first external electronic device (102).

[0200] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0201] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0202] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102). In another embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be received by the first external electronic device (102) transmitting the user account information, ID, connection status, and status information of the first external electronic device (102) to an external server (not shown), and the electronic device (101) receiving the user account information, ID, connection status, and status information of the first external electronic device from the external server.

[0203] In one embodiment, the second external electronic device (103) may display information on a display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on connection information of the first external electronic device (102) received from the electronic device (101). In one embodiment, the second external electronic device (103) may display information on a display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on user account information registered on a server.

[0204] In operation 803, the second external electronic device (103) can check whether an event requiring a connection with the first external electronic device (102) has been triggered.

[0205] In one embodiment, the event requiring a connection between the second external electronic device (103) and the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0206] In operation 805, the second external electronic device (103) can check the connection status between the electronic device (101) and the first external electronic device (102) based on information received from the electronic device (101) in operation 801, and can determine whether a communication connection with the first external electronic device (102) can be performed based on the confirmed connection status.

[0207] In one embodiment, when the electronic device (101) is making a call using the first external electronic device (102), is running an application that uses the microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102), the second external electronic device (103) may determine that it cannot establish a communication connection with the first external electronic device (102). In one embodiment, the second external electronic device (103) may display information indicating the result of determining that it cannot establish a communication connection with the first external electronic device (102) on the display of the second external electronic device (103).

[0208] For the connection operation between the second external electronic device (103) and the first external electronic device (102) when an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to the embodiment, [Table 1] can be referenced.

[0209] If the second external electronic device (103) determines that it cannot perform a communication connection with the first external electronic device (102), the communication connection between the electronic device (101) and the first external electronic device (102) may be maintained without being disconnected, and the second external electronic device (103) may perform operation 801 again.

[0210] In one embodiment, when the electronic device (101) is playing media through a media application using the first external electronic device (102), or when the electronic device (101) is connected to the first external electronic device (102) but is in an idle state, it can be determined that the second external electronic device (103) can perform a communication connection with the first external electronic device (102).

[0211] When the second external electronic device (103) determines that it can establish a communication connection with the first external electronic device (102), in operation 807, the second external electronic device (103) requests a communication connection to the first external electronic device (102) and receives a communication connection response, thereby allowing the first external electronic device (102) to establish a communication connection with the second external electronic device (102). In one embodiment, the second external electronic device (103) may request an SPP, HFP, and / or A2DP connection to the first external electronic device (102). In one embodiment, when communication is established between the first external electronic device (102) and the second external electronic device (102), the communication connection between the electronic device (101) and the first external electronic device (102) may be disconnected.

[0212] In one embodiment, the second external electronic device (103) may transmit a notification to the electronic device (101) indicating that a connection between the second external electronic device (103) and the first external electronic device (102) will be performed prior to transmitting a communication connection request to the first external electronic device (102).

[0213] In one embodiment, the second external electronic device (103) can transmit a notification to the electronic device (101) indicating that the communication connection between the second external electronic device (103) and the first external electronic device (102) has been completed after the communication connection between the first external electronic device (102) and the second external electronic device (102) has been established.

[0214] In one embodiment, based on a notification transmitted from the second external electronic device (103) to the electronic device (101), information regarding the connection change status of the first external electronic device (102) may be displayed on the display of the electronic device (101).

[0215] In one embodiment, the reason for the change in the connection of the first external electronic device (102) (e.g., incoming / outgoing call from the second external electronic device (103), execution of a media application from the second external electronic device (103), etc.) may be displayed on the display of the electronic device (101) as information indicating that the connection status has changed.

[0216] In one embodiment, the display of the electronic device (101) may display an icon, a menu, etc. for reconnecting between the first external electronic device (102) and the electronic device (101), along with information indicating that the connection status has changed.

[0217] In one embodiment, when an event is triggered in which an icon, menu, etc. requesting a reconnection of communication between the first external electronic device (102) and the electronic device (101) is selected through the input means of the electronic device (101), the electronic device (101) can perform all operations for reconnecting communication with the first external electronic device (102), and the second external electronic device (103) can receive an advertisement packet broadcast by the electronic device (101) including connection information while connected to the first external electronic device (102) in the same manner as operation 801.

[0218] In one embodiment, the event requiring reconnection with the first external electronic device (102) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0219] According to one embodiment, even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102), communication reconnection can be performed by touching an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101).

[0220] In one embodiment, when the second external electronic device (103) is in a call using the first external electronic device (102), the electronic device (101) may be configured not to perform a reconnection of communication between the electronic device (101) and the first external electronic device (102) even if an icon, menu, etc. requesting a reconnection of communication with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched.

[0221] In the case where an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to various situations in accordance with one embodiment, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0222] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), if a media application is executed by user input on the second external electronic device (103), or if a voice recognition artificial intelligence application such as a voice assistant is executed, or if an incoming / outgoing call occurs on the second external electronic device (103), and the connection between the electronic device (101) and the first external electronic device (102) is disconnected and the connection between the first external electronic device (102) and the second external electronic device (103) is established, the media playback of the electronic device (101) may be switched to a paused state. If the media playback and / or voice recognition artificial intelligence application is terminated on the second external electronic device (103) or the incoming / outgoing call is terminated, the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected, and communication between the electronic device (101) and the first external electronic device (102) is resumed. It can be connected. In one embodiment, when the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected and communication between the electronic device (101) and the first external electronic device (102) is reconnected, media playback that was paused at the electronic device (101) immediately before the connection between the first external electronic device (102) and the electronic device (101) is disconnected can be resumed.

[0224] FIGS. 4 to 8 describe a method for performing a short-range communication connection between an electronic device, a first external electronic device, and a second external electronic device when the first external electronic device (102) does not support multiple SPP (serial port profile) connections according to one embodiment. Below, a method for performing a short-range communication connection between an electronic device, a first external electronic device, and a second external electronic device when the first external electronic device (102) supports multiple SPP connections according to another embodiment is described.

[0225] In one embodiment, for Bluetooth communication, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be compatible with Bluetooth profiles required to use the desired service. In one embodiment, the electronic device (101) and the second external electronic device (103) may be connected to the first external electronic device (102) using Bluetooth profiles SPP, HFP, and A2DP.

[0227] In one embodiment, when Bluetooth communication is established between the first external electronic device (102) and the electronic device (101) or between the first external electronic device (102) and the second external electronic device (103), an SPP may be established, and an HFP or A2DP may be additionally established.

[0228] In one embodiment, when the first external electronic device (102) supports multiple SPP connections, the first external electronic device (102) can establish an SPP connection with the second external electronic device (103) while maintaining an SPP connection with the electronic device (101).

[0229] In one embodiment, when the first external electronic device (102) is connected to the electronic device (101) via SPP and HFP or A2DP, the first external electronic device (102) establishes an SPP connection with the second external electronic device (103), thereby allowing the second external electronic device (103) to quickly establish a connection with the first external electronic device (102) via HFP or A2DP when such a connection is required.

[0230] / / Inventor

[0231] Figures 9–12 only have the content of the SPP / HFP / A2 example added to the drawing description above.

[0232] Please check if there are any basic technical errors in the operation of the drawing in question. It would be best to review the details after modifications are made based on the above information.

[0234] FIG. 9 is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments.

[0235] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. That is, one earphone may be connected to the electronic device (101) and the other earphone may be disconnected from the electronic device (101), or both earphones may be connected to the electronic device (101). In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may have a Bluetooth function enabled and may be devices registered using the same user account. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may have a function enabled to automatically switch communication connections between multiple electronic devices, as shown in FIG. 4b. In one embodiment, the first external electronic device (102) may support multiple SPP connections.

[0236] Referring to FIG. 9, in operation 903, the electronic device (101) can establish a communication connection based on a Bluetooth communication method with a first external electronic device (102) by performing all operations for a Bluetooth connection based on a Bluetooth standard. In one embodiment, the electronic device (101) may be connected via SPP and HFP or A2DP. The SP, HFP, and / or A2DP connection process may follow a Bluetooth profile standard.

[0237] In one embodiment, the electronic device (101) can receive SPP connection information and wearing status information of the first external electronic device (102) after establishing communication with the first external electronic device (102). According to one embodiment, the SPP connection information and wearing status information of the first external electronic device (102) can be received based on a predefined UUID.

[0238] In operation 905, the electronic device (101) can transmit connection information with the first external electronic device (102) to the second external electronic device (103) by broadcasting an advertisement packet containing connection information for the first external electronic device (102) while connected to the first external electronic device (102).

[0239] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0240] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0241] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) based on a UUID during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102).

[0242] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a D2D communication method or a Wi-Fi communication method.

[0243] In operation 907, the second external electronic device (103) can perform an SPP connection with the first external electronic device (102) based on connection information of the first external electronic device (102) received from the electronic device (101) or an external server. In one embodiment, the second external electronic device (103) can display information on a display indicating that the electronic device (101) and the first external electronic device (102) are connected based on user account information registered on the server.

[0244] In one embodiment, the second external electronic device (103) can display information on a display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on connection information received from the electronic device (101).

[0245] In operation 909, when an event requiring a connection between the second external electronic device (103) and the first external electronic device (102) is triggered, in operation 911, the second external electronic device (103) can check the connection status between the electronic device (101) and the first external electronic device (102) based on information received from the electronic device (101) in operation 405, and can determine whether a communication connection with the first external electronic device (102) can be performed based on the confirmed connection status.

[0246] In one embodiment, the event requiring a connection with the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0247] In one embodiment, the second external electronic device (103) may determine that it cannot establish a communication connection with the first external electronic device (102) if it is confirmed that the electronic device (101) is making a call using the first external electronic device (102), is running an application using a microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102).

[0248] According to one embodiment, when an event requiring a connection between the second external electronic device (103) and the first external electronic device (102) is triggered, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0249] In one embodiment, the second external electronic device (103) may display information on the display of the second external electronic device (103) indicating a result of determining that a communication connection with the first external electronic device (102) cannot be performed.

[0250] In one embodiment, the second external electronic device (103) may determine that it can perform a communication connection with the first external electronic device (102) when it is confirmed that the electronic device (101) is playing media through a media application using the first external electronic device (102), or that the electronic device (101) is connected to the first external electronic device (102) but is in an idle state.

[0251] In operation 913, the second external electronic device (103), having determined that it can perform a communication connection with the first external electronic device (102), may notify the first external electronic device (102) to disconnect the connection with the electronic device (101). In one embodiment, the second external electronic device (103), having determined that it can perform a communication connection with the first external electronic device (102), may notify the electronic device (101) connected to the first external electronic device (102) that a connection between the second external electronic device (103) and the first external electronic device (102) will be performed.

[0252] In operation 915, the second external electronic device (103), which determines that it can perform a communication connection with the first external electronic device (102), may request an HFP or A2DP connection to the first external electronic device (102) and request the disconnection of the HFP or A2DP connection between the first external electronic device (102) and the electronic device (101).

[0253] In operation 917, the first external electronic device (102) receives from the second external electronic device (103) a request for an HFP or A2DP connection between the first external electronic device (102) and the second external electronic device (103) and a request for an HFP or A2DP connection disconnection between the first external electronic device (102) and the electronic device (101), and may disconnect the HFP or A2DP connection with the electronic device (101). In one embodiment, the first external electronic device (102) may maintain an SPP connection between the first external electronic device (102) and the electronic device (101). In one embodiment, if only the SPP connection between the first external electronic device (102) and the electronic device (101) is maintained and the HFP or A2DP connection is disconnected, audio service through the first external electronic device (102) may not be provided.

[0254] In operation 919, the first external electronic device (102) may transmit an HFP or A2DP connection response to the second external electronic device (103), thereby establishing an HFP or A2DP connection between the first external electronic device (102) and the second external electronic device (103). According to one embodiment, the first external electronic device (102) may notify the second external electronic device (103) that an HFP or A2DP connection has been established with the first external electronic device (102) through a communication connection response.

[0255] In operation 921, the second external electronic device (103) may notify the electronic device (101) that an HFP or A2DP connection between the second external electronic device (103) and the first external electronic device (102) has been completed. According to one embodiment, the second external electronic device (103) may notify the electronic device (101) that an HFP or A2DP connection has been established with the first external electronic device (102).

[0256] In operation 923, the electronic device (101) may display information on the display indicating that the connection status of the first external electronic device (102) has changed based on information received from the second external electronic device (103) in operation 921. According to one embodiment, if the second external electronic device (103) has established an HFP or A2DP connection with the first external electronic device (102), the electronic device (101) may display information on the display indicating that the connection with the first external electronic device (102) has been disconnected.

[0257] In one embodiment, the electronic device (101) may display on a display the reason for the change in the connection of the first external electronic device (102) (e.g., incoming / outgoing call from the second external electronic device (103), execution of a media application from the second external electronic device (103), etc.) as information indicating that the connection status has changed.

[0258] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), media is played through the media application by user input from the second external electronic device (103), or a voice recognition artificial intelligence application such as a voice assistant is executed, or an incoming / outgoing call occurs from the second external electronic device (103), thereby disconnecting the connection between the electronic device (101) and the first external electronic device (102) and establishing a connection between the first external electronic device (102) and the second external electronic device (103), the media playback of the electronic device (101) may be switched to a paused state. When the media playback and / or voice recognition artificial intelligence application ends or the incoming / outgoing call ends from the second external electronic device (103), the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected, and between the electronic device (101) and the first external electronic device (102) Communication can be reconnected. In one embodiment, when the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected and communication between the electronic device (101) and the first external electronic device (102) is reconnected, media playback that was paused at the electronic device (101) immediately before the connection between the first external electronic device (102) and the electronic device (101) is disconnected can be resumed.

[0260] FIG. 10 is a diagram illustrating a short-range communication connection procedure between an electronic device and first and second external electronic devices according to various embodiments.

[0261] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may have a function enabled to automatically switch communication connections between multiple electronic devices. In one embodiment, the first external electronic device (102) may support multiple SPP connections.

[0262] Referring to FIG. 10, the operations of operations 1003 to 1023 are identical to the operations of operations 903 to 923 of FIG. 9, so a redundant description is omitted.

[0263] In a state where the connection between the electronic device (101) and the first external electronic device (102) is released and the connection between the first external electronic device (102) and the second external electronic device (103) is established through the operations of operations 1003 to 1023, if an event requesting a reconnection of communication between the first external electronic device (102) and the electronic device (101) is triggered through the input means of the electronic device (101) in operation 1025, then in operation 1027, the electronic device (101) can perform all operations for reconnecting with the first external electronic device (102) via HFP or A2DP.

[0264] In one embodiment, the event requiring reconnection with the first external electronic device (102) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0265] According to one embodiment, the electronic device (101) can perform communication reconnection by touching an icon, menu, etc., requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101), even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102).

[0266] In one embodiment, the electronic device (101) may be configured not to perform communication reconnection even if an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched when the second external electronic device (103) is in a call using the first external electronic device (102).

[0267] In the case where an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to various situations in accordance with one embodiment, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0268] The first external electronic device (102) reconnected to the electronic device (101) via HFP or A2DP may disconnect the HFP or A2DP connection with the second external electronic device (103) in operation 1029. According to one embodiment, the electronic device (101) may display information on a display indicating that it has been reconnected to the first external electronic device (102).

[0269] In operation 1031, the electronic device (101) may transmit HFP or A2DP reconnection information with the first external electronic device (102) to the second external electronic device (103) by broadcasting an advertisement packet containing reconnection information while in a state of reconnection with the first external electronic device (102) via HFP or A2DP, as in operation 505. In one embodiment, the connection information may be encrypted based on a hash function, and the hash function may be changed at specific time intervals.

[0270] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0271] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a D2D communication method or a Wi-Fi communication method.

[0272] In operation 1033, the second external electronic device (103) may display information on the display indicating that the electronic device (101) and the first external electronic device (102) have been reconnected via HFP or A2DP based on connection information of the first external electronic device (102) received from the electronic device (101) or an external server.

[0273] Subsequently, if an event requesting a connection with the first external electronic device (102) occurs again in the second external electronic device (103) or the electronic device (101), operations 1009 to 1023 or operations 1025 to 1033 may be performed, respectively.

[0274] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), if a media application is executed by user input on the second external electronic device (103), or if a voice recognition artificial intelligence application such as a voice assistant is executed, or if an incoming / outgoing call occurs on the second external electronic device (103), and the connection between the electronic device (101) and the first external electronic device (102) is disconnected and the connection between the first external electronic device (102) and the second external electronic device (103) is established, the media playback of the electronic device (101) may be switched to a paused state. If the media playback and / or voice recognition artificial intelligence application is terminated on the second external electronic device (103) or the incoming / outgoing call is terminated, the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected, and communication between the electronic device (101) and the first external electronic device (102) is resumed. It can be connected. In one embodiment, when the connection between the first external electronic device (102) and the second external electronic device (103) is disconnected and communication between the electronic device (101) and the first external electronic device (102) is reconnected, media playback that was paused at the electronic device (101) immediately before the connection between the first external electronic device (102) and the electronic device (101) is disconnected can be resumed.

[0276] In one embodiment, after the second external electronic device (103) establishes an SPP connection with the first external electronic device (102) as in operation 907 of FIG. 9 and operation 1007 of FIG. 10, if the second external electronic device (103) has a history of being connected to a third external electronic device (not shown) that supports short-range communication, when an event requiring a connection from the second external electronic device (103) to the first external electronic device (102) is triggered in operation 909 of FIG. 9 and operation 1009 of FIG. 10, the second external electronic device (103) may not request an HFP, A2DP connection to the first external electronic device (102), but may request an HFP, A2DP connection to the third external electronic device (not shown) that has the most recent connection history.

[0278] FIG. 11 is a flowchart illustrating the operation of an electronic device that performs a short-range communication connection with a first external electronic device and a second external electronic device according to various embodiments.

[0279] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may have a function enabled to automatically switch communication connections between multiple electronic devices. In one embodiment, the first external electronic device (102) may support multiple SPP connections.

[0280] Referring to FIG. 11, in operation 1101, the electronic device (101) can perform a communication connection based on a Bluetooth communication method with a first external electronic device (102) by performing all operations for a Bluetooth connection based on a Bluetooth standard.

[0281] According to one embodiment, when the Bluetooth function of the electronic device (101) and the first external electronic device (102) is activated, and an input signal is received to scan for surrounding Bluetooth devices through the input means of the electronic device (101), the electronic device (101) transmits an ID packet, and the electronic device (101) can recognize the first external electronic device (102) by the first external electronic device (102) receiving the ID packet. The recognized first external electronic device (102) is displayed on the display of the electronic device (101), and when the recognized first external electronic device (102) is selected through the input means of the electronic device (101), the pairing between the electronic device (101) and the first external electronic device (102) can finally be completed.

[0282] In one embodiment, for Bluetooth communication, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be compatible with Bluetooth profiles required to use the desired service. In one embodiment, the electronic device (101) and the second external electronic device (103) may each be connected to the first external electronic device (102) using SPP, HFP, and / or A2DP among the Bluetooth profiles. The SPP, HFP, and / or A2DP connection process may follow Bluetooth profile standards. In one embodiment, when Bluetooth communication is established between the first external electronic device (102) and the electronic device (101) or between the first external electronic device (102) and the second external electronic device (103), it may be connected via SPP and additionally connected via HFP or A2DP.

[0283] In one embodiment, the electronic device (101) can receive SPP connection information and wearing status information of the first external electronic device (102) after establishing communication with the first external electronic device (102). According to one embodiment, the SPP connection information and wearing status information of the first external electronic device (102) can be received based on a predefined UUID.

[0284] In operation 1103, the electronic device (101) can transmit connection information with the first external electronic device (102) to the second external electronic device (103) by broadcasting an advertisement packet containing connection information for the first external electronic device (102) while connected to the first external electronic device (102). In one embodiment, the connection information may be encrypted based on a hash function, and the hash function may be changed at specific time intervals.

[0285] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0286] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0287] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) based on a UUID during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102).

[0288] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a D2D communication method or a Wi-Fi communication method.

[0289] In one embodiment, an SPP connection may be established between a second external electronic device (103) and a first external electronic device (102) based on connection information received from an electronic device (101).

[0290] When an event requiring a connection from the second external electronic device (103) to the first external electronic device (102) is triggered and an HFP or A2DC connection from the second external electronic device (103) to the first external electronic device (102) is requested, the electronic device (101) may be notified from the first external electronic device (102) that a connection between the second external electronic device (103) and the first external electronic device (102) will be performed.

[0291] In one embodiment, the event requiring a connection with the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0292] In one embodiment, when the electronic device (101) is making a call using the first external electronic device (102), or is running an application that uses a microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102), the communication connection between the electronic device (101) and the first external electronic device (102) may be maintained without being disconnected.

[0293] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), or when the electronic device (101) is connected to the first external electronic device (102) but is in an idle state, the first external electronic device (102) performs a communication connection with the second external electronic device (102) at the request of the second external electronic device (103), and the communication connection between the electronic device (101) and the first external electronic device (102) may be disconnected.

[0294] In one embodiment, when an event requiring a connection with the first external electronic device (102) is triggered, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0295] In operation 1107, the electronic device (101) may disconnect the HFP or A2DP connection between the electronic device (101) and the first external electronic device (102). In one embodiment, the electronic device (101) may maintain the SPP connection between the first external electronic device (102) and the electronic device (101). In one embodiment, if only the SPP connection between the first external electronic device (102) and the electronic device (101) is maintained and the HFP or A2DP connection is disconnected, audio service through the first external electronic device (102) may not be provided.

[0297] When an HFP or A2DP connection is established between the first external electronic device (102) and the second external electronic device (102) at the request of the second external electronic device (103), in operation 1109, the electronic device (101) receives a notification from the second external electronic device (103) indicating that the HFP or A2DP connection between the second external electronic device (103) and the first external electronic device (102) has been completed, and can display information on the display indicating that the connection status of the first external electronic device (102) has changed based on the information received from the second external electronic device (103).

[0298] In one embodiment, the electronic device (101) may display on a display the reason for the change in the connection of the first external electronic device (102) (e.g., incoming / outgoing call from the second external electronic device (103), execution of a media application from the second external electronic device (103), etc.) as information indicating that the connection status has changed.

[0299] In one embodiment, the electronic device (101) may display an icon, a menu, etc., for reconnecting between the first external electronic device (102) and the electronic device (101) along with information indicating that the connection status has changed.

[0300] In operation 1111, it can be checked whether an event is triggered in which an icon, menu, etc. requesting an HFP or A2DP reconnection between the first external electronic device (102) and the electronic device (101) is selected through the input means of the electronic device (101).

[0301] In one embodiment, the event requiring reconnection with the first external electronic device (102) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0302] According to one embodiment, the electronic device (101) can perform communication reconnection by touching an icon, menu, etc., requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101), even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102).

[0303] In one embodiment, the electronic device (101) may be configured not to perform communication reconnection even if an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched when the second external electronic device (103) is in a call using the first external electronic device (102).

[0304] If an event requiring HFP or A2DP reconnection is triggered, in operation 1113, the electronic device (101) performs all operations for HFP or A2DP reconnection with the first external electronic device (102), and in the same manner as in operation 1101, while reconnected with the first external electronic device (102), it may broadcast an advertisement packet containing reconnection information or transmit HFP or A2DP reconnection information with the first external electronic device (102) to the second external electronic device (103) based on P2P communication or Wi-Fi communication. According to one embodiment, the electronic device (101) may upload reconnection information with the first external electronic device (102) to an external server, and the second external electronic device (103) may receive reconnection information through the external server. According to one embodiment, the electronic device (101) may display information indicating that it has been reconnected with the first external electronic device (102) on a display.

[0306] FIG. 12 is a flowchart illustrating the operation of an electronic device according to various embodiments and a first external electronic device that performs a short-range communication connection with a second external electronic device.

[0307] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may have a function enabled to automatically switch communication connections between multiple electronic devices. In one embodiment, the first external electronic device (102) may support multiple SPP connections.

[0308] Referring to FIG. 12, in operation 1203, the first external electronic device (102) can perform a communication connection based on a Bluetooth communication method with the electronic device (101) by performing all operations for a Bluetooth connection based on a Bluetooth standard. In one embodiment, the first external electronic device (102) can be connected to the electronic device (101) via SPP and HFP or A2DP. According to one embodiment, when the Bluetooth functions of the electronic device (101) and the first external electronic device (102) are activated, if an input signal is received to scan for surrounding Bluetooth devices through the input means of the electronic device (101), the electronic device (101) transmits an ID packet, and the electronic device (101) can recognize the first external electronic device (102) by the first external electronic device (102) receiving the ID packet. When the recognized first external electronic device (102) is displayed on the display of the electronic device (101) and the recognized first external electronic device (102) is selected through the input means of the electronic device (101), the pairing between the electronic device (101) and the first external electronic device (102) can finally be completed.

[0309] In one embodiment, when the electronic device (101) and the first external electronic device (102) are connected via SPP and HFP or A2DP, an advertisement packet containing connection information between the first external electronic device (102) can be broadcast to the second external electronic device (103) through the electronic device (101).

[0310] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0311] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0312] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) based on a UUID during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102).

[0313] In another embodiment, the electronic device (101) may upload user account information, ID, connection status, and status information of the first external electronic device (102) received from the first external electronic device (102) to an external server (not shown), and the second external electronic device (103) may receive user account information, ID, connection status, and status information of the first external electronic device (102) from the external server. In yet another embodiment, the electronic device (101) may transmit user account information, ID, connection status, and status information of the first external electronic device (102) to the second external electronic device (103) based on a device-to-device (D2D) communication method or a Wi-Fi communication method.

[0314] In operation 1205, the first external electronic device (102) can perform an SPP connection between the first external electronic device (102) and the second external electronic device (103) based on a request from the second external electronic device (103) and connection information broadcast from the electronic device (101) to the second external electronic device (103) or received from an external server.

[0315] When an event requiring a connection with the first external electronic device (102) is triggered in the second external electronic device (103), in operation 1207, the first external electronic device (102) may receive a request for an HFP or A2DP connection between the first external electronic device (102) and the second external electronic device (103) from the second external electronic device (103), and may receive a request for an HFP or A2DP disconnection between the first external electronic device (102) and the electronic device (101).

[0316] In one embodiment, the event requiring a connection with the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0317] In one embodiment, when the electronic device (101) is making a call using the first external electronic device (102), or is running an application that uses a microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102), the communication connection between the electronic device (101) and the first external electronic device (102) may be maintained without being disconnected.

[0318] In one embodiment, when media is being played through a media application using the first external electronic device (102) of the electronic device (101), or when the electronic device (101) is connected to the first external electronic device (102) but is in an idle state, the first external electronic device (102) may disconnect the HFP or A2DC connection between the electronic device (101) and the first external electronic device (102) at the request of the second external electronic device (103) in operation 1209.

[0319] According to one embodiment, when an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered, connection operations between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0320] In operation 1211, the first external electronic device (102) can perform an HFP or A2DC connection with the second external electronic device (103).

[0321] In one embodiment, the reason for the change in the connection between the electronic device (101) and the first external electronic device (102) (e.g., incoming / outgoing call occurring at the second external electronic device (103), execution of a media application at the second external electronic device (103), etc.) may be displayed on the display of the electronic device (101).

[0322] In one embodiment, an event may be triggered in which an icon, menu, etc. requesting an HFP or A2DC reconnection between the first external electronic device (102) and the electronic device (101) is selected through the input means of the electronic device (101), and the first external electronic device (102) may perform all operations for an HFP or A2DC reconnection with the electronic device (102).

[0323] In one embodiment, the event requiring reconnection of communication between the first external electronic device (102) and the electronic device (101) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0324] According to one embodiment, even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102), communication reconnection between the electronic device (101) and the first external electronic device (102) can be performed by touching an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101).

[0325] In one embodiment, when the second external electronic device (103) is in a call using the first external electronic device (102), the device may be configured so that communication reconnection is not performed even if an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched.

[0326] In the case where an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to various situations in accordance with one embodiment, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0327] According to one embodiment, the first external electronic device (102) reconnected with the electronic device (101) can disconnect the communication connection with the second external electronic device (103). According to one embodiment, the electronic device (101) can display information on a display indicating that it has been reconnected with the first external electronic device (102).

[0329] FIG. 13 is a flowchart illustrating the operation of an electronic device according to various embodiments and a second external electronic device that performs a short-range communication connection with a first external electronic device.

[0330] In one embodiment, the electronic device (101) and / or the second external electronic device (103) may be substantially the same electronic device as the electronic device (101) of FIG. 1 or the electronic device (200) of FIG. 2. In one embodiment, the first external electronic device (102) may be the same electronic device as the external electronic device (300) of FIG. 3. In one embodiment, the electronic device (101) may be a smartphone, the first external electronic device (102) may be a Bluetooth earphone, and the second external electronic device (103) may be a tablet, but the present invention is not limited thereto and may be applied to various wearable devices such as smartwatches and devices that support short-range communication such as televisions (TV) and personal computers (PC). In one embodiment, if the first external electronic device (102) is a Bluetooth earphone with separate earbuds, the user may be wearing at least one earphone. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may be devices registered using the same user account with the Bluetooth function enabled. In one embodiment, the electronic device (101), the first external electronic device (102), and the second external electronic device (103) may have a function enabled to automatically switch communication connections between multiple electronic devices. In one embodiment, the first external electronic device (102) may support multiple SPP connections.

[0331] Referring to FIG. 13, in operation 1301, when communication is established between the electronic device (101) and the first external electronic device (102), the second external electronic device (103) can receive an advertisement packet broadcast from the electronic device (101) that includes connection information between the electronic device (101) and the first external electronic device (102). In one embodiment, the electronic device (101) and the first external electronic device (102) may be connected via SPP and HFP or A2DP.

[0332] In one embodiment, the information broadcast by the electronic device (101) may include user account information of the electronic device (101) and the first external electronic device (102), an ID (auto-switchable device ID) of the electronic device (101) and the first external electronic device (102), and state information (auto-switchable device state) of the electronic device (101) and the first external electronic device (102) (e.g., no paired device, there is a paired device but the headset is disabled, there is a paired device and the headset is also enabled, the wearing status of the first external electronic device (102), and information indicating whether an SPP connection is possible, etc.), state information of the first electronic device (101) (e.g., information regarding currently running applications, screen lock, screen unlock, screen on, screen off, etc.), and state information of the first external electronic device (102) (e.g., whether it is worn, operating mode (e.g., audio connection status, call status, etc.), battery information, etc.).

[0333] In one embodiment, the ID of the first external electronic device (102) is generated based on the static address of the first external electronic device (102) and can be regenerated whenever it is newly connected to another electronic device.

[0334] In one embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be information received from the first external electronic device (102) during the process in which the electronic device (101) performs a communication connection with the first external electronic device (102). In another embodiment, the user account information, ID, connection status, and status information of the first external electronic device (102) may be received by the first external electronic device (102) transmitting the user account information, ID, connection status, and status information of the first external electronic device (102) to an external server (not shown), and the electronic device (101) receiving the user account information, ID, connection status, and status information of the first external electronic device from the external server.

[0335] In one embodiment, the second external electronic device (103) may display information on a display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on connection information of the first external electronic device (102) received from the electronic device (101). In one embodiment, the second external electronic device (103) may display information on a display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on user account information registered on a server.

[0336] In operation 1303, the second external electronic device (103) can perform an SPP connection with the first external electronic device (102) based on connection information received from the electronic device (101).

[0337] In one embodiment, the second external electronic device (103) can display information on a display indicating that the electronic device (101) and the first external electronic device (102) are connected, based on connection information received from the electronic device (101).

[0338] In operation 1305, the second external electronic device (103) can check whether an event requiring a connection with the first external electronic device (102) has been triggered.

[0339] In one embodiment, the event requiring a connection between the second external electronic device (103) and the first external electronic device (102) may be when media is played through a media application by user input on the second external electronic device (103), when a voice recognition artificial intelligence application such as a voice assistance is executed, or when an incoming / outgoing call occurs on the second external electronic device (103).

[0340] In operation 1307, the second external electronic device (103) can check the connection status between the electronic device (101) and the first external electronic device (102) based on information received from the electronic device (101) in operation 801, and can determine whether a communication connection with the first external electronic device (102) can be performed based on the confirmed connection status.

[0341] In one embodiment, when the electronic device (101) is making a call using the first external electronic device (102), is running an application that uses the microphone built into the first external electronic device (102), or is outputting audio from the first external electronic device (102), the second external electronic device (103) may determine that it cannot establish a communication connection with the first external electronic device (102). In one embodiment, the second external electronic device (103) may display information indicating the result of determining that it cannot establish a communication connection with the first external electronic device (102) on the display of the second external electronic device (103).

[0342] For the connection operation between the second external electronic device (103) and the first external electronic device (102) when an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to the embodiment, [Table 1] can be referenced.

[0343] If the second external electronic device (103) determines that it cannot perform a communication connection with the first external electronic device (102), the communication connection between the electronic device (101) and the first external electronic device (102) may be maintained without being disconnected, and the second external electronic device (103) may perform operation 1301 again.

[0344] In one embodiment, when the electronic device (101) is playing media through a media application using the first external electronic device (102), or when the electronic device (101) is connected to the first external electronic device (102) but is in an idle state, it can be determined that the second external electronic device (103) can perform a communication connection with the first external electronic device (102).

[0345] In one embodiment, the second external electronic device (103), which determines that it can perform a communication connection with the first external electronic device (102), may notify the electronic device (101) connected to the first external electronic device (102) that a connection between the second external electronic device (103) and the first external electronic device (102) will be performed.

[0346] When the second external electronic device (103) determines that it can establish a communication connection with the first external electronic device (102), in operation 1309, the second external electronic device (103) requests an HFP or A2DP connection to the first external electronic device (102) and requests the disconnection of the HFP or A2DP connection between the first external electronic device (102) and the electronic device (101), and upon receiving an HFP or A2DP connection response, the first external electronic device (102) can establish an HFP or A2DP connection with the second external electronic device (102). When an HFP or A2DP connection is established between the first external electronic device (102) and the second external electronic device (102), the HFP or A2DP connection between the electronic device (101) and the first external electronic device (102) can be disconnected. In one embodiment, the SPP connection between the first external electronic device (102) and the electronic device (101) can be maintained.

[0347] In one embodiment, the second external electronic device (103) may transmit a notification to the electronic device (101) indicating that an HFP or A2DP connection between the second external electronic device (103) and the first external electronic device (102) will be performed prior to transmitting an HFP or A2DP connection request to the first external electronic device (102).

[0348] In one embodiment, the second external electronic device (103) may transmit a notification to the electronic device (101) indicating that the HFP or A2DP connection between the second external electronic device (103) and the first external electronic device (102) has been completed, after the HFP or A2DP connection between the first external electronic device (102) and the second external electronic device (102) has been established.

[0349] In one embodiment, based on a notification transmitted from the second external electronic device (103) to the electronic device (101), information regarding the connection change status of the first external electronic device (102) may be displayed on the display of the electronic device (101).

[0350] In one embodiment, the reason for the change in the connection of the first external electronic device (102) (e.g., incoming / outgoing call from the second external electronic device (103), execution of a media application from the second external electronic device (103), etc.) may be displayed on the display of the electronic device (101) as information indicating that the connection status has changed.

[0351] In one embodiment, the display of the electronic device (101) may display an icon, menu, etc. requesting an HFP or A2DP reconnection between the first external electronic device (102) and the electronic device (101), along with information indicating that the connection status has changed.

[0352] In one embodiment, when an event is triggered in which an icon, menu, etc. requesting a reconnection of communication between the first external electronic device (102) and the electronic device (101) is selected through the input means of the electronic device (101), the electronic device (101) can perform all operations for reconnecting HFP or A2DP with the first external electronic device (102), and the second external electronic device (103) can receive an advertisement packet broadcast by the electronic device (101) containing connection information while connected to the first external electronic device (102) in the same manner as operation 801.

[0353] In one embodiment, the event requiring reconnection with the first external electronic device (102) may be when media is played through a media application by user input on the electronic device (101), when a voice recognition artificial intelligence application such as a voice assistant is executed, or when an incoming / outgoing call occurs on the electronic device (101).

[0354] According to one embodiment, even if it is confirmed that the second external electronic device (103) is running an application using a microphone built into the first external electronic device (102) or is outputting audio using the speaker of the first external electronic device (102), communication reconnection can be performed by touching an icon, menu, etc. requesting communication reconnection with the first external electronic device (102) displayed on the screen of the electronic device (101).

[0355] In one embodiment, when the second external electronic device (103) is in a call using the first external electronic device (102), the electronic device (101) may be configured not to perform a reconnection of communication between the electronic device (101) and the first external electronic device (102) even if an icon, menu, etc. requesting a reconnection of communication with the first external electronic device (102) displayed on the screen of the electronic device (101) is touched.

[0356] In the case where an event requiring connection between the second external electronic device (103) and the first external electronic device (102) is triggered according to various situations in accordance with one embodiment, the connection operation between the second external electronic device (103) and the first external electronic device (102) can be performed based on [Table 1].

[0357] In one embodiment, when media is being played through a media application using a first external electronic device (102) by an electronic device (101), if a media application is executed by user input on a second external electronic device (103), or if a voice recognition artificial intelligence application such as a voice assistance is executed, or if an incoming / outgoing call occurs on the second external electronic device (103), and the HFP or A2DP connection between the electronic device (101) and the first external electronic device (102) is released and the HFP or A2DP connection between the first external electronic device (102) and the second external electronic device (103) is performed, the media playback of the electronic device (101) may be switched to a paused state, and if the media playback and / or voice recognition artificial intelligence application is terminated on the second external electronic device (103) or the incoming / outgoing call is terminated, the HFP or A2DP connection between the first external electronic device (102) and the second external electronic device (103) is released, and the electronic HFP or A2DP may be reconnected between the device (101) and the first external electronic device (102). In one embodiment, when the HFP or A2DP connection between the first external electronic device (102) and the second external electronic device (103) is disconnected and the HFP or A2DP is reconnected between the electronic device (101) and the first external electronic device (102), media playback that was paused on the electronic device (101) immediately before the HFP or A2DP connection between the first external electronic device (102) and the electronic device (101) is disconnected may be resumed.

[0359] FIG. 14 is a diagram illustrating the media fade-in / fade-out effect when an electronic device performs an automatic switching function according to various embodiments.

[0360] Referring to FIG. 14, when media is being played in an electronic device (101) connected to a first external electronic device (102), and an event requiring a connection with the first external electronic device (102) is triggered in the second external electronic device (103), the connection between the first external electronic device (102) and the electronic device (101) is released and a connection between the first external electronic device (102) and the second external electronic device (103) is performed, the sound of the media being played in the electronic device (101) can fade out and the sound generated by the event triggered in the second external electronic device (103) can fade in.

[0361] According to one embodiment, the time for the sound to fade out / fade in when the connection between the electronic device (101) and the first external electronic device (102) is forcibly disconnected by user input at the second external electronic device (103) and the connection between the first external electronic device (102) and the second external electronic device (103) is performed (e.g., 300ms in the case of FIG. 14 (a) and (b)) is compared to the time for the sound to fade out / fade in when the connection with the first external electronic device (102) is automatically switched from the electronic device (101) to the second external electronic device (103) by an event triggered at the second external electronic device (103) (e.g., 1s in the case of FIG. 14 (b)).

[0363] The present invention has been described above with reference to its preferred embodiments. Those skilled in the art will understand that the present invention may be embodied in modified forms without departing from the essential characteristics of the invention. Therefore, the disclosed embodiments should be considered in an illustrative rather than a restrictive sense. The scope of the invention is defined by the claims, not by the foregoing description, and all variations within the scope of the claims should be interpreted as being included in the invention.

Claims

Claim 1 An electronic device comprising: a short-range communication circuit; and at least one processor functionally connected to the short-range communication circuit, wherein the at least one processor performs a first communication connection with a first external electronic device through the short-range communication circuit, transmits first information associated with the first communication to a second external electronic device through the short-range communication circuit, and, based on the occurrence of an event requiring a second communication connection between the second external electronic device and the first external electronic device in the second external electronic device while the first communication is connected, receives second information from the second external electronic device through the first external electronic device announcing that the second communication connection will be performed, and is configured to release the first communication connection through the short-range communication circuit based on the second information. Claim 2 In claim 1, the at least one processor is an electronic device configured to receive information from the second external electronic device, via the short-range communication circuit, that the second communication connection has been completed, after the first communication connection has been released. Claim 3 In claim 1, the electronic device is configured such that, after the first communication connection is released, at least one processor displays on the display of the electronic device information indicating the release of the first communication connection, information indicating that the second communication connection has been completed, or a menu for requesting the reconnection of the first communication. Claim 4 An electronic device according to claim 1, wherein the at least one processor performs the first communication connection through the near-field communication circuit based on the connections of at least two profiles, and is configured to release the first communication connection by releasing the connection of at least one of the at least two profiles through the near-field communication circuit. Claim 5 In paragraph 4, the above at least two profiles include at least one of SPP (serial port profile) and HFP (hands free profile) or A2DP (advanced audio distribution profile), and the above at least one profile is an electronic device including at least one of HFP or A2DP. Claim 6 In claim 1, the first information is transmitted to a second external electronic device via an external server, and the electronic device includes status information of the electronic device, status information of the first external electronic device, and identification information of the first external electronic device. Claim 7 An electronic device according to claim 1, characterized in that the electronic device, the first external electronic device, and the second external electronic device are registered using the same user account. Claim 8 An electronic device comprises: a short-range communication circuit; and at least one processor functionally connected to the short-range communication circuit, wherein the at least one processor performs a first communication connection with a first external electronic device through the short-range communication circuit, and, while the first communication is connected, receives a notice of release of the first communication connection and a request for the second communication connection from the second external electronic device through the short-range communication circuit based on the occurrence of an event requiring a second communication connection between the second external electronic device and the electronic device from the second external electronic device, and, based on the notice of release of the first communication connection and the request for the second communication connection, releases the first communication connection with the first external electronic device and performs the second communication connection with the second external electronic device through the short-range communication circuit. Claim 9 An electronic device configured such that, in claim 8, at least one processor performs the first communication connection through the near-field communication circuit based on the connections of at least two profiles, and releases the first communication connection by releasing the connection of at least one of the at least two profiles through the near-field communication circuit. Claim 10 In claim 9, the electronic device configured such that the at least one processor performs a connection of one of the at least two profiles between the second external electronic device and the electronic device based on a request from the second external electronic device prior to the occurrence of the event while the first communication is connected. Claim 11 An electronic device according to claim 10, wherein the above at least two profiles include at least one of SPP (serial port profile) and HFP (hands free profile) or A2DP (advanced audio distribution profile), wherein the above at least one profile includes at least one of HFP or A2DP, and wherein the above one profile is the SPP. Claim 12 In claim 8, the electronic device is configured such that at least one processor transmits state information of the electronic device and identification information of the electronic device to the first external electronic device when performing the first communication connection through the short-range communication circuit. Claim 13 delete Claim 14 An electronic device according to claim 8, characterized in that the electronic device, the first external electronic device, and the second external electronic device are registered using the same user account. Claim 15 An electronic device comprising: a short-range communication circuit; and at least one processor functionally connected to the short-range communication circuit, wherein the at least one processor receives, through the short-range communication circuit, first information associated with a first communication connection between the first external electronic device and the second external electronic device from a second external electronic device connected to the first external electronic device, and, when an event requiring a second communication connection to the first external electronic device occurs while the first communication connection is established, transmits a notice of release of the first communication connection and a request for the second communication connection to the first external electronic device through the short-range communication circuit, and transmits second information announcing that the second communication connection will be performed to the second external electronic device through the first external electronic device, and is configured to perform the second communication connection based on the first information through the short-range communication circuit. Claim 16 In paragraph 15, the above-mentioned at least one processor is an electronic device configured to transmit information notifying that the second communication connection has been completed to the second external electronic device through the near-field communication circuit after the second communication connection has been completed. Claim 17 In paragraph 15, the first information is received from the second external electronic device via an external server and is an electronic device comprising status information of the second external electronic device, status information of the first external electronic device, and identification information of the first external electronic device. Claim 18 In paragraph 15, the first communication connection is performed based on the connections of at least two profiles, the release of the first communication connection is the release of the connection of at least one of the at least two profiles, and the at least one processor is configured to request the first external electronic device to perform the connection of one of the at least two profiles between the first external electronic device and the electronic device via the near-field communication circuit before the event occurs while the first communication is connected. Claim 19 An electronic device according to claim 18, wherein the above at least two profiles include at least one of SPP (serial port profile) and HFP (hands free profile) or A2DP (advanced audio distribution profile), wherein the above at least one profile includes at least one of HFP or A2DP, and wherein the above one profile is the SPP. Claim 20 An electronic device according to claim 15, characterized in that the electronic device, the first external electronic device, and the second external electronic device are registered using the same user account.

Citation Information

Patent Citations

  • Mobile terminal and method for controlling the same

    KR1020160009946A

  • Electronic device for controlling establishing or releasing communication connection and method for controlling thereof

    KR1020190084584A

  • Electronic device suporting link sharing and method therefor

    KR1020200044505A