Electronic device for inferring, on basis of history information of short-range wireless communication, short-range wireless communication protocol to be activated, and operation method for electronic device

By using a model to predict protocol activation based on historical data, the electronic device optimizes simultaneous protocol usage, preventing disconnections and ensuring stable connections with multiple external devices.

WO2026127665A1PCT designated stage Publication Date: 2026-06-18SAMSUNG ELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SAMSUNG ELECTRONICS CO LTD
Filing Date
2025-12-11
Publication Date
2026-06-18

AI Technical Summary

Technical Problem

Electronic devices face limitations in simultaneously activating multiple short-range wireless communication protocols due to performance constraints, leading to degraded service quality when attempting to connect with external devices using unsupported protocols.

Method used

An electronic device employs a model trained on historical communication data to predict the probability of protocol activation during specific periods, allowing it to select protocols that can be simultaneously activated, thereby maintaining stable connections with multiple external devices.

🎯Benefits of technology

The solution prevents disconnections by ensuring that only compatible protocols are activated simultaneously, maintaining consistent service quality across multiple connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2025021369_18062026_PF_FP_ABST
    Figure KR2025021369_18062026_PF_FP_ABST
Patent Text Reader

Abstract

In an electronic device and an operation method of the electronic device, according to one embodiment, the electronic device may comprise a communication circuit supporting short-range wireless communication. The electronic device may comprise: a memory for storing computer programs including instructions; and one or more processors. When executed individually or collectively by the one or more processors, the instructions can instruct the electronic device to: identify first information that indicates a first protocol and a second protocol of the short-range wireless communication supported by an application; identify second information that indicates a period during which short-range wireless communication is activated in order for the application to perform a service; apply the first information and the second information to a model in order to acquire third information related to the probability that the first protocol is to be activated during the activation period, and the probability that the second protocol is to be activated during the activation period; select, on the basis of the third information, a protocol to be activated from the first protocol and the second protocol; and control that the communication circuit is to be connected to an external electronic device through the selected protocol.
Need to check novelty before this filing date? Find Prior Art

Description

An electronic device for inferring a protocol of a short-range wireless communication to be activated based on historical information of a short-range wireless communication, and a method of operation of the electronic device

[0001] The present disclosure relates to an electronic device and a method of operating the electronic device, and to an electronic device that infers a protocol of a short-range wireless communication to be activated based on historical information of a short-range wireless communication.

[0002] With the proliferation of various electronic devices, speed improvements have been achieved for wireless communication that these devices can use. Among the wireless communications supported by recent electronic devices, IEEE 802.11 WLAN (or Wi-Fi) is a standard for implementing high-speed wireless connections on various electronic devices. While the first implemented Wi-Fi could support transmission speeds of up to 1 to 9 Mbps, Wi-Fi 6 technology (or IEEE 802.11ax) can support transmission speeds of up to approximately 10 Gbps.

[0003] The electronic device can support various services using relatively large data (e.g., UHD quality video streaming service, AR (augmented reality) service, VR (virtual reality) service, or MR (mixed reality) service) through wireless communication that supports high transmission speeds, and can also support various other services.

[0004] The electronic device may support various protocols defined in short-range wireless communication. For example, short-range wireless communication protocols may include a WLAN (wireless local area network), which is a protocol for communicating with an external electronic device located outside the short-range wireless communication system via an AP (access point); a mobile hotspot, which is a protocol for the electronic device to provide cellular wireless communication; P2P (peer-to-peer, or Wi-Fi Direct), which is a protocol for direct communication between devices without passing through an AP; and / or NAN (neighbor awareness network or Wi-Fi aware), which is a protocol for direct communication between devices.

[0005] However, the electronic device may have a limit on the number of protocols that can be simultaneously activated due to performance constraints of the communication circuit supporting short-range wireless communication. For example, the electronic device may not be able to additionally activate the NAN protocol while the P2P protocol is activated.

[0006] Limiting the number of protocols that can be simultaneously activated by an electronic device may degrade the quality of the service performed by the electronic device. For example, assuming that an electronic device frequently establishes a connection with a first external electronic device via a specific protocol during a specific time of day (e.g., 8:00 PM), the electronic device may establish a connection with a second external electronic device via another protocol that cannot be simultaneously activated with the specific protocol prior to that specific time. While performing short-range wireless communication with the second external electronic device via another protocol that cannot be simultaneously activated with the specific protocol, the electronic device may attempt to establish a connection with the first external electronic device via the specific protocol. As the electronic device establishes a connection with the first external electronic device via the specific protocol, the connection with the second external electronic device may be disconnected. The situation described above may result in a degrade in the quality of the service using the second external electronic device.

[0007] The technical problems to be solved in this document are not limited to those mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art to which this invention belongs from the description below.

[0008] An electronic device according to one example may include a communication circuit that supports short-range wireless communication. The electronic device may include a memory that stores computer programs including instructions. The electronic device may include at least one processor. When the instructions are executed individually or collectively by the at least one processor, the electronic device may identify first information indicating a first protocol and a second protocol of the short-range wireless communication supported by an application. When the instructions are executed individually or collectively by the at least one processor, the electronic device may identify second information indicating an activation period of the short-range wireless communication for performing a service by the application. When the instructions are executed individually or collectively by the at least one processor, the electronic device may apply the first information and the second information to a model to obtain third information related to the probability that the first protocol will be activated during the activation period and the probability that the second protocol will be activated during the activation period. The above instructions may, when executed individually or collectively by the at least one processor, cause the electronic device to select a protocol to be activated among the first protocol and the second protocol based on the third information. The above instructions may, when executed individually or collectively by the at least one processor, cause the electronic device to control the communication circuit to be connected to an external electronic device through the selected protocol.

[0009] In a recording medium storing at least one program comprising instructions that cause the electronic device to perform operations when executed individually or collectively by at least one processor of the electronic device, the instructions may cause the electronic device to identify first information indicating a first protocol and a second protocol of the short-range wireless communication supported by the application when executed individually or collectively by the at least one processor. The instructions may cause the electronic device to identify second information indicating an activation period of the short-range wireless communication for performing services by the application when executed individually or collectively by the at least one processor. The instructions may cause the electronic device to apply the first information and the second information to a model in order to obtain third information related to the probability that the first protocol will be activated during the activation period and the probability that the second protocol will be activated during the activation period when executed individually or collectively by the at least one processor. The above instructions may, when executed individually or collectively by the at least one processor, cause the electronic device to select a protocol to be activated among the first protocol and the second protocol based on the third information. The above instructions may, when executed individually or collectively by the at least one processor, cause the electronic device to control a communication circuit of the electronic device to be connected to an external electronic device through the selected protocol.

[0010] A method of operation of an electronic device according to one example may include an operation of checking first information indicating a first protocol and a second protocol of the short-range wireless communication supported by the application. A method of operation of an electronic device may include an operation of checking second information indicating an activation period of the short-range wireless communication for performing a service by the application. A method of operation of an electronic device may include an operation of applying the first information and the second information to a model in order to obtain third information related to the probability that the first protocol will be activated during the activation period and the probability that the second protocol will be activated during the activation period. A method of operation of an electronic device may include an operation of selecting a protocol to be activated among the first protocol and the second protocol based on the third information. A method of operation of an electronic device may include an operation of connecting to an external electronic device through the selected protocol.

[0011] An electronic device and a method of operating the electronic device according to various embodiments of the present invention can determine a protocol to be activated by applying first information indicating at least one protocol supported by an application and second information indicating an activation period of short-range wireless communication performed by the application to a model learned based on historical information related to the performance of short-range wireless communication by the electronic device. The determined protocol may be the same protocol as the protocol inferred to be activated during the activation period, or a protocol capable of being activated simultaneously with the protocol inferred to be activated during the activation period. Accordingly, the electronic device can prevent a situation in which the connection is disconnected due to an additional connection with another external electronic device by establishing a connection with an external electronic device and performing short-range wireless communication through the determined protocol.

[0012] The effects obtainable from the present invention are not limited to those mentioned above, and other unmentioned effects will be clearly understood by those skilled in the art to which the present disclosure belongs from the description below.

[0013] FIG. 1 is a block diagram of an electronic device according to one embodiment.

[0014] FIG. 2 is a diagram illustrating an example in which an electronic device according to one embodiment performs short-range wireless communication.

[0015] FIG. 3 is a block diagram of an electronic device according to one embodiment.

[0016] FIG. 4 is a diagram illustrating an example of an electronic device training a model according to one embodiment.

[0017] FIG. 5 is a diagram illustrating an example in which an electronic device according to one embodiment determines a protocol to be activated based on the probability that at least one protocol will be used during an activation period.

[0018] FIG. 6 is a diagram illustrating an example in which an electronic device according to one embodiment determines a protocol to be activated based on a protocol that a second external electronic device can support and a probability that at least one protocol is used during an activation period.

[0019] FIG. 7 is a diagram illustrating an example in which an electronic device according to one embodiment determines a protocol to be activated based on the probability that a second external electronic device uses at least one protocol during an activation period and the probability that the electronic device uses at least one protocol during an activation period.

[0020] FIG. 8 is a diagram illustrating an example in which an electronic device according to one embodiment determines whether to perform the role of a GO (group owner) based on the probability that the electronic device performs a P2P connection during an activation period.

[0021] FIG. 9 is a diagram illustrating an example in which an electronic device according to one embodiment determines whether to perform the role of GO (group owner) based on the probability that the electronic device performs a P2P connection within the activation period and the probability that a second external electronic device performs a P2P connection within the activation period.

[0022] FIG. 10 is an operation flowchart illustrating the operation method of an electronic device according to one embodiment.

[0023] FIG. 1 is a block diagram of an exemplary electronic device (100) capable of performing the operations described in this document.

[0024] Referring to FIG. 1, the electronic device (100) may be one of various forms of electronic devices, such as a notebook (190), smartphones (191) having various form factors (e.g., a bar-type smartphone (191-1), a foldable-type smartphone (191-2), or a sliderable (or rollable)-type smartphone (191-3)), a tablet (192), a cellular phone (not shown), and other similar computing devices (not shown). The components, their relationships, and their functions illustrated in FIG. 1 are illustrative only and are not intended to limit the implementations described or claimed herein. The electronic device (100) may be referred to as a mobile device, a user device, a multifunction device, a portable device, or a server.

[0025] The electronic device (100) may include components comprising at least one processor (110) (hereinafter referred to as processor (110)), at least one memory (120) (hereinafter referred to as memory (120))11, at least one display (140) (hereinafter referred to as display (140)), at least one image sensor (150) (hereinafter referred to as image sensor (150)), at least one communication circuit (160) (hereinafter referred to as communication circuit (160)), and / or at least one sensor (170) (hereinafter referred to as sensor (170)). The components are merely exemplary. For example, the electronic device (100) may include other components (e.g., power management integrated circuitry (PMIC), audio processing circuit, antenna, rechargeable battery, or input / output interface). For example, some components may be omitted from the electronic device (100). For example, some components may be integrated into a single component.

[0026] The processor (110) may be implemented as one or more IC (integrated circuit (or circuitry)) chips and may perform various data processing operations. The processor (110) may include at least one electrical circuit and may process instructions (or programs, data, etc.) stored in memory (120) individually or collectively in a distributed manner. The processor (110) may include a processor assembly comprising one or more processing circuits. The processor (110) may include any processing circuit that is operative to control the performance and operations of one or more components of the electronic device (100) (e.g., memory (120), display (140), image sensor (150), communication circuit (160), and / or sensor (170)). For example, the processor (110) (e.g., application processor (AP)) may be implemented as a system on chip (SoC) (e.g., a single chip or chipset). For example, the processor (110) may be implemented with a plurality of cores (or at least one core circuit), a plurality of chips, or a plurality of chipsets. For example, the processor (110) may include one or more processing circuits. For example, the processor (110) may include one or more processing circuits configured to perform the various functions of the present disclosure individually and / or collectively. By example, without limitation, at least a portion of the processor (110) may be included in a first chip of the electronic device (100), and at least another portion of the processor (110) may be included in a second chip of the electronic device (100) different from the first chip of the electronic device (100).

[0027] For example, the processor (110) may include a central processing unit (111), a graphics processing unit (112), a neural processing unit (113), an image signal processor (114), a display controller (115), a memory controller (116), a storage controller (117), a communication processor (118), and / or a sensor interface (119). These components of the processor (110) are merely exemplary. For example, the processor (110) may include other components. For example, some components of the processor (110) may be omitted from the processor (110). For example, some components of the processor (110) may be included as separate components of the electronic device (100) outside of the processor (110). For example, some components of the processor (110) (e.g., memory controller (116)) may be included in other components (e.g., at least part of memory (120), an interface (e.g. available for connection to at least one component of the electronic device (100)), a display (140) and / or an image sensor (150)).

[0028] The processor (110) may cause other components of the electronic device (100) to perform various operations by executing instructions stored in memory (120). The CPU (111) (or central processing circuit) may be configured to control the components of the processor (110) based on the execution of instructions stored in memory (120) (e.g., volatile memory (121) and / or non-volatile memory (122)). The GPU (112) (or graphics processing circuit) may be configured to execute parallel operations (e.g., rendering). The NPU (113) (or neural processing circuit, or AI (artificial intelligence) chip) may be configured to execute operations for an artificial intelligence model (e.g., convolution computation). An ISP (114) (or image signal processing circuit) may be configured to process a raw image acquired through an image sensor (150) into a format suitable for a component within the electronic device (100) or a component of the processor (110). A display controller (115) (or display control circuit, or DPU (display processing unit)) may be configured to process an image acquired from a CPU (111), GPU (112), ISP (114), or memory (120) (e.g., volatile memory (121)) into a format suitable for a display (140). A memory controller (116) (or memory control circuit) may be configured to control reading data from the volatile memory (121) and writing data to the volatile memory (121). A storage controller (117) (or storage control circuit) may be configured to control reading data from the non-volatile memory (122) and writing data to the non-volatile memory (122).The CP (118) (communication processing circuit) may be configured to process data obtained from a component of the processor (110) into a format suitable for transmitting to another electronic device via the communication circuit (160), or to process data obtained from another electronic device via the communication circuit (160) into a format suitable for processing by the component of the processor (110). For example, the communication circuit (160) may include one or more communication circuits. The sensor interface (119) (or sensing data processing circuit, sensor hub) may be configured to process data regarding the state of the electronic device (100) and / or the state around the electronic device (100), obtained through the sensor (170), into a format suitable for the component of the processor (110).

[0029] Memory (120) may include one or more storage media (or one or more storage devices). For example, memory (120) may include a memory assembly comprising one or more storage media. For example, the one or more storage media may include a hard drive, a permanent memory such as flash memory, read-only memory (ROM) (e.g., non-volatile memory (122)), a semi-permanent memory such as random access memory (RAM) (e.g., volatile memory (121)), any other suitable type of storage (or storage assembly), or any combination thereof. Memory (120) may include a cache memory, which is one or more different types of memory used to temporarily store data for a function or feature of the electronic device (100). As an example not limited to, the cache memory may be included within the processor (110). The memory (120) may be fixedly embedded within the electronic device (100) or incorporated into one or more suitable types of components (e.g., a SIM (subscriber identity module) card and / or an SD (secure digital) card) that can be repeatedly inserted into and removed from the electronic device (100).

[0030] For example, memory (120) may store one or more software applications, such as operating system (or system) software applications, firmware software applications, driver software applications, plugin (e.g., add-in, add-on, and / or applet) software applications, and / or any other suitable software applications. For example, the one or more software applications may include instructions executable by the processor (110). For example, memory (120) may store instructions that can be called by an application programming interface (API). For example, memory (120) may store instructions within a library.

[0031] FIG. 2 is a diagram illustrating an example in which an electronic device according to one embodiment performs short-range wireless communication.

[0032] An electronic device (e.g., the electronic device (100) of FIG. 1) may support short-range wireless communication. Short-range wireless communication may include Wi-Fi as defined in IEEE 802.11. The electronic device (100) may support various protocols of short-range wireless communication. According to one example, protocols of short-range wireless communication may include a wireless local area network (WLAN) which is a protocol for communicating with an external electronic device located outside the short-range wireless communication system via an access point (AP), a mobile hotspot which is a protocol for the electronic device (100) to provide cellular wireless communication, a peer-to-peer (P2P, or Wi-Fi Direct) which is a protocol for direct communication between devices without going through an AP, and / or a neighbor awareness network (NAN, or Wi-Fi Aware) which is a protocol for direct communication between devices.

[0033] The electronic device (100) can perform short-range wireless communication by being connected via a specific protocol to an electronic device (e.g., the first external electronic device (210) and / or the second external electronic device (220) of FIG. 2) to be connected via short-range wireless communication.

[0034] According to one example, an electronic device (100) can discover an external electronic device (e.g., a first external electronic device (210)) to be connected via a specific protocol, depending on the execution of an application capable of performing a service using a specific protocol (e.g., P2P). The electronic device (100) can perform a connection procedure via the specific protocol with the discovered first external electronic device (210) and perform short-range wireless communication with the first external electronic device (210).

[0035] According to one example, an electronic device (100) may discover an external electronic device (e.g., a second external electronic device (220)) to be connected via a different protocol, depending on the execution of an application capable of performing a service using a different protocol (e.g., NAN). The electronic device (100) may perform a connection procedure with the discovered second external electronic device (220) via a specific protocol and perform short-range wireless communication with the second external electronic device (220).

[0036] However, the electronic device (100) may have a limit on the number of protocols that can be simultaneously activated due to limitations in the performance of the communication circuit (e.g., the communication circuit (160) of FIG. 1) that supports short-range wireless communication. For example, the electronic device (100) may not be able to additionally activate the NAN protocol while the P2P protocol is activated. Referring to the example of FIG. 2, the electronic device (100) cannot additionally connect to the second external electronic device (220) via a different protocol while connected to the first external electronic device (210) via a specific protocol.

[0037] A limitation on the number of protocols that can be simultaneously activated by the electronic device (100) may degrade the quality of service performed by the electronic device (100). For example, assuming that the electronic device (100) frequently performs a connection with the first external electronic device (210) via a specific protocol during a specific time of day (e.g., 8 PM), the electronic device (100) may be connected to the second external electronic device (220) via another protocol that cannot be simultaneously activated with the specific protocol prior to that specific time. While the electronic device (100) performs short-range wireless communication with the second external electronic device (220) via another protocol that cannot be simultaneously activated with the specific protocol, it may attempt to connect with the first external electronic device (210) via the specific protocol. As the electronic device (100) connects with the first external electronic device (210) via the specific protocol, the connection with the second external electronic device (220) may be disconnected. The situation described above may cause a decrease in the quality of service using the second external electronic device (220).

[0038] Below, examples are described for preventing the phenomenon described above by determining the protocol to be activated based on a model learned based on historical information connected through a protocol activated for a specific period of time by an electronic device (100).

[0039] FIG. 3 is a block diagram of an electronic device according to one embodiment.

[0040] According to one example, an electronic device (e.g., the electronic device (100) of FIG. 1) may include a communication circuit (310) (e.g., the communication circuit (160) of FIG. 1), a processor (320) (e.g., the processor (110) of FIG. 1) and / or a memory (330) (e.g., the memory (120) of FIG. 1).

[0041] The communication circuit (310) may be a communication circuit that supports short-range wireless communication. Short-range wireless communication may include various short-range wireless communications that the electronic device (100) can support. Short-range wireless communication may include Wi-Fi defined in IEEE 802.11. The communication circuit (310) may support various protocols of short-range wireless communication. According to one example, the protocols of short-range wireless communication may include a wireless local area network (WLAN) which is a protocol that communicates with an external electronic device located outside the short-range wireless communication system via an access point (AP); a mobile hotspot which is a protocol that provides cellular wireless communication to the electronic device (100); peer-to-peer (P2P, or Wi-Fi Direct) which is a protocol that enables direct communication between devices without going through an AP; and / or a neighbor awareness network (NAN, or Wi-Fi Aware) which is a protocol that enables direct communication between devices.

[0042] The communication circuit (310) may include various circuit structures used for modulating and / or demodulating a signal within the electronic device (100). For example, the first communication circuit (310) may modulate a baseband signal into a radio frequency (RF) band signal to output it through an antenna (not shown), or demodulate an RF band signal received through the antenna into a baseband signal and transmit it to a processor (320).

[0043] The processor (320) is electrically or operationally connected to the communication circuit (310) and can control the communication circuit (310). The processor (320) may include at least one processor, and at least one processor may perform the following operations individually or collectively.

[0044] The memory (330) can store instructions that can be executed by the processor (320). The operation of the processor (320) described below can be performed according to the execution of the instructions stored in the memory (330).

[0045] The memory (330) can store various applications. According to one example, the memory (330) can store applications for performing short-range wireless communication using at least some of the protocols defined in short-range wireless communication (e.g., content sharing application, video call application)).

[0046] The processor (320) can execute an application stored in memory (330) and perform operations to perform a service using short-range wireless communication provided by the application. According to one example, the processor (320) can control the communication circuit (310) to search for (or discover) an external electronic device to be connected via short-range wireless communication (e.g., the second external electronic device (220) of FIG. 2) to perform a service using short-range wireless communication provided by the application, depending on the execution of the application. The communication circuit (310) can perform a series of procedures to search for (or discover) an external electronic device to be connected via short-range wireless communication (e.g., the second external electronic device (220) of FIG. 2) and to connect with the second external electronic device (220) via short-range wireless communication, based on the control of the processor (320).

[0047] According to one example, the processor (320) may select (or determine) one of a plurality of protocols of short-range wireless communication (e.g., a first protocol, a second protocol) to connect with the second external electronic device (220) via short-range wireless communication. The processor (320) may control the communication circuit (310) to enable the selected protocol (e.g., P2P or NAN) and control the communication circuit (310) to connect with the second external electronic device (220) via the selected protocol.

[0048] According to one example, the processor (320) may identify at least one protocol supported by the application in order to select a protocol to be activated. According to one example, at least one protocol may include a first protocol and a second protocol. For example, the first protocol may be P2P (or Wi-Fi Direct) and the second protocol may be a Neighbor Awareness Network (NAN). Conversely, the first protocol may be NAN and the second protocol may be P2P (or Wi-Fi Direct). The processor (320) may generate (or identify) first information indicating (or representing) at least one protocol supported by the application. The processor (320) may generate (or identify) first information indicating the first protocol and the second protocol supported by the application.

[0049] According to one example, the processor (320) can determine the activation duration of the short-range wireless communication performed by the application in order to determine the protocol to be activated.

[0050] The activation period of short-range wireless communication may refer to the period during which short-range wireless communication is activated to perform services provided by an application.

[0051] The activation period of the short-range wireless communication may refer to the duration required for the application to transmit and / or receive data via the short-range wireless communication. The processor (320) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed).

[0052] According to another example, the activation period of the short-range wireless communication may refer to a starting time when the application begins to transmit and / or receive data via the short-range wireless communication and an end time when the application transmits and / or receives data via the short-range wireless communication. The processor (320) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed), and may determine the end time based on the determined time and the starting time.

[0053] The processor (320) can verify (or generate) second information indicating (or indicating) the activation period of the short-range wireless communication.

[0054] The processor (320) may apply the first information and the second information to a model learned based on historical information related to the use of short-range wireless communication in order to determine the protocol to be activated.

[0055] According to one example, the model may be an entity that selects (or determines, infers) the protocol to be activated. The processor (320) may store the learned model based on historical information related to the use of short-range wireless communication in memory included in the processor (320) or in memory (330) connected to the processor (320).

[0056] The model may be an artificial intelligence model learned based on historical information related to being connected via an activated protocol with an external electronic device (e.g., the first external electronic device (210) of FIG. 2a) that has a history of being connected to the electronic device (100). Alternatively, the model may be an artificial intelligence model learned based on historical information related to being connected via an activated protocol during a period including at least a portion of the activation period with an external electronic device (e.g., the first external electronic device (210) of FIG. 2a) that has a history of being connected to the electronic device (100). The model may be an artificial intelligence model learned by the manufacturer of the electronic device (100) using various technologies (e.g., machine learning, neural network learning, self-organizing map, hidden Markov model, or convolution neural network learning).

[0057] The processor (320) can train a model based on historical information related to the use of short-range wireless communication prior to the execution of the application.

[0058] History information may refer to information indicating the history of the electronic device (100) activating (or using) short-range wireless communication. For example, the processor (320) may store (or collect) first history information related to previous use of a short-range wireless communication connection using a first protocol and second history information related to previous use of a short-range wireless communication connection using a second protocol. The processor (320) may store first history information including context information including at least one of the duration of using the first protocol, the time of day of using the first protocol, the location of using the first protocol, and an application (or service) using the first protocol when the first protocol of short-range wireless communication is used. For example, the processor (320) may store second history information including context information including at least one of the duration of using the second protocol, the time of day of using the second protocol, the location of using the second protocol, and an application (or service) using the first protocol when the second protocol is used. In determining the location using the first protocol and the location using the second protocol, the processor (320) may determine the location using the first protocol and the location using the second protocol based on a circuit capable of measuring the location of the electronic device (100) (e.g., a GPS module), and, when the electronic device (100) enables cellular wireless communication, based on a signal received via cellular wireless communication and / or a signal received via short-range wireless communication.

[0059] History information may include information related to the time when the electronic device (100) performed short-range wireless communication (e.g., hour, minute, whether it is a weekday or a weekend), information related to the location where the electronic device (100) performed short-range wireless communication (e.g., information indicating whether the location where the electronic device (100) performed short-range wireless communication is a home, information indicating whether the location where the electronic device (100) performed short-range wireless communication is a frequently visited place, information indicating whether the location where the electronic device (100) performed short-range wireless communication is a workplace), information indicating the protocol activated by the electronic device (100) in performing short-range wireless communication (e.g., P2P protocol, WLAN protocol, NAN protocol), channel information used in performing short-range wireless communication (e.g., channel 36), and at least one of the roles performed in performing short-range wireless communication (e.g., GO (group owner), GC (group client). The model includes control of the processor (320) and The model can be trained based on historical information input by the processor (320). The model can be trained according to various methods. According to one example, the model can be trained according to various machine learning methods, for example, the model can be trained according to a supervised learning method. When the model is trained according to a supervised learning method, the model can be provided with input data (e.g., first historical information, second historical information) and correct answers (e.g., probabilities) corresponding to the input data, and can be trained to output appropriate probabilities based on the provided data. The probability can be calculated according to various methods (e.g., a method in which the output value is minimized when input data is input into a loss function).

[0060] The model can infer (or determine, confirm) the probability that a specific protocol will be performed for a specific period of time upon receiving a specific input. According to one example, the model receives (or inputs) from the processor (320) first information indicating at least one protocol of short-range wireless communication supported by the application and second information indicating an activation period of the short-range wireless communication, and can output information including the probability that at least one protocol included in the first information will be activated (or used) during the activation period included in the second information. According to one example, the model can infer the probability based on various information in addition to the first information and the second information. For example, the model can further receive location information of the electronic device (100) and the current time from the processor (320) and infer the probability considering the location information of the electronic device (100). Information including the probability that at least one protocol included in the first information will be activated (or used) during the activation period included in the second information may be referred to as third information.

[0061] For example, the information output by the model can be implemented as shown in Table 1 below.

[0062] Type of Protocol Probability of Activation 1st Protocol (e.g., P2P) 0.65 2nd Protocol (e.g., NAN) 0.15 3rd Protocol (e.g., mobile hotspot) 0.10

[0063] As another example, the information output by the model may include information indicating the probability that the first protocol and the second protocol will be activated during at least one activation period. The information output by the model may be implemented as shown in Table 2 below.

[0064] Activation Period Probability that Protocol 1 will be activated Probability that Protocol 2 will be activated Activation Period 1 (e.g., 6:00 PM ~ 6:30 PM) 0.65 0.1 Activation Period 2 (e.g., 6:30 PM ~ 7:00 PM) 0.35 0.9

[0065] The information output by the model is information output by a model trained based on historical information, and the probability that a protocol that is frequently activated (or used) during a specific period (e.g., Protocol 1) will be activated is inferred to be higher than the probability that a protocol that is relatively less activated (or used) (e.g., Protocol 2) will be activated.

[0066] The processor (320) can determine the probability that at least one protocol determined (or inferred) by the model will be used during the activation period, and can select (or determine) the protocol to be activated among at least one protocol based on the probability. The processor (320) can determine the probability that a first protocol and a second protocol determined (or inferred) by the model will be used during the activation period, and can select (or determine) the protocol to be activated among the first protocol and the second protocol based on the probability. For example, the processor (320) can select the first protocol as the protocol to be activated if the probability that the first protocol will be activated is higher than the probability that the second protocol will be activated. As another example, the processor (320) can select the second protocol as the protocol to be activated if the probability that the second protocol will be activated is higher than the probability that the first protocol will be activated.

[0067] The processor (320) can select (or determine) a protocol to be activated among at least one protocol based on the probability that at least one protocol will be used during the activation period, which is determined (or inferred) by the model, and the weight value of at least one protocol.

[0068] The weight of at least one protocol may be a value related to the performance of at least one protocol. For example, the weight of at least one protocol may be set higher as the performance of at least one protocol (e.g., transmission speed, reception speed, transmission success rate) increases.

[0069] According to one example, the processor (320) can set weights using the following mathematical formula 1.

[0070]

[0071] ( : Expected maximum throughput value of the protocol, : Protocol weights, : The highest throughput expectation among the maximum throughput expectations of at least one protocol, : The lowest throughput expectation among the maximum throughput expectations of at least one protocol)

[0072] The weight of at least one protocol may be a value related to the characteristics of at least one protocol. For example, the weight of at least one protocol may be set higher for protocols that are more recently implemented. For example, the weight of the NAN protocol may be set higher than the weight of a P2P protocol implemented earlier than the NAN protocol.

[0073] The weight of at least one protocol may be set directly by the user. For example, the processor (320) may set the weight of the protocol preferred by the user higher than the weight of the protocol preferred relatively less by the user.

[0074] The selected (or determined) protocol may be a protocol that can be activated simultaneously with the protocol that has the highest probability of being activated during the activation period included in the second information. Alternatively, the selected (or determined) protocol may be the same protocol as the protocol that has the highest probability of being activated during the activation period included in the second information.

[0075] The processor (320) controls the communication circuit (310) to be connected to the second external electronic device (220) through a selected protocol and can perform short-range wireless communication with the second external electronic device (220).

[0076] The processor (320) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the processor (320) may attempt to connect with the first external electronic device (210) in accordance with the activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a selected protocol during at least some of the activation period. The processor (320) may control the communication circuit (310) to perform a connection with the first external electronic device (210) via a selected protocol, and may control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) and the second external electronic device (220) via a selected protocol. As described above, the electronic device (100) can establish a connection with the second external electronic device (220) using the same protocol as the protocol used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected by establishing a connection between the electronic device (100) and the first external electronic device (210).

[0077] The processor (320) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the processor (320) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a protocol that can be activated simultaneously with the selected protocol during at least some of the activation periods. The processor (320) can control the communication circuit (310) to perform a connection with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol during at least a portion of the activation period, perform short-range wireless communication with the second external electronic device (220) through the selected protocol, and control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol. As described above, the electronic device (100) can perform a connection with the second external electronic device (220) using a protocol that can be activated simultaneously with the protocol to be used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected due to the establishment of a connection between the electronic device (100) and the first external electronic device (210).

[0078] In relation to the example described above, the processor (320) can determine the protocol to be activated by considering the protocol that the second external electronic device (220) to be connected to the electronic device (100) can support.

[0079] According to one example, the processor (320) may receive information from the second external electronic device (220) indicating a protocol that the second external electronic device (220) can support after searching for the second external electronic device (220). For example, the processor (320) may receive information indicating a protocol that the second external electronic device (220) can support via short-range wireless communication. As another example, the processor (320) may receive information indicating a protocol that the second external electronic device (220) can support via another short-range wireless communication (e.g., Bluetooth) (or OOB (out of band)).

[0080] The processor (320) can identify at least one protocol supported by both the application and the second external electronic device (220), and can apply to the model first information indicating at least one protocol supported by both the application and the second external electronic device (220) and second information indicating an activation time. The model can infer (or determine) the probability that each of the at least one protocol supported by both the application and the second external electronic device (220) will be activated during the activation time. The processor (320) can select (or determine) the protocol to be activated based on the probability determined (or inferred) by the model.

[0081] According to one example, the processor (320) may search for the second external electronic device (220) and then receive from the second external electronic device (220) information indicating the probability that at least one protocol selected by the second external electronic device (220) will be used during the activation period. The second external electronic device (220) may also infer (or determine) the probability that a protocol supported by the second external electronic device (220) will be used during the activation period, in the same manner as described above.

[0082] The processor (320) may receive information via short-range wireless communication indicating the probability that at least one protocol selected by the 2 external electronic device (220) will be used during the activation period. As another example, the processor (320) may receive information via other short-range wireless communication (e.g., Bluetooth) (or, OOB (out of band)) indicating the probability that at least one protocol selected by the 2 external electronic device (220) will be used during the activation period.

[0083] For example, the processor (320) may receive information from the second external electronic device (220) indicating the probability that at least one protocol selected by the second external electronic device (220) will be used during the activation period, as shown in Table 3 below.

[0084] Type of Protocol Probability of Activation 1st Protocol (e.g., P2P) 0.7 2nd Protocol (e.g., NAN) 0 3rd Protocol (e.g., mobile hotspot) 0.30

[0085] The processor (320) can determine the protocol to be activated based on the probability determined (or inferred) by the model and the probability selected by the second external electronic device (220).

[0086] For example, the processor (320) may add the probability selected by the model (Table 1) and the probability selected by the second external electronic device (220) (Table 3), and then determine the protocol with the highest probability as the protocol to be activated. Table 4 below lists the probabilities combined by the processor (320).

[0087] Probability inferred by the type of protocol model Probability sum (safe sum) inferred by the second external electronic device (220) First protocol (e.g., P2P) 0.65 0.7 1.35 Second protocol (e.g., NAN) 0.15 00 (prevents the selection of a protocol that a device does not support by setting the sum to 0 if one probability is set to 0) Third protocol (e.g., mobile hotspot) 0.10 0.3 0.4

[0088] According to one example, the processor (320) can perform a connection with a second external electronic device (220) through the already activated protocol without applying the first information and the second information to the model when the application supports the already activated protocol while the protocol is already activated.

[0089] According to one example, the processor (320) may infer a protocol to be activated by inputting first information and second information to the model when the application does not support the activated protocol while the protocol is already activated. However, the protocol with the highest probability inferred by the model may not be activated simultaneously with the already activated protocol. The processor (320) may deactivate the previously activated protocol and then activate the protocol with the highest probability. Alternatively, the processor (320) may keep the previously activated protocol in an activated state and not activate the selected protocol until the previously activated protocol is deactivated.

[0090] According to one example, the processor (320) may determine the protocol to be activated based on historical information without utilizing a model. The processor (320) may store information indicating the protocol to be activated when a short-range wireless communication protocol is activated in a storage space (e.g., a queue). The storage space may be created for each location managed by the electronic device (100). For example, the storage space may include a storage space that stores information indicating the protocol activated by the electronic device (100) while the electronic device (100) is located at the user's home, and a storage space that stores information indicating the protocol activated by the electronic device (100) while the electronic device (100) is located at the user's workplace. The processor (320) may determine the protocol that is most frequently activated as the protocol to be activated by considering the information indicating the protocol stored in the storage space.

[0091] In relation to the example described above, the model can determine (or infer) the probability that the protocol will be activated during the activation period. However, the model can determine (or infer) various information (or probabilities) in addition to the probability that the protocol will be activated.

[0092] According to one example, the model can infer (or determine) a channel expected to be used by the electronic device (100) during an activation period. According to one example, the processor (320) can apply (or input) to the model historical information including channel information used in performing short-range wireless communication when training the model. The model receives second information including an activation period applied by the processor (320) from the processor (320) and can infer (or determine) a channel expected to be activated during the activation period.

[0093] The processor (320) may be connected through a selected channel in a procedure for connecting with a second external electronic device (220) via a selected protocol. The selected channel may be the channel with the highest probability of being activated during the activation period included in the second information. Alternatively, the selected channel may be a channel that can be used together with the channel with the highest probability of being activated during the activation period included in the second information.

[0094] The processor (320) can perform a connection with the first external electronic device (210) while connected to the second external electronic device (220) through a selected channel.

[0095] The processor (320) can prevent a situation in which the communication circuit (310) is connected to the first external electronic device (210) and the second external electronic device (220) through channels that do not support simultaneous transmission and / or reception of data by connecting to the first external electronic device (210) through a selected channel.

[0096] Alternatively, the processor (320) can prevent a situation in which the communication circuit (310) is connected to the first external electronic device (210) and the second external electronic device (220) through channels that do not support simultaneous transmission and / or reception of data by connecting the first external electronic device (210) and the selected channel simultaneously through a channel that is available for use.

[0097] An example of a model inferring a channel can be combined with an example of a model inferring a protocol. For example, the processor (320) can determine a protocol to be activated by applying first information and second information to the model, and the processor (320) can cause the model to infer a channel after determining the protocol to be activated (or while determining the protocol to be activated).

[0098] According to one example, the model can infer (or determine) the probability that the electronic device (100) performs additional P2P connections during an activation period. According to one example, the model receives second information including an activation period, which is authorized by the processor (320), from the processor (320) and can infer (or determine) the probability that additional P2P connections are performed during an activation period.

[0099] The processor (320) may cause the electronic device (100) to operate as a GO when negotiating the role of a P2P connection (e.g., GO (group owner) or GC (group client)) with the second external electronic device (220) if the probability of performing an additional P2P connection during the activation period is greater than a specified size. If the electronic device (100) operates as a GC, it may be difficult to connect with another external electronic device (e.g., the first external electronic device (210)) via a P2P connection. Therefore, the processor (320) may cause the electronic device (100) to operate as a GO. The processor (320) may transmit a signal (e.g., VSIE (vender specific information element)) containing the probability that the electronic device (100) will perform an additional P2P connection during the activation period to the second external electronic device (220). The second external electronic device (220) may also transmit a signal (e.g., VSIE) containing the probability that the second external electronic device (220) will perform additional P2P connections during the activation period to the electronic device (100). The processor (320) may compare the probability that the electronic device (100) will perform additional P2P connections during the activation period with the probability that the second external electronic device (220) will perform additional P2P connections during the activation period. If the probability that the electronic device (100) will perform additional P2P connections during the activation period is higher than the probability that the second external electronic device (220) will perform additional P2P connections during the activation period, the processor (320) may set a GO intent with a high value and transmit a signal containing the GO intent in a specific field (e.g., VSIE (vendor specific information element)) to the second external electronic device (220).The processor (320) can set a GO intent of a lower value when the probability that the electronic device (100) performs an additional P2P connection during the activation period is lower than the probability that the second external electronic device (220) performs an additional P2P connection during the activation period, and transmit a signal containing the GO intent in a specific field (e.g., VSIE (vendor specific information element)) to the second external electronic device (220).

[0100] The processor (320) may cause the electronic device (100) to act as a GO when negotiating the role of the P2P connection (e.g., GO (group owner) or GC (group client)) with the second external electronic device (220) if the probability that the electronic device (100) performs an additional P2P connection during the activation period is higher than the probability that the second external electronic device (220) performs an additional P2P connection during the activation period. The second external electronic device (220) may also infer (or determine) the probability that the second external electronic device (220) performs an additional P2P connection during the activation period in the same manner as described above, and the second external electronic device (220) may transmit information including the probability that the second external electronic device (220) performs an additional P2P connection during the activation period to the electronic device (100). When the electronic device (100) operates as a GC, it may be difficult to connect with another external electronic device (e.g., a first external electronic device (210)) via a P2P connection. Therefore, the processor (320) can cause the electronic device (100) to operate as a GO. For example, the processor (320) can set a high value GO intent and transmit a signal containing the GO intent in a specific field (e.g., VSIE (vendor specific information element)) to a second external electronic device (220).

[0101] FIG. 4 is a diagram illustrating an example of an electronic device training a model according to one embodiment.

[0102] An electronic device (e.g., the electronic device (100) of FIG. 3) may apply the first information and the second information to a model (420) learned based on historical information related to the use of short-range wireless communication in order to determine the protocol to be activated.

[0103] According to one example, the model (420) may be an entity that determines (or infers) the protocol to be activated. The electronic device (100) may store the model (420), which has been learned based on historical information related to the use of short-range wireless communication, in memory included in the electronic device (100) or in memory (330) connected to the electronic device (100). The model (420) may be an artificial intelligence model (420) that has been learned based on historical information related to being connected via an activated protocol with an external electronic device (e.g., the first external electronic device (210) of FIG. 2a) that has a history of being connected to the electronic device (100). Alternatively, the model (420) may be an artificial intelligence model (420) learned based on historical information related to being connected via an activated protocol during a period including at least a portion of the activation period with an external electronic device (e.g., the first external electronic device (210) of FIG. 2a) that has a history of being connected to the electronic device (100). The model (420) may be an artificial intelligence model (420) learned by the manufacturer of the electronic device (100) using various technologies (e.g., machine learning, neural network learning, self-organizing map, hidden Markov model (420), or convolution neural network learning).

[0104] The electronic device (100) can train a model (420) based on history information (410) related to the use of short-range wireless communication prior to the execution of the application.

[0105] History information (410) may include information (411) related to the time when the electronic device (100) performed short-range wireless communication (e.g., hour, minute, whether it is a weekday or a weekend), information (412) related to the location where the electronic device (100) performed short-range wireless communication (e.g., information indicating whether the location where the electronic device (100) performed short-range wireless communication is a home, information indicating whether the location where the electronic device (100) performed short-range wireless communication is a frequently visited place, information indicating whether the location where the electronic device (100) performed short-range wireless communication is a workplace), information indicating the protocol (413) activated when the electronic device (100) performed short-range wireless communication (e.g., P2P protocol, WLAN protocol, NAN protocol), and channel information used when performing short-range wireless communication (e.g., channel 36).

[0106] The history information (410) may further include at least one piece of information regarding the role performed in performing short-range wireless communication (e.g., GO (group owner), GC (group client).

[0107] The model (420) can be learned based on the control of the electronic device (100) and historical information input by the electronic device (100). The electronic device (100) can collect historical information (410) as it detects that the electronic device (100) activates a protocol while performing short-range wireless communication. The electronic device (100) can perform learning of the model (420) by applying the collected historical information (410) to the model (420). The model (420) can perform learning using various methods (e.g., machine learning techniques such as logistic regression models, support vector machines, decision tree models, and recurrent neural models). The model can be learned according to various methods. According to one example, the model can be learned according to various machine learning methods, for example, the model can be learned according to a supervised learning method. When a model is trained using a supervised learning method, the model may be provided with input data (e.g., first history information, second history information) and correct answers (e.g., probabilities) corresponding to the input data, and may be trained to output appropriate probabilities based on the provided data. Probabilities may be calculated according to various methods (e.g., methods in which the output value is minimized when input data is input into a loss function).

[0108] FIG. 5 is a diagram illustrating an example in which an electronic device according to one embodiment determines a protocol to be activated based on the probability that at least one protocol will be used during an activation period.

[0109] The application (501) illustrated in FIG. 5 may refer to an application for performing short-range wireless communication using at least some of the protocols defined in short-range wireless communication (e.g., content sharing application, video call application). The system (503) may be an entity implemented on the framework of the electronic device (100) as an entity for controlling short-range wireless communication. The application (501), the system (503), and the model (420) may be software components implemented on a processor (e.g., the processor (320) of FIG. 3).

[0110] The application (501) can transmit a query including first information and second information to the system (503) in operation 511.

[0111] According to one example, the application (501) may check at least one protocol supported by the application in order to determine the protocol to be activated. The application (501) may generate (or check) first information indicating (or representing) at least one protocol supported by the application.

[0112] According to one example, the application (501) can determine the activation duration of the short-range wireless communication performed by the application in order to determine the protocol to be activated.

[0113] The activation period of short-range wireless communication may refer to the period during which short-range wireless communication is activated to perform services provided by an application.

[0114] The activation period of the short-range wireless communication may refer to the duration required for the application to transmit and / or receive data via the short-range wireless communication. The processor (320) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed).

[0115] According to another example, the activation period of the short-range wireless communication may refer to a starting time when the application begins to transmit and / or receive data via the short-range wireless communication and an end time when the application transmits and / or receives data via the short-range wireless communication. The processor (320) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed), and may determine the end time based on the determined time and the starting time.

[0116] The application (501) can verify (or generate) second information indicating (or indicating) the activation period of the short-range wireless communication.

[0117] In FIG. 5, it is stated that the application (501) checks the first information and the second information, but this may be performed by a system (503) rather than the application (501).

[0118] The application (501) may transmit a query including first information and second information to the system (503). The query may refer to a signal requesting information indicating a protocol available to the application (501).

[0119] The system (503) can apply the first information and the second information to the model (420) in operation 512.

[0120] The system (503) may apply the first information and the second information to a model learned based on historical information related to the use of short-range wireless communication in order to determine the protocol to be activated.

[0121] History information may refer to information indicating the history of the electronic device (100) activating (or using) short-range wireless communication. For example, the electronic device (100) may store (or collect) first history information related to the previous use of a short-range wireless communication connection using a first protocol and second history information related to the previous use of a short-range wireless communication connection using a second protocol. When the first protocol of short-range wireless communication is used, the electronic device (100) may store first history information including context information including at least one of the duration of using the first protocol, the time of day of using the first protocol, the location of using the first protocol, and an application (or service) using the first protocol. For example, the electronic device (100) may store second history information including context information including at least one of the duration of using the second protocol, the time of day of using the second protocol, the location of using the second protocol, and an application (or service) using the first protocol when using the second protocol. In determining the location where the first protocol was used and the location where the second protocol was used, the electronic device (100) may determine the location where the first protocol was used and the location where the second protocol was used based on a circuit capable of measuring the location of the electronic device (100) (e.g., a GPS module), and, when the electronic device (100) has enabled cellular wireless communication, based on a signal received via cellular wireless communication and / or a signal received via short-range wireless communication. The model (420) may infer, in operation 513, the probability that at least one protocol is used during the activation period.

[0122] The model (420) can infer (or determine, confirm) the probability that a specific protocol will be performed for a specific period of time upon receiving a specific input. According to one example, the model (420) receives, by the electronic device (100), first information indicating at least one protocol of short-range wireless communication supported by the application and second information indicating an activation period of the short-range wireless communication, and can output information including the probability that at least one protocol included in the first information will be activated (or used) during the activation period included in the second information.

[0123] The information output by the model (420) is information output by the model (420) learned based on historical information, and the probability that a protocol that is frequently activated (or used) during a specific period (e.g., the first protocol) will be activated is inferred to be higher than the probability that a protocol that is relatively less activated (or used) (e.g., the second protocol) will be activated.

[0124] The model (420) can transmit the inference result to the system (503) in operation 514.

[0125] The system (503) can determine the protocol to be activated based on probability in operation 515.

[0126] The system (503) can determine the probability that at least one protocol determined (or inferred) by the model (420) will be used during the activation period, and select (or determine) the protocol to be activated among at least one protocol based on the probability.

[0127] The system (503) can select (or determine) a protocol to be activated among at least one protocol based on the probability that at least one protocol will be used during the activation period and the weight value of at least one protocol, which is determined (or inferred) by the model (420).

[0128] The weight of at least one protocol may be a value related to the performance of at least one protocol. For example, the weight of at least one protocol may be set higher as the performance of at least one protocol (e.g., transmission speed, reception speed, transmission success rate) increases.

[0129] The weight of at least one protocol may be a value related to the characteristics of at least one protocol. For example, the weight of at least one protocol may be set higher for protocols that are more recently implemented. For example, the weight of the NAN protocol may be set higher than the weight of a P2P protocol implemented earlier than the NAN protocol.

[0130] The weight of at least one protocol may be set directly by the user. For example, the electronic device (100) may set the weight of the protocol preferred by the user higher than the weight of the protocol preferred relatively less by the user.

[0131] The selected (or determined) protocol may be a protocol that can be activated simultaneously with the protocol that has the highest probability of being activated during the activation period included in the second information. Alternatively, the selected (or determined) protocol may be the same protocol as the protocol that has the highest probability of being activated during the activation period included in the second information.

[0132] The system (503) can control a communication circuit (e.g., the communication circuit (310) of FIG. 3) to be connected to an external electronic device (e.g., the second external electronic device (220) of FIG. 2) through a selected protocol in operation 516.

[0133] The system (503) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a selected protocol during at least some of the activation period. The electronic device (100) may control the communication circuit (310) to perform a connection with the first external electronic device (210) via a selected protocol, and may control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) and the second external electronic device (220) via a selected protocol. As described above, the electronic device (100) can establish a connection with the second external electronic device (220) using the same protocol as the protocol used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected by establishing a connection between the electronic device (100) and the first external electronic device (210).

[0134] The system (503) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a protocol that can be activated simultaneously with the selected protocol during at least some of the activation periods. The system (503) can control the communication circuit (310) to perform a connection with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol during at least a portion of the activation period, perform short-range wireless communication with the second external electronic device (220) through the selected protocol, and control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol. As described above, the electronic device (100) can perform a connection with the second external electronic device (220) using a protocol that can be activated simultaneously with the protocol to be used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected due to the establishment of a connection between the electronic device (100) and the first external electronic device (210).

[0135] FIG. 6 is a diagram illustrating an example in which an electronic device according to one embodiment determines a protocol to be activated based on a protocol that a second external electronic device can support and a probability that at least one protocol is used during an activation period.

[0136] An electronic device (e.g., the electronic device (100) of FIG. 3) can, in operation 610, transmit information indicating a protocol that the electronic device (100) can support to a second external electronic device (e.g., the second external electronic device (220) of FIG. 2).

[0137] The second external electronic device (220) can transmit information to the electronic device (100) indicating a protocol that the second external electronic device (220) can support in operation 620.

[0138] According to one example, the electronic device (100) may receive information from the second external electronic device (220) indicating a protocol that the second external electronic device (220) can support after searching for the second external electronic device (220). For example, the electronic device (100) may receive information indicating a protocol that the second external electronic device (220) can support via short-range wireless communication. As another example, the electronic device (100) may receive information indicating a protocol that the second external electronic device (220) can support via another short-range wireless communication (e.g., Bluetooth) (or, OOB (out of band)).

[0139] The electronic device (100) can determine the protocol to be activated in operation 630.

[0140] The electronic device (100) can identify at least one protocol supported by both the application and the second external electronic device (220), and apply to the model (420) first information indicating at least one protocol supported by both the application and the second external electronic device (220) and second information indicating an activation time. The model (420) can infer (or determine) the probability that each of the at least one protocol supported by both the application and the second external electronic device (220) will be activated during the activation time. The electronic device (100) can select (or determine) the protocol to be activated based on the probability determined (or inferred) by the model (420).

[0141] The electronic device (100) can transmit information indicating a selected protocol to a second external electronic device (220) in operation 640.

[0142] The electronic device (100) and the second external electronic device (220) can perform a connection procedure through a selected protocol in operation 650.

[0143] The electronic device (100) controls the communication circuit (310) to be connected to the second external electronic device (220) through a selected protocol and can perform short-range wireless communication with the second external electronic device (220).

[0144] The electronic device (100) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a selected protocol during at least some of the activation period. The electronic device (100) may control the communication circuit (310) to perform a connection with the first external electronic device (210) via a selected protocol, and may control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) and the second external electronic device (220) via a selected protocol. As described above, the electronic device (100) can establish a connection with the second external electronic device (220) using the same protocol as the protocol used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected by establishing a connection between the electronic device (100) and the first external electronic device (210).

[0145] The electronic device (100) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a protocol that can be activated simultaneously with the selected protocol during at least some of the activation periods. The electronic device (100) can control the communication circuit (310) to perform a connection with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol during at least a portion of the activation period, perform short-range wireless communication with the second external electronic device (220) through the selected protocol, and control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol. As described above, the electronic device (100) can perform a connection with the second external electronic device (220) using a protocol that can be activated simultaneously with the protocol to be used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected due to the establishment of a connection between the electronic device (100) and the first external electronic device (210).

[0146] FIG. 7 is a diagram illustrating an example in which an electronic device according to one embodiment determines a protocol to be activated based on the probability that a second external electronic device uses at least one protocol during an activation period and the probability that the electronic device uses at least one protocol during an activation period.

[0147] The electronic device (e.g., the electronic device (100) of FIG. 3) and the second external electronic device (e.g., the second external electronic device (220) of FIG. 2) can exchange connection request signals in operation 710.

[0148] The connection request signal may be a signal requesting that the electronic device (100) and the second external electronic device (220) be connected via short-range wireless communication. Both the electronic device (100) and the second external electronic device (220) may transmit the connection request signal, but either the electronic device (100) or the second external electronic device (220) may transmit the connection request signal.

[0149] The electronic device (100) can determine the probability that at least one protocol will be used during the activation period in operation 720.

[0150] The electronic device (100) can identify at least one protocol supported by the application and apply to the model (420) first information indicating at least one protocol supported by the application and second information indicating an activation time. The model (420) can infer (or determine) the probability that each of the at least one protocol supported by the application will be activated during the activation time.

[0151] The second external electronic device (220) can determine the probability that at least one protocol will be used during the activation period in operation 730.

[0152] The second external electronic device (220) may also include a model implemented on the electronic device (100). The second external electronic device (220) may identify at least one protocol supported by the second external electronic device (220) and apply to the model first information indicating at least one protocol supported by the second external electronic device (220) and second information indicating an activation time. The model may infer (or determine) the probability that each of the at least one protocol supported by the second external electronic device (220) will be activated during the activation time.

[0153] The electronic device (100) and the second external electronic device (220) can exchange determined probabilities in operation 740.

[0154] According to one example, the electronic device (100) may search for the second external electronic device (220) and then receive from the second external electronic device (220) information indicating the probability that at least one protocol determined by the second external electronic device (220) will be used during the activation period. The second external electronic device (220) may also infer (or determine) the probability that a protocol supported by the second external electronic device (220) will be used during the activation period, in the same manner as described above.

[0155] The electronic device (100) may receive information via short-range wireless communication indicating the probability that at least one protocol determined by the second external electronic device (220) will be used during the activation period. As another example, the electronic device (100) may receive information via other short-range wireless communication (e.g., Bluetooth) (or, OOB (out of band)) indicating the probability that at least one protocol determined by the second external electronic device (220) will be used during the activation period.

[0156] The electronic device (100) can determine the protocol to be activated in operation 750.

[0157] The electronic device (100) can determine the protocol to be activated based on the probability determined (or inferred) by the model (420) and the probability determined by the second external electronic device (220).

[0158] For example, the electronic device (100) can determine the protocol with the highest probability as the protocol to be activated after adding the probability determined by the model (420) (Table 1) and the probability determined by the second external electronic device (220) (Table 2).

[0159] Although not illustrated in FIG. 7, the electronic device (100) may transmit information indicating a selected protocol to a second external electronic device (220). After receiving the information indicating a selected protocol, the second external electronic device (220) may perform a series of operations to connect with the electronic device (100) through the selected protocol.

[0160] Alternatively, the electronic device (100) may not transmit information indicating the selected protocol to the second external electronic device (220). Instead, the second external electronic device (220) may also determine the protocol to be activated. The protocol determined by the electronic device (100) and the protocol determined by the second external electronic device (220) may be the same as the selected protocol based on the exchanged probability.

[0161] The electronic device (100) can perform a connection procedure through a selected protocol in operation 760.

[0162] The electronic device (100) controls the communication circuit (310) to be connected to the second external electronic device (220) through a selected protocol and can perform short-range wireless communication with the second external electronic device (220).

[0163] The electronic device (100) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a selected protocol during at least some of the activation period. The electronic device (100) may control the communication circuit (310) to perform a connection with the first external electronic device (210) via a selected protocol, and may control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) and the second external electronic device (220) via a selected protocol. As described above, the electronic device (100) can establish a connection with the second external electronic device (220) using the same protocol as the protocol used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected by establishing a connection between the electronic device (100) and the first external electronic device (210).

[0164] The electronic device (100) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a protocol that can be activated simultaneously with the selected protocol during at least some of the activation periods. The electronic device (100) can control the communication circuit (310) to perform a connection with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol during at least a portion of the activation period, perform short-range wireless communication with the second external electronic device (220) through the selected protocol, and control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol. As described above, the electronic device (100) can perform a connection with the second external electronic device (220) using a protocol that can be activated simultaneously with the protocol to be used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected due to the establishment of a connection between the electronic device (100) and the first external electronic device (210).

[0165] FIG. 8 is a diagram illustrating an example in which an electronic device according to one embodiment determines whether to perform the role of a GO (group owner) based on the probability that the electronic device performs a P2P connection during an activation period.

[0166] The application illustrated in FIG. 8 (e.g., the application (501) of FIG. 5) may refer to an application for performing short-range wireless communication using at least some of the protocols defined in short-range wireless communication (e.g., a content sharing application, a video call application). The system (e.g., the system (503) of FIG. 5) may be an entity implemented on the framework of the electronic device (100) as an entity for controlling short-range wireless communication. The application (501), the system (503), and the model (e.g., the model (420) of FIG. 4) may be software components implemented on a processor (e.g., the processor (320) of FIG. 3).

[0167] The application (501) can send a query containing second information to the system (503) in operation 811.

[0168] According to one example, the application (501) can determine the activation period of the short-range wireless communication performed by the application in order to determine the protocol to be activated.

[0169] The activation period of the short-range wireless communication may refer to the duration required for the application to transmit and / or receive data via the short-range wireless communication. The processor (320) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed).

[0170] According to another example, the activation period of the short-range wireless communication may refer to a starting time when the application begins to transmit and / or receive data via the short-range wireless communication and an end time when the application transmits and / or receives data via the short-range wireless communication. The processor (320) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed), and may determine the end time based on the determined time and the starting time.

[0171] The application (501) can verify (or generate) second information indicating (or indicating) the activation period of the short-range wireless communication.

[0172] In FIG. 5, it is stated that the application (501) checks the second information, but it may be performed by a system (503) rather than the application (501).

[0173] The application (501) may transmit a query containing second information to the system (503). The query may refer to a signal requesting information indicating a protocol available to the application (501).

[0174] The system (503) can apply second information to the model (420) in operation 812.

[0175] The model (420) can infer the probability that the electronic device (9100) performs a P2P connection within the activation period in operation 813.

[0176] According to one example, the model (420) can infer (or determine) the probability that the electronic device (100) performs additional P2P connections during an activation period. According to one example, the model (420) receives second information from the electronic device (100), including an activation period authorized by the electronic device (100), and can infer (or determine) the probability that additional P2P connections are performed during an activation period.

[0177] The model (420) can transmit the inference result to the system (503) in operation 814.

[0178] The system (503) can determine whether to perform GO based on the probability of performing a P2P connection in operation 815.

[0179] The system (503) may allow the electronic device (100) to act as a GO when negotiating the role of a P2P connection (e.g., GO (group owner) or GC (group client)) with the second external electronic device (220) if the probability of performing additional P2P connections during the activation period is greater than a specified size. When the electronic device (100) acts as a GC, it may be difficult to connect with other external electronic devices (e.g., the first external electronic device (210)) through P2P connections. Therefore, the electronic device (100) may be allowed to act as a GO. For example, the electronic device (100) may set a high value GO intent and transmit a signal containing the GO intent in a specific field (e.g., VSIE (vendor specific information element)) to the second external electronic device (220).

[0180] The system (503) can perform a P2P connection with a second external electronic device (220) based on a decision.

[0181] FIG. 9 is a diagram illustrating an example in which an electronic device according to one embodiment determines whether to perform the role of GO (group owner) based on the probability that the electronic device performs a P2P connection within the activation period and the probability that a second external electronic device performs a P2P connection within the activation period.

[0182] The electronic device (e.g., the electronic device (100) of FIG. 3) and the second external electronic device (e.g., the second external electronic device (220) of FIG. 2) can exchange connection request signals in operation 910.

[0183] The connection request signal may be a signal requesting that the electronic device (100) and the second external electronic device (220) be connected via short-range wireless communication. Both the electronic device (100) and the second external electronic device (220) may transmit the connection request signal, but either the electronic device (100) or the second external electronic device (220) may transmit the connection request signal.

[0184] The electronic device (100) can determine the probability that, in operation 920, the electronic device (100) performs an additional P2P connection during the activation period.

[0185] According to one example, the model (420) can infer (or determine) the probability that the electronic device (100) performs additional P2P connections during an activation period. According to one example, the model (420) receives second information from the electronic device (100), including an activation period authorized by the electronic device (100), and can infer (or determine) the probability that additional P2P connections are performed during an activation period.

[0186] The second external electronic device (220) can determine the probability that the second external electronic device (220) performs an additional P2P connection during the activation period in operation 930.

[0187] The second external electronic device (220) may also include a model implemented on the electronic device (100). The model may infer (or determine) the probability of performing additional P2P connections during an activation period based on second information including an activation period, which is authorized by the second external electronic device (220).

[0188] The electronic device (100) and the second external electronic device (220) can exchange determined probabilities with each other in operation 940.

[0189] According to one example, the electronic device (100) can receive information from the second external electronic device (220) indicating the probability that the second external electronic device (220) will perform an additional P2P connection, which is determined by the second external electronic device (220), after searching for the second external electronic device (220).

[0190] The electronic device (100) may receive information indicating the probability that the second external electronic device (220) will perform an additional P2P connection via short-range wireless communication. As another example, the electronic device (100) may receive information indicating the probability that the second external electronic device (220) will perform an additional P2P connection via other short-range wireless communication (e.g., Bluetooth) (or, OOB (out of band)).

[0191] The electronic device (100) and the second external electronic device (220) can transmit information indicating a determined probability, a signal contained in a specific field (e.g., VSIE (vendor specific information element)).

[0192] The electronic device (100) can determine whether the electronic device (100) will perform GO in operation 950.

[0193] When the electronic device (100) has a higher probability of the electronic device (100) performing additional P2P connections during the activation period than the second external electronic device (220) performing additional P2P connections during the activation period, the electronic device (100) may be made to act as the GO in negotiating the role of the P2P connection (e.g., GO (group owner) or GC (group client)) with the second external electronic device (220). The second external electronic device (220) may also infer (or determine) the probability that the second external electronic device (220) performs additional P2P connections during the activation period in the same manner as described above, and the second external electronic device (220) may transmit information including the probability that the second external electronic device (220) performs additional P2P connections during the activation period to the electronic device (100). When the electronic device (100) operates as a GC, it may be difficult to connect with other external electronic devices (e.g., a first external electronic device (210)) via a P2P connection. Therefore, the electronic device (100) can be made to operate as a GO. For example, the electronic device (100) can set a high value GO intent and transmit a signal containing the GO intent in a specific field (e.g., VSIE (vendor specific information element)) to a second external electronic device (220).

[0194] The electronic device (100) and the second external electronic device (220) can perform a P2P connection in operation 960.

[0195] FIG. 10 is an operation flowchart (1000) illustrating the operation method of an electronic device according to one embodiment.

[0196] An electronic device (e.g., the electronic device (100) of FIG. 3) can identify first information indicating a first protocol and a second protocol of short-range wireless communication supported by an application in operation 1010.

[0197] According to one example, the electronic device (100) may identify at least one protocol supported by the application to determine the protocol to be activated. According to one example, at least one protocol may include a first protocol and a second protocol. For example, the first protocol may be P2P (or Wi-Fi Direct) and the second protocol may be a Neighbor Awareness Network (NAN). Conversely, the first protocol may be NAN and the second protocol may be P2P (or Wi-Fi Direct). The electronic device (100) may generate (or identify) first information indicating (or representing) at least one protocol supported by the application.

[0198] The electronic device (100) can check second information indicating the activation period of the short-range wireless communication performed by the application in operation 1020.

[0199] According to one example, the electronic device (100) can determine the activation period of the short-range wireless communication performed by the application in order to determine the protocol to be activated.

[0200] The activation period of short-range wireless communication may refer to the period during which short-range wireless communication is activated to perform services provided by an application.

[0201] The activation period of the short-range wireless communication may refer to the duration required for an application to transmit and / or receive data via the short-range wireless communication. The electronic device (100) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed).

[0202] According to another example, the activation period of the short-range wireless communication may refer to a starting time when the application begins to transmit and / or receive data via the short-range wireless communication and an end time when the application transmits and / or receives data via the short-range wireless communication. The electronic device (100) may determine (or decide) the time required to transmit and / or receive data based on the size of the data to be transmitted via the short-range wireless communication and / or the performance of the short-range wireless communication (e.g., maximum transmission speed), and may determine the end time based on the determined time and the starting time.

[0203] The electronic device (100) can confirm (or generate) second information indicating (or indicating) the activation period of short-range wireless communication.

[0204] The electronic device (100) can apply the first information and the second information to a model learned based on historical information connected through a protocol that is activated for at least a portion of the activation period, in operation 1030, with a first external electronic device (e.g., the first external electronic device (220) of FIG. 2).

[0205] According to one example, the model (420) may be an entity that selects (or determines, infers) the protocol to be activated. The electronic device (100) may store the model (420), which has been learned based on historical information related to the use of short-range wireless communication, in memory included in the electronic device (100) or in memory (330) connected to the electronic device (100). The model (420) may be an artificial intelligence model (420) that has been learned based on historical information related to being connected via an activated protocol with an external electronic device (e.g., the first external electronic device (210) of FIG. 2a) that has a history of being connected to the electronic device (100). Alternatively, the model (420) may be an artificial intelligence model (420) learned based on historical information related to being connected via an activated protocol during a period including at least a portion of the activation period with an external electronic device (e.g., the first external electronic device (210) of FIG. 2a) that has a history of being connected to the electronic device (100). The model (420) may be an artificial intelligence model (420) learned by the manufacturer of the electronic device (100) using various technologies (e.g., machine learning, neural network learning, self-organizing map, hidden Markov model (420), or convolution neural network learning).

[0206] The electronic device (100) can train a model (420) based on historical information related to the use of short-range wireless communication prior to the execution of the application.

[0207] History information may refer to information indicating the history of the electronic device (100) activating (or using) short-range wireless communication. For example, the electronic device (100) may store (or collect) first history information related to the previous use of a short-range wireless communication connection using a first protocol and second history information related to the previous use of a short-range wireless communication connection using a second protocol. When the first protocol of short-range wireless communication is used, the electronic device (100) may store first history information including context information including at least one of the duration of using the first protocol, the time of day of using the first protocol, the location of using the first protocol, and an application (or service) using the first protocol. For example, the electronic device (100) may store second history information including context information including at least one of the duration of using the second protocol, the time of day of using the second protocol, the location of using the second protocol, and an application (or service) using the first protocol when using the second protocol. In determining the location using the first protocol and the location using the second protocol, the electronic device (100) may determine the location using the first protocol and the location using the second protocol based on a circuit capable of measuring the location of the electronic device (100) (e.g., a GPS module), and, when the electronic device (100) enables cellular wireless communication, based on a signal received via cellular wireless communication and / or a signal received via short-range wireless communication.History information may include information related to the time when the electronic device (100) performed short-range wireless communication (e.g., hour, minute, whether it is a weekday or a weekend), information related to the location where the electronic device (100) performed short-range wireless communication (e.g., information indicating whether the location where the electronic device (100) performed short-range wireless communication is a home, information indicating whether the location where the electronic device (100) performed short-range wireless communication is a frequently visited place, information indicating whether the location where the electronic device (100) performed short-range wireless communication is a workplace), information indicating the protocol activated by the electronic device (100) in performing short-range wireless communication (e.g., P2P protocol, WLAN protocol, NAN protocol), channel information used in performing short-range wireless communication (e.g., channel 36), and at least one of the roles performed in performing short-range wireless communication (e.g., GO (group owner), GC (group client). The model (420) is electronic The device (100) can be trained based on the control of the device (100) and the history information input by the electronic device (100). The model can be trained according to various methods. According to one example, the model can be trained according to various methods among machine learning methods, for example, the model can be trained according to a supervised learning method. When the model is trained according to a supervised learning method, the model can be provided with input data (e.g., first history information, second history information) and correct answers (e.g., probabilities) corresponding to the input data, and can be trained to output appropriate probabilities based on the provided data. The probability can be calculated according to various methods (e.g., a method in which the output value is minimized when input data is input into a loss function).

[0208] The model (420) can infer (or determine, confirm) the probability that a specific protocol will be performed for a specific period of time upon receiving a specific input. According to one example, the model (420) receives, by the electronic device (100), first information indicating at least one protocol of short-range wireless communication supported by the application and second information indicating an activation period of the short-range wireless communication, and can output information including the probability that at least one protocol included in the first information will be activated (or used) during the activation period included in the second information. According to one example, the model can infer the probability based on various information in addition to the first information and the second information. For example, the model can further receive location information of the electronic device (100) and the current time from the processor (320) and infer the probability considering the location information of the electronic device (100). Information including the probability that at least one protocol included in the first information will be activated (or used) during the activation period included in the second information may be referred to as third information.

[0209] The information output by the model (420) is information output by the model (420) learned based on historical information, and the probability that a protocol that is frequently activated (or used) during a specific period (e.g., the first protocol) will be activated is inferred to be higher than the probability that a protocol that is relatively less activated (or used) (e.g., the second protocol) will be activated.

[0210] The electronic device (100) can determine the protocol to be activated based on the probability that at least one protocol will be used during the activation period in operation 1040.

[0211] The electronic device (100) can determine the probability that at least one protocol, determined (or inferred) by the model (420), will be used during the activation period, and can select (or determine) the protocol to be activated among at least one protocol based on the probability. The electronic device (100) can determine the probability that a first protocol and a second protocol, determined (or inferred) by the model, will be used during the activation period, and can select (or determine) the protocol to be activated among the first protocol and the second protocol based on the probability. For example, the electronic device (100) can select the first protocol as the protocol to be activated if the probability that the first protocol will be activated is higher than the probability that the second protocol will be activated. As another example, the electronic device (100) can select the second protocol as the protocol to be activated if the probability that the second protocol will be activated is higher than the probability that the first protocol will be activated.

[0212] The electronic device (100) can select (or determine) a protocol to be activated among at least one protocol based on the probability that at least one protocol will be used during the activation period and the weight value of at least one protocol, which is determined (or inferred) by the model (420).

[0213] The weight of at least one protocol may be a value related to the performance of at least one protocol. For example, the weight of at least one protocol may be set higher as the performance of at least one protocol (e.g., transmission speed, reception speed, transmission success rate) increases.

[0214] The electronic device (100) can be connected to a second external electronic device (220) via a selected protocol in operation 1050.

[0215] The electronic device (100) controls the communication circuit (310) to be connected to the second external electronic device (220) through a selected protocol and can perform short-range wireless communication with the second external electronic device (220).

[0216] The electronic device (100) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a selected protocol during at least some of the activation period. The electronic device (100) may control the communication circuit (310) to perform a connection with the first external electronic device (210) via a selected protocol, and may control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) and the second external electronic device (220) via a selected protocol. As described above, the electronic device (100) can establish a connection with the second external electronic device (220) using the same protocol as the protocol used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected by establishing a connection between the electronic device (100) and the first external electronic device (210).

[0217] The electronic device (100) may attempt to connect with the first external electronic device (210) while connected to the second external electronic device (220) via a selected protocol. According to one example, the electronic device (100) may attempt to connect with the first external electronic device (210) upon activation of a service using the first external electronic device (210). As described above, the first external electronic device (210) may be an electronic device that is frequently connected to the electronic device (100) via a protocol that can be activated simultaneously with the selected protocol during at least some of the activation periods. The electronic device (100) can control the communication circuit (310) to perform a connection with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol during at least a portion of the activation period, perform short-range wireless communication with the second external electronic device (220) through the selected protocol, and control the communication circuit (310) to perform short-range wireless communication with the first external electronic device (210) through a protocol that can be activated simultaneously with the selected protocol. As described above, the electronic device (100) can perform a connection with the second external electronic device (220) using a protocol that can be activated simultaneously with the protocol to be used for short-range wireless communication with the first external electronic device (210), thereby preventing a situation in which the connection between the second external electronic device (220) and the electronic device (100) is disconnected due to the establishment of a connection between the electronic device (100) and the first external electronic device (210).

[0218] An electronic device according to one example may include a communication circuit (310) that supports short-range wireless communication. The electronic device may include a memory (330) that stores computer programs including instructions. The electronic device may include at least one processor (320). The instructions may cause the electronic device to identify first information indicating a first protocol and a second protocol of the short-range wireless communication supported by the application, when executed individually or collectively by the at least one processor (320). The instructions may cause the electronic device to identify second information indicating an activation period of the short-range wireless communication for performing a service by the application, when executed individually or collectively by the at least one processor (320). The above instructions may cause the electronic device to apply the first information and the second information to a model to obtain third information related to the probability that the first protocol will be activated during the activation period and the probability that the second protocol will be activated during the activation period, when executed individually or collectively by the at least one processor (320). The above instructions may cause the electronic device to select the protocol to be activated among the first protocol and the second protocol based on the third information when executed individually or collectively by the at least one processor (320). The above instructions may cause the electronic device to control the communication circuit (310) to be connected to an external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the selected protocol when executed individually or collectively by the at least one processor (320).

[0219] In an electronic device according to one example, the model may correspond to a model learned based on first history information related to the previous use of the short-range wireless communication connection using the first protocol and second history information related to the previous use of the short-range wireless communication connection using the second protocol.

[0220] In an electronic device according to one example, the first history information may include context information related to the location where the first protocol was activated and the time at which the first protocol was activated. The second history information may include context information related to the location where the second protocol was activated and the time at which the second protocol was activated.

[0221] In an electronic device according to one example, when the instructions are executed individually or collectively by the at least one processor (320), the electronic device may select the protocol to be activated based on the probability that the first protocol and the second protocol will be activated during the activation period and the weight value of each of the first protocol and the second protocol.

[0222] In an electronic device according to one example, the weight may be set based on the maximum data transmission speed using each of the first protocol and the second protocol.

[0223] In an electronic device according to one example, when the instructions are executed individually or collectively by at least one processor (320), the electronic device may select which of the first protocol and the second protocol to be activated based on the probability that each of the first protocol and the second protocol will be activated during the activation period and the probability that each of the first protocol and the second protocol will be activated during the activation period determined by the external electronic device (e.g., the second external electronic device (220) of FIG. 2).

[0224] In an electronic device according to one example, the instructions may cause the electronic device to receive information from the external electronic device (e.g., the second external electronic device (220) of FIG. 2) indicating at least one protocol that the external electronic device (e.g., the second external electronic device (220) of FIG. 2) can support, when executed individually or collectively by the at least one processor (320). The instructions may cause the electronic device to generate the first information based on the information indicating at least one protocol that the external electronic device (e.g., the second external electronic device (220) of FIG. 2) can support, when executed individually or collectively by the at least one processor (320). The at least one protocol may include a protocol that both the electronic device and the external electronic device (e.g., the second external electronic device (220) of FIG. 2) can support.

[0225] In an electronic device according to one example, the instructions, when executed individually or collectively by the at least one processor (320), may receive a request for connection with another external electronic device (e.g., the first external electronic device (210) of FIG. 2) while the electronic device performs the short-range wireless communication with the external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the selected protocol. The instructions, when executed individually or collectively by the at least one processor (320), may cause the electronic device to control the communication circuit (310) to be connected with the other external electronic device (e.g., the first external electronic device (210) of FIG. 2) through the selected protocol. The above instructions may, when executed individually or collectively by at least one processor (320), cause the electronic device to control the communication circuit (310) to perform short-range wireless communication with the other external electronic device and the external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the selected protocol.

[0226] In an electronic device according to one example, the instructions may, when executed individually or collectively by the at least one processor (320), cause the electronic device to receive a request for connection with the other external electronic device (e.g., the first external electronic device (210) of FIG. 2) while performing the short-range wireless communication with the external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the selected protocol. The instructions may, when executed individually or collectively by the at least one processor (320), cause the electronic device to control the communication circuit (310) to be connected with the other external electronic device (e.g., the first external electronic device (210) of FIG. 2) through a protocol other than the selected protocol among the first protocol and the second protocol. The above instructions may, when executed individually or collectively by the at least one processor (320), cause the electronic device to control the communication circuit (310) to perform short-range wireless communication with the other external electronic device (e.g., the first external electronic device (210) of FIG. 2) through the other protocol and to perform short-range wireless communication with the external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the selected protocol.

[0227] In an electronic device according to one example, when the instructions are executed individually or collectively by the at least one processor (320), the electronic device may apply to the model first information and second information indicating a protocol that can be activated, such as the selected protocol, when the selected protocol is activated and an application that does not support the selected protocol is activated.

[0228] In a recording medium storing at least one program comprising instructions that cause the electronic device to perform operations when executed individually or collectively by at least one processor (320) of the electronic device, the instructions may cause the electronic device to identify first information indicating a first protocol and a second protocol of the short-range wireless communication supported by the application when executed individually or collectively by the at least one processor (320). The instructions may cause the electronic device to identify second information indicating an activation period of the short-range wireless communication for performing services by the application when executed individually or collectively by the at least one processor (320). When the above instructions are executed individually or collectively by the at least one processor (320), the electronic device may apply the first information and the second information to a model to obtain third information related to the probability that the first protocol will be activated during the activation period and the probability that the second protocol will be activated during the activation period. When the above instructions are executed individually or collectively by the at least one processor (320), the electronic device may select the protocol to be activated among the first protocol and the second protocol based on the third information. When the above instructions are executed individually or collectively by the at least one processor (320), the electronic device may control the communication circuit (310) of the electronic device to be connected to an external electronic device through the selected protocol.

[0229] In a recording medium according to one example, the model may correspond to a model learned based on first history information related to the previous use of the short-range wireless communication connection using the first protocol and second history information related to the previous use of the short-range wireless communication connection using the second protocol.

[0230] In a recording medium according to one example, the first history information may include context information related to the location where the first protocol was activated and the time at which the first protocol was activated. The second history information may include context information related to the location where the second protocol was activated and the time at which the second protocol was activated.

[0231] In a recording medium according to one example, when the instructions are executed individually or collectively by the at least one processor (320), the electronic device may select the protocol to be activated based on the probability that the at least one protocol will be activated during the activation period and the weight value of each of the at least one protocol.

[0232] In a recording medium according to one example, the weight may be set based on the maximum data transmission speed using each of the at least one protocol.

[0233] In a recording medium according to one example, the instructions may, when executed individually or collectively by at least one processor (320), allow the electronic device to select the protocol to be activated among the first protocol and the second protocol based on the probability that each of the first protocol and the second protocol will be activated during the activation period and the probability that each of the first protocol and the second protocol will be activated during the activation period determined by the external electronic device (e.g., the second external electronic device (220) of FIG. 2).

[0234] In a recording medium according to one example, the instructions may cause the electronic device to receive information from the external electronic device (e.g., the second external electronic device (220) of FIG. 2) indicating at least one protocol that the external electronic device (e.g., the second external electronic device (220) of FIG. 2) can support, when executed individually or collectively by the at least one processor (320). The instructions may cause the electronic device to generate the first information based on the information indicating at least one protocol that the external electronic device (e.g., the second external electronic device (220) of FIG. 2) can support, when executed individually or collectively by the at least one processor (320). The at least one protocol may include a protocol that both the electronic device and the external electronic device (e.g., the second external electronic device (220) of FIG. 2) can support.

[0235] In a recording medium according to one example, the instructions may, when executed individually or collectively by the at least one processor (320), cause the electronic device to receive a request for connection with another external electronic device (e.g., the first external electronic device (210) of FIG. 2) while performing the short-range wireless communication with the external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the determined protocol. The instructions may, when executed individually or collectively by the at least one processor (320), cause the electronic device to control the communication circuit (310) to be connected with the other external electronic device (e.g., the first external electronic device (210) of FIG. 2) through the determined protocol. When the above instructions are executed individually or collectively by the at least one processor (320), the electronic device may control the communication circuit (310) to perform short-range wireless communication with the other external electronic device (e.g., the first external electronic device (210) of FIG. 2) and the external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the selected protocol.

[0236] A method of operation of an electronic device according to one example may include an operation of checking first information indicating a first protocol and a second protocol of the short-range wireless communication supported by the application. A method of operation of an electronic device may include an operation of checking second information indicating an activation period of the short-range wireless communication for performing a service by the application. A method of operation of an electronic device may include an operation of applying the first information and the second information to a model in order to obtain third information related to the probability that the first protocol will be activated during the activation period and the probability that the second protocol will be activated during the activation period. A method of operation of an electronic device may include an operation of selecting the protocol to be activated among the first protocol and the second protocol based on the third information. A method of operation of an electronic device may include an operation of connecting to an external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the selected protocol.

[0237] In a method of operation of an electronic device according to one example, the model may correspond to a model learned based on first history information related to the previous use of the short-range wireless communication connection using the first protocol and second history information related to the previous use of the short-range wireless communication connection using the second protocol.

[0238] In a method of operation of an electronic device according to one example, the first history information may include context information related to the location where the first protocol was activated and the time at which the first protocol was activated. The second history information may include context information related to the location where the second protocol was activated and the time at which the second protocol was activated.

[0239] A method of operation of an electronic device according to one example may further include receiving a connection request from another external electronic device (e.g., the first external electronic device (210) of FIG. 2) while performing short-range wireless communication with the external electronic device (e.g., the second external electronic device (220) of FIG. 2) through the determined protocol. A method of operation of the electronic device may further include connecting with another external electronic device (e.g., the first external electronic device (210) of FIG. 2) through the selected protocol. A method of operation of the electronic device may include performing short-range wireless communication with the external electronic device and the other external electronic device (e.g., the first external electronic device (210) of FIG. 2) through the selected protocol.

Claims

1. In an electronic device, Communication circuit supporting short-range wireless communication; Memory for storing computer programs including instructions; and It includes at least one processor, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, Checking first information indicating the first protocol and the second protocol of the short-range wireless communication supported by the application, Checking second information indicating the activation period of the short-range wireless communication for performing a service by the above application, and To obtain third information related to the probability that the first protocol is activated during the activation period and the probability that the second protocol is activated during the activation period, the first information and the second information are applied to the model, and Based on the third information above, select the protocol to be activated among the first protocol and the second protocol, and An electronic device that controls the communication circuit to be connected to an external electronic device through the selected protocol.

2. In Paragraph 1, The above model is, An electronic device corresponding to a model learned based on first history information related to the previous use of the short-range wireless communication connection using the first protocol and second history information related to the previous use of the short-range wireless communication connection using the second protocol.

3. In paragraphs 1 and 2, The above first history information It includes context information related to the location where the first protocol is activated and the time at which the first protocol is activated, and The above second history information An electronic device comprising context information related to the location where the second protocol is activated and the time at which the second protocol is activated.

4. In paragraphs 1 through 3, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, An electronic device that selects the protocol to be activated based on the probability that the first protocol and the second protocol will be activated during the activation period and the weight value of each of the first protocol and the second protocol.

5. In paragraphs 1 through 4, The above weight is An electronic device configured based on the maximum data transmission speed using each of the first protocol and the second protocol.

6. In paragraphs 1 through 5, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, An electronic device that selects the protocol to be activated among the first protocol and the second protocol based on the probability that each of the first protocol and the second protocol will be activated during the activation period and the probability that each of the first protocol and the second protocol will be activated during the activation period determined by the external electronic device.

7. In paragraphs 1 through 6, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, Receive information from the above external electronic device indicating at least one protocol that the external electronic device can support, and The above external electronic device generates the first information based on information indicating at least one protocol that it can support, and The above at least one protocol comprises an electronic device that includes a protocol that can be supported by both the electronic device and the external electronic device.

8. In paragraphs 1 through 7, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, While performing the short-range wireless communication through the above external electronic device and the above selected protocol, receiving a connection request from another external electronic device, Control the communication circuit to be connected to the other external electronic device through the selected protocol, and An electronic device that controls the communication circuit to perform short-range wireless communication with the other external electronic device and the external electronic device through the selected protocol.

9. A recording medium storing at least one program comprising instructions that cause the electronic device to perform operations when executed individually or collectively by at least one processor of the electronic device, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, Checking first information indicating the first protocol and the second protocol of the short-range wireless communication supported by the above application, and Checking second information indicating the activation period of the short-range wireless communication for performing a service by the above application, and In order to obtain third information related to the probability that the first protocol is activated during the activation period and the probability that the second protocol is activated during the activation period, the first information and the second information are applied to the model, and Based on the third information above, select the protocol to be activated among the first protocol and the second protocol, and A recording medium that controls the communication circuit of the electronic device to be connected to an external electronic device through the selected protocol.

10. In Paragraph 9, The above model is, A recording medium corresponding to a model learned based on first history information related to the previous use of the short-range wireless communication connection using the first protocol and second history information related to the previous use of the short-range wireless communication connection using the second protocol.

11. In paragraphs 9 and 10, The above first history information It includes context information related to the location where the first protocol is activated and the time at which the first protocol is activated, and The above second history information A recording medium comprising context information related to the location where the second protocol is activated and the time at which the second protocol is activated.

12. In paragraphs 9 through 11, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, A recording medium for selecting the protocol to be activated based on the probability that at least one protocol will be activated during the activation period and the weight value of each of the at least one protocol.

13. In Paragraphs 9 through 12, The above weight is A recording medium configured based on the maximum data transmission speed using each of the above at least one protocol.

14. In Paragraphs 9 through 13, When the above instructions are executed individually or collectively by the at least one processor, the electronic device, A recording medium for selecting the protocol to be activated among the first protocol and the second protocol based on the probability that each of the first protocol and the second protocol will be activated during the activation period and the probability that each of the first protocol and the second protocol will be activated during the activation period determined by the external electronic device.

15. In a method of operating an electronic device, An operation to verify first information indicating the first protocol and the second protocol of the short-range wireless communication supported by the above application; An operation to verify second information indicating the activation period of the short-range wireless communication for performing a service by the above application; An operation of applying the first information and the second information to a model in order to obtain third information related to the probability that the first protocol will be activated during the activation period and the probability that the second protocol will be activated during the activation period; Based on the third information above, an operation of selecting the protocol to be activated among the first protocol and the second protocol; and A method of operation of an electronic device including the operation of connecting to an external electronic device through the above-described selected protocol.