Electronic device communicating via Bluetooth connection and method of operating same

By configuring the processor in the electronic device, identifying and managing multiple Bluetooth connections, the stability and management problems of multi-service connections in the prior art are solved, and the stable and efficient multi-service connections of Bluetooth communications are achieved.

CN119769117APending Publication Date: 2025-04-04SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380055793.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-08-09
Filing Date
2023-06-12
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

When establishing multi-service connections, existing Bluetooth communication technologies are prone to service interruptions due to connection failures, and it is difficult to effectively manage multiple Bluetooth connections.

Method used

By configuring a processor in the electronic device, receiving advertising signals related to the second service, identifying the source of the established first Bluetooth connection and advertising signals, executing a service search program, and sending and receiving data packets through the first Bluetooth connection to achieve stability and management of the multi-service connection.

Benefits of technology

It realizes that multiple Bluetooth service connections are securely established and managed based on existing Bluetooth connections, avoiding service interruptions caused by connection failure, and improving system stability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119769117A_ABST
    Figure CN119769117A_ABST
Patent Text Reader

Abstract

According to an embodiment, an electronic device including a communication circuit, a memory, and at least one processor is disclosed. The at least one processor may be configured to: receive a second advertisement signal related to a second service; identifying that a first Bluetooth connection for the first service has been established with the external electronic device based on the first advertisement signal and that the second advertisement signal is broadcast from the external electronic device; executing a service search procedure for a second service via the first Bluetooth connection; and transmitting and / or receiving a data packet for the second service to and / or from the external electronic device via the first Bluetooth connection. Various other embodiments are possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to electronic devices that communicate via a Bluetooth connection and methods of operating the same. Background Art

[0002] Bluetooth communication technology may be associated with a short-range wireless communication technology that enables electronic devices to connect to each other to exchange data or information. Bluetooth communication technology may include Bluetooth traditional (or classic) communication technology or Bluetooth low energy (BLE) communication technology.

[0003] The electronic device searches for one or more external electronic devices nearby, establishes a Bluetooth connection with each of the searched external electronic devices, and can use one or more services through the Bluetooth connection. In an embodiment, the electronic device can be a personal computer (PC) or a smart phone, and the external electronic device can include at least one of a speaker, a mouse, a keyboard, a monitor, a tablet computer, or another PC.

[0004] An electronic device can discover an external electronic device by receiving BLE advertising packets broadcast by the external electronic device through a Bluetooth Low Energy (BLE)-based scanning operation, establish a Bluetooth connection (e.g., BLE connection) with the discovered external electronic device, and provide services to the external electronic device (e.g., sending or receiving data packets) through the Bluetooth connection.

[0005] When the external electronic device allows the connection request, the electronic device can obtain service list information from the external electronic device by performing a service search operation (e.g., service discovery). The electronic device can select a desired service based on the obtained service list information and perform a data packet transmission and / or reception operation on the selected service. Summary of the invention

[0006] Technical Solution

[0007] An electronic device according to an embodiment may include a communication circuit, a memory, and at least one processor functionally connected to the communication circuit and the memory. The at least one processor may be configured to receive a second advertising signal related to a second service. The at least one processor may be configured to recognize that a first Bluetooth connection for a first service is established with an external electronic device based on the first advertising signal and that the second advertising signal is broadcast from the external electronic device. The at least one processor may be configured to execute a service search procedure for the second service via the first Bluetooth connection. The at least one processor may be configured to send and / or receive data packets for the second service to / from the external electronic device via the first Bluetooth connection.

[0008] A method for operating an electronic device according to an embodiment may include receiving a second advertisement signal associated with a second service. The method may include identifying that a first Bluetooth connection for the first service is established with an external electronic device based on the first advertisement signal and that the second advertisement signal is broadcast from the external electronic device. The method may include performing a service search procedure for the second service through the first Bluetooth connection. The method may include sending and / or receiving data packets for the second service to / from the external electronic device through the first Bluetooth connection.

[0009] According to an embodiment, in a non-transitory computer-readable storage medium storing one or more programs, the one or more programs may store instructions that, when executed by at least one processor of an electronic device, enable the electronic device to: receive a second advertisement signal associated with a second service; recognize that a first Bluetooth connection for the first service has been established with an external electronic device based on the first advertisement signal and that the second advertisement signal is broadcast from the external electronic device; perform a service search procedure for the second service via the first Bluetooth connection; and send and / or receive data packets for the second service to / from the external electronic device via the first Bluetooth connection. Various other embodiments are possible. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 is a diagram showing an electronic device in a network environment according to various embodiments;

[0011] Figure 2 is a view showing a connection example of a Bluetooth-based electronic device according to an embodiment;

[0012] Figure 3 is a signal flow diagram illustrating a procedure for establishing a Bluetooth connection according to an embodiment;

[0013] Figure 4 is a signal flow diagram illustrating provision of services over a Bluetooth connection according to an embodiment;

[0014] Figure 5 is a signal flow diagram illustrating a Bluetooth connection failure according to an embodiment;

[0015] Figure 6 is a signal flow diagram illustrating additional services connected via Bluetooth according to an embodiment;

[0016] Figure 7 is a signal flow diagram illustrating a procedure for providing additional services through a Bluetooth connection according to an embodiment;

[0017] Figure 8 is a view showing a packet format of an advertisement signal according to an embodiment;

[0018] Fig.9A and Fig. 9B is a diagram showing a payload format of an advertisement packet according to an embodiment; and

[0019] Fig. 10A and Fig. 10B is a signal flow chart illustrating an example of a service search procedure through Bluetooth according to an embodiment. DETAILED DESCRIPTION

[0020] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to various embodiments.

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

[0022] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 coupled to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor 120 may store a command or data received from another component (e.g., sensor module 176 or communication module 190) in the volatile memory 132, process the command or data stored in the volatile memory 132, and store the resultant data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) or an auxiliary processor 123 (e.g., a graphics processing unit (GPU), a neural processing unit (NPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 121 in operation. For example, when the electronic device 101 includes a main processor 121 and an auxiliary processor 123, the auxiliary processor 123 may be configured to use less power than the main processor 121, or to be dedicated to a specified function. The auxiliary processor 123 may be implemented separately from the main processor 121, or as part of the main processor 121.

[0023] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 (rather than the main processor 121) may control at least some of the functions or states related to at least one component among the components of the electronic device 101 (e.g., display module 160, sensor module 176, or communication module 190), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component among the components of the electronic device 101 (e.g., display module 160, sensor module 176, or communication module 190) together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 180 or communication module 190) that is functionally related to the auxiliary processor 123. According to an embodiment, the auxiliary processor 123 (e.g., a neural processing unit) may include a hardware structure dedicated to artificial intelligence model processing. The artificial intelligence model may be generated via machine learning. For example, such learning can be performed by the electronic device 101 where the artificial intelligence is executed or via a separate server (e.g., server 108). The learning algorithm may include, but is not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, for example. The artificial intelligence model may include multiple artificial neural network layers. The 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) or a deep Q network or a combination of two or more thereof, but is not limited thereto. Additionally or optionally, the artificial intelligence model may include a software structure in addition to a hardware structure.

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

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

[0026] The input module 150 may receive commands or data to be used by other components (e.g., the processor 120) of the electronic device 101 from outside (e.g., a user) of the electronic device 101. 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).

[0027] The sound output module 155 can output sound signals 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 playing multimedia or playing records. The receiver may be used to receive incoming calls. Depending on the embodiment, the receiver may be implemented as a separate part from the speaker, or as part of the speaker.

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

[0029] The audio module 170 can convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 can obtain sound via the input module 150, or output sound via the sound output module 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly coupled to the electronic device 101.

[0030] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a user's state) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.

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

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

[0033] The haptic module 179 may convert the electric signal into mechanical stimulation (eg, vibration or motion) or electric stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electric stimulator.

[0034] The camera module 180 may capture still images or moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.

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

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

[0037] The communication module 190 can support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors that can operate independently of the processor 120 (e.g., an application processor (AP)) and support direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate via a first network 198 (e.g., a short-range communication network such as Bluetooth TM , wireless-fidelity (Wi-Fi) direct connection or infrared data association (IrDA)) or a second network 199 (for example, a long-distance communication network, such as a traditional cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (for example, a LAN or a wide area network (WAN)))) to communicate with an external electronic device. These various types of communication modules can be implemented as a single component (for example, a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (for example, multiple chips). The wireless communication module 192 can use user information (for example, international mobile subscriber identity (IMSI)) stored in the user identification module 196 to identify or authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199).

[0038] The wireless communication module 192 can support 5G networks after 4G networks and next-generation communication technologies (e.g., new radio (NR) access technology). NR access technology can support enhanced mobile broadband (eMBB), massive machine type communication (mMTC), or ultra-reliable and low-latency communication (URLLC). The wireless communication module 192 can support high-frequency bands (e.g., millimeter wave bands) to achieve, for example, high data transmission rates. The wireless communication module 192 can support various technologies for ensuring performance on high-frequency bands, such as, for example, beamforming, massive multiple-input multiple-output (massive MIMO), full-dimensional MIMO (full dimensional MIMO, FD-MIMO), array antennas, analog beamforming, or massive antennas. The wireless communication module 192 can support various requirements specified in the electronic device 101, an external electronic device (e.g., electronic device 104), or a network system (e.g., a second network 199). According to an embodiment, the wireless communication module 192 can support a peak data rate for implementing eMBB (e.g., 20 Gbps or greater), loss coverage for implementing mMTC (e.g., 164 dB or less), or U-plane latency for implementing URLLC (e.g., 0.5 ms or less for both downlink (DL) and uplink (UL), or 1 ms or less round trip).

[0039] The antenna module 197 may send a signal or power to the outside of the electronic device 101 (e.g., an external electronic device) or receive a signal or power from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiating element, and the radiating element is formed by a conductor or a conductive pattern formed on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment, the antenna module 197 may include a plurality of antenna (e.g., antenna) arrays. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by, for example, the communication module 190. Then, a signal or power may be sent or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, other parts (e.g., a radiofrequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as part of the antenna module 197.

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

[0041] At least some of the above components can be coupled to each other via an inter-peripheral communication scheme (e.g., a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and transmit signals (e.g., commands or data) therebetween.

[0042] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 coupled to the second network 199. Each of the external electronic devices 102 or 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment, all or some operations to be executed at the electronic device 101 may be executed at one or more of the external electronic devices 102, 104, or 108. For example, if the electronic device 101 should automatically perform a function or service, or should perform a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to perform at least part of the function or service instead of running the function or service, or the electronic device 101 may request the one or more external electronic devices to perform at least part of the function or service in addition to running the function or service. The one or more external electronic devices receiving the request may execute at least part of the requested function or service, or perform additional functions or additional services 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 at least a partial reply to the request in the case of further processing the result or in the case of not further processing the result. To this end, for example, cloud computing technology, distributed computing technology, mobile edge computing (MEC) technology or client-server computing technology may be used. The electronic device 101 may use, for example, distributed computing or mobile edge computing to provide ultra-low latency services. 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 an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart homes, smart cities, smart cars or health care) based on 5G communication technology or IoT-related technologies.

[0043] Figure 2 is a view showing a connection example of Bluetooth-based electronic devices according to an embodiment.

[0044] Reference Figure 2, the electronic device (e.g., electronic device 101) can perform Bluetooth communication using a communication circuit (e.g., communication module 190) that supports Bluetooth communication technology (e.g., Bluetooth Classic or Bluetooth Low Energy (BLE)). In an embodiment, the electronic device 101 can establish a Bluetooth connection with each of one or more external electronic devices (e.g., a tablet computer 210, a display device 220 (e.g., a TV, a personal computer (PC) or a notebook computer), and / or a wearable device 230).

[0045] In an embodiment, the electronic device 101 may establish a Bluetooth connection 215 (e.g., a BLE connection) with the tablet computer 210, and transmit data (e.g., video, image, audio, and / or document files) to the tablet computer 210 via the Bluetooth connection 215, or receive data (e.g., video, image, audio, and / or document files) from the tablet computer 210. In an embodiment, the electronic device 101 may establish a Bluetooth connection 225 (e.g., a BLE connection) with the display device 220, and transmit data (e.g., video, image, audio, and / or document files) to the display device 220 via the Bluetooth connection 225, or receive data (e.g., video, image, audio, and / or document files) from the display device 220. In an embodiment, the electronic device 101 can establish a Bluetooth connection 235 (e.g., a BLE connection) with a wearable device 230 (e.g., a wireless earbud) and send data (e.g., audio and / or control commands) to the wearable device 230 via the Bluetooth connection 235, or can receive data (e.g., audio and / or control commands) from the wearable device 230.

[0046] In an embodiment, each of the Bluetooth connection 215, the Bluetooth connection 225, or the Bluetooth connection 235 may be used to transmit data packets for at least one service (eg, a continuity service, a file sharing service, and / or an audio service).

[0047] Figure 3 is a signal flow chart showing a procedure for establishing a Bluetooth connection according to an embodiment. In an embodiment, the electronic device 101 may be a central device that provides a service, and the external electronic device 300 may be a peripheral device that receives the service. The electronic device 101 and / or the external electronic device 300 may be configured to include, for example Figure 1 one or more components.

[0048] Reference Figure 3 , operation 300 refers to a procedure for advertising and scanning between the electronic device 101 and the external electronic device 300 , and may include at least one of operation 302 , operation 304 , operation 306 , or operation 308 .

[0049] In operation 302, the external electronic device 300 (e.g., tablet computer 210, display device 220, or wearable device 230) may broadcast an advertising signal (e.g., ADV_IND packet) at each designated time period to be discovered by a peripheral Bluetooth device (e.g., referred to as an advertising operation). The advertising signal may include an address (e.g., a media access control (MAC) address) of the external electronic device 300. In an embodiment, the external electronic device 300 may be configured to broadcast the advertising signal until before or even after being connected to a corresponding device (e.g., electronic device 101).

[0050] In operation 304, the electronic device 101 that detects the advertising signal through the scanning operation may send a scanning request signal (e.g., a SCAN_REQ packet) to the external electronic device 300 using the address of the external electronic device 300 included in the advertising signal. In operation 306, the external electronic device 300 may send a scanning response signal (e.g., a SCAN_RSP packet) to the electronic device 101 to allow a Bluetooth connection (e.g., a BLE connection) with the electronic device 101. In operation 308, the electronic device 101 may send a connection request signal (e.g., a CONNECT_REQ packet or a CONNECT_IND packet) for establishing a Bluetooth connection with the external electronic device 300 to the external electronic device 300.

[0051] In operation 310, the electronic device 101 may recognize that a Bluetooth connection (e.g., a BLE connection) is established with the external electronic device 300. In an embodiment, the Bluetooth connection may include an asynchronous connectionless (ACL) link. In an embodiment, when the Bluetooth connection is established, the electronic device 101 may perform a scanning operation or an advertising operation to communicate with another Bluetooth device. In an embodiment, when the Bluetooth connection is established, the external electronic device 300 may perform a scanning operation or an advertising operation to communicate with another Bluetooth device.

[0052] In operation 312, the electronic device 101 may send a service request packet (e.g., a general attribute profile (GATT) service discovery packet) to the external electronic device 300 via the Bluetooth connection in order to use the desired service (e.g., send a data packet) via the Bluetooth connection. In operation 314, the electronic device 101 may receive a service response packet (e.g., a GATT service discovery response packet) from the external electronic device 300 and determine to start the service via the Bluetooth connection. In an embodiment, operations 312 and 314 may refer to a procedure for establishing a logical connection (e.g., a service) on a physical connection after a connection procedure for establishing a physical connection (e.g., a Bluetooth connection).

[0053] In operation 316 , the electronic device 101 and the external electronic device 300 may exchange data packets for services through the Bluetooth connection. In an embodiment, the electronic device 101 may send data packets to the external electronic device 300 , and the external electronic device 300 may receive data packets from the electronic device 101 .

[0054] In an embodiment, when a Bluetooth connection is established with an external electronic device 300 and a first service (e.g., a continuity service) is provided, the electronic device 101 may receive a new advertising signal from the external electronic device 300 and attempt to establish an additional Bluetooth connection for a second service (e.g., a file sharing service) with the external electronic device 300. In an embodiment, if a previous advertising signal received during a previous Bluetooth connection and a new advertising signal are received from the same external electronic device 300, a connection request additionally generated by the electronic device 101 for the external electronic device 300 in the state of the existing Bluetooth connection may fail.

[0055] Figure 4 is a signal flow diagram illustrating providing a service over a Bluetooth connection according to an embodiment.

[0056] Reference Figure 4 In operation 402, the external electronic device 300 may broadcast an advertising signal (e.g., ADV_IND) at each specified time period (e.g., advertising interval) to be discovered by peripheral Bluetooth devices. In an embodiment, the advertising signal broadcast by the external electronic device 300 may include a random private address (RPA) for privacy of Bluetooth communication, rather than a fixed and unique MAC address of the external electronic device 300. The RPA may be generated using a random number and an IRK and will not be tracked by an attacker. The RPA may be parsed by the electronic device 101 that knows the IRK and used to identify the external electronic device 300.

[0057] In an embodiment, the IRK may be shared between the electronic device 101 and the external electronic device 300 and stored in an internal memory (e.g., memory 130) of each of the electronic device 101 and the external electronic device 300. In an embodiment, at least one of the electronic device 101 and the external electronic device 300 may store a message including a message received from a server (e.g., Figure 1 In an embodiment, at least one of the electronic device 101 and the external electronic device 300 may store an IRK list including at least one IRK set by a manufacturer.

[0058] In an embodiment, the external electronic device 300 may store one or more RPAs according to supportable service types, and may broadcast an advertisement signal including a different RPA for each service type.

[0059] In operation 404, the electronic device 101 may start a scanning operation to identify whether there is a peripheral Bluetooth device that supports Bluetooth communication (e.g., BLE communication). In an embodiment, the electronic device 101 may start a scanning operation in operation 404 based on recognizing that a specific service (e.g., a continuity service) that requires Bluetooth communication is activated. In an embodiment, the electronic device 101 may start a scanning operation in operation 404 based on recognizing that a specific application (e.g., a file sharing application for a file sharing service) that requires Bluetooth communication is running.

[0060] In operation 406, the electronic device 101 may receive an advertisement signal (e.g., ADV_IND) broadcasted by the external electronic device 300 through a scanning operation. In an embodiment, the electronic device 101 may identify the external electronic device 300 based on the RPA included in the advertisement signal. In an embodiment, the electronic device 300 may recognize that the RPA is resolvable using a previously known IRK.

[0061] In an embodiment, the electronic device 101 may parse the advertisement signal to identify that the advertisement signal includes an advertisement packet having a packet format supporting a desired service (e.g., a continuity service or a file sharing service), and determine whether a connection with the external electronic device 300 is required based on the advertisement signal. When it is determined that a connection with the external electronic device 300 is necessary, the electronic device 101 may perform operations 408 and 410. When it is determined that a connection with the external electronic device 300 is not necessary or a connection with the external electronic device 300 already exists, operations 408 and 410 may be omitted.

[0062] In operation 408, the electronic device 101 may send a connection request packet (e.g., a CONNECT_REQ packet or a CONNECT_IND packet in operation 308) to the external electronic device 300. In an embodiment, the connection request packet may include the RPA of the external electronic device 330 in the receiving address field. In an embodiment, the connection request packet may include one or more parameters (e.g., at least one of a window size, a window offset, or a timeout) to be used for the connection between the electronic device 101 and the external electronic device 300. In operation 410, the external electronic device 300 may send a connection response packet (e.g., an ACK packet) indicating that the connection request of the electronic device 101 is allowed to the electronic device 101 in response to the connection request packet. When information indicating that the connection request is allowed is included in the connection response packet, the electronic device 101 may recognize that a Bluetooth connection (e.g., a BLE connection) with the external electronic device 300 is established, and the electronic device 101 and the external electronic device 300 may operate in a connection mode.

[0063] In an embodiment, the electronic device 101 may proceed to operation 412 to start a service based on Bluetooth communication with the external electronic device 300. In an embodiment, when a file sharing application is running, the electronic device 101 may proceed to operation 412. In an embodiment, the electronic device 101 may determine the start of the service in response to a user input for starting Bluetooth communication (e.g., activation of a continuity service), or determine the start of the service according to a background operation (e.g., updating a data file to be synchronized according to a continuity service).

[0064] In operation 412, the electronic device 101 may transmit a service search request packet (e.g., GATT service discovery or CoC connection request) for searching for at least one service provided by the external electronic device 300 to the external electronic device 300 through a Bluetooth connection. According to an embodiment, the service search request packet may include service profile information about the electronic device 101. In operation 414, the external electronic device 300 may transmit a service search response packet corresponding to the service search request packet to the electronic device 101. In an embodiment, the service search response packet may include service profile information about the external electronic device 300.

[0065] In an embodiment, the profile information about the electronic device 101 may include one or more service elements, and the one or more service elements may include one or more characteristic elements. The one or more service elements may include information about one or more services provided by the electronic device 101 (e.g., a file sharing service or a continuity service), and the one or more characteristic elements may include data related to the corresponding service (e.g., at least a portion of a data file).

[0066] In operation 416 , the electronic device 101 may provide a service to the external electronic device 300 based on the exchange of service profile information (eg, transmit at least a portion of a data file to be shared in a file sharing service or a data file to be synchronized in a continuity service).

[0067] In an embodiment, one or more characteristic elements included in the profile information about the electronic device 101 may have an attribute value. For example, the attribute value may be an indication of at least one of a read operation and a write operation. The external electronic device 300 may receive a data packet from the electronic device 101 or send a data packet to the electronic device 101 based on the attribute value of at least one of the one or more characteristic elements.

[0068] Figure 5 is a signal flow diagram illustrating a Bluetooth connection failure according to an embodiment.

[0069] Reference Figure 5 In operation 502, the external electronic device 300 may broadcast a first advertising signal (e.g., ADV_IND (RPA1)) at each designated period (e.g., advertising interval) to be discovered by the peripheral Bluetooth device. In an embodiment, the first advertising signal may include a first RPA (e.g., RPA1) of the external electronic device 300. In an embodiment, the first advertising signal may be in accordance with a designated packet format (e.g., RPA1) indicating that the external electronic device 300 supports a specific first service (e.g., continuity service). Figure 8 In an embodiment, the first RPA may be configured to be used for a specific first service (eg, a continuity service) in the external electronic device 300 .

[0070] In operation 504, the electronic device 101 may determine to start the first service. For example, when the first service is a continuity service, and the electronic device 101 detects that the continuity service is activated according to user input or system settings, the electronic device 101 may proceed to operation 506. In operation 506, the electronic device 101 starts a scanning operation, and in operation 508, the electronic device 101 may receive a first advertisement signal (e.g., ADV_IND(RPA1)) from the external electronic device 300 through a scanning operation. In an embodiment, the electronic device 101 may recognize that the external electronic device 300 supports the first service based on the first advertisement signal. In an embodiment, when the first advertisement signal of a specified format corresponding to the first service is successfully parsed, the electronic device 101 may determine that the external electronic device 300 that has sent the first advertisement signal supports the first service.

[0071] In operation 510, the electronic device 101 may send a first connection request packet (e.g., a CONNECT_REQ packet or a CONNECT_IND packet) for a first service to the external electronic device 300. In an embodiment, the connection request packet may include a first RPA. The first Bluetooth connection between the electronic device 101 and the external electronic device 300 may be established based on the first connection request packet.

[0072] In operation 512, the electronic device 101 may transmit a first service request packet (e.g., at least one of a GATT service discovery or a CoC connection request) for a first service to the external electronic device 300 through the first Bluetooth connection. In operation 514, the external electronic device 300 may transmit a service response packet (e.g., at least one of a GATT service discovery response or a CoC connection response) corresponding to the service request packet to the electronic device 101.

[0073] In operation 516 , the electronic device 101 may provide a first service (eg, transmit at least a portion of a data file to be synchronized according to the continuity service) to the external electronic device 300 through the first Bluetooth connection.

[0074] Figure 5 An embodiment is shown in which the electronic device 101 receives a first advertisement signal from the external electronic device 300 and sends a first connection request packet and a first service request packet to the external electronic device 300, but the electronic device 101 may establish a first Bluetooth connection with the external electronic device 300 and perform a first service according to various embodiments. In an embodiment, the electronic device 101 may broadcast a first advertisement signal indicating that the first service is supported, and may receive a first connection request packet from the external electronic device 300 that has received the first advertisement signal to establish a first Bluetooth connection with the external electronic device 300. In an embodiment, the electronic device 101 may start the first service via the first Bluetooth connection by receiving a first service request packet from the external electronic device 300 via the first Bluetooth connection and sending a first service response packet to the external electronic device 300.

[0075] In operation 518, the external electronic device 300 may broadcast a second advertisement signal (e.g., ADV_IND(RPA2)) including a second RPA according to a specified period (e.g., an advertisement interval) separately from the transmission of a first advertisement signal (e.g., ADV_IND(RPA1)) including a first RPA. In an embodiment, if a specified second service is activated (e.g., when a user turns on the second service), the external electronic device 300 may start broadcasting the second advertisement signal. In an embodiment, if a specified second service is activated (e.g., if a user turns on the second service), the external electronic device 300 may wait to receive a packet (e.g., an advertisement request packet) requesting an advertisement operation from the electronic device 101. In an embodiment, if a specified second service is activated (e.g., if a user turns on the second service), the electronic device 101 may send an advertisement request packet to the external electronic device 300. In an embodiment, the external electronic device 300 may initiate an advertisement operation of broadcasting a second advertisement signal in response to receiving an advertisement request packet from the electronic device 101.

[0076] In an embodiment, the second advertisement signal may be in accordance with a specified packet format (eg, Figure 8 In an embodiment, the second RPA may be configured to be used for a specific second service (e.g., a file sharing service) in the external electronic device 300. In an embodiment, the external electronic device 300 may broadcast a second advertising signal and may support the second service at the same time.

[0077] In operation 520, the electronic device 101 may receive a second advertisement signal (e.g., ADV_IND (RPA2)) from the external electronic device 300. In an embodiment, the electronic device 101 may continuously perform a scanning operation in operation 506 to receive the second advertisement signal. In an embodiment, the electronic device 101 may recognize that the external electronic device 300 supports the second service based on the second advertisement signal. In an embodiment, when the second advertisement signal of the specified format corresponding to the second service is successfully parsed, the electronic device 101 may determine that the external electronic device 300 that has sent the second advertisement signal supports the second service.

[0078] In operation 522, when the first service (e.g., continuity service) is provided to the external electronic device 300 through the first Bluetooth connection, the electronic device 101 may determine to start the second service. For example, when the second service is a file sharing service, and the electronic device 101 detects that the file sharing service is activated according to user input (e.g., user input for selecting a data file for the file sharing service) or system settings, the electronic device 101 may proceed to operation 526. In an embodiment, operation 522 may be performed before operation 520. For example, when the second service is a file sharing service, and the electronic device 101 detects that the file sharing service is activated according to user input or system settings, the electronic device 101 may proceed to operation 520.

[0079] In an embodiment, before operations 518 and 520, after determining to start the second service in operation 522, the electronic device 101 may request an advertisement operation from the external electronic device 300. The external electronic device 300 may start an advertisement operation in operation 518 based on the request, and broadcast a second advertisement signal including a second RPA in operation 520. The electronic device 101 may proceed to operation 524 based on receiving the second advertisement signal.

[0080] In operation 524, the electronic device 101 may send a second connection request packet (e.g., a CONNECT_REQ packet or a CONNECT_IND packet) for a second service to the external electronic device 300. In an embodiment, the connection request packet may include a second RPA. In an embodiment, since there is a first Bluetooth connection already established between the electronic device 101 and the external electronic device 300, the connection request according to the second connection request packet may fail. In an embodiment, the external electronic device 300 may not allow the connection request according to the second connection request packet based on the fact that the external electronic device 101 is already connected (e.g., there is a previously established first Bluetooth connection). In an embodiment, the external electronic device 300 may ignore the second connection request packet.

[0081] Although not shown, in an embodiment, the external electronic device 300 may send a second connection response packet indicating a connection error or not allowing the connection request according to the second connection request packet to the electronic device 101. Although not shown, in an embodiment, the electronic device 101 may block or omit the sending of the second connection request packet based on the fact that it is already connected to the same external electronic device 300 (for example, there is a previously established first Bluetooth connection). In an embodiment, when there is only one Bluetooth connection between the electronic device 101 and the external electronic device 300, the electronic device 101 may not send a connection request (for example, a second connection request packet) to the external electronic device 300 that is already connected.

[0082] In an embodiment, the electronic device 101 may recognize that the connection request for the second service has failed based on receiving a second connection response packet indicating that the connection request is not allowed or a connection error or not receiving a response packet corresponding to the second connection request packet. The electronic device 101 may visually, audibly and / or tactilely output a notification indicating that the connection request for the second service has failed for the user (e.g., "the connection with the external electronic device 300 has failed"). In an embodiment, the electronic device 101 may provide the user with the reason why the connection request for the second service has failed (e.g., "the connection with the external electronic device 300 already exists").

[0083] Figure 6 is a signal flow diagram illustrating additional services connected through Bluetooth according to an embodiment.

[0084] Reference Figure 6 In operation 600, the electronic device 101 may obtain an IRK list (eg, a parsed list) including at least one IRK that can be used for Bluetooth communication. In an embodiment, at least one IRK in the IRK list may be obtained from a server (eg, Figure 1 In an embodiment, at least one IRK in the IRK list may be received from a corresponding device (eg, external electronic device 300) during a previous connection. In an embodiment, at least one IRK in the IRK list may be set by a manufacturer.

[0085] In operation 602, the external electronic device 300 may broadcast a first advertising signal (e.g., ADV_IND (RPA1)) at each designated period (e.g., advertising interval) to be discovered by the peripheral Bluetooth device. In an embodiment, the first advertising signal may include a first RPA (e.g., RPA1) of the external electronic device 300. In an embodiment, the first advertising signal may be in accordance with a designated packet format (e.g., RPA1) indicating that the external electronic device 300 supports a specific first service (e.g., continuity service). Figure 8 In an embodiment, the first RPA may be configured to be used for a specific first service (eg, a continuity service) in the external electronic device 300 .

[0086] In operation 604, the electronic device 101 may determine to start the first service. For example, when the first service is a continuity service, and the electronic device 101 detects that the continuity service is activated according to a user input or a system setting, the electronic device 101 may proceed to operation 606. In operation 606, the electronic device 101 starts a scanning operation, and in operation 608, the electronic device 101 may receive a first advertisement signal (e.g., ADV_IND(RPA1)) from the external electronic device 300 through the scanning operation. In an embodiment, the first advertisement signal may include Figure 8 The advertisement packet 800 is shown. In an embodiment, the electronic device 101 may recognize that the external electronic device 300 supports the first service based on the first advertisement signal. In an embodiment, when the first advertisement signal of the specified format corresponding to the first service is successfully parsed, the electronic device 101 may determine that the external electronic device 300 that has sent the first advertisement signal supports the first service. In an embodiment, the electronic device 101 may parse the first RPA using at least one IRK in the IRK list obtained in operation 600, and recognize that the first RPA is parsed normally.

[0087] In an embodiment, the first RPA may be 48 bits, the upper 24 bits may represent a random portion (e.g., prand) including a 22-bit random value and two fixed bits (e.g., 0 and 1), and the lower 24 bits may represent a hash portion (e.g., hash value) generated using prand and IRK. In an embodiment, the electronic device 101 may calculate a local hash value (e.g., localHash) by performing a specified hash operation using at least one IRK in the IRK list and prand as input.

[0088] localHash=ah(IRK,prand)

[0089] Here, ah can represent a specified hash operation.

[0090] The local hash value is compared with the hash value in the first RPA, and when the local hash value matches the hash value in the first RPA, the electronic device 101 can determine that the external electronic device 300 can be identified using the first RPA. In an embodiment, when the electronic device 101 has one or more IRKs stored in the IRK list, the electronic device 101 can repeat this operation for each stored IRK until the IRK corresponding to the first RPA is determined. In an embodiment, the electronic device 101 can store the IRK used in the resolution of the first RPA (e.g., the first IRK) in association with the first RPA.

[0091] In operation 610, the electronic device 101 may send a first connection request packet (e.g., a CONNECT_REQ packet or a CONNECT_IND packet) for a first service to the external electronic device 300. In an embodiment, the connection request packet may include a first RPA. A first Bluetooth connection between the electronic device 101 and the external electronic device 300 may be established based on the first connection request packet. In an embodiment, the first Bluetooth connection may include an ACL link.

[0092] In operation 612, the electronic device 101 may transmit a first service request packet (e.g., at least one of a GATT service discovery or a CoC connection request) for a first service to the external electronic device 300 through the first Bluetooth connection. In operation 614, the external electronic device 300 may transmit a service response packet (e.g., at least one of a GATT service discovery response or a CoC connection response) corresponding to the service request packet to the electronic device 101.

[0093] In operation 616 , the electronic device 101 may provide a first service (eg, transmit at least a portion of a data file to be synchronized according to the continuity service) to the external electronic device 300 through the first Bluetooth connection.

[0094] Figure 6 An embodiment is shown in which the electronic device 101 receives a first advertisement signal from the external electronic device 300 and transmits a first connection request packet and a first service request packet, but the electronic device 101 may establish a first Bluetooth connection with the external electronic device 300 and perform a first service according to various embodiments. In an embodiment, the electronic device 101 may broadcast a first advertisement signal indicating that the first service is supported, and may receive a first connection request packet from the external electronic device 300 that has received the first advertisement signal to establish a first Bluetooth connection with the external electronic device 300. In an embodiment, the electronic device 101 may start the first service via the first Bluetooth connection by receiving a first service request packet from the external electronic device 300 via the first Bluetooth connection and transmitting a first service response packet to the external electronic device 300.

[0095] In operation 618, the external electronic device 300 may broadcast a second advertisement signal (e.g., ADV_IND(RPA2)) including a second RPA according to a specified time period (e.g., an advertisement interval) separately from the transmission of a first advertisement signal (e.g., ADV_IND(RPA1)) including a first RPA. In an embodiment, if a specified second service is activated (e.g., when a user turns on the second service), the external electronic device 300 may start broadcasting the second advertisement signal. In an embodiment, if a specified second service is activated (e.g., if a user turns on the second service), the external electronic device 300 may wait to receive a packet (e.g., an advertisement request packet) requesting an advertisement operation from the electronic device 101. In an embodiment, if a specified second service is activated (e.g., if a user turns on the second service), the electronic device 101 may send an advertisement request packet to the external electronic device 300. In an embodiment, the external electronic device 300 may initiate an advertisement operation of broadcasting a second advertisement signal in response to receiving an advertisement request packet from the electronic device 101.

[0096] In an embodiment, the second advertisement signal may be in accordance with a specified packet format (eg, Figure 8 In an embodiment, the second RPA may be configured to be used for a specific second service (e.g., a file sharing service) in the external electronic device 300. In an embodiment, the external electronic device 300 may broadcast a second advertising signal and may support the second service at the same time.

[0097] In operation 620, the electronic device 101 may receive a second advertisement signal (eg, ADV_IND (RPA2)) from the external electronic device 300. In an embodiment, the electronic device 101 may continuously perform a scanning operation in operation 606 to receive the second advertisement signal. In an embodiment, the second advertisement signal may include Figure 8 The advertisement packet 800 is shown. In an embodiment, the electronic device 101 may recognize that the external electronic device 300 supports the second service based on the second advertisement signal. In an embodiment, when the second advertisement signal of the specified format corresponding to the second service is successfully parsed, the electronic device 101 may determine that the external electronic device 300 that has sent the second advertisement signal supports the second service.

[0098] In operation 622, when the first service (e.g., a continuity service) is provided to the external electronic device 300 through the first Bluetooth connection, the electronic device 101 may determine to start the second service. For example, when the second service is a file sharing service, and the electronic device 101 detects that the file sharing service is activated according to user input (e.g., user input for selecting a data file for the file sharing service) or system settings, the electronic device 101 may proceed to operation 624. In an embodiment, operation 622 may be performed before operation 620. For example, when the second service is a file sharing service, and the electronic device 101 detects that the file sharing service is activated according to user input or system settings, the electronic device 101 may proceed to operation 620.

[0099] In operation 624, the electronic device 101 may recognize that the second advertising signal is broadcast from the external electronic device 300 associated with the first advertising signal and that a first Bluetooth connection has been previously established with the external electronic device 300. In an embodiment, the first Bluetooth connection may be established based on a connection request from the electronic device 101 or a connection request from the external electronic device 300. In an embodiment, operation 624 may include Figure 7 Operation 715.

[0100] In an embodiment, the electronic device 101 may resolve the second RPA using at least one IRK in the IRK list obtained in operation 600, and identify that the second RPA is resolved normally. In an embodiment, by performing a hash operation based on a prand in the second RPA and one IRK in the IRK list (e.g., the second IRK) to determine a local hash value, and identifying that the local hash value matches the hash value in the second RPA, the electronic device 101 may determine that the external electronic device 300 can be identified using the second RPA. In an embodiment, by identifying that the second IRK and the first IRK associated with the first Bluetooth connection previously established are the same, the electronic device 101 may determine that it is already connected to the same external electronic device 300. In an embodiment, the electronic device 101 may determine to provide a second service using an existing connection (e.g., a first Bluetooth connection) with the external electronic device 300 based on already being connected to the same external electronic device 300.

[0101] In operation 626, the electronic device 101 may send a second service request packet (e.g., at least one of a GATT service discovery packet or a CoC connection request packet) for the second service to the external electronic device 300 through the first Bluetooth connection. In operation 628, the electronic device 101 may receive a service response packet (e.g., at least one of a GATT service discovery response packet or a CoC connection response packet) from the external electronic device 300 and determine to start the second service through the first Bluetooth connection.

[0102] In operation 630, the electronic device 101 and the external electronic device 300 may exchange data packets for the second service (e.g., at least a portion of a data file to be shared according to a file sharing service) through the first Bluetooth connection. In an embodiment, the electronic device 101 may send data packets to the external electronic device 300, and the external electronic device 300 may receive data packets from the electronic device 101. Although not shown, the first service may be continuously performed between the electronic device 101 and the external electronic device 300. In an embodiment, the electronic device 101 may send or receive data packets for the first service through the first Bluetooth connection, and may also send or receive data packets for the second service through the first Bluetooth connection.

[0103] Figure 7 is a signal flow chart showing a procedure for providing additional services through a Bluetooth connection according to an embodiment. At least one operation to be described below may be executed by the processor 120 of the electronic device 101. According to an embodiment, at least one operation to be described below may be omitted, modified, or ordered.

[0104] Reference Figure 7 In operation 705, the electronic device 101 (e.g., the processor 120) may obtain an IRK list (e.g., a parsed list) including at least one IRK that can be used for Bluetooth communication. In an embodiment, the IRK list may be stored in a memory (e.g., the memory 130) of the electronic device 101. In an embodiment, at least one IRK in the IRK list may be obtained from a server (e.g., Figure 1 In an embodiment, at least one IRK in the IRK list may be obtained from a corresponding device (e.g., an external electronic device 300). In an embodiment, at least one IRK in the IRK list may be set by a manufacturer. When the IRK list is previously stored in the electronic device 101, operation 705 may be omitted.

[0105] In operation 710, the electronic device 101 (e.g., the processor 120) may start a scanning operation and receive a second advertising signal through the scanning operation. In an embodiment, the electronic device 101 (e.g., the processor 120) may start a scanning operation based on determining to start a first service (e.g., a continuity service). In an embodiment, the second advertising signal may include an address (e.g., a second RPA (RPA2)) of a sender (e.g., the external electronic device 300). In an embodiment, the electronic device 101 (e.g., the processor 120) may use one IRK (e.g., the second IRK) in the IRK list obtained in operation 705 to resolve the second RPA.

[0106] In an embodiment, the electronic device 101 (e.g., the processor 120) may start a scanning operation while establishing a first Bluetooth connection (e.g., a BLE connection) with the external electronic device 300 and providing a first service (e.g., a continuity service) through the first Bluetooth connection. In an embodiment, the first Bluetooth connection may be established based on a first advertising signal from the external electronic device 300. In an embodiment, the first advertising signal may include a first RPA RPA1, and the electronic device 101 (e.g., the processor 120) may pre-store that the first RPA is resolved by an IRK (e.g., the first IRK) in the IRK list. In an embodiment, the first Bluetooth connection may be established based on a connection request from the electronic device 101 (e.g., the processor 120) or a connection request from the external electronic device 300. In an embodiment, when the first Bluetooth connection is established, the electronic device 101 (e.g., the processor 120) may store that the external electronic device 300 is identified using the first RPA.

[0107] In operation 715, the electronic device 101 (e.g., the processor 120) may determine whether to perform a connection procedure for the second service with a corresponding device (e.g., the external electronic device 300) identified by the second RPA RPA2. In an embodiment, the electronic device 101 (e.g., the processor 120) may determine whether to use a previously established Bluetooth connection to perform the second service through operation 715. In an embodiment, operation 715 may include at least one of operation 720, operation 725, and operation 730.

[0108] In operation 720, the electronic device 101 (e.g., the processor 120) may determine whether a second Bluetooth connection (e.g., a BLE connection) with the external electronic device 300 is required. In an embodiment, the electronic device 101 may recognize that the external electronic device 300 supports the second service based on the second advertising signal. In an embodiment, when the electronic device 101 (e.g., the processor 120) determines to start a second service (e.g., a file sharing service) for the external electronic device 300, the electronic device 101 may determine that it is necessary to connect to the external electronic device 300 using Bluetooth communication for the second service. In an embodiment, when the electronic device 101 (e.g., the processor 120) detects activation of the second service according to user input or system settings, detects that the second service is a continuity service, and detects a change or update of a data file to be synchronized according to the continuity service, or the second service is a file sharing service and it is necessary to send a data file according to the file sharing service, the electronic device 101 (e.g., the processor 120) may determine that a Bluetooth connection with the external electronic device 300 is required.

[0109] When it is determined that the Bluetooth connection is necessary, the electronic device 101 (eg, the processor 120) may proceed to operation 725. When the Bluetooth connection is not required, the electronic device 101 (eg, the processor 120) may terminate the program.

[0110] In operation 725, the electronic device 101 (e.g., the processor 120) may determine whether there is an existing Bluetooth connection (e.g., a first Bluetooth connection) with the external electronic device 300. When it is detected in operation 725 that the external electronic device 300 is not previously connected, the electronic device 101 (e.g., the processor 120) may proceed to operation 735. In an embodiment, the electronic device 101 (e.g., the processor 120) may recognize that the electronic device 101 communicates with the external electronic device 300 through the first Bluetooth connection and the first RPA for the first Bluetooth connection. When it is recognized that there is a first Bluetooth connection, the electronic device 101 (e.g., the processor 120) may proceed to operation 730.

[0111] In operation 730, the electronic device 101 (e.g., the processor 120) may determine whether the second advertising signal is broadcast from the external electronic device 300 that established the first Bluetooth connection. In an embodiment, the electronic device 101 (e.g., the processor 120) may determine whether the external electronic device 300 that established the first Bluetooth connection is the same as the corresponding device that has sent the second advertising signal based on the first RPA used for the first Bluetooth connection and the second RPA included in the second advertising signal. In an embodiment, if the resolution of the first RPA and the second RPA using one IRK (e.g., the first IRK) in the IRK list obtained in operation 705 is successful, the electronic device 101 (e.g., the processor 120) may determine that the second advertising signal is received from the external electronic device 300 that is already connected.

[0112] In an embodiment, the electronic device 101 (e.g., the processor 120) may attempt to resolve the second RPA using each IRK in the IRK list obtained in operation 705, and may identify that the second RPA can be resolved using, for example, the second IRK. In an embodiment, the electronic device 101 (e.g., the processor 120) may determine a local hash value by performing a hash operation based on a prand in the second RPA and one IRK in the IRK list (e.g., the second IRK), and identify that the local hash value matches the hash value in the second RPA. In an embodiment, based on the second IRK and the first IRK associated with the previously established first Bluetooth connection being the same, the electronic device 101 (e.g., the processor 120) may determine that the external electronic device 300 that established the first Bluetooth connection and the corresponding device that has sent the second advertising signal are the same.

[0113] For example, the IRK list may include the following IRKs.

[0114] IRK[1]:6f17954ef9b03e48ab4e5fbd49a47826

[0115] IRK[2]: 9ac9472eb1899290835645932c4ad246

[0116] IRK[3]:1025944A210379D528CBAAC50108D4B1

[0117] For example, the first RPARPA1 of the existing Bluetooth connection and the second RPARPA2 included in the newly received second advertisement signal may be as follows.

[0118] RPA1=6C:0F:74:05:9F:E4

[0119] RPA2=71:C5:00:5E:6B:3E

[0120] The results of parsing each RPA can be as follows.

[0121] IRK[1]->RPA1 parsing failed, RPA2 parsing failed

[0122] IRK[2]->RPA1 parsing failed, RPA2 parsing failed

[0123] IRK[3]->RPA1 parsed successfully, RPA2 parsed successfully

[0124] Based on the successful resolution of RPA1 and RPA2 using IRK[3], the electronic device 101 can recognize that the second advertisement signal is received from the existing connected external electronic device 300.

[0125] Based on determining that the external electronic device 300 that establishes the first Bluetooth connection and the corresponding device that has sent the second advertising signal are the same, the electronic device 101 (e.g., the processor 120) can proceed to operation 740 to use the first Bluetooth connection to provide the second service instead of establishing a new Bluetooth connection. On the other hand, when the external electronic device 300 that establishes the first Bluetooth connection and the corresponding device that has sent the second advertising signal are different, the electronic device 101 (e.g., the processor 120) can proceed to operation 735.

[0126] In operation 735, the electronic device 101 (e.g., the processor 120) may establish a second Bluetooth connection (e.g., a new ACL link) by performing a second connection procedure with the external electronic device 300. In an embodiment, the second connection procedure may include sending a connection request packet (e.g., a CONNECT_REQ packet or a CONNECT_IND packet) to the external electronic device 300 and receiving a connection response packet from the external electronic device 300.

[0127] In operation 740, the electronic device 101 (e.g., the processor 120) may perform a second service search procedure for the second service on the external electronic device 300. In an embodiment, the second service search procedure may include sending a second service request packet (e.g., a GATT service discovery packet or a CoC connection request packet) to the external electronic device 300 using a second RPA and receiving a second service response packet (e.g., a GATT service discovery response packet or a CoC connection response packet). In an embodiment, the second service search procedure may include Fig. 10A In an embodiment, the second service search procedure may include operations 1002 and 1004. Fig. 10B Operations 1012, 1014, 1016, 1018, 1020, and 1022 of the service search program.

[0128] In an embodiment, based on recognizing that there is a first Bluetooth connection with the external electronic device 300 that has transmitted the second advertising signal including the second RPA RPA2 (e.g., when "yes" in operation 730), the electronic device 101 (e.g., the processor 120) may transmit the second service request packet through the first Bluetooth connection without establishing a new Bluetooth connection. In an embodiment, when the electronic device 101 (e.g., the processor 120) does not have a Bluetooth connection (e.g., when "no" in operation 725), or has not yet been connected to the external electronic device 300 (e.g., when "no" in operation 730), the electronic device 101 (e.g., the processor 120) may transmit the second service request packet through the second Bluetooth connection established in operation 735.

[0129] After executing the second service search procedure, in operation 745, the electronic device 101 and the external electronic device 300 may exchange data packets for the second service (e.g., at least a portion of a data file to be shared according to the file sharing service) through the first Bluetooth connection or the second Bluetooth connection. In an embodiment, the electronic device 101 may send data packets to the external electronic device 300, and the external electronic device 300 may receive data packets (e.g., Fig. 10A Operation 1006 or Fig. 10BIn an embodiment, the external electronic device 300 may send a data packet to the electronic device 101, and the electronic device 101 may receive a data packet from the external electronic device 300 (eg, Fig. 10A Operation 1008 or Fig. 10B In an embodiment, the electronic device 101 may send or receive data packets for the first service through the first Bluetooth connection, and may also send or receive data packets for the second service through the first Bluetooth connection or the second Bluetooth connection.

[0130] Figure 8 is a view showing a packet format of an advertisement signal according to an embodiment.

[0131] Reference Figure 8 , the advertising packet 800 (eg, the first advertising signal or the second advertising signal) may include at least one of a preamble field 802 , an access address field 804 , a protocol data unit (PDU) field 806 , or a cyclical redundancy check (CRC) field 808 .

[0132] The preamble field 802 may include one byte of information for performing frequency synchronization and / or symbol timing estimation in an electronic device (e.g., the electronic device 101) that has received the advertisement packet 800. In an embodiment, the preamble field 802 may include a fixed one-byte sequence configured in the form of alternating bits 0 and 1 based on the access address included in the access address field 804. For example, when the access address included in the access address field 804 starts with 1, the preamble field 802 may include "101010", and when the access address included in the access address field 804 starts with 0, the preamble field 802 may include "01010101".

[0133] The access address field 804 may include a 4-byte access address given for the advertisement packet 800. In an embodiment, the access address field 804 may include a fixed value given for the advertisement packet type (eg, 0x8E89BED6).

[0134] The PDU field 806 may have a variable length from a minimum of 2 bytes to a maximum of 39 bytes. In an embodiment, the PDU field 806 may include an advertising physical channel PDU. The CRC field 608 may include a 3-byte CRC code for detecting an error in the advertising packet 800 received from the external electronic device 300.

[0135] In an embodiment, the PDU field 806 may include a 2-byte header field 810 and a payload field 812 that can have a length of up to 37 bytes. In an embodiment, the header field 810 may include information indicating the type and length of data included in the payload field 812. In an embodiment, the header field 810 may include information indicating that the type of data included in the payload field 812 is advertising data.

[0136] In an embodiment, the payload field 812 may have a variable length of 37 bytes or less, and may include an advertisement address (AdvA) field 814 and an advertisement data (AdvData) field 816. The AdvA field 814 may include an address 818 of the external electronic device 300 that broadcasts the advertisement packet 800. In an embodiment, the address 818 of the external electronic device 300 may be a fixed MAC address or RPA.

[0137] In an embodiment, the AdvData field 816 may include up to 31 bytes of advertising data 820, and the advertising data 820 may be composed of one or more (e.g., N) advertising data (AD) elements. Each AD element may include a length field, a type field, and an AD data field. In an embodiment, the length field may be an indication of the length of the AD data field, and the type field may be an indication of the advertising type (e.g., AD_type) of the data included in the AD data field. Table 1 shows the value of the type field according to an embodiment.

[0138] [Table 1]

[0139]

[0140] Fig.9A is a view showing a payload format of an advertisement packet according to an embodiment.

[0141] Reference Fig.9A, the advertising packet 800 (e.g., the first advertising signal or the second advertising signal) may include, for example, an RPA 918 (e.g., the first RPA or the second RPA) and first advertising data 920a in the payload field 812. In an embodiment, when the external electronic device 300 supports a continuity service, the first advertising data 920a may include, for example, AD_type 902 set to "manufacturer specific data" of Table 1, a manufacturer ID (manu_id) 904, and data 906 having a specified data style. The electronic device 101 may receive the advertising packet 800 (e.g., the first advertising signal or the second advertising signal) including the first advertising data 920a, and may recognize that the external electronic device 300 supports the continuity service based on the first advertising data 920a. In an embodiment, when the external electronic device 300 supports a file sharing service, the electronic device 101 may recognize that the external electronic device 300 supports the file sharing service based on the first advertising data 920a in a similar manner.

[0142] Fig. 9B is a view showing a payload format of an advertisement packet according to an embodiment.

[0143] Reference Fig. 9B , the advertising packet 800 (e.g., the first advertising signal or the second advertising signal) may include, for example, an RPA 918 (e.g., the first RPA or the second RPA) and second advertising data 920B in the payload field 812. In an embodiment, when the external electronic device 300 supports a continuity service, the second advertising data 920b may include, for example, AD_type 912 set to "Service UUID" of Table 1, UUID 914 set to a value indicating a continuity service, and data 916. The electronic device 101 may receive the advertising packet 800 (e.g., the first advertising signal or the second advertising signal) including the second advertising data 920b, and may recognize that the external electronic device 300 supports the continuity service based on the second advertising data 920b. In an embodiment, when the external electronic device 300 supports a file sharing service, the electronic device 101 may recognize that the external electronic device 300 supports the file sharing service based on the second advertising data 920b in a similar manner.

[0144] Fig. 10A is a signal flow chart showing an example of a service search procedure through Bluetooth according to an embodiment. According to an embodiment, at least one operation to be described below may be omitted, modified, or ordered.

[0145] Reference Fig. 10AIn operation 1002, the electronic device 101 may send a service search request packet (e.g., a GATT service discovery packet) for a second service (e.g., a file sharing service) to the external electronic device 300 through the first Bluetooth connection, while providing a first service (e.g., a continuity service) through the first Bluetooth connection in a state where the first Bluetooth connection with the external electronic device 300 is established. In operation 1004, the external electronic device 300 may send a service search response packet including service list information supported by the external electronic device 300 to the electronic device 101 in response to the service search request packet. In an embodiment, the service search procedure shown in operations 1002 and 1004 may include a GATT-based service search operation.

[0146] In an embodiment, the service list information about the external electronic device 300 may include one or more service elements, and each service element may include information about the service provided by the external electronic device 300 and at least one characteristic element. In an embodiment, each characteristic element may have, for example, an attribute value indicating a read operation or a write operation. The electronic device 101 may recognize that the external electronic device 300 supports a second service (e.g., a file sharing service) based on the service list information about the external electronic device 300, and may send a data packet to the external electronic device 101 or receive a data packet from the external electronic device 300 based on the attribute value of each characteristic element.

[0147] For example, when the attribute value of at least one characteristic element indicates a write operation, in operation 1006, the electronic device 101 may send at least one data packet including data to be included in the at least one characteristic element to the external electronic device 300. In an embodiment, the at least one data packet sent may be configured in a data format defined according to a second service. For example, when the attribute value of at least one characteristic element indicates a read operation, in operation 1008, the electronic device 101 may receive at least one data packet including data included in the at least one characteristic element from the external electronic device 300. In an embodiment, the at least one data packet received may be configured in a data format defined according to a second service. In an embodiment, the order of operations 1006 and 1008 may be changed. In an embodiment, at least one of operations 1006 and 1008 may be performed once or multiple times, and at least one of operations 1006 and 1008 may be omitted.

[0148] Fig. 10B is a view showing an example of a service search procedure through Bluetooth according to an embodiment. According to an embodiment, at least one operation to be described below may be omitted, modified, or sequenced.

[0149] Reference Fig. 10BIn operation 1012, the electronic device 101 may send a service search request packet for searching for at least one service provided by the external electronic device 300 to the external electronic device 300, while providing a first service (e.g., a continuity service) through the first Bluetooth connection in a state where the first Bluetooth connection with the external electronic device 300 is established. In operation 1014, the external electronic device 300 may send a service search response packet including service list information to the electronic device 101 in response to the service search request packet. In an embodiment, the service search procedure shown in operations 1012 and / or 1014 may include a GATT-based service search operation. In an embodiment, the electronic device 101 may select a desired service (e.g., a second service) based on the service list information.

[0150] In operation 1016, the electronic device 101 may transmit a data packet for requesting provision of a service discovery protocol service multiplexer (service discovery protocol / service multiplexer (SD_PSM)) assigned to the selected service (e.g., the second service) to the external electronic device 300. In operation 1018, the external electronic device 300 may transmit a data packet including the SD_PSM to the electronic device 101.

[0151] In operation 1020, the electronic device 101 may send a channel configuration request packet (e.g., an L2CAP connection request (e.g., L2CAP_CONNECTION_REQ) packet) for configuring a channel used by a service (e.g., a connection-based L2CAP (logical link control and adaptation protocol) channel) to the external electronic device 300. The channel configuration request packet may include the SD_PSM obtained in operation 1018. The external electronic device 300 may identify whether the SD_PSM included in the channel configuration request packet is the same as the SD_PSM allocated by the external electronic device 300. When the SD_PSM included in the channel configuration request packet and the SD_PSM allocated by the external electronic device 300 are the same, in operation 1022, the external electronic device 300 may send a channel configuration response packet (e.g., an L2CAP connection response (L2CAP_CONNECTION_RSP) packet) to the electronic device 101. The channel configuration response packet may include information indicating that the connection with the electronic device 101 is allowed. In an embodiment, the external electronic device 300 may allocate at least one service channel (eg, logical channel) for performing data exchange with the electronic device 101 , and include information about the at least one service channel in a channel configuration response packet and transmit it to the electronic device 101 .

[0152] In operation 1024, the electronic device 101 may send at least one data packet including data related to the second service to the external electronic device 300 in at least one service channel allocated by the external electronic device 300. In an embodiment, the at least one data packet sent may be configured in a data format defined according to the second service. In operation 1026, the electronic device 101 may receive at least one data packet including data related to the second service from the external electronic device 300 in at least one service channel allocated by the external electronic device 300. In an embodiment, the at least one data packet received may be configured in a data format defined according to the second service. In an embodiment, the order of operations 1024 and 1026 may be changed. In an embodiment, at least one of operations 1024 and 1026 may be performed once or multiple times, and at least one of operations 1024 and 1026 may be omitted.

[0153] An electronic device and an operating method thereof according to an embodiment of the present disclosure can prevent a problem in which a service due to a connection failure may be provided when a new service is required with an already connected external electronic device.

[0154] An electronic device and an operating method thereof according to an embodiment of the present disclosure can prevent a problem in which a service due to a connection failure may be provided when a new service is required with an already connected external electronic device.

[0155] The electronic device 101 according to the embodiment may include a communication circuit 190, a memory 130, and at least one processor 120 functionally connected to the communication circuit and the memory. The at least one processor may be configured to receive a second advertisement signal related to a second service. The at least one processor may be configured to recognize that a first Bluetooth connection for a first service is established with an external electronic device 300 based on the first advertisement signal and that the second advertisement signal is broadcast from the external electronic device. The at least one processor may be configured to execute a service search procedure for the second service via the first Bluetooth connection. The at least one processor may be configured to send and / or receive data packets for the second service to / from the external electronic device via the first Bluetooth connection.

[0156] In an embodiment, the first advertisement signal may include a first random private address RPA, and the second advertisement signal may include a second RPA. In an embodiment, the at least one processor may be configured to recognize that the first advertisement signal and the second advertisement signal are broadcasted from an external electronic device based on the first RPA and the second RPA.

[0157] In an embodiment, at least one processor may be configured to obtain an IRK list including at least one identity resolution key IRK, store the IRK list in a memory, and identify that the first advertising signal and the second advertising signal are broadcast from an external electronic device based on resolving the first RPA and the second RPA using a first IRK in the IRK list.

[0158] In an embodiment, the at least one processor may be configured to recognize that the external electronic device supports the first service based on the first advertisement signal, and recognize that the external electronic device supports the second service based on the second advertisement signal.

[0159] In an embodiment, the at least one processor may be configured to recognize that the external electronic device supports the first service or the second service based on a designated data pattern and a manufacturer identifier included in the first advertisement signal or the second advertisement signal.

[0160] In an embodiment, the at least one processor may be configured to recognize that the external electronic device supports the first service or the second service based on a service universal unique identifier UUID included in the first advertisement signal or the second advertisement signal.

[0161] In an embodiment, the service search procedure may include transmitting a Generic Attribute Profile (GATT) service discovery packet for the second service to the external electronic device and receiving a GATT service discovery response packet for the second service from the external electronic device.

[0162] In an embodiment, the service search procedure may include sending a Logical Link Control and Adaptation Protocol (L2CAP) connection request (L2CAP_CONNECTION_REQ) packet for the second service to the external electronic device and receiving an L2CAP connection response packet for the second service from the external electronic device.

[0163] In an embodiment, the first service may include any one of a continuity service or a file sharing service, and the second service may include the other of the continuity service or the file sharing service.

[0164] In an embodiment, the at least one processor may be configured to execute a connection procedure for establishing a second Bluetooth connection with the external electronic device in response to recognizing that the electronic device is not connected to the external electronic device and the second advertisement signal is broadcast from the external electronic device.

[0165] The method for operating the electronic device 101 according to an embodiment may include receiving (710) a second advertisement signal related to a second service. The method may include identifying (715) that a first Bluetooth connection for the first service is established with the external electronic device 300 based on the first advertisement signal and that the second advertisement signal is broadcast from the external electronic device. The method may include performing (740) a service search procedure for the second service through the first Bluetooth connection. The method may include sending and / or receiving (745) a data packet for the second service to / from the external electronic device through the first Bluetooth connection.

[0166] In an embodiment, the identifying 715 may include identifying that the first advertisement signal and the second advertisement signal are broadcasted from the external electronic device based on a first random private address (RPA) included in the first advertisement signal and a second RPA included in the second advertisement signal.

[0167] In an embodiment, the method may further include obtaining an identity resolution key (IRK) list including at least one IRK, and storing 705 the IRK list in the memory 130. The identifying 715 may include identifying (730) that the first advertisement signal and the second advertisement signal are broadcast from the external electronic device based on resolving the first RPA and the second RPA using a first IRK in the IRK list.

[0168] In an embodiment, the method may include identifying (606) that the external electronic device supports the first service based on the first advertisement signal and identifying (622) that the external electronic device supports the second service based on the second advertisement signal.

[0169] In an embodiment, the identifying 606 or 622 may include identifying that the external electronic device supports the first service or the second service based on a specified data pattern and a manufacturer identifier included in the first advertisement signal or the second advertisement signal.

[0170] In an embodiment, the identifying 606 or 622 may include identifying that the external electronic device supports the first service or the second service based on a service universal unique identifier (UUID) included in the first advertisement signal or the second advertisement signal.

[0171] In an embodiment, the service search procedure may include sending (1002 or 1012) a Generic Attribute Profile GATT service discovery packet for the second service to the external electronic device and receiving (1004 or 1014) a GATT service discovery response packet for the second service from the external electronic device.

[0172] In an embodiment, the service search procedure may include sending (1020) a Logical Link Control and Adaptation Protocol (L2CAP) connection request (L2CAP_CONNECTION_REQ) packet for the second service to the external electronic device and receiving (1022) an L2CAP connection response packet for the second service from the external electronic device.

[0173] In an embodiment, the first service may include any one of a continuity service or a file sharing service, and the second service may include the other of the continuity service or the file sharing service.

[0174] In an embodiment, the method may include executing ( 735 ) a connection procedure for establishing a second Bluetooth connection with the external electronic device in response to recognizing that the electronic device is not connected to the external electronic device and the second advertisement signal is broadcast from the external electronic device.

[0175] The electronic device according to various embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those electronic devices described above.

[0176] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalent forms or alternative forms for corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the nouns in the singular form corresponding to the term may include one or more things, unless the relevant context clearly indicates otherwise. As used herein, each phrase in the 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 all possible combinations of items listed together with the corresponding one of the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “coupled to another element (e.g., the second element)”, “coupled to another element (e.g., the second element)”, “connected to another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” with or without the terms “operably” or “communicatively” being used, it means that the element may be directly (e.g., wired) coupled to the other element, wirelessly coupled to the other element, or coupled to the other element via a third element.

[0177] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or the smallest unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0178] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, under the control of a processor, 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 the at least one instruction with or without the use of one or more other components. This allows the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a machine may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" simply means that the storage medium is a tangible device and does not include a signal (e.g., an electromagnetic wave), but the term does not distinguish between data being semi-permanently stored in the storage medium and data being temporarily stored in the storage medium.

[0179] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a commodity. The computer program product may be released in the form of a machine-readable storage medium (e.g., a compact disc read only memory (CD-ROM)), or may be downloaded via an application store (e.g., Play Store TM ) online publishing (e.g., downloading or uploading) of the computer program product, or the computer program product may be published (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer server, an application store server, or a relay server).

[0180] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities, and some entities in the multiple entities may be separately arranged in different components. According to various embodiments, one or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as a corresponding component in the multiple components before integration to perform one or more functions. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or heuristically, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.

Claims

1. An electronic device (101), comprising: Communication circuit (190); Memory (130); as well as at least one processor (120) functionally connected to the communication circuit and the memory, wherein the at least one processor is configured to: receiving a second advertisement signal associated with a second service; identifying that a first Bluetooth connection for a first service is established with an external electronic device (300) based on a first advertisement signal and that the second advertisement signal is broadcast from the external electronic device; executing a service search procedure for the second service via the first Bluetooth connection; as well as Data packets for the second service are transmitted and / or received to / from the external electronic device through the first Bluetooth connection.

2. The electronic device according to claim 1, wherein: The first advertisement signal includes a first random private address (RPA) and the second advertisement signal includes a second RPA, and wherein the at least one processor is configured to identify that the first advertisement signal and the second advertisement signal are broadcast from the external electronic device based on the first RPA and the second RPA.

3. The electronic device according to claim 1 or 2, wherein: The at least one processor is configured to: obtaining an identity resolution key (IRK) list including at least one IRK; storing the IRK list in the memory; and The first advertisement signal and the second advertisement signal are identified as being broadcast from the external electronic device based on parsing the first RPA and the second RPA using a first IRK in the IRK list.

4. The electronic device according to any one of claims 1 to 3, wherein: The at least one processor is configured to: identifying that the external electronic device supports the first service based on the first advertising signal; and The external electronic device is identified as supporting the second service based on the second advertisement signal.

5. The electronic device according to claim 4, wherein: The at least one processor is configured to recognize that the external electronic device supports the first service or the second service based on a designated data pattern and a manufacturer identifier included in the first advertisement signal or the second advertisement signal.

6. The electronic device according to claim 4, wherein: The at least one processor is configured to recognize that the external electronic device supports the first service or the second service based on a service universal unique identifier (UUID) included in the first advertisement signal or the second advertisement signal.

7. The electronic device according to any one of claims 1 to 6, wherein: The service search procedure includes: sending a Generic Attribute Profile (GATT) service discovery packet for the second service to the external electronic device; and A GATT service discovery response packet for the second service is received from the external electronic device.

8. The electronic device according to any one of claims 1 to 6, wherein: The service search procedure includes: sending a Logical Link Control and Adaptation Protocol (L2CAP) connection request (L2CAP_CONNECTION_REQ) packet for the second service to the external electronic device; and An L2CAP connection response packet for the second service is received from the external electronic device.

9. The electronic device according to any one of claims 1 to 8, wherein: The first service includes any one of a continuity service or a file sharing service, and wherein the second service includes the other of the continuity service or the file sharing service.

10. The electronic device according to any one of claims 1 to 9, wherein: The at least one processor is configured to execute a connection procedure for establishing a second Bluetooth connection with the external electronic device in response to recognizing that the electronic device is not connected to the external electronic device and the second advertisement signal is broadcast from the external electronic device.

11. A method for operating an electronic device (101), the method comprising: receiving (710) a second advertisement signal associated with a second service; identifying (715) that a first Bluetooth connection for a first service is established with an external electronic device (300) based on a first advertisement signal and that the second advertisement signal is broadcast from the external electronic device; executing (740) a service search procedure for the second service via the first Bluetooth connection; as well as Data packets for the second service are transmitted and / or received (745) to / from an external electronic device through the first Bluetooth connection.

12. The method according to claim 11, wherein: The identifying (715) includes identifying that the first advertisement signal and the second advertisement signal are broadcast from the external electronic device based on a first random private address (RPA) included in the first advertisement signal and a second RPA included in the second advertisement signal.

13. The method according to claim 11 or 12, further comprising: Obtaining an identity resolution key (IRK) list including at least one IRK; and storing (705) the IRK list in a memory (130), wherein the identifying (715) includes identifying (730) that the first advertising signal and the second advertising signal are broadcast from the external electronic device based on resolving the first RPA and the second RPA using a first IRK in the IRK list.

14. The method according to any one of claims 11 to 13, further comprising: identifying (606) that the external electronic device supports the first service based on the first advertisement signal; as well as identifying (622) that the external electronic device supports the second service based on the second advertisement signal, wherein the identifying (606 or 622) comprises: identifying that the external electronic device supports the first service or the second service based on a specified data pattern and a manufacturer identifier included in the first advertisement signal or the second advertisement signal; or The external electronic device is identified as supporting the first service or the second service based on a service universal unique identifier (UUID) included in the first advertisement signal or the second advertisement signal.

15. The method according to any one of claims 11 to 14, wherein: The first service includes any one of a continuity service or a file sharing service, and wherein the second service includes the other of the continuity service or the file sharing service.