Method for transmitting data and electronic device for performing same
The electronic device optimizes data transmission by determining direct or indirect communication methods based on collected information and a threshold value, addressing inefficiencies in existing communication technologies to enhance speed and efficiency.
Patent Information
- Application Number
- PCT/KR2024/020366
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-08
- Filing Date
- 2024-12-16
- Publication Date
- 2025-07-24
AI Technical Summary
Existing communication methods between devices face inefficiencies in data transmission speed and connection establishment time, particularly when using Bluetooth for short-range communication and Wi-Fi for long-range communication, as they require additional time to establish connections, affecting overall data transfer efficiency.
An electronic device determines the optimal communication method (direct or indirect) based on collected communication information, using a threshold value to decide between direct communication (e.g., Wi-Fi Direct, Bluetooth) for large data and indirect communication (e.g., Wi-Fi LAN) for small data, optimizing data transfer speed by matching the method to data size and signal strength.
This approach enhances data transmission speed by selecting the most efficient communication method based on data size and signal strength, reducing connection establishment time and improving overall data transfer efficiency.
Smart Images

Figure KR2024020366_24072025_PF_FP_ABST
Abstract
Description
Method for transmitting data and electronic device for doing so
[0001] The present disclosure relates to a method for transmitting data and an electronic device for performing the same. The present disclosure relates to a method for transmitting data using a data transmission method selected based on collected information and an electronic device for performing the same.
[0002] Advances in communication technology have enabled users to access communication services anywhere using Wi-Fi signals. Wi-Fi signals can be transmitted and received from access points (APs) to user devices. The longer the distance between a user device and an AP, the weaker the signal. The closer the AP, the stronger the signal.
[0003] Meanwhile, short-range communication between user terminals is possible, as well as communication between user terminals and AP devices. For example, short-range communication via Bluetooth signals is possible between user terminals. When exchanging data between user terminals, short-range communication via Bluetooth signals has the advantage of fast data transfer speeds, but the disadvantage is that it takes additional time to establish a connection between user terminals.
[0004] Therefore, when transmitting data between user terminals, short-range communication via Bluetooth and communication via Wi-Fi signals are utilized complementarily. For large data transfers, short-range communication via Bluetooth signals allows for faster data transfer, while for smaller data transfers, Wi-Fi signals allow for faster data transfer.
[0005] A method according to one embodiment of the present disclosure may include a step of obtaining first communication information regarding direct communication between a first device and a second device. The method may include a step of obtaining second communication information regarding indirect communication between the first device and the second device via an intermediary. The method may include a step of determining a threshold for determining one of direct communication and indirect communication based on the first communication information and the second communication information. The method may include a step of determining a communication method for transmitting data from the first device to the second device based on whether the size of the data exceeds the threshold.
[0006] An electronic device according to an embodiment of the present disclosure may include a memory and at least one processor. The memory may store one or more instructions. The at least one processor may execute one or more instructions stored in the memory. The at least one processor may obtain first communication information regarding direct communication with an external device by executing the one or more instructions. The at least one processor may obtain second communication information regarding indirect communication with the external device through a medium. The at least one processor may determine a data size threshold for determining one of direct communication and indirect communication based on the first communication information and the second communication information. The at least one processor may determine a communication method for transmitting data to the external device based on whether the data size exceeds the threshold.
[0007] According to one embodiment of the present disclosure, a computer-readable recording medium having recorded thereon a program for performing any one of the aforementioned and hereinafter described methods related to the operation of an electronic device on a computer may be provided.
[0008] FIG. 1 is a conceptual diagram illustrating a method for transmitting data by an electronic device according to an embodiment of the present disclosure.
[0009] FIG. 2 is a block diagram schematically illustrating the configuration of an electronic device according to an embodiment of the present disclosure.
[0010] FIG. 3 is a flowchart illustrating a method of transmitting data according to an embodiment of the present disclosure.
[0011] FIG. 4 is a flowchart illustrating a method by which an electronic device transmits data to an external device according to an embodiment of the present disclosure.
[0012] FIG. 5 is a flowchart illustrating a method for obtaining communication information for a Wi-Fi network according to an embodiment of the present disclosure.
[0013] FIG. 6 is a diagram illustrating a method for transmitting data whose size exceeds a threshold value, according to one embodiment of the present disclosure.
[0014] FIG. 7 is a diagram illustrating a method for transmitting data whose size is less than a threshold value, according to one embodiment of the present disclosure.
[0015] Figure 8 is a conceptual diagram for explaining a situation and method for transmitting data whose size exceeds a threshold value.
[0016] FIG. 9 is a diagram illustrating a method of transmitting data to an external device with which a communication connection has not been established through the same medium, according to one embodiment of the present disclosure.
[0017] In describing this disclosure, descriptions of technical details that are well-known in the technical field to which this disclosure pertains and are not directly related to this disclosure will be omitted. This is to avoid obscuring the gist of this disclosure by omitting unnecessary explanations and to convey it more clearly. Furthermore, the terms described below are defined based on their functions in this disclosure and may vary depending on the intent or custom of the user or operator. Therefore, their definitions should be based on the contents of this specification as a whole.
[0018] For the same reason, some components in the attached drawings are exaggerated, omitted, or schematically depicted. Furthermore, the dimensions of each component do not entirely reflect its actual size. Identical or corresponding components in each drawing are assigned the same reference numbers.
[0019] The advantages and features of the present disclosure, and methods for achieving them, will become clearer with reference to the embodiments described below in detail with the accompanying drawings. However, the present disclosure is not limited to the embodiments disclosed below and may be implemented in various different forms. The disclosed embodiments are provided to ensure that the disclosure of the present disclosure is complete and to fully inform those skilled in the art of the present disclosure of the scope of the disclosure. An embodiment of the present disclosure may be defined according to the claims. Like reference numerals denote like elements throughout the specification. In addition, when describing an embodiment of the present disclosure, if a detailed description of a related function or configuration is determined to unnecessarily obscure the gist of the present disclosure, the detailed description thereof will be omitted. In addition, the terms described below are terms defined in consideration of the functions of the present disclosure and may vary depending on the intention or custom of the user or operator. Therefore, the definitions should be made based on the contents throughout this specification.
[0020] In one embodiment, each block of the flowchart diagrams and combinations of the flowchart diagrams can be performed by computer program instructions. The computer program instructions can be installed on a processor of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, and the instructions, when executed by the processor of the computer or other programmable data processing apparatus, can create means for performing the functions described in the flowchart block(s). The computer program instructions can also be stored in a computer-available or computer-readable memory that can direct a computer or other programmable data processing apparatus to implement the functions in a particular manner, and the instructions stored in the computer-available or computer-readable memory can also produce an article of manufacture that includes instruction means for performing the functions described in the flowchart block(s). The computer program instructions can also be installed on a computer or other programmable data processing apparatus.
[0021] Additionally, each block in the flowchart diagram may represent a module, segment, or portion of code that includes one or more executable instructions for performing a specified logical function(s). In one embodiment, the functions described in the blocks may occur out of order. For example, two blocks depicted in succession may be executed substantially simultaneously or, depending on the function, may be executed in reverse order.
[0022] The terms 'part' and 'module' used in one embodiment of the present disclosure may represent software or hardware components such as a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC), and the 'part' and 'module' may perform a specific role. Meanwhile, the 'part' and 'module' are not limited to software or hardware. The 'part' and 'module' may be configured to be in an addressable storage medium and may be configured to play one or more processors. In one embodiment, the 'part' and 'module' may include components such as software components, object-oriented software components, class components, and task components, processes, functions, properties, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables. The functionality provided through the '~part' and 'module' may be combined to reduce the number of components or separated into additional components. Furthermore, in one embodiment, the '~part' and 'module' may include one or more processors.
[0023] In the present disclosure, direct communication may refer to a communication method that directly connects devices. Electronic devices can directly receive or transmit data from external devices through direct communication. For example, direct communication may be implemented using technologies such as Wi-Fi Direct (Wi-Fi P2P), Bluetooth, Bluetooth Low Energy (BLE), Near Field Communication (NFC), and USB connection.
[0024] In the present disclosure, indirect communication may refer to a communication method that requires an intermediate medium for device-to-device communication. Indirect communication may refer to a communication method that establishes a connection between devices through an intermediate medium. An electronic device may establish a network connection with an external device through a router or access point. For example, indirect communication may be implemented through Wi-Fi LAN technology.
[0025] Direct communication can take time to establish a direct connection between devices. However, data transfer via direct communication generally transfers faster than via indirect communication. Therefore, when transferring large data, direct communication may be advantageous. When transferring small data, indirect communication may be advantageous.
[0026] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings.
[0027] FIG. 1 is a conceptual diagram illustrating a method for transmitting data by an electronic device according to an embodiment of the present disclosure.
[0028] Referring to FIG. 1, a first device (10), a second device (20), and a medium (30) are illustrated for convenience of explanation.
[0029] An electronic device according to one embodiment can transmit data to an external device. The electronic device can determine a communication method based on communication information regarding the size of the data and the communication method. The electronic device can transmit data to the external device based on the determined communication method. By determining an efficient communication method according to the situation, the electronic device can improve the data transmission speed.
[0030] For example, in FIG. 1, the electronic device may correspond to the first device (10), and the external device may correspond to the second device (20). Hereinafter, a method of transmitting data based on the first device (10) and the second device (20) will be specifically described.
[0031] In step S10, the first device (10) can transmit data to the second device (20) by directly performing wireless communication with the second device (20). The first device (10) can directly transmit data to the second device (20). The first device (10) can transmit data through a direct communication method such as BLE (Bluetooth Low Energy) or Wi-Fi Direct.
[0032] In step S20, the first device (10) is indirectly connected to the second device (20) through a medium (30), thereby transmitting data to the second device (20). The first device (10) can indirectly transmit data to the second device (20) using the medium (30). The second device (20) can transmit data through an indirect communication method such as a Wi-Fi LAN (Local Area Network).
[0033] For reference, the larger the data to be transmitted, the more advantageous it is to transmit the data using direct communication. The smaller the data to be transmitted, the more advantageous it is to transmit the data using indirect communication. Direct communication, while faster in transmitting data, requires additional time to establish direct communication between the first device (10) and the second device (20).
[0034] In one embodiment, the first device (10) can determine one of the communication method according to step S10 and the communication method according to step S20. The first device (10) can obtain first communication information regarding a direct communication method between the first device (10) and the second device (20). The first device (10) can obtain second communication information regarding an indirect communication method between the first device (10) and the second device (20) through a medium (30). The first device (10) can determine one of the direct communication method and the indirect communication method based on the first communication information and the second communication information.
[0035] In one embodiment, the first device (10) can transmit data to the second device (20) based on the determined communication method. The communication method can be determined based on the size of the data to be transmitted, the signal strength of the communication method, and the network frequency of the communication method.
[0036] For example, depending on the signal strength of the communication method and the network frequency of the communication method, a data size threshold at which the data transmission speeds according to the indirect communication method and the direct communication method are reversed can be determined. For example, the data size threshold can be 50 MB. If the size of the data to be transmitted is less than 50 MB, it is advantageous for the first device (10) to transmit the data through the indirect communication method, and if the size of the data to be transmitted exceeds 50 MB, it is advantageous for the first device (10) to transmit the data through the direct communication method.
[0037] However, if the signal strength of the direct communication method becomes weaker, the data size threshold may increase. In this case, the data size threshold may be determined as 60 MB. If the size of the data to be transmitted is less than 60 MB, the first device (10) transmits the data through the indirect communication method, and if the size of the data to be transmitted exceeds 60 MB, the first device (10) transmits the data through the direct communication method.
[0038] The method for determining the size threshold of data is described in more detail using FIGS. 3 to 9.
[0039] FIG. 2 is a block diagram schematically illustrating the configuration of an electronic device according to an embodiment of the present disclosure.
[0040] Referring to FIG. 2, an electronic device (100) according to one embodiment may include a communication interface (110), an input / output interface (120), a memory (130), and a processor (140). However, the components of the electronic device (100) are not limited to the above-described examples, and the electronic device (100) may include more or fewer components than the above-described components. In one embodiment, some or all of the communication interface (110), the input / output interface (120), the memory (130), and the processor (140) may be implemented in the form of a single chip, and the processor (140) may include one or more processors. The one or more processors may include one or more central processing units (CPUs), graphics processing units (GPUs), accelerated processing units (APUs), many integrated cores (MICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), neural processing units (NPUs), hardware accelerators, or machine learning accelerators. The one or more processors may control one or any combination of other components of the computing device, or perform communication-related tasks or data processing. The one or more processors may execute one or more programs stored in memory.
[0041] One or more processors may be implemented as one or more multi-core processors, each of which includes one or more cores (e.g., homogeneous multi-core or heterogeneous multi-core). When multiple cores are included in a processor, each core may include cache memory, and the processor may include a common cache shared by the cores. Each core may independently read and execute program instructions, or each core may read and execute one or more portions of a program instruction.
[0042] In one embodiment, a processor may refer to a system-on-a-chip (SoC) having one or more cores and other electronic components integrated therein, a single core processor, a multi-core processor, or a core included in a single core processor or a multi-core processor, wherein the core may be implemented as a CPU, a GPU, an APU, a MIC, an FPGA, a DSP, an NPU, a hardware accelerator, or a machine learning accelerator, but embodiments of the present disclosure are not limited thereto.
[0043] The communication interface (110) is configured to transmit and receive signals (control commands and data, etc.) with an external device via wire or wirelessly, and may be configured to include a communication chipset that supports various communication protocols. According to one embodiment, the communication interface (110) may support Wi-Fi communication and BLE communication by including a Wi-Fi module (111) and a BLE module (112).
[0044] The Wi-Fi module (111) may be implemented with at least one processor and peripheral components (e.g., memory, resistors, capacitors, or inductors). In one embodiment, the Wi-Fi module (111) may be implemented with software (computer code). In one embodiment, the Wi-Fi module (111) may be implemented with a combination of at least one processor, peripheral components, and software.
[0045] The BLE module (112) may be implemented with at least one processor and peripheral components (e.g., memory, resistors, capacitors, or inductors). In one embodiment, the BLE module (112) may be implemented with software (computer code). In one embodiment, the BLE module (112) may be implemented with a combination of at least one processor, peripheral components, and software.
[0046] Accordingly, the electronic device (100) can communicate with a medium (30 in FIG. 1) or an external device (20 in FIG. 1) via Wi-Fi, and can communicate with an external device via BLE.
[0047] For reference, the electronic device (100) may correspond to the first device (10) of FIG. 1, and the external device may correspond to the second device (20) of FIG. 1.
[0048] The communication interface (110) can receive a signal from the outside and output it to the processor (140), or transmit a signal output from the processor (140) to the outside.
[0049] The input / output interface (120) may include an input interface (e.g., power button, touch screen, function button, microphone, etc.) for receiving control commands or information from a user, and an output interface (e.g., display panel, speaker, etc.) for displaying the results of execution of an operation according to the user's control or the status of the electronic device (100).
[0050] The memory (130) is a configuration for storing various programs or data, and may be configured as a storage medium such as a ROM, a RAM, a hard disk, a CD-ROM, and a DVD, or a combination of storage media. The memory (130) may not exist separately and may be configured to be included in the processor (140) described later. The memory (130) may be configured as a volatile memory, a non-volatile memory, or a combination of volatile memory and non-volatile memory. A program for performing operations according to embodiments described later may be stored in the memory (130). The memory (130) may also provide stored data to the processor (140) at the request of the processor (140). According to one embodiment, the memory (130) may store not only data to be transmitted to an external device, but also a program for determining a communication method for transmitting data to the external device.
[0051] The processor (140) can write data to the memory (130) or read data stored in the memory (130), and in particular, process data according to predefined operation rules or artificial intelligence models by executing a program stored in the memory (130). Accordingly, the processor (140) can perform operations described in the following embodiments, and operations described as being performed by the electronic device (100) in the following embodiments can be regarded as being performed by the processor (140) unless otherwise specified. According to one embodiment, the processor (140) can perform a process of determining a communication method for transmitting data to an external device by executing a program stored in the memory (130).
[0052] FIG. 3 is a flowchart illustrating a method of transmitting data according to an embodiment of the present disclosure.
[0053] For reference, although each step of FIG. 3 describes a general operation performed between a first device and a second device, in one embodiment, the first device may perform the operation according to each step. The first device may correspond to the electronic device of FIG. 2.
[0054] Referring to FIG. 3, in step S310, first communication information regarding direct communication between a first device and a second device can be acquired. The first device can acquire the first communication information.
[0055] In one embodiment, a first device can directly receive data from a second device via direct communication. The first device can also directly transmit data to the second device via direct communication. Direct communication can be established, for example, via Wi-Fi Direct (Wi-Fi P2P).
[0056] In one embodiment, the first communication information may be information regarding direct communication established between the first device and the second device. The first communication information may include at least one of a network frequency of the direct communication and a signal strength of the direct communication.
[0057] For example, signal strength can be measured by the Received Signal Strength Indicator (RSSI) value. The RSSI value is a relative measure of signal strength and can be expressed in decibel-milliwatts (dBm).
[0058] The network frequency for direct communication may include a frequency range that allows direct communication between the first device and the second device. The first device and the second device may be connected to each other based on the network frequency for direct communication.
[0059] The signal strength of direct communication may include the signal strength of direct communication between the first device and the second device. For example, the signal strength of direct communication may indicate the reception strength of a Wi-Fi Direct signal received through a communication circuit (e.g., a Wi-Fi card or Wi-Fi module (111)). The signal strength may be expressed as a value in dBm.
[0060] In one embodiment, after establishing direct communication with a second device, the first device may obtain first communication information regarding the established direct communication. In one embodiment, the first device may obtain first communication information regarding the direct communication with the second device from memory. However, the method for obtaining the first communication information is merely an example and does not limit the technical concept of the present disclosure.
[0061] In step S320, second communication information regarding indirect communication between the first device and the second device through an intermediary can be obtained. The first device can obtain the second communication information.
[0062] In one embodiment, a first device can receive data from a second device via indirect communication. The first device can transmit data to the second device via indirect communication. The first device can establish indirect communication with an external device via an intermediary. For example, the first device can establish a network connection with the external device via a router or an access point. For example, the indirect communication can be established via Wi-Fi LAN or Bluetooth.
[0063] In one embodiment, the second communication information may be information regarding indirect communication established between the first device and the second device. The second communication information may include at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
[0064] In one embodiment, the indirect communication may include a first connection between a first device and a medium, and a second connection between a second device and a medium. The second communication information may include at least one of a network frequency of the first connection, a signal strength of the first connection, a network frequency of the second connection, and a signal strength of the second connection.
[0065] The network frequency of indirect communication may include a frequency range in which indirect communication between the first device and the second device is possible. The first device and the second device may be connected to each other based on the network frequency of indirect communication.
[0066] In one embodiment, the network frequency of the first connection and the network frequency of the second connection may be the same. The first device may connect to the second device based on the same network frequency.
[0067] In one embodiment, the network frequencies of the first connection and the second connection may be different. In this case, the first device may determine a weaker network frequency among the network frequencies of the first connection and the second connection as the network frequency for indirect communication. The second communication information may include the weaker network frequency among the network frequencies of the first connection and the second connection.
[0068] The signal strength of indirect communication may include the signal strength of indirect communication between the first device and the second device. For example, the signal strength of indirect communication may indicate the reception strength of a Wi-Fi LAN signal or Bluetooth signal received through a communication circuit. The signal strength may be expressed in units of dBm.
[0069] In one embodiment, the signal strength of the first connection and the signal strength of the second connection may be identical. In this case, the first device may be indirectly connected to the second device via a medium, and the signal strength of the indirect communication may be identical to the signal strength of the first connection or the signal strength of the second connection.
[0070] In one embodiment, the signal strength of the first connection and the signal strength of the second connection may be different. In this case, the first device may determine the weaker signal strength among the signal strengths of the first connection and the second connection as the signal strength of the indirect communication. The second communication information may include the weaker signal strength among the signal strengths of the first connection and the second connection.
[0071] In step S330, a threshold value for determining one of direct and indirect communication methods may be determined based on the first communication information and the second communication information. The first device may determine the threshold value based on the first communication information and the second communication information.
[0072] In one embodiment, the first device may determine a threshold. The first device may determine the threshold based on the first communication information and the second communication information. The threshold may be a value that matches the data size at which the data transmission rate of direct communication and the data transmission rate of indirect communication are reversed. In one embodiment, the threshold may be a value related to the size of the data. For example, the threshold may be related to the data size expressed in megabytes (MB).
[0073] In one embodiment, a threshold value for determining one of direct and indirect communication methods may be determined according to mathematical formula 1. Mathematical formula 1 may be a mathematical formula for determining a threshold value based on variables included in the first communication information and the second communication information, and the mathematical formula is merely an example and does not limit the technical concept of the present disclosure.
[0074]
[0075] In mathematical equation 1, can mean a threshold. may mean a threshold regarding the size of data to be transmitted.
[0076] In mathematical expression 1, x can mean an initial value. x can mean an initial value regarding the data size. x is It can be a value set as an initial value to calculate. For example, x can be set arbitrarily.
[0077] In mathematical equation 1, may refer to the signal strength of indirect communication. may be a value expressed in units of dBm. For example, it may mean a signal strength selected from among the signal strength between the first device and the medium and the signal strength between the second device and the medium.
[0078] In one embodiment, the signal strength of the indirect communication may have a normalized value between 0 and 100. can have one of the normalized values between 0 and 100.
[0079] In one embodiment, the first device may select a weak signal strength among the signal strengths between the first device and the medium and the signal strengths between the second device and the medium, and determine the selected weak signal strength as the signal strength of the indirect communication. may mean a selected weak signal strength.
[0080] In mathematical equation 1, may refer to the network frequency of indirect communication. A multiplication factor corresponding to the network frequency of indirect communication can be substituted. may refer to a multiplying factor corresponding to each frequency. For example, a multiplying factor of 1 may correspond to a frequency of 2.4 GHz, and a multiplying factor of 5 may correspond to a frequency of 5 GHz. If the network frequency of indirect communication is 2.4 GHz, can be 1, and if the network frequency of indirect communication is 5GHz, can be 5 days.
[0081] In mathematical equation 1, may refer to the signal strength of direct communication. may be expressed in units of dBm (decibel-milliwatts). For example, it may refer to the signal strength between a first device and a second device.
[0082] In one embodiment, the signal strength of the direct communication may have a normalized value between 0 and 100. can have one of the normalized values between 0 and 100.
[0083] In mathematical equation 1, may refer to the network frequency of direct communication. A multiplication factor corresponding to the network frequency of direct communication can be substituted. may refer to a multiplying factor corresponding to each frequency. For example, a multiplying factor of 1 may correspond to a frequency of 2.4 GHz, and a multiplying factor of 5 may correspond to a frequency of 5 GHz. If the network frequency of direct communication is 2.4 GHz, can be 1, and if the network frequency of direct communication is 5GHz, can be 5 days.
[0084] In one embodiment, is the signal strength of direct communication It may be a multiplication factor indirectly determined by. For example, if the signal strength of normalized direct communication exceeds 90, it is determined that the first device and the second device are connected with a network frequency of 5 GHz, A multiplication factor of 5 corresponding to 5GHz can be substituted. As another example, if the signal strength of normalized direct communication does not exceed 90, it is determined that the first device and the second device are connected with a network frequency of 2.4GHz, A multiplication factor of 1 corresponding to 2.4GHz can be substituted.
[0085] The threshold value may vary depending on the signal strength and network frequency of each communication method. The threshold value may be inversely proportional to at least one of the network frequency of direct communication and the signal strength of direct communication. The threshold value may be proportional to at least one of the network frequency of indirect communication and the signal strength of indirect communication. A method for determining the threshold value using Equation 1 is described below using Equation 1 and Figure 8, which illustrates a detailed example of the situation.
[0086] In step S340, a communication method for transmitting data from the first device to the second device may be determined based on whether the size of the data exceeds a threshold value. The first device may determine a communication method for transmitting data to the second device based on whether the size of the data exceeds the threshold value.
[0087] In one embodiment, when the size of data is large, it may be advantageous to transmit the data through direct communication between the first device and the second device. The first device may determine whether the size of the data to be transmitted exceeds a threshold. If the size of the data to be transmitted exceeds the threshold, the first device may determine to transmit the data through direct communication. If the size of the data to be transmitted is less than the threshold, the first device may determine to transmit the data through indirect communication.
[0088] In one embodiment, data may be transmitted from the first device to the second device based on the determined communication method. For example, data exceeding a threshold value may be transmitted from the first device to the second device via direct communication. In another example, data below the threshold value may be transmitted from the first device to the second device via indirect communication.
[0089] FIG. 4 is a flowchart illustrating a method by which an electronic device transmits data to an external device according to an embodiment of the present disclosure.
[0090] For reference, Fig. 4 explains the process of performing each operation using an electronic device as the main body.
[0091] Referring to FIG. 4, in step S410, the electronic device can obtain whether an external device is connected to the same medium.
[0092] In one embodiment, an electronic device can search for an external device. The electronic device may be a device that is connected to a medium and can search for external devices connected to the same medium. The electronic device can search for external devices in the vicinity and request confirmation from the external devices as to whether they are connected to the same medium. The electronic device can receive a confirmation response from the external device as to whether they are connected to the same medium.
[0093] For example, the medium may be a router or an access point.
[0094] The electronic device may perform step S460 if the external device is not connected to the same medium. In step S460, the electronic device may transmit data to the external device by means of direct communication.
[0095] In one embodiment, the case where the external device is not connected to the same medium may include a case where the electronic device is connected to the medium, but the external device is not connected to the medium to which the electronic device is connected. In one embodiment, the case where the external device is not connected to the same medium may include a case where the electronic device and the external device are connected to different mediums.
[0096] In one embodiment, an electronic device can search for an external device. The electronic device can establish direct communication with the searched external device. The electronic device can exchange data with the external device through direct communication. For example, the direct communication may include technologies such as Wi-Fi Direct (Wi-Fi P2P), Bluetooth, Bluetooth Low Energy (BLE), Near Field Communication (NFC), and USB connection.
[0097] In step S420, the electronic device can obtain first communication information. The description of step S420 may overlap with that described using step S310 of FIG. 3, so it will be briefly described.
[0098] The first communication information may be information regarding direct communication established between the electronic device and an external device. The first communication information may include at least one of a network frequency of the direct communication and a signal strength of the direct communication.
[0099] In one embodiment, an electronic device may obtain first communication information regarding the established direct communication after establishing direct communication with an external device. In one embodiment, the electronic device may obtain first communication information regarding the direct communication with the external device from memory. However, the method for obtaining the first communication information is merely an example and does not limit the technical concept of the present disclosure.
[0100] In step S430, the electronic device can obtain second communication information from an external device. The description of step S430 may overlap with that described using step S320 of FIG. 3, so it will be briefly described.
[0101] In one embodiment, the second communication information may be information regarding indirect communication established between the electronic device and an external device. The second communication information may include at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
[0102] In one embodiment, an electronic device can receive data from an external device via indirect communication. The electronic device can transmit data to the external device via indirect communication. The electronic device can establish indirect communication with the external device via a medium. For example, the electronic device can establish a network connection with the external device via a router or an access point. For example, the indirect communication can be established via Wi-Fi LAN or Bluetooth.
[0103] In step S440, the electronic device may determine a threshold based on the first communication information and the second communication information. The description of step S440 overlaps with that described using step S330 of FIG. 3, and is therefore simplified.
[0104] In one embodiment, the electronic device may determine a threshold. The electronic device may determine the threshold based on first communication information and second communication information. In one embodiment, the threshold may be a value related to the size of data.
[0105] In one embodiment, a threshold value for determining one of direct and indirect communication methods may be determined according to Equation 1. The threshold value may vary depending on the signal strength of each communication method and the network frequency of each communication method, and a method for determining the threshold value using Equation 1 will be described in detail below using Equation 1 and FIG. 8, which illustrates an example of a detailed situation.
[0106] In step S450, the electronic device can determine whether the size of data to be transmitted is smaller than a threshold value.
[0107] If the size of the data to be transmitted exceeds the threshold, step S460 may be performed. In step S460, the electronic device may transmit data to an external device by direct communication.
[0108] In one embodiment, an electronic device can search for an external device. The electronic device can establish direct communication with the searched external device. The electronic device can exchange data with the external device through direct communication. For example, the direct communication may include technologies such as Wi-Fi Direct (Wi-Fi P2P), Bluetooth, Bluetooth Low Energy (BLE), Near Field Communication (NFC), and USB connection.
[0109] If the size of the data to be transmitted is smaller than the threshold value, step S470 may be performed. In step S470, the electronic device may transmit data to an external device through indirect communication.
[0110] In one embodiment, an electronic device can transmit data to an external device via indirect communication. The electronic device can establish indirect communication with the external device via a medium and transmit data to the external device. For example, the electronic device can establish a network connection with the external device via a router or an access point. For example, the indirect communication can be established via Wi-Fi LAN or Bluetooth.
[0111] FIG. 5 is a flowchart illustrating a method for obtaining communication information for a Wi-Fi network according to an embodiment of the present disclosure.
[0112] Referring to FIG. 5, step S430 of FIG. 4 may include steps S510 and S520.
[0113] In step S510, the electronic device can determine one of the communication paths, either communication with the medium or communication between the medium and an external device. In step S520, the electronic device can obtain second communication information for the determined one of the communication paths.
[0114] In one embodiment, an electronic device may obtain information regarding signal strengths related to communication between the electronic device and a medium, and information regarding signal strengths related to communication between an external device and the medium. Based on the obtained information, the electronic device may determine a communication path having a weak signal strength. The electronic device may obtain second communication information regarding the determined communication path.
[0115] For example, the signal strength for communication between an electronic device and a medium may be weaker than the signal strength for communication between an external device and the medium. The electronic device may obtain information about the signal strength for communication between the electronic device and the medium as second communication information.
[0116] As another example, the signal strength for communication between an external device and a medium may be weaker than the signal strength for communication between an electronic device and the medium. The electronic device may obtain information about the signal strength for communication between the external device and the medium as second communication information.
[0117] In one embodiment, an electronic device may obtain information regarding network frequencies for communication between the electronic device and a medium, and information regarding network frequencies for communication between an external device and the medium. Based on the obtained information, the electronic device may determine a communication path having a weak network frequency. A weak network frequency may include a low-frequency band.
[0118] For example, the network frequency for communication between an electronic device and a medium may be lower than the network frequency for communication between an external device and the medium. The electronic device may obtain information about the network frequency for communication between the electronic device and the medium as second communication information.
[0119] As another example, the network frequency for communication between an external device and a medium may be weaker than the network frequency for communication between an electronic device and a medium. The electronic device may obtain information about the network frequency for communication between the external device and the medium as second communication information.
[0120] In one embodiment, the electronic device may obtain information about the network frequency of the determined communication path as second communication information, and the information about the network frequency may be provided in the form of a multiplication factor. For example, a multiplication factor of 1 may correspond to a frequency of 2.4 GHz, and a multiplication factor of 5 may correspond to a frequency of 5 GHz. The information about the network frequency may be represented as 1 or 5.
[0121] FIG. 6 is a diagram illustrating a method for transmitting data whose size exceeds a threshold value, according to one embodiment of the present disclosure.
[0122] Referring to FIG. 6, in step S601, the electronic device (100) can search for communication devices located in the vicinity. The electronic device (100) can transmit a discovery request to the communication devices located in the vicinity. For example, the electronic device (100) can discover an external device (200) by searching for communication devices located in the vicinity. The electronic device (100) can transmit a discovery request to the external device (200).
[0123] In step S602, the electronic device (100) may receive a discovery response from the searched communication device. For example, the electronic device (100) may receive a discovery response from an external device (200).
[0124] In one embodiment, a discovery request and a discovery response may be data passed for device-to-device search and detection.
[0125] In step S603, the electronic device (100) can obtain first communication information regarding direct communication. The description of step S603 is the same as that described using step S310 of FIG. 3, and thus is omitted.
[0126] In one embodiment, the electronic device (100) can communicate with an external device (200) via a medium (300). The electronic device (100) can be connected to the external device (200) via the medium (300). That is, the electronic device (100) can exchange data with the external device (200) through indirect communication.
[0127] In one embodiment, the indirect communication may include a first connection between the electronic device (100) and the medium (300), and a second connection between the external device (200) and the medium (300).
[0128] In one embodiment, the electronic device (100) may obtain second communication information regarding indirect communication. Specifically, in step S604, the electronic device (100) may obtain second communication information regarding the first connection. In step S605, the electronic device (100) may receive second communication information regarding the second connection from the external device (200).
[0129] For example, the second communication information regarding the first connection may include at least one of a network frequency of the first connection and a signal strength of the first connection. The second communication information regarding the second connection may include at least one of a network frequency of the second connection and a signal strength of the second connection. The description of steps S604 and S605 overlaps with that described using steps S320 of FIG. 3, S430 of FIG. 4, and S520 of FIG. 5, and is therefore simplified.
[0130] In one embodiment, the electronic device (100) may receive second communication information through the medium (300), and the acquisition path of the second communication information is not limited to the technical idea of the present disclosure.
[0131] In step S606, the electronic device (100) may determine a threshold based on the first communication information and the second communication information. The threshold may be a critical value of the data size for determining one of the communication methods, either direct communication or indirect communication. The threshold may be determined based on the first communication information and the second communication information, and specifically, may be determined based on the signal strength and network frequency of direct communication and the signal strength and network frequency of indirect communication. For example, the electronic device (100) may determine the threshold based on Mathematical Expression 1.
[0132] The description of step S606 is simplified as it overlaps with the description using step S303 of FIG. 3.
[0133] In step S607, the electronic device (100) can check whether the size of data to be transmitted exceeds a threshold value.
[0134] In one embodiment, the electronic device (100) can determine data to be transmitted based on user input. The electronic device (100) can obtain the size of the data to be transmitted. The electronic device (100) can compare the size of the data to be transmitted with the size of the threshold value determined in step S606.
[0135] For reference, Figure 6 is a diagram illustrating a case where the size of data to be transmitted exceeds a threshold value. Accordingly, if the size of data to be transmitted is determined to exceed the threshold value, step S608 may be performed after step S607.
[0136] In step S608, the electronic device (100) can establish a direct connection between the electronic device (100) and the external device (200). The direct connection can be implemented using a communication technology such as Wi-Fi Direct (Wi-Fi P2P), Bluetooth, BLE (Bluetooth Low Energy), NFC (Near Field Communication), or USB connection.
[0137] In step S609, the electronic device (100) can transmit data exceeding a threshold value through direct communication. The electronic device (100) can transmit the data to be transmitted to an external device (200) through direct communication. The electronic device (100) can directly transmit data to the external device (200) without the aid of a medium (300).
[0138] FIG. 7 is a diagram illustrating a method for transmitting data whose size is less than a threshold value, according to one embodiment of the present disclosure.
[0139] The description of steps S701 to S707 is the same as that described using steps S601 to S607 of FIG. 6, so it is briefly described.
[0140] Referring to FIG. 7, in step S701, the electronic device (100) can search for communication devices located in the vicinity. The electronic device (100) can transmit a discovery request to the communication devices located in the vicinity. In step S702, the electronic device (100) can receive a discovery response from the searched communication devices.
[0141] In step S703, the electronic device (100) can obtain first communication information regarding direct communication.
[0142] In one embodiment, the electronic device (100) can exchange data with an external device (200) through indirect communication. In one embodiment, the indirect communication may include a first connection between the electronic device (100) and a medium (300), and a second connection between the external device (200) and the medium (300).
[0143] In one embodiment, the electronic device (100) may obtain second communication information regarding indirect communication. Specifically, in step S704, the electronic device (100) may obtain second communication information regarding the first connection. In step S705, the electronic device (100) may receive second communication information regarding the second connection from the external device (200).
[0144] In step S706, the electronic device (100) can determine a threshold based on the first communication information and the second communication information. In step S707, the electronic device (100) can check whether the size of the data to be transmitted exceeds the threshold.
[0145] For reference, Figure 7 is a diagram illustrating a case where the size of the data to be transmitted does not exceed the threshold value. Accordingly, if it is determined that the size of the data to be transmitted does not exceed the threshold value, step S708 may be performed after step S707.
[0146] In step S708, the electronic device (100) can transmit data having a size less than a threshold value using a medium. The electronic device (100) can transmit data having a size less than a threshold value through indirect communication. The electronic device (100) can transmit data to be transmitted to an external device (200) through indirect communication. The electronic device (100) can transmit data to the external device (200) through a first connection and a second connection.
[0147] In one embodiment, the medium (300) may be an access point or a router.
[0148] Figure 8 is a conceptual diagram for explaining a situation and method for transmitting data whose size exceeds a threshold value.
[0149] For reference, FIG. 8 is a conceptual diagram specifically explaining the process of determining a threshold value in the method of transmitting data in the situation described in FIGS. 6 and 7.
[0150] Referring to FIG. 8, an electronic device (100) and an external device (200) may establish indirect communication via a medium (300). The indirect communication may be implemented through a first connection between the electronic device (100) and the medium (300) and a second connection between the external device (200) and the medium (300). For example, the indirect communication may be implemented via Wi-Fi, but the method of the indirect communication does not limit the technical idea of the present disclosure.
[0151] The electronic device (100) and the external device (200) can establish direct communication without the aid of a medium (300). For example, the direct communication can be implemented via Bluetooth Low Energy (BLE), but the method of direct communication does not limit the technical idea of the present disclosure.
[0152] Below, a method for determining a threshold value and transmitting data according to the situation shown in Fig. 8 is described.
[0153] For convenience of explanation, the process of deriving a threshold value will be explained using Equation 1 again. Furthermore, Equation 1 is merely an example and does not limit the technical concept of the present disclosure.
[0154] 1. Signal strength of indirect communication
[0155] In one embodiment, the indirect communication may include a first connection between the electronic device (100) and the medium (300) and a second connection between the external device (200) and the medium (300). The signal strength of the indirect communication may be one of the signal strength of the first connection and the signal strength of the second connection. The electronic device may determine one of the signal strength of the first connection and the signal strength of the second connection, and obtain the determined signal strength as the signal strength of the indirect communication.
[0156] In one embodiment, the electronic device (100) may determine a weak signal strength among the signal strengths of the first connection and the second connection as the signal strength of the indirect communication. Since the weak signal strength among the signal strengths of the multiple connections causes a bottleneck in data transmission, it may be determined as the signal strength of the indirect communication. The electronic device (100) may determine a weak signal strength among the signal strengths of the first connection and the second connection as the signal strength of the indirect communication, and may obtain a threshold value based on the determined signal strength of the indirect communication.
[0157] For example, as illustrated in FIG. 8, the signal strength of the first connection may be 87 (dBm). The signal strength of the second connection may be 88 (dBm). Therefore, the signal strength of the first connection may be weaker than the signal strength of the second connection. The electronic device (100) may determine the signal strength of the first connection, 87 (dBm), as the signal strength of the indirect communication. The signal strength of the indirect communication can be 87(dBm).
[0158] In one embodiment, the signal strength may be expressed as a normalized number between 0 and 100.
[0159] 2. Network frequency of indirect communication
[0160] In one embodiment, the indirect communication may include a first connection between an electronic device (100) and a medium (300) and a second connection between an external device (200) and the medium (300). The network frequency of the indirect communication may be one of the network frequency of the first connection and the network frequency of the second connection. The electronic device (100) may determine one of the network frequency of the first connection and the network frequency of the second connection, and may acquire the determined network frequency as the network frequency of the indirect communication.
[0161] In one embodiment, the electronic device (100) may determine a weaker network frequency among the network frequencies of the first connection and the second connection as the network frequency of the indirect communication. The weaker network frequency among the network frequencies of the multiple connections may cause a bottleneck in data transmission and thus may be determined as the network frequency of the indirect communication. The electronic device (100) may determine the weaker network frequency among the network frequencies of the first connection and the second connection as the network frequency of the indirect communication and obtain a threshold value based on the determined network frequency of the indirect communication.
[0162] In one embodiment, the network frequency of indirect communication may be a multiplication coefficient corresponding to the frequency of indirect communication. The electronic device (100) may obtain a multiplication coefficient corresponding to the frequency of indirect communication.
[0163] For example, the electronic device (100) can obtain a multiplication factor corresponding to the frequency of the first connection. The electronic device (100) can obtain a multiplication factor corresponding to the frequency of the second connection. The electronic device (100) can determine a weak frequency among the frequencies of the first connection and the second connection. The electronic device (100) can obtain a multiplication factor corresponding to a connection having a weak frequency, and a network frequency of indirect communication. can be obtained as
[0164] Table 1 below illustrates the correspondence between frequencies and multiplication factors. Using Table 1, we again explain how to determine the network frequency for indirect communication. Of course, the correspondence in the table is merely an example and does not limit the technical concepts of the present disclosure.
[0165] Frequency multiplying factor 2.4GHz15GHz7
[0166] For example, as illustrated in FIG. 8, the frequency of the first connection may be 2.4 GHz. Based on Table 1, the multiplication factor corresponding to the frequency of the first connection is 1. Therefore, the network frequency of the first connection is determined as 1. The frequency of the second connection may be 5 GHz. Based on Table 1, the multiplication factor corresponding to the frequency of the second connection is 7. Therefore, the network frequency of the second connection is determined as 7. The electronic device (100) determines a weak frequency among the frequencies of the first connection and the second connection, and multiplies the network frequency of the indirect communication by the multiplication factor corresponding to the weak network frequency. can be determined. For example, the electronic device (100) can select the frequency of the first connection of 2.4 GHz, which is a weaker frequency among the frequencies of the first connection and the second connection. The multiplication factor corresponding to the frequency of 2.4 GHz is 1, and the electronic device (100) can select the network frequency of the indirect communication. 1 can be obtained as a network frequency of indirect communication. is determined as 1.
[0167] 3. Network frequency for direct communication
[0168] In one embodiment, the signal strength of direct communication can be 74(dBm).
[0169] In one embodiment, the electronic device (100) can determine the network frequency of the direct communication based on the signal strength of the direct communication. The electronic device (100) can indirectly determine the network frequency of the direct communication based on the signal strength of the direct communication.
[0170] In one embodiment, the electronic device (100) may obtain a corresponding multiplication factor when the signal strength of the direct communication exceeds a threshold strength. The electronic device (100) may obtain a corresponding multiplication factor when the signal strength of the direct communication does not exceed the threshold strength.
[0171] For example, the electronic device (100) can obtain the signal strength of direct communication. The electronic device (100) can obtain whether the signal strength of the direct communication exceeds a threshold strength. The electronic device (100) can obtain a corresponding multiplication factor when the signal strength of the direct communication exceeds the threshold strength. Alternatively, the electronic device (100) can obtain a corresponding multiplication factor when the signal strength of the direct communication does not exceed the threshold strength. The numerical value of the threshold strength can be set arbitrarily.
[0172] Table 2 below illustrates the correspondence between signal strength and multiplication factors for direct communication. Using Table 2, we again explain how to determine the network frequency for direct communication. Of course, the correspondences in the table are merely examples and do not limit the technical concepts of the present disclosure.
[0173] Direct communication signal strength multiplying factor >907 901
[0174] For example, as illustrated in FIG. 8, the signal strength of direct communication may be 74 (dBm). Based on Table 2, the multiplication factor corresponding to the signal strength of direct communication of 74 (dBm) is 1. Therefore, the network frequency of direct communication is determined as 1. The electronic device (100) obtains the signal strength of direct communication and multiplies the multiplication factor corresponding to the obtained signal strength of direct communication by the network frequency of direct communication. can be determined by the network frequency of direct communication. is determined as 1.
[0175] 4. Threshold Derivation of
[0176] In one embodiment, the threshold value is set according to Equation 1. This can be decided.
[0177] For example, the initial value x is set to 51 (MB). However, this is only an example and does not limit the technical idea of the present disclosure.
[0178] In one embodiment, the signal strength of the indirect communication can be 87(dBm). Network frequency of indirect communication can be 1. Signal strength of direct communication can be 74(dBm). Network frequency of direct communication can be 1. The initial value x can be 51 (MB). According to Equation 1, the threshold x' can be 60 (MB).
[0179] The electronic device (100) can determine the threshold value as 60 (MB).
[0180] 5. Transmission of data based on determined thresholds
[0181] In one embodiment, the electronic device (100) can determine whether data to be transmitted exceeds a threshold value.
[0182] In one embodiment, the electronic device (100) may determine the data transmission method to be direct communication when the data to be transmitted exceeds 60 MB. The electronic device (100) may transmit data exceeding 60 MB to an external device (200) through direct communication.
[0183] In one embodiment, the electronic device (100) may determine the data transmission method to be indirect communication when the data to be transmitted is less than 60 MB. The electronic device (100) may transmit data less than 60 MB to an external device (200) through indirect communication.
[0184] FIG. 9 is a diagram illustrating a method of transmitting data to an external device with which a communication connection has not been established through the same medium, according to one embodiment of the present disclosure.
[0185] The description of steps S901 to S902 is the same as that described using steps S601 to S602 of FIG. 6, so it is briefly described.
[0186] Referring to FIG. 9, in step S901, the electronic device (100) can search for communication devices located in the vicinity. The electronic device (100) can transmit a discovery request to the communication devices located in the vicinity. The electronic device (100) can transmit a discovery request to an external device (200). In step S902, the electronic device (100) can receive a discovery response from the searched communication devices. The electronic device (100) can receive a discovery response from the external device (200).
[0187] In step S903, the electronic device (100) may transmit a request for confirmation regarding whether the medium (300) is connected to the searched communication device. The electronic device (100) may transmit a request for confirmation regarding whether the medium (300) is connected to the external device (200). In step S904, the electronic device (100) may receive a confirmation response from the searched communication device. The electronic device (100) may receive a confirmation response from the external device (200).
[0188] For reference, FIG. 9 is a diagram for explaining a case where there is no connection between the external device (200) and the medium (300). Therefore, in step S904, the electronic device (100) can receive a confirmation response from the external device (200) indicating that a connection between the external device (200) and the medium (300) is not established.
[0189] In step S905, the electronic device (100) can establish a direct connection between the electronic device (100) and the external device (200). The direct connection may refer to direct communication in the present disclosure, and may be implemented using, for example, technologies such as Wi-Fi Direct (Wi-Fi P2P), Bluetooth, BLE (Bluetooth Low Energy), NFC (Near Field Communication), and USB connection.
[0190] In step S906, the electronic device (100) can transmit data exceeding a threshold size through direct communication. The description of step S906 is omitted as it overlaps with the description using step S460 of FIG. 4.
[0191] A method according to one embodiment of the present disclosure may include a step of obtaining first communication information regarding direct communication between a first device and a second device. The method may include a step of obtaining second communication information regarding indirect communication between the first device and the second device via an intermediary. The method may include a step of determining a threshold for determining one of direct communication and indirect communication based on the first communication information and the second communication information. The method may include a step of determining a communication method for transmitting data from the first device to the second device based on whether the size of the data exceeds the threshold.
[0192] In one embodiment, the first communication information may include at least one of a network frequency of the direct communication and a signal strength of the direct communication.
[0193] In one embodiment, the threshold may be inversely proportional to at least one of a network frequency of the direct communication and a signal strength of the direct communication.
[0194] In one embodiment, the indirect communication may include a first connection between the medium and a first device and a second connection between the medium and a second device.
[0195] In one embodiment, the step of obtaining the second communication information may include the step of determining one of the communication paths, the first connection between the medium and the first device and the second connection between the medium and the second device. The step of obtaining the second communication information may include the step of obtaining the second communication information for the determined one of the communication paths.
[0196] In one embodiment, the second communication information may include at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
[0197] In one embodiment, the threshold may be proportional to at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
[0198] In one embodiment, the threshold may be a value that matches the data size at which the data transmission rates of direct and indirect communications are reversed.
[0199] In one embodiment, the method may further include a step of transmitting data from the first device to the second device via direct communication when the size of the data exceeds a threshold.
[0200] In one embodiment, the method may further include a step of transmitting data from the first device to the second device via indirect communication if the size of the data does not exceed a threshold value.
[0201] An electronic device according to an embodiment of the present disclosure may include a memory and at least one processor. The memory may store one or more instructions. The at least one processor may execute one or more instructions stored in the memory. The at least one processor may obtain first communication information regarding direct communication with an external device by executing the one or more instructions. The at least one processor may obtain second communication information regarding indirect communication with the external device through a medium. The at least one processor may determine a threshold value of a data size for determining one of direct communication and indirect communication based on the first communication information and the second communication information. The at least one processor may determine a communication method for transmitting data to the external device based on whether the data size exceeds the threshold value.
[0202] In one embodiment, the first communication information may include at least one of a network frequency of the direct communication and a signal strength of the direct communication.
[0203] In one embodiment, the threshold may be inversely proportional to at least one of a network frequency of the direct communication and a signal strength of the direct communication.
[0204] In one embodiment, the indirect communication may include a first connection with the medium and a second connection between the medium and an external device.
[0205] In one embodiment, at least one processor can determine a communication path among a first connection with the medium and a second connection between the medium and an external device. The at least one processor can obtain second communication information for the determined one communication path.
[0206] In one embodiment, the second communication information may include at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
[0207] In one embodiment, the threshold may be proportional to at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
[0208] In one embodiment, at least one processor may transmit data via direct communication to an external device if the size of the data exceeds a threshold.
[0209] In one embodiment, at least one processor may transmit data to an external device via indirect communication if the size of the data does not exceed a threshold.
[0210] According to one embodiment of the present disclosure, a computer-readable recording medium having recorded thereon a program for performing any one of the aforementioned and hereinafter described methods related to the operation of an electronic device on a computer may be provided.
[0211] A device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, the term "non-transitory storage medium" simply means a tangible device that does not contain signals (e.g., electromagnetic waves). This term does not distinguish between cases where data is permanently stored in the storage medium and cases where data is temporarily stored. For example, a "non-transitory storage medium" may include a buffer in which data is temporarily stored.
[0212] According to one embodiment, the method according to various embodiments disclosed in the present document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) through an application store or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product (e.g., a downloadable app) may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
Claims
1. A step of obtaining first communication information regarding direct communication between a first device (10) and a second device (20); A step of obtaining second communication information regarding indirect communication between the first device and the second device through a medium (30); A step of determining a threshold for determining one of the direct communication and the indirect communication methods based on the first communication information and the second communication information; and A method performed by the first device, comprising the step of determining one of the direct communication and the indirect communication as a communication method for transmitting the data from the first device to the second device based on whether the size of the data exceeds the threshold value.
2. In paragraph 1, A method, wherein the first communication information includes at least one of a network frequency of the direct communication and a signal strength of the direct communication.
3. In paragraph 2, A method wherein the threshold value is inversely proportional to at least one of a network frequency of the direct communication and a signal strength of the direct communication.
4. In any one of the clauses 1 to 3, A method wherein said indirect communication comprises a first connection between said medium and said first device and a second connection between said medium and said second device.
5. In paragraph 4, The step of obtaining the second communication information is: A step of determining a communication path among a first connection between the medium and the first device and a second connection between the medium and the second device; A method comprising the step of obtaining the second communication information for the determined one communication path.
6. In any one of paragraphs 1 to 5, A method, wherein the second communication information includes at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
7. In paragraph 6, A method wherein the threshold is proportional to at least one of a network frequency of the indirect communication and a signal strength of the indirect communication.
8. In any one of paragraphs 1 to 7, A method wherein the above threshold value is a value matching the data size at which the data transmission speeds of the direct communication and the indirect communication are reversed.
9. In any one of paragraphs 1 to 8, A method further comprising the step of transmitting the data from the first device to the second device through the direct communication when the size of the data exceeds the threshold value.
10. In any one of the clauses 1 to 9, A method further comprising the step of transmitting the data from the first device to the second device through the indirect communication if the size of the data does not exceed the threshold value.
11. Memory for storing one or more instructions; and comprising at least one processor for executing one or more instructions stored in said memory; The at least one processor executes the one or more instructions, Obtain first communication information regarding direct communication with an external device, Obtain second communication information regarding indirect communication with the external device through a medium, Based on the first communication information and the second communication information, a threshold value of the data size for determining one of the direct communication and the indirect communication methods is determined, An electronic device that determines a communication method for transmitting data to the external device based on whether the size of the data exceeds the threshold value.
12. In paragraph 11, An electronic device, wherein said indirect communication comprises a first connection with said medium and a second connection between said medium and said external device.
13. In paragraph 12, At least one processor of the above, determining a communication path of one of a first connection with the above medium and a second connection between the above medium and the external device; An electronic device that obtains the second communication information for the above-determined one communication path.
14. In any one of paragraphs 11 to 13, At least one processor of the above, An electronic device that transmits the data to the external device through direct communication when the size of the data exceeds the threshold value.
15. A computer-readable recording medium having recorded thereon a program for performing the method of any one of claims 1 to 10 on a computer.
Citation Information
Patent Citations
Online marketing education system
KR102009713B1
Configuration of m2m communications network based on parameters
KR1020140141217A
Method and system for performance measurement of a communication link
KR1020150039207A
D2D COMMUNICATION FOR eMTC DESIGN CONSIDERATIONS
KR1020180072685A
Adaptive communication method and apparatus
KR102399798B1