WO2023287207A1 - Electronic device and method for connecting external electronic device by using same - Google Patents

Electronic device and method for connecting external electronic device by using same Download PDF

Info

Publication number
WO2023287207A1
WO2023287207A1 PCT/KR2022/010236 KR2022010236W WO2023287207A1 WO 2023287207 A1 WO2023287207 A1 WO 2023287207A1 KR 2022010236 W KR2022010236 W KR 2022010236W WO 2023287207 A1 WO2023287207 A1 WO 2023287207A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
external electronic
information
mode
external
Prior art date
Application number
PCT/KR2022/010236
Other languages
French (fr)
Korean (ko)
Inventor
권소은
김지영
서운용
권혁태
박상호
이경렬
이귀호
좌호동
이성준
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from KR1020210138104A external-priority patent/KR20230012392A/en
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2023287207A1 publication Critical patent/WO2023287207A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • Various embodiments of the present disclosure relate to an electronic device and a method for connecting an external electronic device using the same.
  • An electronic device may have a relatively small-sized display in order to be portable by a user.
  • the electronic device may provide a mirroring function to display the screen of the electronic device on the display of the external electronic device by transmitting the screen of the electronic device to an external electronic device having a larger display.
  • An electronic device may share various data with an external electronic device through a mirroring function.
  • the electronic device may exchange various information required for connection with the external electronic device (eg, a device name, a connection code, and/or a connection method for each communication technology).
  • an electronic device When an electronic device according to various embodiments of the present disclosure receives a signal requesting a connection from an external electronic device having a previously connected history, the external electronic device can trust the external electronic device by using pre-stored information of the external electronic device. You can check whether it is. When an external electronic device requesting connection is determined to be a trustworthy device, the electronic device can automatically execute a screen sharing function so as to be connected to the external electronic device without additional user intervention.
  • An electronic device includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor, through the communication circuit, receives information from an external electronic device.
  • First push information including identification information of the external electronic device is received, and based on receiving the first push information, the identification information of the external electronic device included in the first push information is stored in the memory and if it is confirmed that the identification information of the external electronic device is stored in the memory, a function for screen sharing with the external electronic device is automatically executed, and the electronic device for connection with the external electronic device is automatically executed.
  • generate second push information based on network information of the device and identification information of the external electronic device, transmit the generated second push information to the external electronic device through the communication circuit, and It can be set to perform a connection with a device.
  • An electronic device includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor detects an input for screen sharing with an external electronic device. Based on the above, first push information is generated based on the identification information of the external electronic device and the identification information of the electronic device stored in the memory, and the generated first push information is transmitted to the external electronic device through the communication circuit. transmit to the electronic device, and when second push information including network information is received from the external electronic device through the communication circuit, it may be set to perform a connection with the external electronic device based on the network information. there is.
  • a method of connecting an electronic device to an external electronic device includes receiving first push information including identification information of the external electronic device from an external electronic device, and receiving the first push information. Based on this, an operation of checking whether the identification information of the external electronic device included in the first push information is stored in the memory, and if it is confirmed that the identification information of the external electronic device is stored in the memory, the Automatically executing a screen sharing function with an external electronic device and generating second push information based on network information of the electronic device for connection with the external electronic device and identification information of the external electronic device; An operation of transmitting the generated second push information to the external electronic device and an operation of performing a connection with the external electronic device may be included.
  • an electronic device When an electronic device according to various embodiments of the present disclosure receives a signal requesting a connection from an external electronic device having a previously connected history, the electronic device performs a connection with the external electronic device using pre-stored information on the external electronic device. By doing so, it is possible to simplify a connection operation with an external electronic device.
  • FIG. 1 is a block diagram of an electronic device in a network environment, according to various embodiments.
  • FIG. 2 is a diagram illustrating an electronic device, a first external electronic device, and a second external electronic device according to various embodiments.
  • FIG. 3 is a block diagram illustrating an electronic device, according to various embodiments.
  • FIG. 4 is a flowchart illustrating a method of communicating with an electronic device of an external electronic device (eg, a first external electronic device or a second external electronic device) according to various embodiments.
  • an external electronic device eg, a first external electronic device or a second external electronic device
  • FIG. 5 is a flowchart illustrating a method of communicating with an external electronic device (eg, a first external electronic device or a second external electronic device) of an electronic device according to various embodiments.
  • an external electronic device eg, a first external electronic device or a second external electronic device
  • FIG. 6 is a diagram illustrating a signal flow for communication connection between an electronic device and a first external electronic device according to various embodiments.
  • FIG. 7 is a flowchart illustrating a method of setting a mode of a first external electronic device according to various embodiments.
  • 8A is a diagram for describing a user interface for setting a mode of a first external electronic device, according to various embodiments.
  • 8B is a diagram for explaining a user interface for changing a mode of a first external electronic device, according to various embodiments.
  • FIG. 9 is a diagram illustrating a signal flow for mode change of a first external electronic device during a communication connection between the electronic device and the first external electronic device according to various embodiments.
  • FIG. 10 is a diagram illustrating a signal flow for communication connection between a first external electronic device and a second external electronic device when a mode of the first external electronic device is changed according to various embodiments.
  • FIG. 1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • a second network 199 e.g., a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included.
  • at least one of these components eg, the connection terminal 178) may be omitted or one or more other components may be added.
  • some of these components eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.
  • the processor 120 for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • software eg, the program 140
  • processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor).
  • a main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor.
  • NPU neural network processing unit
  • the secondary processor 123 may use less power than the main processor 121 or be set to be specialized for a designated function.
  • the secondary processor 123 may be implemented separately from or as part of the main processor 121 .
  • the secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the auxiliary processor 123 eg, an image signal processor or a communication processor
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited.
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples.
  • the artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, program 140) and commands related thereto.
  • the memory 130 may include volatile memory 132 or non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input module 150 may receive a command or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user).
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output sound signals to the outside of the electronic device 101 .
  • the sound output module 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • a receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.
  • the display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user).
  • the display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device.
  • the display module 160 may include a touch sensor configured to detect a touch or a pressure sensor configured to measure the intensity of force generated by the touch.
  • the audio module 170 may convert sound into an electrical signal or vice versa. According to an embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.
  • the interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card interface
  • audio interface audio interface
  • connection terminal 178 may include a connector through which the electronic device 101 may be physically connected to an external electronic device (eg, the electronic device 102).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 may be a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, a : a local area network (LAN) communication module or a power line communication module).
  • a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, a legacy communication module).
  • the wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199.
  • IMSI International Mobile Subscriber Identifier
  • the wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology).
  • NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low latency
  • -latency communications can be supported.
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • the wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported.
  • the wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199).
  • the wireless communication module 192 may be used to realize peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency (for realizing URLLC).
  • peak data rate eg, 20 Gbps or more
  • loss coverage eg, 164 dB or less
  • U-plane latency for realizing URLLC.
  • DL downlink
  • UL uplink each of 0.5 ms or less, or round trip 1 ms or less
  • the antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB).
  • the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC) may be additionally formed as a part of the antenna module 197 in addition to the radiator.
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a bottom surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • signal e.g. commands or data
  • commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 .
  • all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself.
  • one or more external electronic devices may be requested to perform the function or at least part of the service.
  • One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 .
  • the electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an internet of things (IoT) device.
  • Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • Electronic devices may be devices of various types.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a camera
  • a wearable device e.g., a smart bracelet
  • first, second, or first or secondary may simply be used to distinguish that component from other corresponding components, and may refer to that component in other respects (eg, importance or order) is not limited.
  • a (eg, first) component is said to be “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively.”
  • the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits.
  • a module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • a storage medium eg, internal memory 136 or external memory 138
  • a machine eg, electronic device 101
  • a processor eg, the processor 120
  • a device eg, the electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.
  • a signal e.g. electromagnetic wave
  • the method according to various embodiments disclosed in this document may be included and provided in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • a computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or on two user devices (e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones.
  • a device e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play Store TM
  • It can be distributed (eg downloaded or uploaded) online, directly between smart phones.
  • at least part of the computer program product may be temporarily stored or temporarily created in a storage medium readable by a device such as a manufacturer's server, an application store server, or a relay server's memory.
  • each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is.
  • one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg modules or programs
  • the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. .
  • the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.
  • FIG. 2 is a diagram 200 illustrating an electronic device 210 , a first external electronic device 220 , and a second external electronic device 230 according to various embodiments.
  • the electronic device 210 , the first external electronic device 220 , and/or the second external electronic device 230 include the same or similar components as the electronic device 101 of FIG. 1 . can do.
  • the electronic device 210 may be implemented as a portable electronic device such as a smart phone.
  • the first external electronic device 220 may be implemented as a portable electronic device having a display larger than that of the electronic device 210, such as a tablet PC.
  • the second external electronic device 230 may be implemented as a device having a display larger than that of the display of the first external electronic device 220, such as a desktop PC or a laptop PC. However, it is not limited thereto.
  • the electronic device 210 , the first external electronic device 220 , and/or the second external electronic device 230 may be connected to each other through wired or wireless communication.
  • the electronic device 210, the first external electronic device 220, and/or the second external electronic device 230 may use a communication network such as Wi-Fi, Bluetooth, or LAN via a TCP/IP interface. They may be connected to each other using a transfer control protocol/internet protocol (IP) method or a user datagram protocol (UDP) method.
  • IP transfer control protocol/internet protocol
  • UDP user datagram protocol
  • the electronic device 210, the first external electronic device 220, and/or the second external electronic device 230 may perform a screen sharing function when connected to each other through wired or wireless communication.
  • the screen sharing function displays the screen displayed on the display of the electronic device 210 on the display of the first external electronic device 220 or the second external electronic device 230 (or on the display of the first external electronic device 220).
  • the displayed screen is displayed on the display of the second external electronic device 230), and the user for the screen of the electronic device 210 displayed on the display of the first external electronic device 220 or the second external electronic device 230
  • it may be a service or function of providing a signal for a user input to the electronic device 210 .
  • the electronic device 210 when the electronic device 210 and the first external electronic device 220 (or the second external electronic device 230) are connected through wired or wireless communication, the electronic device 210 is connected to the electronic device 210.
  • An application screen eg, an application screen such as an internet browser, gallery, message, or game
  • the first external electronic device 220 (or the second external electronic device 230) ( 230 ) may transmit a user input on a window in which an application screen of the electronic device 210 is provided to the electronic device 210 in real time.
  • the electronic device 210 controls an application-related function (eg, application screen control, application function) based on a user input received from the first external electronic device 220 (or the second external electronic device 230). ) and transmits information about it to the first external electronic device 220 (or the second external electronic device 230).
  • an application-related function eg, application screen control, application function
  • the electronic device 210 when the electronic device 210 is connected to the first external electronic device 220 or the second external electronic device 230, the electronic device 210 displays information related to the electronic device 210 (eg, : Notification information, screen information, and/or information related to settings (e.g., Wi-Fi on/off, and/or user's individual setting information) is transmitted to other electronic devices (e.g., It may operate as a main device (eg, a primary device) shared by the first external electronic device 220 or the second external electronic device 230 .
  • information related to the electronic device 210 eg, : Notification information, screen information, and/or information related to settings (e.g., Wi-Fi on/off, and/or user's individual setting information) is transmitted to other electronic devices (e.g., It may operate as a main device (eg, a primary device) shared by the first external electronic device 220 or the second external electronic device 230 .
  • a main device eg, a primary device
  • the electronic device 210 when the electronic device 210 operates as a main device, information such as a notification received by the electronic device 210 and/or screen information displayed on a display of the electronic device 210 is transferred to another electronic device (eg, a drawing). It can be shared by transmitting to the first external electronic device 220 or the second external electronic device 230 of 2.
  • the external electronic device when the electronic device 210 is connected to the first external electronic device 220 or the second external electronic device 230, the external electronic device (eg, the first external electronic device 220 of FIG. 2 ) ) or the second external electronic device 230) may operate as an auxiliary device (eg, secondary device) that receives information shared from another electronic device (eg, the electronic device 210).
  • the external electronic device receives information such as a notification from another electronic device (eg, the electronic device 210) and/or screen information displayed on a display of the other electronic device, , can be displayed on the display of an external electronic device.
  • the first external electronic device 220 when the first external electronic device 220 is connected to the second external electronic device 230, the first external electronic device 220 provides information related to the first external electronic device 220 (eg, : It can operate as a main device that shares notification information and screen information) with the second external electronic device 230 .
  • the second external electronic device 230 may operate as an auxiliary device that receives information shared from the first external electronic device 220 .
  • FIG. 3 is a block diagram 300 illustrating an electronic device 210 according to various embodiments.
  • an electronic device eg, the electronic device 101 of FIG. 1 or the electronic device 210 of FIG. 2 includes a communication circuit 310 (eg, the communication module 190 of FIG. 1), a memory ( 320) (eg, memory 130 of FIG. 1), display 330 (eg, display module 160 of FIG. 1), and/or processor 340 (eg, processor 120 of FIG. 1).
  • a communication circuit 310 eg, the communication module 190 of FIG. 1
  • a memory 320
  • display 330 eg, display module 160 of FIG. 1
  • processor 340 eg, processor 120 of FIG.
  • the communication circuit 310 (eg, the communication module 190 of FIG. 1 ) is an external electronic device (eg, the first external electronic device 220 of FIG. 2 , the second external electronic device 230 ) ) can be supported.
  • the communication circuit 310 may include a short-range communication circuit, and the short-range communication circuit may include at least one of Bluetooth, Bluetooth Low Energy (BLE), or Wi-Fi.
  • the memory 320 (eg, the memory 130 of FIG. 1 ) is a program for processing and controlling the processor 340 of the electronic device 210 (eg, the program 140 of FIG. 1 ).
  • operating system (OS) (eg, operating system 142 of FIG. 1)
  • various applications eg, operating system 142 of FIG. 1
  • various applications eg, operating system 142 of FIG. 1
  • the memory 320 may store various setting information necessary for the electronic device 210 to process functions related to various embodiments of the present disclosure.
  • the memory 320 may store information related to an external electronic device (eg, the first external electronic device 220 and/or the second external electronic device 230).
  • the memory 320 may store and manage information related to external electronic devices (eg, 220 and/or 230) having a history of being connected to the electronic device 210.
  • information related to the external electronic device includes identification information of the external electronic device, a token value (eg, token information), and encrypts data to be transmitted/received with the external electronic device 220 and/or 230. and a secret key for decryption, and/or a server key for transmitting push information through a push server.
  • the token value is identification information capable of distinguishing a device, and transmits push information or checks the reliability of an external electronic device (eg, 220 and/or 230) (eg, confirms whether there is a connection history).
  • an external electronic device eg, 220 and/or 230
  • a screen sharing application installed in the electronic device 210 may include a firebase cloud message (FCM) software development kit (SDK) to transmit and receive push information.
  • FCM firebase cloud message
  • SDK software development kit
  • the FCM SDK can generate a unique token value when the screen sharing application is executed for the first time.
  • the token value can be regenerated when the application is deleted or reinstalled, or when the user deletes (eg clears) application data.
  • a server key eg, push server key
  • the server key of the electronic device 210 and the external electronic device (eg, 220 and/or 230) 230) may have the same server key.
  • the display 330 (eg, the display module 160 of FIG. 1 ) displays an image under the control of the processor 340 and includes a liquid crystal display (LCD), a light-emitting diode (light-emitting diode), and the like.
  • LED emitting diode
  • OLED organic light-emitting diode
  • MEMS micro electro mechanical systems
  • the display 330 may display a screen of an application executed under the control of the processor 340 (eg, a screen of an application such as an internet browser, a gallery, a message, and/or a game).
  • a screen of an application executed under the control of the processor 340 (eg, a screen of an application such as an internet browser, a gallery, a message, and/or a game).
  • processor 340 may include, for example, a micro controller unit (MCU), an operating system (OS) or an embedded software program. It is possible to control a number of hardware components connected to the processor 340 by driving.
  • the processor 340 may control a number of hardware components according to, for example, instructions stored in the memory 320 (eg, the program 140 of FIG. 1 ).
  • the processor 340 may receive first push information including identification information from an external electronic device (eg, 220 or 230). The processor 340 may check whether the identification information of the external electronic device (eg, 220 or 230) included in the received first push information is stored in the memory 320. When it is confirmed that the identification information of the external electronic device (eg, 220 or 230) is stored in the memory 320, the processor 340 may determine the external electronic device (eg, 220 or 230) as a reliable device. . For example, identification information of at least one external electronic device (eg, 220 and/or 230) having a communication connection history may be pre-stored in the memory 320 .
  • the processor 340 performs identification information of at least one external electronic device (eg, 220 and/or 230) stored in the memory 320 and identification of the external electronic device (eg, 220 or 230) included in the first push information. information can be compared.
  • the processor 340 includes identification information of the external electronic device (eg, 220 or 230) included in the first push information among identification information of at least one external electronic device (eg, 220 and/or 230) stored in the memory 320. If exists, the external electronic device (eg, 220 or 230) included in the first push information may be determined as a device having a communication connection history, for example, a reliable device.
  • the processor 340 may generate second push information to be transmitted to the external electronic device (eg, 220 or 230).
  • the second push information is based on encrypted network information (eg, IP address information and/or port information) of the electronic device 210 and identification information of the external electronic device (eg, 220 or 230). , can be created.
  • the processor 340 connects with an external electronic device (eg, 220 or 230), and connects the external electronic device (eg, 220 or 230) and information (eg, notification information, screen information, and/or setting-related information ( Example: Wi-Fi on/off, and/or user's individual setting information) may be shared.
  • An electronic device 210 includes a communication circuit 310, a memory 320, and a processor 340 operatively connected to the communication circuit 310 and the memory 320,
  • the processor 340 includes identification information of the external electronic device from an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) through the communication circuit 310.
  • the second push information includes a parameter related to transmission of the second push information
  • the parameter includes at least one of recipient, priority, data, expiration date, or redundant push information.
  • the memory 320 may include token information of the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), identification information of the external electronic device, A secret key for encrypting and/or decrypting data transmitted/received with the external electronic device and/or a server key related to transmission of the second push information may be stored.
  • the processor 340 encrypts the network information of the electronic device 210 based on the secret key, and the identification information of the electronic device 210 and the encrypted electronic device Based on the network information of (210), it may be configured to generate the second push information.
  • the processor 340 may transmit the electronic device from the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) through the communication circuit 310.
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • the connection with the external electronic device may be disconnected.
  • the first external electronic device 220 may include a communication circuit, a memory, a display, and/or a processor like the electronic device 210 of FIG. 3 .
  • the communication circuit (eg, the communication module 190 of FIG. 1 ) of the first external electronic device 220 may support connection with the electronic device 210 and/or the second external electronic device 230. there is.
  • the memory (eg, the memory 130 of FIG. 1 ) of the first external electronic device 220 may store information related to the electronic device 210 and/or the second external electronic device 230.
  • the memory of the first external electronic device 220 may store and manage information related to the electronic device 210 and/or the second external electronic device 230 having a connection history.
  • information related to the electronic device 210 and/or the second external electronic device 230 includes identification information of the electronic device 210 and/or the second external electronic device 230, a token value, and the electronic device 210.
  • a secret key for encrypting and decrypting data to be transmitted and received with the second external electronic device 230, and/or a server key (eg, a push server key) for transmitting and receiving push information through a push server.
  • a server key eg, a push server key
  • the display (eg, the display module 160 of FIG. 1 ) of the first external electronic device 220 may display a user interface for setting a mode of the first external electronic device 220 .
  • the modes of the first external electronic device 220 include a first mode (eg, a mode operating as an auxiliary device receiving information shared from another electronic device (eg, the electronic device 210)) and a second mode (eg, the electronic device 210).
  • Information related to the first external electronic device 220 eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi on/off), and/or Alternatively, a mode of operating as a main device that shares user's individual setting information) with other electronic devices (eg, the second external electronic device 230 of FIG. 2 ) may be included.
  • the display of the first external electronic device 220 displays a screen for information shared from the connected electronic device 210.
  • the display of the second external electronic device 220 displays a screen of an application running on the first external electronic device 220 (eg, an internet browser, a gallery). , messages, and/or screens of applications such as games) may be displayed.
  • the processor eg, the processor 120 of FIG. 1
  • first push information may be generated based on the identification information of the electronic device 210 and the identification information of the first external electronic device 220 stored in the first external electronic device 220 .
  • the processor of the first external electronic device 220 may transmit the generated first push information to the electronic device 210 .
  • second push information including network information is received from the electronic device 210, the processor of the first external electronic device 220 performs a connection with the electronic device 210 based on the network information, and the electronic device 210 ) and exchange information.
  • the processor of the first external electronic device 220 when the first external electronic device 220 operates in the second mode, the processor of the first external electronic device 220 receives the second external electronic device 230 from the second external electronic device 230. ) It is possible to receive the first push information including the identification information of.
  • the processor of the first external electronic device 220 determines whether the identification information of the second external electronic device 230 included in the received first push information is stored in the memory of the first external electronic device 220. can When the processor of the first external electronic device 220 determines that the identification information of the second external electronic device 230 is stored in the memory of the first external electronic device 220, the second external electronic device 230 can be determined as a trusted device (e.g. a device with a connection history).
  • a trusted device e.g. a device with a connection history
  • the processor of the first external electronic device 220 may generate second push information to be transmitted to the second external electronic device 230 .
  • the second push information is based on encrypted network information (eg, IP address information and/or port information) of the first external electronic device 220 and identification information of the second external electronic device 230. can be created by The processor of the first external electronic device 220 may perform a connection with the second external electronic device 230 and share information (eg, notification information, screen information) with the second external electronic device 230. .
  • the second external electronic device 230 may include a communication circuit, a memory, a display, and/or a processor like the electronic device 210 of FIG. 3 .
  • the communication circuit (eg, the communication module 190 of FIG. 1 ) of the second external electronic device 230 may support connection with the electronic device 210 and/or the first external electronic device 220. there is.
  • the second external electronic device 230 may store information related to the electronic device 210 and/or the first external electronic device 220 as a memory (eg, the memory 130 of FIG. 1 ). .
  • the memory of the second external electronic device 230 may store and manage information related to the electronic device 210 and/or the first external electronic device 220 having a connection history.
  • information related to the electronic device 210 and/or the first external electronic device 220 includes identification information of the electronic device 210 and/or the first external electronic device 220, a token value, and the electronic device 210.
  • a secret key for encrypting and decrypting data to be transmitted and received with the first external electronic device 220, and/or a server key (eg, a push server key) for transmitting and receiving push information through a push server.
  • a server key eg, a push server key
  • the display of the second external electronic device 230 (eg, the display module 160 of FIG. 1 ) is connected to information shared from the connected electronic device 210 (or the first external electronic device 220). screen can be displayed.
  • the processor of the second external electronic device 230 detects an input for screen sharing
  • First push information may be generated based on the identification information of 210 (or the first external electronic device 220) and the identification information of the second external electronic device 230.
  • the processor of the second external electronic device 230 may transmit the generated first push information to the electronic device 210 (or the first external electronic device 220).
  • second push information including network information is received from the electronic device 210 (or the first external electronic device 220)
  • the processor of the second external electronic device 230 pushes the electronic device 210 based on the network information. ) (or the first external electronic device 220) and exchange information with the electronic device 210 (or the first external electronic device 220).
  • An electronic device (eg, the first external electronic device 220) according to various embodiments includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor includes an external electronic device.
  • the identification information of the external electronic device eg, the electronic device 210) stored in the memory and the electronic device (eg, the electronic device 210)
  • First push information is generated based on the identification information of the first external electronic device 220, and the generated first push information is transmitted to the external electronic device (eg, the electronic device 210) through the communication circuit.
  • second push information including network information of the external electronic device is transmitted from the external electronic device (eg, the electronic device 210) through the communication circuit. If received, it can be set to perform a connection with the external electronic device (eg, the electronic device 210) based on the network information.
  • the first push information includes a parameter related to transmission of the first push information
  • the parameter includes at least one of recipient, priority, data, expiration date, or redundant push information.
  • the memory may include token information of the external electronic device (eg, the electronic device 210), identification information of the external electronic device (eg, the electronic device 210), and the external electronic device (eg, the electronic device 210). : It may be configured to store a secret key for encrypting and/or decrypting data transmitted/received with the electronic device 210) and/or a server key related to transmission of the first push information.
  • the network information may include IP address information or port information.
  • the processor connects a socket based on the network information, and the external electronic device (eg, the electronic device 210) and information based on the connection of the socket. It can be set to enable transmission and reception of
  • An electronic device (eg, the first external electronic device 220) according to various embodiments further includes a display, and the processor, in response to transmission of the first push information, transmits the first push information.
  • a message about transmission failure is received, instead of retransmitting the first push information, a message guiding execution of the screen sharing function may be displayed on the display.
  • the processor may, when information of a plurality of external electronic devices is stored in the memory, identify identification information of a recently connected external electronic device among the plurality of external electronic devices and the electronic device (eg, a first external electronic device). It may be configured to generate first push information based on identification information of the electronic device 220 and to transmit the generated first push information to the recently connected external electronic device through the communication circuit.
  • An electronic device (eg, the first external electronic device 220) according to various embodiments further includes a display, and the processor sets a mode of the electronic device (eg, the first external electronic device 220). displaying a user interface for the above on the display, setting a mode of the electronic device (eg, the first external electronic device 220) through the user interface, and setting the mode of the electronic device (eg, the first external electronic device (eg, the first external electronic device) ( 220)) may be set to operate in the set mode.
  • the mode of the electronic device includes a first mode and a second mode
  • the first mode is the external electronic device (eg, the electronic device 220).
  • a mode for operating as an auxiliary device receiving information shared from the device 210) and the second mode transmits information related to the electronic device (eg, the first external electronic device 220) to a second external electronic device. It may be a mode of operating as a main device shared by a device (eg, the second external electronic device 230).
  • the processor may, when the mode of the electronic device (eg, the first external electronic device 220) is set to the first mode, the external electronic device stored in the memory (eg, the electronic device ( 210)) and the electronic device (eg, the first external electronic device 220) generates first push information based on the identification information, and transmits the generated first push information through the communication circuit.
  • the mode of the electronic device eg, the first external electronic device 220
  • the external electronic device stored in the memory eg, the electronic device ( 210)
  • the electronic device eg, the first external electronic device 220
  • the electronic device When transmitted to the external electronic device (eg, the electronic device 210) and the mode of the electronic device (eg, the first external electronic device 220) is set to the second mode, the electronic device (eg, the first external electronic device 220) : A state in which the first external electronic device 220 is searchable by the second external electronic device (eg, the second external electronic device 230) or the second external electronic device (eg, the second external electronic device 230) ))) can be set to wait for connection.
  • the second external electronic device eg, the second external electronic device 230
  • the second external electronic device eg, the second external electronic device 230
  • the processor may change the mode of the electronic device (eg, the first external electronic device 220) while transmitting and receiving information with the connected external electronic device (eg, the electronic device 210).
  • the connection with the external electronic device eg, the electronic device 210) is released, and a standby state for connection with the second external electronic device (eg, the second external electronic device 230) is entered.
  • a standby state for connection with the second external electronic device eg, the second external electronic device 230
  • FIG. 4 is a flowchart for explaining a method of communicating with an electronic device 210 of an external electronic device (eg, a first external electronic device 220 or a second external electronic device 230) according to various embodiments. (400).
  • an external electronic device eg, a first external electronic device 220 or a second external electronic device 230
  • an electronic device may provide information related to the electronic device 210 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi (eg, Wi-Fi)). wi-fi on/off, and/or user's individual setting information) to another electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) )), it can be a primary device (e.g. primary device).
  • the electronic device 210 when the electronic device 210 operates as a main device, the electronic device 210 transmits received notification information and/or screen information displayed on a display of the electronic device 210 to another electronic device (eg, FIG. 2 ). It can be shared by transmitting to the first external electronic device 220 or the second external electronic device 230 .
  • an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) is information shared by another electronic device (eg, the electronic device 210 ). It may be an auxiliary device (eg secondary device) that receives. For example, when an external electronic device operates as an auxiliary device, the external electronic device receives notification information and/or screen information displayed on a display of another electronic device from another electronic device (eg, the electronic device 210), It can be displayed on a display of an electronic device.
  • the present invention is not limited thereto, and while the screen of the electronic device 210 is displayed on the display of the external electronic device, the external electronic device may detect a user input on a window provided with the screen of the electronic device 210 . In this case, the external electronic device may transmit a signal for the detected user input to the electronic device 210 . In response to transmitting a signal for the detected user input to the electronic device 210, the external electronic device functions of the application controlled by the user input from the electronic device 210 (eg, control of the controlled application screen, Information related to application function control) may be received and displayed. For example, the external electronic device may display an application screen controlled by a user input and an application screen of a controlled function on a display of the external electronic device.
  • the external electronic device may display an application screen controlled by a user input and an application screen of a controlled function on a display of the external electronic device.
  • operations 410 to 430 described below may include a connection history between the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). It may be an operation performed in case.
  • an external electronic device eg, the first external electronic device 220 or the second external electronic device 230.
  • the electronic device 210 and an external electronic device perform an operation to establish an initial connection. can do.
  • the electronic device 210 may exchange information with an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) through an operation of establishing an initial connection.
  • an external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • operates at least one nearby electronic device eg, a screen sharing function (eg, a screen sharing application)
  • At least one electronic device being executed may be searched.
  • an external electronic device eg, the first external electronic device 220 or the second external electronic device (eg, the electronic device 220)) 230
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • An interface performing authentication for communication connection eg, an interface including an authentication number for communication connection
  • the electronic device 210 Based on receiving a signal requesting a connection from an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), the electronic device 210 establishes a communication connection with the external electronic device. For this purpose, an interface performing authentication (eg, an interface including an authentication number for communication connection) may be displayed on the display of the electronic device 210 . When authentication is completed through the interface, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) and the electronic device may be connected through communication.
  • an interface performing authentication eg, an interface including an authentication number for communication connection
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • the electronic device may be connected through communication.
  • the electronic device 210 and an external electronic device connect a short-range communication circuit (eg, the first network 198 of FIG. 1 ). Based on the communication connection, the electronic device 210 and the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) transmit push information. It is possible to share each other's information for transmitting.
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • the external electronic device includes a sender that transmits push information and a receiver that receives and processes the push information. Push information may be transmitted and received with the electronic device 210 through the push information manager.
  • the electronic device 210 and an external electronic device may encrypt shared information with each other and store it in a memory.
  • the electronic device 210 may obtain a token value (eg, unique information) of an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) connected through a short-range communication circuit. ), a secret key for encrypting and decrypting data, and an external electronic device for verifying reliability of a connected external electronic device (eg, the first external electronic device 220 or the second external electronic device 230).
  • Identification information (eg, ID (identification) of the external electronic device) of (eg, the first external electronic device 220 or the second external electronic device 230) is stored in a memory (eg, the memory 320 of FIG. 3 ). can be saved
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • an external electronic device eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2
  • the external electronic device Based on the identification information (eg, token value of the electronic device 210) and the identification information (eg, ID of the external electronic device) of the electronic device 210 stored in the memory of the device, first push information is generated.
  • the input for screen sharing may include an input for executing a screen sharing application. However, it is not limited thereto.
  • the electronic device 210 and the external electronic device exchanged each other through an operation of establishing an initial connection. It may be in a state in which information of is stored in memory. In this case, when an input for screen sharing is detected, the external electronic device may generate first push information to be transmitted to the electronic device 210 to be connected for communication based on Table 1 below.
  • the first push information includes recipient (To), priority (priority), data (data), validity period (eg, time to live), and/or duplicate push information (collapse key). ) may be included.
  • Identification information of the device to receive the first push information (eg, token value) priority Information about the priority of the first push information data
  • Identification information of the device to which the first push information will be sent (eg device ID) time to live Information about the time when the first push information is alive collapse key Information set to prevent duplicate transmission of the same first push information to the electronic device
  • the external electronic device determines the first external electronic device 220 or the second external electronic device 230 based on a token value of the electronic device 210 stored in a memory.
  • a recipient (To) of push information can be set.
  • the token value of the electronic device 210 may refer to an address value of the electronic device 210 to receive the first push information, and to transmit the first push information to the electronic device 210, the token value may be used.
  • An external electronic device eg, the first external electronic device 220 or the second external electronic device 230 of FIG.
  • Identification information of the device 220 or the second external electronic device 230 may be set as data of the first push information.
  • Identification information of an external electronic device may be generated by combining a media access control address (MAC) address of the external electronic device.
  • MAC media access control address
  • data may be set in the form of a key or value.
  • Data may be encrypted using a secret key shared by the electronic device 210, which is the receiver of the first push information. As the encrypted data is transmitted to the electronic device 210, data security may be increased.
  • An external electronic device eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2
  • First push information including information may be generated.
  • the external electronic device may set the priority of the first push information.
  • the priority of the first push information may include “high”, “normal”, and “low”.
  • transmission of the first push information may be directly transmitted to the electronic device 210 without delay in a low power state.
  • the external electronic device may set a time to live of the first push information.
  • the time the first push information is alive in the push server e.g., : 15 seconds
  • the living time set in the first push information elapses, the first push information may be deleted.
  • an external electronic device eg, the first external device in FIG. 2
  • the electronic device 220 or the second external electronic device 230 may set a collapse key of the first push information. For example, when the collapse key of a plurality of transmitted first push information has the same value, only one first push information transmitted last among the plurality of first push information to be transmitted may be transmitted to the electronic device 210 . there is.
  • the external electronic device may transmit the generated first push information to the electronic device 210 in operation 420.
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2
  • the external electronic device reads the push server key stored in the policy server and sends the generated first push information to the electronic device.
  • the push server key may be allocated while registering information of an application (eg, a screen sharing application) on a push platform.
  • the external electronic device receives second push information including network information from the electronic device 210 in operation 430.
  • a connection with the electronic device 210 may be performed based on the network information.
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • decrypts data included in the second push information to obtain network information (eg, IP address information and/or port). (port) information) can be obtained.
  • the external electronic device may complete a connection with the electronic device 210 by connecting a socket based on network information.
  • the memory of the external electronic device stores information (eg, a plurality of electronic devices) A token value of each device, a secret key for encrypting and decrypting data, and identification information) may be stored.
  • the external electronic device may generate first push information based on identification information of a recently connected electronic device among a plurality of electronic devices stored in the memory, and transmit the generated first push information to the recently connected electronic device. Based on receiving the second push information from the electronic device that has received the first push information, the electronic device recently connected to the external electronic device may establish a communication connection.
  • the external electronic device when a communication connection with the recently connected electronic device is not performed as a result of transmitting the first push information to the recently connected electronic device, the external electronic device (eg, the first external electronic device 220 ) or the second external electronic device 230) may display a list of a plurality of electronic devices stored in the memory. When an input for selecting one electronic device from the list is detected, the external electronic device may generate first push information based on identification information of the selected electronic device and transmit the generated first push information to the selected electronic device. When the second push information is received from the electronic device that has received the first push information, the external electronic device and the selected electronic device may be connected through communication.
  • FIG. 5 is a flowchart for explaining a method of communicating with an external electronic device (eg, a first external electronic device 220 or a second external electronic device 230) of the electronic device 210 according to various embodiments. (500).
  • an external electronic device eg, a first external electronic device 220 or a second external electronic device 230
  • an electronic device may provide information related to the electronic device 210 (eg, notification information, screen information, and/or Setting-related information (eg, Wi-Fi on/off, and/or user's individual setting information) is transferred to another electronic device (eg, the first external electronic device 220 of FIG. 2 ). ) or a main device (eg, a primary device) shared by the second external electronic device 230).
  • An external electronic device eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2
  • receives information shared from another electronic device eg, the electronic device 210
  • an auxiliary device eg secondary device
  • operations 510 to 550 described below may include a history of connection between the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). It may be an operation performed in case.
  • the electronic device 210 and an external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • the electronic device 210 and an external electronic device may perform an operation to establish an initial connection.
  • the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) connect a short-range communication circuit (eg, the first network 198 of FIG. 1 ).
  • the electronic device 210 and an external electronic device When connected for the first time, the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) transmit push information to each other. can share.
  • the electronic device 210 may transmit and receive push information with an external electronic device through a push information manager including a sender that transmits push information and a receiver that receives and processes the push information.
  • the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) may encrypt shared information and store it in a memory.
  • the electronic device 210 may provide identification information (eg, ID of the external electronic device) of an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) connected through a short-range communication circuit.
  • identification information eg, ID of the external electronic device
  • an external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • a token value, a secret key, and/or a push server key for transmitting and receiving push information through a push server may be stored in a memory (eg, the memory 320 of FIG. 3 ).
  • the external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • includes the identification information of the electronic device 210 eg, the ID of the electronic device 210
  • a token value e.g., the ID of the electronic device 210
  • a secret key e.g., the push server key for transmitting and receiving push information through the push server
  • the electronic device 210 receives identification information (eg, a second external electronic device) from an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230).
  • identification information eg, a second external electronic device
  • the first push information including the ID of the device 230 may be received.
  • the first push information is a state in which the screen sharing function is not executed in the electronic device 210 (eg, a state in which the screen sharing application is not executed), and the screen sharing function is in a standby state in the background. If there is, or even when the screen sharing function is terminated, reception may be possible.
  • the electronic device 210 identifies an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) included in the received first push information. It is possible to check whether information is stored in the memory 320 .
  • the electronic device 210 may call a method, for example, “messageReceived” of the first push information received through a service that provides transmission and reception of push information (eg, a firebase cloud messaging (FCM) service). .
  • the electronic device 210 may read the identification information of the external electronic device included in the data of the first push information in the method “messageReceived”. After the electronic device 210 decrypts the read identification information of the external electronic device using the private key, it can check whether the identification information of the external electronic device is stored (or registered) in the electronic device 210 .
  • the electronic device 210 identifies the network information of the electronic device 210 and the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). Based on the information, second push information may be generated. For example, when it is confirmed that the identification information of the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) is stored in the memory 320, the electronic device 210 may send the external electronic device 210 to the external electronic device 210.
  • a device may be determined as a reliable device (eg, a device having a connection history), and second push information to be transmitted to an external electronic device may be generated based on Table 2 below.
  • the second push information includes recipient (To), priority (priority), data (data), valid period (eg, time to live), and/or redundant push information (collapse key). ) may be included.
  • Identification information of the device to receive the second push information eg, token value
  • priority Information about the priority of the second push information data
  • Identification information eg, device ID
  • network information of the device to which the second push information will be transmitted time to live Information about the time when the second push information is alive collapse key Information on a value set to prevent the same second push information from being repeatedly transmitted to the electronic device
  • the electronic device 210 generates a second electronic device based on a token value of an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) stored in the memory 320 .
  • a recipient (To) of push information can be set.
  • the token value of the external electronic device may refer to an address value of an external electronic device to receive second push information, and may use the token value to transmit the second push information to the external electronic device.
  • the electronic device 210 may encrypt identification information of the electronic device 210, which is a transmitter that transmits the second push information, and set it as data of the second push information.
  • the electronic device 210 silence opens a server for connection with an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), and provides network information (eg, the first external electronic device 220 or the second external electronic device 230).
  • IP address information and/or port information may be set as data of the second push information.
  • Data, for example, identification information and network information of the electronic device 210 may be encrypted using a secret key shared by an external electronic device that is a receiver of the second push information. As encrypted data is transmitted to an external electronic device, data security may be increased.
  • the electronic device 210 may transmit the generated second push information to an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230).
  • the electronic device 210 may perform a connection with an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). Based on the connection with the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), the electronic device 210 provides information (eg, notification information, screen information) with the external electronic device. , and/or setting-related information (eg, Wi-Fi on/off, and/or user's individual setting information) may be shared.
  • an external electronic device eg, the first external electronic device 220 or the second external electronic device 230
  • information eg, notification information, screen information
  • setting-related information eg, Wi-Fi on/off, and/or user's individual setting information
  • the electronic device 210 and the external electronic device had to exchange information with each other every time to connect to perform a screen sharing function, but in FIGS. 4 and 5 according to various embodiments, the electronic device 210
  • the external electronic device When the external electronic device has a history of connection with the external electronic device, the external electronic device provides information (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi) on of the electronic device 210. )/off, and/or user's individual setting information)), it may not be necessary to transmit a signal requesting execution of the screen sharing function to the electronic device 210 .
  • information eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi) on of the electronic device 210. )/off, and/or user's individual setting information
  • the first push information for connection is transmitted only to the electronic device 210, thereby scanning the electronic device to be connected for communication at a specified time interval (eg, 15 seconds). (or search) operation may not be performed. Accordingly, the time required for connecting the electronic device and the external electronic device to perform the screen sharing function may be shortened.
  • a method of connecting an external electronic device (eg, a first external electronic device 220 or a second external electronic device 230) of an electronic device 210 includes identification of the external electronic device from the external electronic device.
  • a function for screen sharing with the external electronic device is automatically executed, and for connection with the external electronic device Based on the network information of the electronic device 210 and the identification information of the external electronic device, generating second push information, transmitting the generated second push information to the external electronic device, and An operation of performing a connection with an electronic device may be included.
  • the second push information includes a parameter related to transmission of the second push information
  • the parameter includes at least one of recipient, priority, data, expiration date, or redundant push information.
  • the memory 320 may include token information of the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), identification information of the external electronic device, A secret key for encrypting and/or decrypting data transmitted/received with the external electronic device and/or a server key related to transmission of the second push information may be stored.
  • the operation of generating the second push information may include operations of encrypting network information of the electronic device 210 based on the secret key, and identification information of the electronic device 210 and the An operation of generating the second push information based on the encrypted network information of the electronic device 210 may be included.
  • FIG. 6 is a diagram 600 illustrating a signal flow for communication connection between an electronic device 210 and a first external electronic device 220 according to various embodiments.
  • FIG. 6 illustrates the operation of the aforementioned first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) of FIG. 4 and the electronic device of FIG. 5 (eg, the electronic device of FIG. 2 ). It is a diagram in which the operation of the device 210 is more detailed.
  • the electronic device 210 displays information related to the electronic device 210 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi turned on)). It may be a main device that shares (on)/off, and/or user's individual setting information) with the first external electronic device 220 .
  • the first external electronic device 220 may be an auxiliary device that receives information shared from the electronic device 210 .
  • the electronic device 210 and the first external electronic device 220 before performing operation 615, between the electronic device 210 and the first external electronic device 220 to transmit push information between the electronic device 210 and the first external electronic device 220.
  • An initial connection and an operation of storing each other's information according to the initial connection may be preceded.
  • the electronic device 210 and the first external electronic device 220 may share information with each other and store the shared information.
  • the information may include a token value, identification information, a secret key, and a server key.
  • first external electronic device 220 based on detecting an input for screen sharing (eg, an input for executing a screen sharing application), first external electronic device 220
  • First push information may be generated based on the identification information of the electronic device 210 and the identification information of the first external electronic device 220 stored in the memory of .
  • the first external electronic device 220 sets a recipient of the first push information by reading a token value of the electronic device 210 stored in a memory (not shown), and determines the reliability of the first external electronic device 220.
  • First push information may be generated by encrypting identification information (eg, ID of the first external electronic device 220) of the first external electronic device 220 for determination and setting it as data of the first push information.
  • the first external electronic device 220 may transmit the first push information to the electronic device 210 in operation 620 .
  • Operations 615 and 620 of FIG. 6 are the same as operations 410 and 420 of FIG. 4 described above, and thus detailed description thereof will be omitted.
  • the first external electronic device 220 transmits the first push information to the electronic device 210 and then returns a transmission result for the first push information from the push server. can receive
  • the first external electronic device 220 when receiving a transmission success message (eg, a message including code 200) from the electronic device 210, the first external electronic device 220 normally transmits the first push information to the electronic device 210. can be confirmed as having been In this case, operation 625 to be described later may be performed.
  • a transmission success message eg, a message including code 200
  • the first push information may not be transmitted to the electronic device 210 or may be transmitted with a delay.
  • the first external electronic device 220 may receive a transmission failure message (eg, a message including code 400 or 500) from the electronic device 210 .
  • a transmission failure message eg, a message including code 400 or 500
  • the first external electronic device 220 may determine that the first push information was not normally transmitted to the electronic device 210 . In this case, the first external electronic device 220 may not retransmit the first push information to the electronic device 210 .
  • the first external electronic device 220 sends a message guiding execution of the screen sharing function (eg, running a screen sharing application) (eg, “device to be connected”). Execute the screen sharing application on .”) may be displayed on the display of the first external electronic device 220 .
  • a situation in which transmission of the first push information fails may be a situation in which the network is unstable. In this case, even if the first push information is retransmitted to the electronic device 210, the transmission failure rate of the first push information may be high.
  • a message guiding execution of the screen sharing function (eg, execution of a screen sharing application) may be displayed on the display of the external electronic device 220 .
  • the user of the first external electronic device 220 can execute the screen sharing function on the electronic device 210 after checking the message displayed on the display for guiding execution of the screen sharing function.
  • the electronic device 210 may display a screen of an executed screen sharing function (eg, a screen sharing application) on a display based on detecting an input for executing the screen sharing function. After this, operation 630 to be described below may be performed.
  • the electronic device 210 stores identification information of the first external electronic device 220 included in the first push information received from the first external electronic device 220 in a memory (eg, diagram). If stored in the memory 320 of 3), the screen sharing function can be executed.
  • the electronic device 210 is in a state in which the screen sharing function is not executed (eg, a state in which a screen sharing application is not executed, a screen sharing function is in a standby state in the background, or a screen sharing function is terminated).
  • the first push information may be received from the first external electronic device 220 .
  • the electronic device 210 may call a method of the first push information, for example, “messageReceived”.
  • the electronic device 210 may read the identification information of the first external electronic device 220 included in the data of the first push information in the method “messageReceived”.
  • the electronic device 210 decrypts the read identification information of the first external electronic device 220 using a secret key, and then stores the identification information of the first external electronic device 220 in the electronic device 210 (or registered).
  • the electronic device 210 may send the first external electronic device 210
  • the device 220 may be determined as a trustworthy device (eg, a device having a connection history).
  • the electronic device 210 sends the first external electronic device 220 may not be determined as a trustworthy device (e.g. a device with no connection history).
  • the electronic device 210 configures an authentication server to check whether the first external electronic device 220 requesting connection is a trustworthy device, but in various embodiments of the present disclosure, the first push information It is possible to determine whether the first external electronic device 220 is a trustworthy device based on whether the included encrypted identification information of the first external electronic device 220 is stored (or registered) in the memory 320. there is. Accordingly, an operation of configuring an authentication server unnecessarily as in the prior art may not be performed.
  • the electronic device 210 may automatically execute a screen sharing function (eg, a screen sharing application) (eg, a screen sharing application). 625 action). Accordingly, the electronic device 210 screens the screen based on the identification of the first external electronic device 220 as a trustworthy device without an input for executing the screen sharing function (eg, an input for executing a screen sharing application).
  • a communication connection with the first external electronic device 220 may be prepared by automatically performing the sharing function.
  • the electronic device 210 silence opens the server, and in operation 635, based on the network information of the electronic device 210 and the identification information of the first external electronic device 220, 2 Push information can be created.
  • the electronic device 210 may transmit the second push information to the first external electronic device 220 in operation 640 .
  • the electronic device 210 silences the server, thereby opening the server according to an existing broadcast to another external electronic device (eg, the second external electronic device 230 of FIG. 2 ). may not be notified.
  • the electronic device 210 transmits the second push information including network information (eg, IP address information and/or port information) to the first external electronic device 220, so that only the first external electronic device 220 has a server. can be notified that has been opened.
  • the electronic device 210 may not be exposed to at least one other external electronic device located close to the electronic device 210 (eg, the second external electronic device 230 of FIG. 2 ), and thus , security can be increased.
  • Operations 635 and 640 of FIG. 6 are the same as operations 530 and 540 of FIG. 5 described above, and thus detailed description thereof will be omitted.
  • the electronic device 210 may transmit the second push information to the first external electronic device 220 and receive a return result of the transmission of the second push information from the push server. .
  • the first external electronic device 220 may perform a connection with the electronic device 210 in operation 645 based on the network information included in the second push information. For example, when second push information is received, the first external electronic device 220 may call a method of the first push information, for example, “messageReceived”. The first external electronic device 220 may read network information (eg, IP address information and/or port information) of the electronic device 210 included in data of the second push information in the method “messageReceived”. The electronic device 210 may decrypt network information (eg, IP address information and/or port information) of the read electronic device 210 using a private key.
  • network information eg, IP address information and/or port information
  • the first external electronic device 220 connects a socket using the decrypted network information, and connects the electronic device 210 with information (eg notification information, screen information, and/or information related to settings (eg: Connection with the electronic device 210 is completed by setting a state in which transmission and reception of Wi-Fi on/off, user's individual setting information, and/or user input information) is possible. can do.
  • information eg notification information, screen information, and/or information related to settings (eg: Connection with the electronic device 210 is completed by setting a state in which transmission and reception of Wi-Fi on/off, user's individual setting information, and/or user input information) is possible. can do.
  • the electronic device 210 may perform a connection with the first external electronic device 220 in operation 650 .
  • the electronic device 210 and the first external electronic device 220 may share information in operation 655 .
  • the electronic device 210 may transmit a screen (eg, an application screen) displayed on the display 330 to the first external electronic device 220 .
  • the first external electronic device 220 may display a screen displayed on the display 330 of the electronic device 210 on the display of the first external electronic device 220 .
  • the present invention is not limited thereto, and when a user input for the screen of the electronic device 210 displayed on the display of the first external electronic device 220 is detected, a signal for the user input may be transmitted to the electronic device 210. .
  • the electronic device 210 controls an application-related function (eg, application screen control, application function control) based on a user input received from the first external electronic device 220, and transmits information thereto to the first external electronic device 220. It can be transmitted to the external electronic device 220 .
  • the first external electronic device 220 displays an application screen controlled based on user input (eg, an application screen controlled according to user input or an application screen of a controlled function) on the display of the first external electronic device 220. can do.
  • the screen sharing function is performed between the electronic device 210 and the first external electronic device 220, but is not limited thereto.
  • a screen sharing function may be performed between the electronic device 210 and the second external electronic device 230.
  • the operation of the first external electronic device 220 is performed by the second external electronic device 230. can do.
  • FIG. 7 is a flowchart 700 illustrating a method of setting a mode of the first external electronic device 220 according to various embodiments.
  • a first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) operates an electronic device (eg, the external electronic device 210 of FIG. 2 or the second external electronic device 220 of FIG. 2 ). Based on detecting an input for screen sharing with the device 230), a user interface for setting a mode of the first external electronic device 220 may be displayed on the display. In operation 710, the first external electronic device 220 may set the mode of the first external electronic device 220 through the user interface.
  • the mode of the first external electronic device 220 may include a first mode and a second mode.
  • a first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) is an auxiliary device that receives information shared from another electronic device (eg, the electronic device 210 ). It can work.
  • the present invention is not limited thereto, and the first external electronic device 220 may include information related to the first external electronic device 220 (eg, notification information, screen information, information related to settings (eg, Wi-Fi turned on)). on/off, and/or user's individual setting information) may be operated as a main device that shares other electronic devices (eg, the second external electronic device 230 of FIG. 2 ).
  • the first external electronic device 220 when the first external electronic device 220 operates as an auxiliary device, it is assumed that the mode of the first external electronic device 220 is set to the first mode, and the first external electronic device 220 When is operated as a main device, it will be described assuming that the mode of the first external electronic device 220 is set to the second mode.
  • the first external electronic device 220 may check whether the mode of the first external electronic device 220 is set to the first mode.
  • the mode of the first external electronic device 220 is set to the first mode (eg, 'yes' in operation 715)
  • the first external electronic device 220 It can be set to operate in the first mode.
  • the first external electronic device 220 sets the property value of “isClient”, a parameter related to the mode, to “true”,
  • the external electronic device 220 may be configured to operate in a first mode (eg, an auxiliary device).
  • identification information eg, token value
  • identification information eg, external electronic device 220
  • First push information may be generated based on the ID of the electronic device 220, and the generated first push information may be transmitted to the electronic device (eg, the electronic device 210). It is not limited thereto, and the first external electronic device 220 does not store identification information (eg, token value) of the electronic device (eg, the electronic device 210) in the memory of the first external electronic device 220.
  • the first external electronic device 220 may perform an operation of searching for an electronic device to be connected using network service discovery (NSD) or bluetooth scan.
  • NSD network service discovery
  • the first external electronic device 220 may perform a connection with the searched electronic device (eg, the electronic device 210).
  • the first external electronic device 220 when the mode of the first external electronic device 220 is not set to the first mode (eg, 'No' in operation 715), the first external electronic device 220, in operation 730, first It may be checked whether the mode of the external electronic device 220 is set to the second mode.
  • the mode of the first external electronic device 220 is set to the second mode (e.g., 'yes' in operation 730)
  • the first external electronic device 220, in operation 735 the first external electronic device 220 It can be set to operate in the second mode.
  • the first external electronic device 220 when the mode of the first external electronic device 220 is set to the second mode, the first external electronic device 220 sets the attribute value of “isClient”, a parameter related to the mode, to “false”,
  • the external electronic device 220 may be set to operate in the second mode (eg, the main device).
  • the first external electronic device 220 may provide information related to the first external electronic device 220 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi) on. )/off, and/or user's individual setting information)) to the electronic device (eg, the second external electronic device 230 of FIG. 2 ), the electronic device (eg, the second external electronic device 230 of FIG. 2 ).
  • the first external electronic device 220 can be searched by the external electronic device 230 (or waits for connection with an electronic device (eg, the second external electronic device 230 of FIG. 2)).
  • an electronic device eg, the second external electronic device 230 of FIG. 2
  • the first external electronic device 220 can be set to be in a connectable state.
  • the first external electronic device 220 may perform a connection with an electronic device requesting a connection (eg, the second external electronic device 230).
  • the first external electronic device 220 changes the mode of the first external electronic device 220 (eg, changing from the first mode to the second mode, or from the second mode to the first mode). mode) is detected.
  • the first external electronic device 220 in operation 750, connects the connected electronic device (eg, the electronic device 210 or the connection with the second external electronic device 230 may be disconnected, and the first external electronic device 220 may be set to operate in the changed mode.
  • the first external electronic device 220 branches to operation 715, The first external electronic device 220 may continue to operate in a set mode (eg, the first mode or the second mode).
  • the first external electronic device 220 when the mode of the first external electronic device 220 is not set to the second mode (eg, 'No' in operation 730), the first external electronic device 220 operates as the first external electronic device 220 in operation 705. An operation of displaying a user interface for setting a mode of the electronic device 220 on the display may be performed. It is not limited to this, and when the mode of the first external electronic device 220 is not set to the second mode (eg: 'No' in operation 730), the first external electronic device 220 terminates the screen sharing function. can do.
  • the mode of the first external electronic device 220 when the mode of the first external electronic device 220 is not set to the first mode (eg, 'No' in operation 715) and when it is not set to the second mode (eg, 'No' in operation 730) may include a case where an input for setting the mode of the first external electronic device 220 to the first mode or the second mode is not detected for a specified time period. In this case, the first external electronic device 220 may determine not to perform the screen sharing function and terminate the screen sharing function.
  • FIG. 8A is a diagram 800 for describing a user interface for setting a mode of a first external electronic device 220 according to various embodiments.
  • a first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) may operate in a first mode or a second mode.
  • the first external electronic device 220 may operate as an auxiliary device receiving information shared from another electronic device (eg, the electronic device 210).
  • the first external electronic device 220 provides information related to the first external electronic device 220 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi). (Wi-Fi) on / off (and / or user's individual setting information)) as a main device that shares other electronic devices (eg, the second external electronic device 230 of FIG. 2) It can work.
  • the first external electronic device 220 is an electronic device (eg, the external electronic device 210 or the second external electronic device 230 of FIG. 2 ) as shown by reference number ⁇ 810>. Based on detecting an input for screen sharing, a user interface for setting a mode of the first external electronic device 220 may be displayed on the display.
  • the user interface includes a first item 811 (eg, tablet to phone) for setting the first external electronic device 220 to operate in the first mode and a second item for setting the operation in the second mode. (813) (eg tablet to pc).
  • a first item 811 eg, tablet to phone
  • a second item for setting the operation in the second mode. (813) (eg tablet to pc).
  • the first external electronic device 220 eg, the first item 811 or the second item 813
  • the first external electronic device 220 may be set to operate in a mode (eg, a first mode or a second mode) corresponding to the selected item (eg, the first item 811 or the second item 813).
  • the first external electronic device 220 selects a first mode corresponding to the first item 811, for example, the first external electronic device 220.
  • Communication with the electronic device (eg, the electronic device 210) stored in the memory of the memory may be connected.
  • the first external electronic device 220 and the electronic device may be connected through communication.
  • the first external electronic device 220 is an electronic device (eg, the electronic device 210).
  • User including history information eg, information 821 sent and received with the electronic device (eg, the electronic device 210) (eg, file information such as documents, pictures, and/or videos)) with the device 210) interface can be displayed.
  • a user interface including history information with an electronic device may further include a third item 823 and a fourth item 825.
  • the third item 823 may be an item for displaying a screen of a connected electronic device (eg, the electronic device 210).
  • the fourth item 825 may be an item for changing the mode of the first external electronic device 220 .
  • the first external electronic device 220 displays it on the display 330 of the electronic device (eg, the electronic device 210). A screen may be received and displayed on the display of the first external electronic device 220 .
  • the first external electronic device 220 may display a list including an item for changing the mode of the first external electronic device 220. there is. In this regard, it will be described in more detail in FIG. 8B to be described later.
  • the first external electronic device 220 may be set to perform an operation of searching for other electronic devices close to the first external electronic device 220 .
  • the first external electronic device 220 may display a list of searched electronic devices, and other electronic devices to be connected from the displayed list of electronic devices. By selecting an electronic device, an initial connection with another electronic device may be performed.
  • the first external electronic device 220 selects a second mode corresponding to the second item 813, for example, the first external electronic device 220.
  • the first external electronic device 220 may be set to be in a searchable state by other electronic devices (or in a waiting state for connection with other electronic devices).
  • the first external electronic device 220 is in a searchable standby state (or waiting for connection with another electronic device)
  • the first external electronic device 220 as shown in reference number ⁇ 830>, A text about the waiting state (eg Waiting for connection...) can be displayed on the display.
  • FIG. 8B is a diagram 850 for describing a user interface for changing a mode of the first external electronic device 220 according to various embodiments.
  • FIG. 8B shows that the first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) is set to the first mode and operates as an auxiliary device, while the first external electronic device is operating as an auxiliary device. It is a diagram for explaining the operation of changing the mode of 220.
  • the first external electronic device eg, the first external electronic device 220 of FIG. 2
  • the first external electronic device 220 displays items (eg, a third item (eg, a third item ( 823) and the fourth item 825), when an input for selecting the fourth item 825 is detected, as shown in FIG. 8B, including an item for changing the mode of the first external electronic device 220
  • a list 860 may be displayed.
  • the list 860 including an item for mode change includes a fifth item 861 (eg, Connect to computer) for changing from the first mode to the second mode and changing an electronic device to be connected while maintaining the first mode.
  • a sixth item 863 eg, Connect to new phone
  • the first external electronic device ( 220) may initialize the setting value of the first mode so that the first external electronic device 220 operates in the second mode.
  • the first external electronic device 220 when an input for selecting the sixth item 863 for changing the electronic device to be connected while maintaining the first mode is detected from the list 860, the first external electronic device 220 is connected to the electronic device.
  • a connection with a device eg, the electronic device 210
  • a communication connection may be made with another electronic device stored in the first external electronic device 220 .
  • the first external electronic device 220 and other electronic devices may be connected through communication.
  • the first The external electronic device 220 may perform an initial connection with another electronic device through an operation of searching for other electronic devices close to the first external electronic device 220 .
  • the mode of the first external electronic device 220 is fixed (eg, fixed to perform only the first mode), whereas in FIGS. 8A and 8B according to various embodiments, the user selects the first external electronic device 220 Utilization of the screen sharing function and usability of the first external electronic device 220 may be increased by providing a user interface to set a mode (eg, a first mode or a second mode).
  • a mode eg, a first mode or a second mode
  • FIG. 9 is a diagram 900 illustrating a signal flow for mode change of a first external electronic device 220 during communication connection between the electronic device 210 and the first external electronic device 220 according to various embodiments. )to be.
  • a first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) performs screen sharing with an electronic device (eg, the electronic device 210 of FIG. 2 ). Based on the detection of the input, a user interface for setting a mode of the first external electronic device 220 may be displayed on the display. The first external electronic device 220 may set the mode of the first external electronic device 220 through a user interface displayed on the display.
  • the user interface is a first item configured to operate the first external electronic device 220 in the first mode (eg, the first item 811 of FIG. 8A). ) and a second item (eg, the second item 813 of FIG. 8A) configured to operate in the second mode.
  • the first external electronic device 220 detects an input for selecting one of the first item 811 and the second item 813, the first external electronic device 220 selects the selected item (eg, the first external electronic device 220). It can be set to operate in a mode corresponding to the item 811 or the second item 813.
  • the first external electronic device 220 may check whether the mode of the first external electronic device 220 is set to the first mode.
  • the mode of the first external electronic device 220 is set to the first mode (eg, 'yes' in operation 915)
  • the first external electronic device 220 It can be set to operate in the first mode.
  • the first external electronic device 220 when an input for selecting the first item 811 is detected in the user interface for setting the mode of the first external electronic device 220, the first external electronic device 220 operates as the first external electronic device 220. may be set to operate in a first mode corresponding to the first item 811 .
  • the first external electronic device 220 when an input for selecting the first item 811 is detected in the user interface for setting the mode of the first external electronic device 220, the first external electronic device 220 operates as the first external electronic device 220.
  • Set the property value of “isClient”, a parameter related to mode setting, to “true”, and communicate with an electronic device (eg, the electronic device 210) stored in the memory of the first external electronic device 220 in the first mode, for example. can connect For example, through operations 615 to 650 of FIG. 6 described above, the first external electronic device 220 and the electronic device (eg, the electronic device 210) may be connected through communication.
  • the first external electronic device 220 may be set to perform an operation of searching for an electronic device close to the first external electronic device 220 .
  • the first external electronic device 220 may perform an operation of searching for an electronic device to be connected using NSD and Bluetooth scanning. Through an operation of searching for electronic devices close to the first external electronic device 220, a list of searched electronic devices may be displayed.
  • the mode of the electronic device 210 connected to the first external electronic device 220 is automatically set to the second mode.
  • the electronic device 210 may set the electronic device 210 to operate in the second mode.
  • the second mode may be a mode in which the electronic device 210 is set to be in a searchable state by the first external electronic device 220 (or a state of waiting for connection with another electronic device).
  • the first external electronic device 220 generates first push information based on the identification information of the first external electronic device 220 and the identification information of the electronic device 210 in operation 930, and in operation 935 In operation, the generated first push information may be transmitted to the electronic device 210 .
  • Operations 930 and 935 of FIG. 9 are the same as operations 410 and 420 of FIG. 4 described above, and thus detailed description thereof will be omitted.
  • the electronic device 210 may generate second push information including network information in operation 940 and transmit the second push information to the first external electronic device 220 in operation 945 .
  • the first external electronic device 220 may be connected to the electronic device 210 based on network information of the electronic device 210 in operation 950 .
  • the electronic device 210 may be connected to the first external electronic device 220 in operation 955 .
  • the electronic device 210 and the first external electronic device 220 may share information in operation 960 .
  • the first external electronic device 220 may receive a screen displayed on the display 330 of the electronic device 210 and display it on the display of the first external electronic device 220 .
  • the present invention is not limited thereto, and when detecting a user input for the screen of the electronic device 210 displayed on the display of the first external electronic device 220, the first external electronic device 220 transmits a signal for the user input electronically.
  • the first external electronic device 220 is an application screen controlled based on a user input received by the electronic device 210 from the first external electronic device 220 (eg, an application screen controlled according to a user input or a controlled function). The application screen of) may be displayed on the display of the first external electronic device 220 .
  • operation 955 of FIG. 9 is the same as operation 650 of FIG. 6 described above, a detailed description thereof will be omitted.
  • the first external electronic device 220 requests execution of a screen sharing function (eg, a screen sharing application).
  • a message (eg, please execute the screen sharing function on the electronic device 210 to be connected.”) may be displayed on the display of the first external electronic device 220 .
  • the user may be notified to execute the screen sharing function on the electronic device 210 .
  • the user can check a message requesting execution of the screen sharing function on the display of the first external electronic device 220 and execute the screen sharing function on the electronic device 210 .
  • the electronic device 210 may display the screen of the executed screen sharing function (eg, application) on the display 330 .
  • the electronic device 210 may become a searchable state. For example, through network service discovery (NSD) registration, the electronic device 210 may be configured to be searchable by other electronic devices.
  • NSD network service discovery
  • the present invention is not limited thereto, and the electronic device 210 responds to a Bluetooth connection request received from another electronic device through a Bluetooth broadcast receiver, so that the electronic device 210 can be configured to be in a connectable state.
  • the first external electronic device 220 completes the search for the electronic device 210, and receives the electronic device 210 such as a MAC address and network information (eg, IP address information and/or port information) from the electronic device 210. You can lead (e.g., obtain) information necessary for connection with The first external electronic device 220 connects a socket using the read MAC address and network information (eg, IP address information and/or port information) to connect the electronic device 210 and information (eg, notification). transmission and reception of information, screen information, and/or information related to settings (e.g., Wi-Fi on/off, information on individual user settings, and/or information on user input) By setting to a possible state, the connection with the electronic device 210 can be completed.
  • a MAC address and network information eg,
  • the first external electronic device 220 may detect an input for changing the first mode to the second mode in operation 970 . For example, selecting a fifth item 861 for changing from the first mode to the second mode in the list 860 including items for changing the mode of the first external electronic device 220 shown in FIG. 8B. input can be detected.
  • the first external electronic device 220 may release the connection with the electronic device 210 and set the first external electronic device 220 to operate in the second mode.
  • the first external electronic device 220 when the mode of the first external electronic device 220 is changed from the first mode to the second mode, the first external electronic device 220 performs a screen sharing function received from the electronic device 210. Since it does not, the session may be terminated and the connection with the electronic device 210 may be disconnected.
  • the first external electronic device 220 maintains a session for a specified time to reconnect with the electronic device 210, but in various embodiments of the present disclosure, when an input for changing a mode is detected, the session is immediately stopped. and prepare a new session for connection with the new device.
  • the first external electronic device 220 when the first external electronic device 220 is set to operate in the changed second mode, the first external electronic device 220 sets a parameter “isClient” related to the mode setting of the first external electronic device 220.
  • An attribute value of is set to “false”, and the second mode, for example, the first external electronic device 220 may be set to be in a searchable state by other electronic devices.
  • the first external electronic device 220 may terminate the operation of the first mode and initialize a value set to operate in the first mode.
  • the first external electronic device 220 may be in a standby state for connection with a new electronic device.
  • the first external electronic device 220 may transmit a signal for disconnection with the electronic device 210 to the electronic device 210 .
  • the electronic device 210 may disconnect the first external electronic device 220 in operation 985 based on the signal for disconnection received from the first external electronic device 220 .
  • the first external electronic device 220 when the mode of the first external electronic device 220 is not set to the first mode (eg, 'No' in operation 915), the first external electronic device 220 operates at 1005 of FIG. 10 to be described later. action can be performed.
  • FIG. 10 illustrates a signal flow for communication connection between a first external electronic device 220 and a second external electronic device 230 according to a mode change of the first external electronic device 220 according to various embodiments. It is a drawing 1000.
  • FIG. 10 may be an additional operation of the above-described FIG. 9 .
  • the first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) is in a second mode (eg, the mode set in operation 980 of FIG. 9 ), capable of searching. It may be set to be in a state (or a state of waiting for connection with another electronic device). For example, by setting the first external electronic device 220 to be searchable by other electronic devices through NSD registration or responding to a Bluetooth connection request through a Bluetooth broadcast receiver, the first external electronic device 220 It can be set to be in a connectable state. After setting the first external electronic device 220 to be in a searchable state, it may enter a standby state. After entering the standby state, the first external electronic device 220 may display a guide message prompting the second external electronic device (eg, the second external electronic device 230 of FIG. 2 ) to complete connection setup on the display. there is.
  • a second mode eg, the mode set in operation 980 of FIG. 9
  • the second external electronic device 230 may be set to operate in the first mode. For example, when the mode of the first external electronic device 220 is set to the second mode, the mode of the second external electronic device 230 connected to the first external electronic device 220 is automatically set to the first mode.
  • the second external electronic device 230 may detect an input for screen sharing with the first external electronic device 220 in operation 1015 .
  • the input for screen sharing may include an input for executing a screen sharing application. However, it is not limited thereto.
  • the second external electronic device 230 in operation 1025, stores identification information (eg, token value of the first external electronic device 220) of the first external electronic device 220 and the second external electronic device 220 .
  • First push information may be generated based on identification information of the device 230 (eg, ID of the second external electronic device 230).
  • the second external electronic device 230 may transmit the first push information to the first external electronic device 220 in operation 1030 .
  • the first external electronic device 220 generates second push information including network information in operation 1035 and transmits the second push information to the second external electronic device 230 in operation 1040.
  • the second external electronic device 230 may be connected to the first external electronic device 220 based on network information of the first external electronic device 220.
  • the first external electronic device 220 may be connected to the second external electronic device 230 in operation 1050 .
  • the first external electronic device 220 and the second external electronic device 230 may share information in operation 1055 .
  • the second external electronic device 230 may receive a screen displayed on the display of the first external electronic device 220 and display it on the display of the second external electronic device 230 . It is not limited thereto, and when detecting a user input on the screen of the first external electronic device 220 displayed on the display of the second external electronic device 230, the second external electronic device 230 responds to the user input. A signal may be transmitted to the first external electronic device 220 .
  • the second external electronic device 230 receives an application screen controlled based on a user input (eg, an application screen controlled according to a user input or an application screen of a controlled function) from the first external electronic device 220, It can be displayed on the display of the second external electronic device 230 .
  • a user input eg, an application screen controlled according to a user input or an application screen of a controlled function
  • the first external electronic device 220 when the mode of the first external electronic device 220 is changed from the second mode to the first mode, the first external electronic device 220 operates as a second external electronic device 230 Since the screen sharing operation is not performed with , the session may be terminated and the connection with the second external electronic device 230 may be disconnected.
  • the first external electronic device 220 terminates the service of the second mode, ends an operation searched by another electronic device, and sets a value set so that the first external electronic device 220 in the second mode can search. (eg, a value set to operate in the second mode) may be initialized.
  • the first external electronic device 220 enables the first external electronic device 220 to perform in the first mode or the second mode, so that the user has a cross-device experience ( cross device experience). For example, a user using the first external electronic device 220 displays a user interface for mode change while using the first external electronic device 220 in the first mode (or second mode). mode) can be changed to operate. As the modes of the first external electronic device 220 are extended and supported, usability of the first external electronic device 220 may be enhanced.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

According to various embodiments of the present disclosure, an electronic device may comprise a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor is configured to: receive, through the communication circuit, first push information including identification information of an external electronic device from the external electronic device; on the basis of the reception of the first push information, identify whether the identification information of the external electronic device included in the first push information has been stored in the memory; when it is identified that the identification information of the external electronic device has been stored in the memory, automatically execute a function for screen sharing with the external electronic device; generate second push information on the basis of network information of the electronic device for connection with the external electronic device and the identification information of the external electronic device; transmit the generated second push information to the external electronic device through the communication circuit; and perform connection with the external electronic device. In addition to the various embodiments disclosed in the present document, various other embodiments may be possible.

Description

전자 장치 및 이를 이용한 외부 전자 장치 연결 방법 Electronic device and method for connecting an external electronic device using the same
본 개시의 다양한 실시예들은 전자 장치 및 이를 이용한 외부 전자 장치 연결 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device and a method for connecting an external electronic device using the same.
전자 장치는 사용자가 휴대 가능하도록 하기 위해 비교적 작은 크기의 디스플레이를 가질 수 있다. 전자 장치는 전자 장치의 화면을 보다 큰 디스플레이를 갖는 외부 전자 장치에 전송하여, 외부 전자 장치의 디스플레이에서 전자 장치의 화면을 표시하도록 하는 미러링(mirroring) 기능을 제공할 수 있다. 전자 장치는 미러링 기능을 통해 외부 전자 장치와 다양한 데이터를 공유할 수 있다. 전자 장치는 외부 전자 장치와 다양한 데이터를 공유하기 위해, 외부 전자 장치와 연결에 필요한 다양한 정보(예: 디바이스 이름, 연결 코드(code), 및/또는 통신 기술 별 연결 방법)를 교환할 수 있다.An electronic device may have a relatively small-sized display in order to be portable by a user. The electronic device may provide a mirroring function to display the screen of the electronic device on the display of the external electronic device by transmitting the screen of the electronic device to an external electronic device having a larger display. An electronic device may share various data with an external electronic device through a mirroring function. In order to share various data with the external electronic device, the electronic device may exchange various information required for connection with the external electronic device (eg, a device name, a connection code, and/or a connection method for each communication technology).
하지만, 전자 장치는 외부 전자 장치와 연결을 위해 전술한 다양한 정보를 매번 교환해야 하기 때문에, 외부 전자 장치와 연결하는 시점에 다양한 정보를 교환하기 위한 복잡한 설정 과정을 수행해야 하는 불편함이 있을 수 있다.However, since the electronic device needs to exchange the above-described various information each time to connect with the external electronic device, it may be inconvenient to perform a complicated setting process for exchanging various information at the time of connection with the external electronic device. .
본 개시의 다양한 실시예들에 따른 전자 장치는, 이전에 연결된 이력을 가지는 외부 전자 장치로부터 연결을 요청하는 신호를 수신하면, 기 저장된 외부 전자 장치의 정보를 이용하여 외부 전자 장치가 신뢰할 수 있는 장치인지 여부를 확인할 수 있다. 전자 장치는, 연결을 요청하는 외부 전자 장치가 신뢰할 수 있는 장치인 것으로 확인되는 경우, 자동으로 화면 공유를 위한 기능을 실행함으로써 사용자의 추가적인 개입 없이, 외부 전자 장치와 연결되도록 할 수 있다. When an electronic device according to various embodiments of the present disclosure receives a signal requesting a connection from an external electronic device having a previously connected history, the external electronic device can trust the external electronic device by using pre-stored information of the external electronic device. You can check whether it is. When an external electronic device requesting connection is determined to be a trustworthy device, the electronic device can automatically execute a screen sharing function so as to be connected to the external electronic device without additional user intervention.
본 개시의 다양한 실시예들에 따른 전자 장치는, 통신 회로, 메모리, 및 상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 통신 회로를 통해, 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보를 포함하는 제1 푸시 정보를 수신하고, 상기 제1 푸시 정보를 수신하는 것에 기반하여, 상기 제1 푸시 정보에 포함된 상기 외부 전자 장치의 식별 정보가 상기 메모리에 저장되어 있는지 여부를 확인하고, 상기 외부 전자 장치의 식별 정보가 상기 메모리에 저장되어 있는 것으로 확인되면, 상기 외부 전자 장치와 화면 공유를 위한 기능을 자동으로 실행하고, 상기 외부 전자 장치와 연결을 위한 상기 전자 장치의 네트워크 정보 및 상기 외부 전자 장치의 식별 정보에 기반하여, 제2 푸시 정보를 생성하고, 상기 통신 회로를 통해, 상기 생성된 제2 푸시 정보를 상기 외부 전자 장치에 전송하고, 및 상기 외부 전자 장치와 연결을 수행하도록 설정될 수 있다.An electronic device according to various embodiments of the present disclosure includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor, through the communication circuit, receives information from an external electronic device. First push information including identification information of the external electronic device is received, and based on receiving the first push information, the identification information of the external electronic device included in the first push information is stored in the memory and if it is confirmed that the identification information of the external electronic device is stored in the memory, a function for screen sharing with the external electronic device is automatically executed, and the electronic device for connection with the external electronic device is automatically executed. generate second push information based on network information of the device and identification information of the external electronic device, transmit the generated second push information to the external electronic device through the communication circuit, and It can be set to perform a connection with a device.
본 개시의 다양한 실시예들에 따른 전자 장치는, 통신 회로, 메모리, 및 상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 외부 전자 장치와 화면 공유를 위한 입력을 검출하는 것에 기반하여, 상기 메모리에 저장된 상기 외부 전자 장치의 식별 정보 및 상기 전자 장치의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 상기 통신 회로를 통해, 상기 생성된 제1 푸시 정보를 상기 외부 전자 장치에 전송하고, 및 상기 통신 회로를 통해, 상기 외부 전자 장치로부터, 네트워크 정보를 포함하는 제2 푸시 정보가 수신되면, 상기 네트워크 정보에 기반하여 상기 외부 전자 장치와 연결을 수행하도록 설정될 수 있다. An electronic device according to various embodiments of the present disclosure includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor detects an input for screen sharing with an external electronic device. Based on the above, first push information is generated based on the identification information of the external electronic device and the identification information of the electronic device stored in the memory, and the generated first push information is transmitted to the external electronic device through the communication circuit. transmit to the electronic device, and when second push information including network information is received from the external electronic device through the communication circuit, it may be set to perform a connection with the external electronic device based on the network information. there is.
본 개시의 다양한 실시예들에 따른 전자 장치의 외부 전자 장치 연결 방법은, 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보를 포함하는 제1 푸시 정보를 수신하는 동작, 상기 제1 푸시 정보를 수신하는 것에 기반하여, 상기 제1 푸시 정보에 포함된 상기 외부 전자 장치의 식별 정보가 메모리에 저장되어 있는지 여부를 확인하는 동작, 상기 외부 전자 장치의 식별 정보가 상기 메모리에 저장되어 있는 것으로 확인되면, 상기 외부 전자 장치와 화면 공유를 위한 기능을 자동으로 실행하고, 상기 외부 전자 장치와 연결을 위한 상기 전자 장치의 네트워크 정보 및 상기 외부 전자 장치의 식별 정보에 기반하여, 제2 푸시 정보를 생성하는 동작, 상기 생성된 제2 푸시 정보를 상기 외부 전자 장치에 전송하는 동작, 및 상기 외부 전자 장치와 연결을 수행하는 동작을 포함할 수 있다.A method of connecting an electronic device to an external electronic device according to various embodiments of the present disclosure includes receiving first push information including identification information of the external electronic device from an external electronic device, and receiving the first push information. Based on this, an operation of checking whether the identification information of the external electronic device included in the first push information is stored in the memory, and if it is confirmed that the identification information of the external electronic device is stored in the memory, the Automatically executing a screen sharing function with an external electronic device and generating second push information based on network information of the electronic device for connection with the external electronic device and identification information of the external electronic device; An operation of transmitting the generated second push information to the external electronic device and an operation of performing a connection with the external electronic device may be included.
본 개시의 다양한 실시예들에 따른 전자 장치는, 이전에 연결된 이력을 가지는 외부 전자 장치로부터 연결을 요청하는 신호를 수신하면, 기 저장된 외부 전자 장치의 정보를 이용하여 외부 전자 장치와의 연결을 수행함으로써, 외부 전자 장치와의 연결 동작을 간소화할 수 있다.When an electronic device according to various embodiments of the present disclosure receives a signal requesting a connection from an external electronic device having a previously connected history, the electronic device performs a connection with the external electronic device using pre-stored information on the external electronic device. By doing so, it is possible to simplify a connection operation with an external electronic device.
도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.1 is a block diagram of an electronic device in a network environment, according to various embodiments.
도 2는, 다양한 실시예들에 따른, 전자 장치, 제1 외부 전자 장치, 및 제2 외부 전자 장치를 도시한 도면이다.2 is a diagram illustrating an electronic device, a first external electronic device, and a second external electronic device according to various embodiments.
도 3은, 다양한 실시예들에 따른, 전자 장치를 도시한 블록도이다.3 is a block diagram illustrating an electronic device, according to various embodiments.
도 4는, 다양한 실시예들에 따른, 외부 전자 장치(예: 제1 외부 전자 장치 또는 제2 외부 전자 장치)의 전자 장치와 통신 연결 방법을 설명하기 위한 흐름도이다.4 is a flowchart illustrating a method of communicating with an electronic device of an external electronic device (eg, a first external electronic device or a second external electronic device) according to various embodiments.
도 5는, 다양한 실시예들에 따른, 전자 장치의 외부 전자 장치(예: 제1 외부 전자 장치 또는 제2 외부 전자 장치)와 통신 연결 방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating a method of communicating with an external electronic device (eg, a first external electronic device or a second external electronic device) of an electronic device according to various embodiments.
도 6은, 다양한 실시예들에 따른, 전자 장치와 제1 외부 전자 장치 간 통신 연결을 위한 신호 흐름을 도시한 도면이다.6 is a diagram illustrating a signal flow for communication connection between an electronic device and a first external electronic device according to various embodiments.
도 7은, 다양한 실시예들에 따른, 제1 외부 전자 장치의 모드를 설정하는 방법을 설명하기 위한 흐름도이다.7 is a flowchart illustrating a method of setting a mode of a first external electronic device according to various embodiments.
도 8a는, 다양한 실시예들에 따른, 제1 외부 전자 장치의 모드를 설정하는 사용자 인터페이스를 설명하기 위한 도면이다.8A is a diagram for describing a user interface for setting a mode of a first external electronic device, according to various embodiments.
도 8b는, 다양한 실시예들에 따른, 제1 외부 전자 장치의 모드를 변경하는 사용자 인터페이스를 설명하기 위한 도면이다.8B is a diagram for explaining a user interface for changing a mode of a first external electronic device, according to various embodiments.
도 9는, 다양한 실시예들에 따른, 전자 장치와 제1 외부 전자 장치 간 통신 연결 중에 제1 외부 전자 장치의 모드 변경을 위한 신호 흐름을 도시한 도면이다.9 is a diagram illustrating a signal flow for mode change of a first external electronic device during a communication connection between the electronic device and the first external electronic device according to various embodiments.
도 10은, 다양한 실시예들에 따른, 제1 외부 전자 장치의 모드 변경으로, 제1 외부 전자 장치와 제2 외부 전자 장치 간 통신 연결을 위한 신호 흐름을 도시한 도면이다.FIG. 10 is a diagram illustrating a signal flow for communication connection between a first external electronic device and a second external electronic device when a mode of the first external electronic device is changed according to various embodiments.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다.1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments.
도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1 , in a network environment 100, an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 . According to one embodiment, the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor). For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 may use less power than the main processor 121 or be set to be specialized for a designated function. can The secondary processor 123 may be implemented separately from or as part of the main processor 121 .
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to one embodiment, the auxiliary processor 123 (eg, an image signal processor or a communication processor) may be implemented as part of other functionally related components (eg, the camera module 180 or the communication module 190). there is. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited. The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples. The artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 . The data may include, for example, input data or output data for software (eg, program 140) and commands related thereto. The memory 130 may include volatile memory 132 or non-volatile memory 134 .
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.The input module 150 may receive a command or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user). The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. A receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to an embodiment, the display module 160 may include a touch sensor configured to detect a touch or a pressure sensor configured to measure the intensity of force generated by the touch.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert sound into an electrical signal or vice versa. According to an embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 may be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to one embodiment, the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 may be a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, a : a local area network (LAN) communication module or a power line communication module). Among these communication modules, a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, a legacy communication module). It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications network such as a computer network (eg, a LAN or a WAN). These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 may be identified or authenticated.
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology). NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)). -latency communications)) can be supported. The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported. The wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199). According to one embodiment, the wireless communication module 192 may be used to realize peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency (for realizing URLLC). Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module 197 in addition to the radiator.
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a bottom surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( e.g. commands or data) can be exchanged with each other.
일 실시예에 따르면, 명령 또는 데이터는 제2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104) 간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself. Alternatively or additionally, one or more external electronic devices may be requested to perform the function or at least part of the service. One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 . The electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed. To this end, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 . The electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. An electronic device according to an embodiment of the present document is not limited to the aforementioned devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B, 또는 C", "A, B, 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제1", "제2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제1) 구성요소가 다른(예: 제2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, like reference numbers may be used for like or related elements. The singular form of a noun corresponding to an item may include one item or a plurality of items, unless the relevant context clearly dictates otherwise. In this document, "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and Each of the phrases such as "at least one of A, B, or C" may include any one of the items listed together in that phrase, or all possible combinations thereof. Terms such as "first", "second", or "first" or "secondary" may simply be used to distinguish that component from other corresponding components, and may refer to that component in other respects (eg, importance or order) is not limited. A (eg, first) component is said to be "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively." When mentioned, it means that the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits. can be used as A module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document provide one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (eg, the program 140) including them. For example, a processor (eg, the processor 120 ) of a device (eg, the electronic device 101 ) may call at least one command among one or more instructions stored from a storage medium and execute it. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' only means that the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.
일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products may be traded between sellers and buyers as commodities. A computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or on two user devices (e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones. In the case of online distribution, at least part of the computer program product may be temporarily stored or temporarily created in a storage medium readable by a device such as a manufacturer's server, an application store server, or a relay server's memory.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is. According to various embodiments, one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. . According to various embodiments, the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.
도 2는, 다양한 실시예들에 따른, 전자 장치(210), 제1 외부 전자 장치(220), 및 제2 외부 전자 장치(230)를 도시한 도면(200)이다.FIG. 2 is a diagram 200 illustrating an electronic device 210 , a first external electronic device 220 , and a second external electronic device 230 according to various embodiments.
다양한 실시예들에서, 전자 장치(210), 제1 외부 전자 장치(220), 및/또는 제2 외부 전자 장치(230)는, 도 1의 전자 장치(101)와 동일하거나 유사한 구성 요소들을 포함할 수 있다.In various embodiments, the electronic device 210 , the first external electronic device 220 , and/or the second external electronic device 230 include the same or similar components as the electronic device 101 of FIG. 1 . can do.
다양한 실시예들에서, 전자 장치(210)는 스마트 폰과 같은 휴대용 전자 장치로 구현될 수 있다. 제1 외부 전자 장치(220)는 태블릿 PC와 같은, 전자 장치(210)의 디스플레이보다 큰 크기의 디스플레이를 가지는 휴대용 전자 장치로 구현될 수 있다. 제2 외부 전자 장치(230)는 데스크톱(desktop) PC, 랩톱 PC와 같은, 제1 외부 전자 장치(220)의 디스플레이보다 큰 크기의 디스플레이를 가지는 장치로 구현될 수 있다. 하지만 이에 한정하는 것은 아니다.In various embodiments, the electronic device 210 may be implemented as a portable electronic device such as a smart phone. The first external electronic device 220 may be implemented as a portable electronic device having a display larger than that of the electronic device 210, such as a tablet PC. The second external electronic device 230 may be implemented as a device having a display larger than that of the display of the first external electronic device 220, such as a desktop PC or a laptop PC. However, it is not limited thereto.
다양한 실시예들에서, 전자 장치(210), 제1 외부 전자 장치(220), 및/또는 제2 외부 전자 장치(230)는 유선 또는 무선 통신을 통해 서로 연결될 수 있다. 예컨대, 전자 장치(210), 제1 외부 전자 장치(220), 및/또는 제2 외부 전자 장치(230)는 와이파이(wi-fi), 블루투스(bluetooth), LAN과 같은 통신 네트워크를 통해 TCP/IP(transfer control protocol/internet protocol) 또는 UDP(user datagram protocol) 방식으로 서로 연결될 수 있다.In various embodiments, the electronic device 210 , the first external electronic device 220 , and/or the second external electronic device 230 may be connected to each other through wired or wireless communication. For example, the electronic device 210, the first external electronic device 220, and/or the second external electronic device 230 may use a communication network such as Wi-Fi, Bluetooth, or LAN via a TCP/IP interface. They may be connected to each other using a transfer control protocol/internet protocol (IP) method or a user datagram protocol (UDP) method.
다양한 실시예들에서, 전자 장치(210), 제1 외부 전자 장치(220), 및/또는 제2 외부 전자 장치(230)는 유선 또는 무선 통신을 통해 서로 연결되는 경우, 화면 공유 기능을 수행할 수 있다. 화면 공유 기능은 전자 장치(210)의 디스플레이에 표시되는 화면을 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230)의 디스플레이에 표시(또는 제1 외부 전자 장치(220)의 디스플레이에 표시되는 화면을 제2 외부 전자 장치(230)의 디스플레이에 표시)하고, 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230)의 디스플레이에 표시된 전자 장치(210)의 화면에 대한 사용자 입력을 검출하는 경우, 사용자 입력에 대한 신호를 전자 장치(210)에 제공하는 방식의 서비스 또는 기능일 수 있다. In various embodiments, the electronic device 210, the first external electronic device 220, and/or the second external electronic device 230 may perform a screen sharing function when connected to each other through wired or wireless communication. can The screen sharing function displays the screen displayed on the display of the electronic device 210 on the display of the first external electronic device 220 or the second external electronic device 230 (or on the display of the first external electronic device 220). The displayed screen is displayed on the display of the second external electronic device 230), and the user for the screen of the electronic device 210 displayed on the display of the first external electronic device 220 or the second external electronic device 230 When an input is detected, it may be a service or function of providing a signal for a user input to the electronic device 210 .
예컨대, 전자 장치(210)와 제1 외부 전자 장치(220)(또는 제2 외부 전자 장치(230))가 유선 또는 무선 통신을 통해 연결되는 경우, 전자 장치(210)는 전자 장치(210)의 프로세서 및 메모리에 의해 생성된 어플리케이션 화면(예: 인터넷 브라우저, 갤러리, 메시지, 또는 게임과 같은 어플리케이션 화면)을 제1 외부 전자 장치(220)(또는 제2 외부 전자 장치(230))로 전송할 수 있다. 제1 외부 전자 장치(220)(또는 제2 외부 전자 장치(230))의 디스플레이에 전자 장치(210)의 어플리케이션 화면이 표시되는 동안, 제1 외부 전자 장치(220)(또는 제2 외부 전자 장치(230))는 전자 장치(210)의 어플리케이션 화면이 제공되는 윈도우 상의 사용자 입력을 전자 장치(210)에 실시간으로 전송할 수 있다. 전자 장치(210)는 제1 외부 전자 장치(220)(또는 제2 외부 전자 장치(230))로부터 수신한 사용자 입력에 기반하여 어플리케이션과 관련된 기능(예: 어플리케이션 화면의 제어, 어플리케이션의 기능을 제어)을 제어하고, 이에 대한 정보를 제1 외부 전자 장치(220)(또는 제2 외부 전자 장치(230))에 전송할 수 있다.For example, when the electronic device 210 and the first external electronic device 220 (or the second external electronic device 230) are connected through wired or wireless communication, the electronic device 210 is connected to the electronic device 210. An application screen (eg, an application screen such as an internet browser, gallery, message, or game) created by the processor and memory may be transmitted to the first external electronic device 220 (or the second external electronic device 230). . While the application screen of the electronic device 210 is displayed on the display of the first external electronic device 220 (or the second external electronic device 230), the first external electronic device 220 (or the second external electronic device 230) ( 230 ) may transmit a user input on a window in which an application screen of the electronic device 210 is provided to the electronic device 210 in real time. The electronic device 210 controls an application-related function (eg, application screen control, application function) based on a user input received from the first external electronic device 220 (or the second external electronic device 230). ) and transmits information about it to the first external electronic device 220 (or the second external electronic device 230).
다양한 실시예들에서, 전자 장치(210)가 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230)와 연결되는 경우, 전자 장치(210)는 전자 장치(210)와 관련된 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 다른 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))에 공유하는, 주 장치(예: primary device)로 동작할 수 있다. 예컨대, 전자 장치(210)가 주 장치로 동작하는 경우, 전자 장치(210)에 수신되는 알림과 같은 정보 및/또는 전자 장치(210)의 디스플레이에 표시되는 화면 정보를 다른 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))에 전송함으로써 공유할 수 있다.In various embodiments, when the electronic device 210 is connected to the first external electronic device 220 or the second external electronic device 230, the electronic device 210 displays information related to the electronic device 210 (eg, : Notification information, screen information, and/or information related to settings (e.g., Wi-Fi on/off, and/or user's individual setting information) is transmitted to other electronic devices (e.g., It may operate as a main device (eg, a primary device) shared by the first external electronic device 220 or the second external electronic device 230 . For example, when the electronic device 210 operates as a main device, information such as a notification received by the electronic device 210 and/or screen information displayed on a display of the electronic device 210 is transferred to another electronic device (eg, a drawing). It can be shared by transmitting to the first external electronic device 220 or the second external electronic device 230 of 2.
다양한 실시예들에서, 전자 장치(210)가 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230)와 연결되는 경우, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 다른 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하는, 보조 장치(예: secondary device)로 동작할 수 있다. 예컨대, 외부 전자 장치가 보조 장치로 동작하는 경우, 외부 전자 장치는 다른 전자 장치(예: 전자 장치(210))로부터 알림과 같은 정보 및/또는 다른 전자 장치의 디스플레이에 표시되는 화면 정보를 수신하여, 외부 전자 장치의 디스플레이에 표시할 수 있다.In various embodiments, when the electronic device 210 is connected to the first external electronic device 220 or the second external electronic device 230, the external electronic device (eg, the first external electronic device 220 of FIG. 2 ) ) or the second external electronic device 230) may operate as an auxiliary device (eg, secondary device) that receives information shared from another electronic device (eg, the electronic device 210). For example, when an external electronic device operates as an auxiliary device, the external electronic device receives information such as a notification from another electronic device (eg, the electronic device 210) and/or screen information displayed on a display of the other electronic device, , can be displayed on the display of an external electronic device.
이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)가 제2 외부 전자 장치(230)와 연결되는 경우, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)와 관련된 정보(예: 알림 정보, 화면 정보)를 제2 외부 전자 장치(230)에 공유하는, 주 장치로 동작할 수 있다. 제2 외부 전자 장치(230)는 제1 외부 전자 장치(220)로부터 공유되는 정보를 수신하는, 보조 장치로 동작할 수 있다.It is not limited thereto, and when the first external electronic device 220 is connected to the second external electronic device 230, the first external electronic device 220 provides information related to the first external electronic device 220 (eg, : It can operate as a main device that shares notification information and screen information) with the second external electronic device 230 . The second external electronic device 230 may operate as an auxiliary device that receives information shared from the first external electronic device 220 .
도 3은, 다양한 실시예들에 따른, 전자 장치(210)를 도시한 블록도(300)이다.3 is a block diagram 300 illustrating an electronic device 210 according to various embodiments.
도 3을 참조하면, 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(210))는 통신 회로(310)(예: 도 1의 통신 모듈(190)), 메모리(320)(예: 도 1의 메모리(130)), 디스플레이(330)(예: 도 1의 디스플레이 모듈(160)), 및/또는 프로세서(340)(예: 도 1의 프로세서(120))를 포함할 수 있다.Referring to FIG. 3, an electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 210 of FIG. 2) includes a communication circuit 310 (eg, the communication module 190 of FIG. 1), a memory ( 320) (eg, memory 130 of FIG. 1), display 330 (eg, display module 160 of FIG. 1), and/or processor 340 (eg, processor 120 of FIG. 1). can include
다양한 실시예들에서, 통신 회로(310)(예: 도 1의 통신 모듈(190))는 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220), 제2 외부 전자 장치(230))와의 연결을 지원할 수 있다. 통신 회로(310)는 근거리 통신 회로를 포함할 수 있으며, 근거리 통신 회로는 블루투스(bluetooth), 저전력 블루투스(bluetooth low energy, BLE), 또는 와이파이(wi-fi) 중 적어도 하나를 포함할 수 있다.In various embodiments, the communication circuit 310 (eg, the communication module 190 of FIG. 1 ) is an external electronic device (eg, the first external electronic device 220 of FIG. 2 , the second external electronic device 230 ) ) can be supported. The communication circuit 310 may include a short-range communication circuit, and the short-range communication circuit may include at least one of Bluetooth, Bluetooth Low Energy (BLE), or Wi-Fi.
다양한 실시예들에서, 메모리(320)(예: 도 1의 메모리(130))는 전자 장치(210)의 프로세서(340)의 처리 및 제어를 위한 프로그램(예: 도 1의 프로그램(140)), 운영 체제(operating system, OS)(예: 도 1의 운영 체제(142)), 다양한 어플리케이션, 및/또는 입/출력 데이터를 저장하는 기능을 수행하며, 전자 장치(210)의 전반적인 동작을 제어하는 프로그램을 저장할 수 있다. 메모리(320)는 전자 장치(210)에서 본 개시의 다양한 실시예들과 관련된 기능 처리 시 필요한 다양한 설정 정보를 저장할 수 있다.In various embodiments, the memory 320 (eg, the memory 130 of FIG. 1 ) is a program for processing and controlling the processor 340 of the electronic device 210 (eg, the program 140 of FIG. 1 ). , operating system (OS) (eg, operating system 142 of FIG. 1), various applications, and/or functions to store input/output data, and controls overall operation of the electronic device 210 program can be saved. The memory 320 may store various setting information necessary for the electronic device 210 to process functions related to various embodiments of the present disclosure.
일 실시예에서, 메모리(320)는 외부 전자 장치(예: 제1 외부 전자 장치(220) 및/또는 제2 외부 전자 장치(230))와 관련된 정보를 저장할 수 있다. 예컨대, 메모리(320)는 전자 장치(210)와 연결된 이력을 가지는 외부 전자 장치(예: 220 및/또는 230)와 관련된 정보를 저장하고 관리할 수 있다. 예컨대, 외부 전자 장치(예: 220 및/또는 230)와 관련된 정보는 외부 전자 장치의 식별 정보, 토큰 값(예: 토큰 정보), 외부 전자 장치(220 및/또는 230)와 송수신할 데이터를 암호화 및 복호화하기 위한 비밀키, 및/또는 푸시 서버(push server)를 통해 푸시 정보를 전송하기 위한 서버키를 포함할 수 있다. 예컨대, 토큰 값은 기기를 구분할 수 있는 식별 정보로서, 푸시 정보(push information)를 전송하거나, 외부 전자 장치(예: 220 및/또는 230)의 신뢰성을 확인(예: 연결된 이력이 있는지 여부를 확인)하기 위해 이용될 수 있다. 예컨대, 전자 장치(210)에 설치된 화면 공유 어플리케이션은 푸시 정보를 송수신하기 위해 FCM(firebase cloud message) SDK(software development kit)를 포함할 수 있다. FCM SDK는 화면 공유 어플리케이션을 처음 실행한 경우, 고유의 토큰 값을 생성할 수 있다. 토큰 값은 어플리케이션이 삭제, 재설치, 또는 사용자가 어플리케이션 데이터를 삭제(예: 소거)했을 때 재 생성될 수 있다. 서버키(예: 푸시 서버키)는 푸시 플랫폼(push platform)에서 어플리케이션의 정보를 등록하면서 할당 받을 수 있다. 예컨대, 전자 장치(210)와 외부 전자 장치(예: 220 및/또는 230)에서 화면 공유 어플리케이션이 동일하게 실행되기 때문에, 전자 장치(210)의 서버키와 외부 전자 장치(예: 220 및/또는 230)의 서버키는 동일할 수 있다.In one embodiment, the memory 320 may store information related to an external electronic device (eg, the first external electronic device 220 and/or the second external electronic device 230). For example, the memory 320 may store and manage information related to external electronic devices (eg, 220 and/or 230) having a history of being connected to the electronic device 210. For example, information related to the external electronic device (eg, 220 and/or 230) includes identification information of the external electronic device, a token value (eg, token information), and encrypts data to be transmitted/received with the external electronic device 220 and/or 230. and a secret key for decryption, and/or a server key for transmitting push information through a push server. For example, the token value is identification information capable of distinguishing a device, and transmits push information or checks the reliability of an external electronic device (eg, 220 and/or 230) (eg, confirms whether there is a connection history). ) can be used to For example, a screen sharing application installed in the electronic device 210 may include a firebase cloud message (FCM) software development kit (SDK) to transmit and receive push information. The FCM SDK can generate a unique token value when the screen sharing application is executed for the first time. The token value can be regenerated when the application is deleted or reinstalled, or when the user deletes (eg clears) application data. A server key (eg, push server key) can be assigned while registering application information on a push platform. For example, since the screen sharing application is identically executed in the electronic device 210 and the external electronic device (eg, 220 and/or 230), the server key of the electronic device 210 and the external electronic device (eg, 220 and/or 230) 230) may have the same server key.
다양한 실시예들에서, 디스플레이(330)(예: 도 1의 디스플레이 모듈(160))는 프로세서(340)의 제어 하에 영상을 표시하며, 액정 디스플레이(liquid crystal display, LCD), 발광 다이오드(light-emitting diode, LED) 디스플레이, 유기 발광 다이오드(organic light-emitting diode, OLED) 디스플레이, 또는 마이크로 전자 기계 시스템(micro electro mechanical systems, MEMS) 디스플레이, 전자 종이(electronic paper) 디스플레이, 또는 플렉서블 디스플레이(flexible display) 중 어느 하나로 구현될 수 있다. 하지만 이에 한정하는 것은 아니다.In various embodiments, the display 330 (eg, the display module 160 of FIG. 1 ) displays an image under the control of the processor 340 and includes a liquid crystal display (LCD), a light-emitting diode (light-emitting diode), and the like. emitting diode (LED) display, organic light-emitting diode (OLED) display, or micro electro mechanical systems (MEMS) display, electronic paper display, or flexible display ) can be implemented as any one of them. However, it is not limited thereto.
일 실시예에서, 디스플레이(330)는 프로세서(340)의 제어 하에 실행되는 어플리케이션의 화면(예: 인터넷 브라우저, 갤러리, 메시지, 및/또는 게임과 같은 어플리케이션의 화면)을 표시할 수 있다.In one embodiment, the display 330 may display a screen of an application executed under the control of the processor 340 (eg, a screen of an application such as an internet browser, a gallery, a message, and/or a game).
다양한 실시예들에서, 프로세서(340)(예: 도 1의 프로세서(120))는 예를 들어, 마이크로 컨트롤러 유닛(micro controller unit, MCU)을 포함할 수 있고, 운영체제(OS) 또는 임베디드 소프트웨어 프로그램을 구동하여 프로세서(340)에 연결된 다수의 하드웨어 구성요소들을 제어할 수 있다. 프로세서(340)는, 예를 들어, 메모리(320)에 저장된 인스트럭션들(예: 도 1의 프로그램(140))에 따라 다수의 하드웨어 구성요소들을 제어할 수 있다.In various embodiments, processor 340 (eg, processor 120 of FIG. 1 ) may include, for example, a micro controller unit (MCU), an operating system (OS) or an embedded software program. It is possible to control a number of hardware components connected to the processor 340 by driving. The processor 340 may control a number of hardware components according to, for example, instructions stored in the memory 320 (eg, the program 140 of FIG. 1 ).
일 실시예에서, 프로세서(340)는 외부 전자 장치(예: 220 또는 230)로부터 식별 정보를 포함하는 제1 푸시 정보를 수신할 수 있다. 프로세서(340)는 수신한 제1 푸시 정보에 포함된 외부 전자 장치(예: 220 또는 230)의 식별 정보가 메모리(320)에 저장되어 있는지 여부를 확인할 수 있다. 프로세서(340)는 외부 전자 장치(예: 220 또는 230)의 식별 정보가 메모리(320)에 저장되어 있는 것으로 확인되면, 외부 전자 장치(예: 220 또는 230)를 신뢰할 수 있는 장치로 결정할 수 있다. 예컨대, 메모리(320)에는 통신 연결된 이력이 있는 적어도 하나의 외부 전자 장치(예: 220 및/또는 230)의 식별 정보가 기 저장될 수 있다. 프로세서(340)는, 메모리(320)에 저장된 적어도 하나의 외부 전자 장치(예: 220 및/또는 230)의 식별 정보와 제1 푸시 정보에 포함된 외부 전자 장치(예: 220 또는 230)의 식별 정보를 비교할 수 있다. 프로세서(340)는 메모리(320)에 저장된 적어도 하나의 외부 전자 장치(예: 220 및/또는 230)의 식별 정보 중 제1 푸시 정보에 포함된 외부 전자 장치(예: 220 또는 230)의 식별 정보가 존재하는 경우, 제1 푸시 정보에 포함된 외부 전자 장치(예: 220 또는 230)를 통신 연결한 이력이 있는 장치 예컨대, 신뢰할 수 있는 장치로 결정할 수 있다. 외부 전자 장치(예: 220 또는 230)를 신뢰할 수 있는 장치로 결정한 후, 프로세서(340)는 외부 전자 장치(예: 220 또는 230)에 전송할 제2 푸시 정보를 생성할 수 있다. 예컨대, 제2 푸시 정보는, 암호화된 전자 장치(210)의 네트워크 정보(예: IP 주소 정보 및/또는 포트(port) 정보) 및 외부 전자 장치(예: 220 또는 230)의 식별 정보에 기반하여, 생성될 수 있다. 프로세서(340)는 외부 전자 장치(예: 220 또는 230)와 연결을 수행하고, 외부 전자 장치(예: 220 또는 230)와 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 공유할 수 있다.In an embodiment, the processor 340 may receive first push information including identification information from an external electronic device (eg, 220 or 230). The processor 340 may check whether the identification information of the external electronic device (eg, 220 or 230) included in the received first push information is stored in the memory 320. When it is confirmed that the identification information of the external electronic device (eg, 220 or 230) is stored in the memory 320, the processor 340 may determine the external electronic device (eg, 220 or 230) as a reliable device. . For example, identification information of at least one external electronic device (eg, 220 and/or 230) having a communication connection history may be pre-stored in the memory 320 . The processor 340 performs identification information of at least one external electronic device (eg, 220 and/or 230) stored in the memory 320 and identification of the external electronic device (eg, 220 or 230) included in the first push information. information can be compared. The processor 340 includes identification information of the external electronic device (eg, 220 or 230) included in the first push information among identification information of at least one external electronic device (eg, 220 and/or 230) stored in the memory 320. If exists, the external electronic device (eg, 220 or 230) included in the first push information may be determined as a device having a communication connection history, for example, a reliable device. After determining the external electronic device (eg, 220 or 230) as a reliable device, the processor 340 may generate second push information to be transmitted to the external electronic device (eg, 220 or 230). For example, the second push information is based on encrypted network information (eg, IP address information and/or port information) of the electronic device 210 and identification information of the external electronic device (eg, 220 or 230). , can be created. The processor 340 connects with an external electronic device (eg, 220 or 230), and connects the external electronic device (eg, 220 or 230) and information (eg, notification information, screen information, and/or setting-related information ( Example: Wi-Fi on/off, and/or user's individual setting information) may be shared.
다양한 실시예들에 따른 전자 장치(210)는, 통신 회로(310), 메모리(320), 및 상기 통신 회로(310) 및 상기 메모리(320)와 작동적으로 연결된 프로세서(340)를 포함하고, 상기 프로세서(340)는, 상기 통신 회로(310)를 통해, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))로부터 상기 외부 전자 장치의 식별 정보를 포함하는 제1 푸시 정보를 수신하고, 상기 제1 푸시 정보를 수신하는 것에 기반하여, 상기 제1 푸시 정보에 포함된 상기 외부 전자 장치의 식별 정보가 상기 메모리(320)에 저장되어 있는지 여부를 확인하고, 상기 외부 전자 장치의 식별 정보가 상기 메모리(320)에 저장되어 있는 것으로 확인되면, 상기 외부 전자 장치와 화면 공유를 위한 기능을 자동으로 실행하고, 상기 외부 전자 장치와 연결을 위한 상기 전자 장치(210)의 네트워크 정보 및 상기 외부 전자 장치의 식별 정보에 기반하여, 제2 푸시 정보를 생성하고, 상기 통신 회로(310)를 통해, 상기 생성된 제2 푸시 정보를 상기 외부 전자 장치에 전송하고, 및 상기 외부 전자 장치와 연결을 수행하도록 설정될 수 있다.An electronic device 210 according to various embodiments includes a communication circuit 310, a memory 320, and a processor 340 operatively connected to the communication circuit 310 and the memory 320, The processor 340 includes identification information of the external electronic device from an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) through the communication circuit 310. receiving first push information to determine whether identification information of the external electronic device included in the first push information is stored in the memory 320 based on receiving the first push information; and , When it is confirmed that the identification information of the external electronic device is stored in the memory 320, a function for screen sharing with the external electronic device is automatically executed, and the electronic device for connection with the external electronic device ( Based on the network information of 210) and the identification information of the external electronic device, second push information is generated, and the generated second push information is transmitted to the external electronic device through the communication circuit 310; And it can be set to perform a connection with the external electronic device.
다양한 실시예들에서, 상기 제2 푸시 정보는, 상기 제2 푸시 정보의 전송과 관련된 파라미터를 포함하고, 및 상기 파라미터는, 수신인, 우선순위, 데이터, 유효 기간, 또는 중복 푸시 정보 중 적어도 하나를 포함할 수 있다.In various embodiments, the second push information includes a parameter related to transmission of the second push information, and the parameter includes at least one of recipient, priority, data, expiration date, or redundant push information. can include
다양한 실시예들에서, 상기 메모리(320)는, 상기 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 토큰 정보, 상기 외부 전자 장치의 식별 정보, 상기 외부 전자 장치와 송수신되는 데이터를 암호화 및/또는 복호화 하기 위한 비밀키, 및/또는 상기 제2 푸시 정보의 전송과 관련된 서버 키를 저장하도록 설정될 수 있다.In various embodiments, the memory 320 may include token information of the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), identification information of the external electronic device, A secret key for encrypting and/or decrypting data transmitted/received with the external electronic device and/or a server key related to transmission of the second push information may be stored.
다양한 실시예들에서, 상기 프로세서(340)는, 상기 비밀키에 기반하여, 상기 전자 장치(210)의 네트워크 정보를 암호화하고, 및 상기 전자 장치(210)의 식별 정보 및 상기 암호화된 상기 전자 장치(210)의 네트워크 정보에 기반하여, 상기 제2 푸시 정보를 생성하도록 설정될 수 있다.In various embodiments, the processor 340 encrypts the network information of the electronic device 210 based on the secret key, and the identification information of the electronic device 210 and the encrypted electronic device Based on the network information of (210), it may be configured to generate the second push information.
다양한 실시예들에서, 상기 프로세서(340)는, 상기 통신 회로(310)를 통해, 상기 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))로부터 상기 전자 장치(210)와의 연결 해제를 위한 신호를 수신하면, 상기 외부 전자 장치와의 연결을 해제하도록 설정될 수 있다.In various embodiments, the processor 340 may transmit the electronic device from the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) through the communication circuit 310. When a signal for disconnection with the device 210 is received, the connection with the external electronic device may be disconnected.
다양한 실시예들에서, 미도시 되었으나, 제1 외부 전자 장치(220)는, 도 3의 전자 장치(210)와 동일하게, 통신 회로, 메모리, 디스플레이, 및/또는 프로세서를 포함할 수 있다.In various embodiments, although not shown, the first external electronic device 220 may include a communication circuit, a memory, a display, and/or a processor like the electronic device 210 of FIG. 3 .
일 실시예에서, 제1 외부 전자 장치(220)의 통신 회로(예: 도 1의 통신 모듈(190))는 전자 장치(210) 및/또는 제2 외부 전자 장치(230)와의 연결을 지원할 수 있다.In one embodiment, the communication circuit (eg, the communication module 190 of FIG. 1 ) of the first external electronic device 220 may support connection with the electronic device 210 and/or the second external electronic device 230. there is.
일 실시예에서, 제1 외부 전자 장치(220)의 메모리(예: 도 1의 메모리(130))는 전자 장치(210) 및/또는 제2 외부 전자 장치(230)와 관련된 정보를 저장할 수 있다. 예컨대, 제1 외부 전자 장치(220)의 메모리는 연결된 이력을 가지는 전자 장치(210) 및/또는 제2 외부 전자 장치(230)와 관련된 정보를 저장하고 관리할 수 있다. 예컨대, 전자 장치(210) 및/또는 제2 외부 전자 장치(230)와 관련된 정보는 전자 장치(210) 및/또는 제2 외부 전자 장치(230)의 식별 정보, 토큰 값, 전자 장치(210) 및/또는 제2 외부 전자 장치(230)와 송수신할 데이터를 암호화 및 복호화하기 위한 비밀키, 및/또는 푸시 서버를 통해 푸시 정보를 송수신하기 위한 서버키(예: 푸시 서버키)를 포함할 수 있다.In one embodiment, the memory (eg, the memory 130 of FIG. 1 ) of the first external electronic device 220 may store information related to the electronic device 210 and/or the second external electronic device 230. . For example, the memory of the first external electronic device 220 may store and manage information related to the electronic device 210 and/or the second external electronic device 230 having a connection history. For example, information related to the electronic device 210 and/or the second external electronic device 230 includes identification information of the electronic device 210 and/or the second external electronic device 230, a token value, and the electronic device 210. and/or a secret key for encrypting and decrypting data to be transmitted and received with the second external electronic device 230, and/or a server key (eg, a push server key) for transmitting and receiving push information through a push server. there is.
일 실시예에서, 제1 외부 전자 장치(220)의 디스플레이(예: 도 1의 디스플레이 모듈(160))는 제1 외부 전자 장치(220)의 모드를 설정하기 위한 사용자 인터페이스를 표시할 수 있다. 예컨대, 제1 외부 전자 장치(220)의 모드는 제1 모드(예: 다른 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하는 보조 장치로 동작하는 모드) 및 제2 모드(예: 제1 외부 전자 장치(220)와 관련된 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 다른 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에 공유하는 주 장치로 동작하는 모드)를 포함할 수 있다.In an embodiment, the display (eg, the display module 160 of FIG. 1 ) of the first external electronic device 220 may display a user interface for setting a mode of the first external electronic device 220 . For example, the modes of the first external electronic device 220 include a first mode (eg, a mode operating as an auxiliary device receiving information shared from another electronic device (eg, the electronic device 210)) and a second mode (eg, the electronic device 210). Example: Information related to the first external electronic device 220 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi on/off), and/or Alternatively, a mode of operating as a main device that shares user's individual setting information) with other electronic devices (eg, the second external electronic device 230 of FIG. 2 ) may be included.
일 실시예에서, 제1 외부 전자 장치(220)가 제1 모드로 동작하도록 설정된 경우, 제1 외부 전자 장치(220)의 디스플레이는 연결된 전자 장치(210)로부터 공유되는 정보에 대한 화면을 표시할 수 있다. 제1 외부 전자 장치(220)가 제2 모드로 동작하도록 설정된 경우, 제2 외부 전자 장치(220)의 디스플레이는 제1 외부 전자 장치(220)에서 실행되는 어플리케이션의 화면(예: 인터넷 브라우저, 갤러리, 메시지, 및/또는 게임과 같은 어플리케이션의 화면)을 표시할 수 있다.In one embodiment, when the first external electronic device 220 is set to operate in the first mode, the display of the first external electronic device 220 displays a screen for information shared from the connected electronic device 210. can When the first external electronic device 220 is set to operate in the second mode, the display of the second external electronic device 220 displays a screen of an application running on the first external electronic device 220 (eg, an internet browser, a gallery). , messages, and/or screens of applications such as games) may be displayed.
일 실시예에서, 제1 외부 전자 장치(220)의 프로세서(예: 도 1의 프로세서(120))는, 제1 외부 전자 장치(220)가 제1 모드로 동작하는 경우, 화면 공유를 위한 입력이 검출되면, 제1 외부 전자 장치(220)에 저장된 전자 장치(210)의 식별 정보 및 제1 외부 전자 장치(220)의 식별 정보에 기반하여, 제1 푸시 정보를 생성할 수 있다. 제1 외부 전자 장치(220)의 프로세서는 생성된 제1 푸시 정보를 전자 장치(210)에 전송할 수 있다. 제1 외부 전자 장치(220)의 프로세서는 전자 장치(210)로부터 네트워크 정보를 포함하는 제2 푸시 정보가 수신되면, 네트워크 정보에 기반하여 전자 장치(210)와 연결을 수행하고, 전자 장치(210)와 정보를 교환할 수 있다. In one embodiment, the processor (eg, the processor 120 of FIG. 1 ) of the first external electronic device 220, when the first external electronic device 220 operates in the first mode, inputs for screen sharing. When is detected, first push information may be generated based on the identification information of the electronic device 210 and the identification information of the first external electronic device 220 stored in the first external electronic device 220 . The processor of the first external electronic device 220 may transmit the generated first push information to the electronic device 210 . When second push information including network information is received from the electronic device 210, the processor of the first external electronic device 220 performs a connection with the electronic device 210 based on the network information, and the electronic device 210 ) and exchange information.
일 실시예에서, 제1 외부 전자 장치(220)의 프로세서는, 제1 외부 전자 장치(220)가 제2 모드로 동작하는 경우, 제2 외부 전자 장치(230)로부터 제2 외부 전자 장치(230)의 식별 정보를 포함하는 제1 푸시 정보를 수신할 수 있다. 제1 외부 전자 장치(220)의 프로세서는, 수신한 제1 푸시 정보에 포함된 제2 외부 전자 장치(230)의 식별 정보가 제1 외부 전자 장치(220)의 메모리에 저장되어 있는지 여부를 확인할 수 있다. 제1 외부 전자 장치(220)의 프로세서는, 제2 외부 전자 장치(230)의 식별 정보가 제1 외부 전자 장치(220)의 메모리에 저장되어 있는 것으로 확인되면, 제2 외부 전자 장치(230)를 신뢰할 수 있는 장치(예: 연결 이력이 있는 장치)로 결정할 수 있다. 제1 외부 전자 장치(220)의 프로세서는, 제2 외부 전자 장치(230)를 신뢰할 수 있는 장치로 결정한 후, 제2 외부 전자 장치(230)에 전송할 제2 푸시 정보를 생성할 수 있다. 예컨대, 제2 푸시 정보는, 암호화된 제1 외부 전자 장치(220)의 네트워크 정보(예: IP 주소 정보 및/또는 포트(port) 정보) 및 제2 외부 전자 장치(230)의 식별 정보에 기반하여 생성될 수 있다. 제1 외부 전자 장치(220)의 프로세서는, 제2 외부 전자 장치(230)와 연결을 수행하고, 제2 외부 전자 장치(230)와 정보(예: 알림 정보, 화면 정보)를 공유할 수 있다.In one embodiment, when the first external electronic device 220 operates in the second mode, the processor of the first external electronic device 220 receives the second external electronic device 230 from the second external electronic device 230. ) It is possible to receive the first push information including the identification information of. The processor of the first external electronic device 220 determines whether the identification information of the second external electronic device 230 included in the received first push information is stored in the memory of the first external electronic device 220. can When the processor of the first external electronic device 220 determines that the identification information of the second external electronic device 230 is stored in the memory of the first external electronic device 220, the second external electronic device 230 can be determined as a trusted device (e.g. a device with a connection history). After determining the second external electronic device 230 as a reliable device, the processor of the first external electronic device 220 may generate second push information to be transmitted to the second external electronic device 230 . For example, the second push information is based on encrypted network information (eg, IP address information and/or port information) of the first external electronic device 220 and identification information of the second external electronic device 230. can be created by The processor of the first external electronic device 220 may perform a connection with the second external electronic device 230 and share information (eg, notification information, screen information) with the second external electronic device 230. .
다양한 실시예들에서, 미도시 되었으나, 제2 외부 전자 장치(230)는, 도 3의 전자 장치(210)와 동일하게, 통신 회로, 메모리, 디스플레이, 및/또는 프로세서를 포함할 수 있다.In various embodiments, although not shown, the second external electronic device 230 may include a communication circuit, a memory, a display, and/or a processor like the electronic device 210 of FIG. 3 .
일 실시예에서, 제2 외부 전자 장치(230)의 통신 회로(예: 도 1의 통신 모듈(190))는 전자 장치(210) 및/또는 제1 외부 전자 장치(220)와의 연결을 지원할 수 있다.In one embodiment, the communication circuit (eg, the communication module 190 of FIG. 1 ) of the second external electronic device 230 may support connection with the electronic device 210 and/or the first external electronic device 220. there is.
일 실시예에서, 제2 외부 전자 장치(230)는 메모리(예: 도 1의 메모리(130))는 전자 장치(210) 및/또는 제1 외부 전자 장치(220)와 관련된 정보를 저장할 수 있다. 예컨대, 제2 외부 전자 장치(230)의 메모리는 연결된 이력을 가지는 전자 장치(210) 및/또는 제1 외부 전자 장치(220)와 관련된 정보를 저장하고 관리할 수 있다. 예컨대, 전자 장치(210) 및/또는 제1 외부 전자 장치(220)와 관련된 정보는 전자 장치(210) 및/또는 제1 외부 전자 장치(220)의 식별 정보, 토큰 값, 전자 장치(210) 및/또는 제1 외부 전자 장치(220)와 송수신할 데이터를 암호화 및 복호화하기 위한 비밀키, 및/또는 푸시 서버를 통해 푸시 정보를 송수신하기 위한 서버키(예: 푸시 서버키)를 포함할 수 있다.In one embodiment, the second external electronic device 230 may store information related to the electronic device 210 and/or the first external electronic device 220 as a memory (eg, the memory 130 of FIG. 1 ). . For example, the memory of the second external electronic device 230 may store and manage information related to the electronic device 210 and/or the first external electronic device 220 having a connection history. For example, information related to the electronic device 210 and/or the first external electronic device 220 includes identification information of the electronic device 210 and/or the first external electronic device 220, a token value, and the electronic device 210. and/or a secret key for encrypting and decrypting data to be transmitted and received with the first external electronic device 220, and/or a server key (eg, a push server key) for transmitting and receiving push information through a push server. there is.
일 실시예에서, 제2 외부 전자 장치(230)의 디스플레이(예: 도 1의 디스플레이 모듈(160))는 연결된 전자 장치(210)(또는 제1 외부 전자 장치(220))로부터 공유되는 정보에 대한 화면을 표시할 수 있다.In one embodiment, the display of the second external electronic device 230 (eg, the display module 160 of FIG. 1 ) is connected to information shared from the connected electronic device 210 (or the first external electronic device 220). screen can be displayed.
일 실시예에서, 제2 외부 전자 장치(230)의 프로세서(예: 도 1의 프로세서(120))는 화면 공유를 위한 입력이 검출되면, 제2 외부 전자 장치(230)의 메모리에 저장된 전자 장치(210)(또는 제1 외부 전자 장치(220))의 식별 정보 및 제2 외부 전자 장치(230)의 식별 정보에 기반하여, 제1 푸시 정보를 생성할 수 있다. 제2 외부 전자 장치(230)의 프로세서는 생성된 제1 푸시 정보를 전자 장치(210)(또는 제1 외부 전자 장치(220))에 전송할 수 있다. 제2 외부 전자 장치(230)의 프로세서는 전자 장치(210)(또는 제1 외부 전자 장치(220))로부터 네트워크 정보를 포함하는 제2 푸시 정보가 수신되면, 네트워크 정보에 기반하여 전자 장치(210)(또는 제1 외부 전자 장치(220))와 연결을 수행하고, 전자 장치(210)(또는 제1 외부 전자 장치(220))와 정보를 교환할 수 있다.In one embodiment, when the processor (eg, the processor 120 of FIG. 1 ) of the second external electronic device 230 detects an input for screen sharing, the electronic device stored in the memory of the second external electronic device 230 First push information may be generated based on the identification information of 210 (or the first external electronic device 220) and the identification information of the second external electronic device 230. The processor of the second external electronic device 230 may transmit the generated first push information to the electronic device 210 (or the first external electronic device 220). When second push information including network information is received from the electronic device 210 (or the first external electronic device 220), the processor of the second external electronic device 230 pushes the electronic device 210 based on the network information. ) (or the first external electronic device 220) and exchange information with the electronic device 210 (or the first external electronic device 220).
다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))는, 통신 회로, 메모리, 및 상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 외부 전자 장치(예: 전자 장치(210))와 화면 공유를 위한 입력을 검출하는 것에 기반하여, 상기 메모리에 저장된 상기 외부 전자 장치(예: 전자 장치(210))의 식별 정보 및 상기 전자 장치(예: 제1 외부 전자 장치(220))의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 상기 통신 회로를 통해, 상기 생성된 제1 푸시 정보를 상기 외부 전자 장치(예: 전자 장치(210))에 전송하고, 및 상기 통신 회로를 통해, 상기 외부 전자 장치(예: 전자 장치(210))로부터, 상기 외부 전자 장치(예: 전자 장치(210))의 네트워크 정보를 포함하는 제2 푸시 정보가 수신되면, 상기 네트워크 정보에 기반하여 상기 외부 전자 장치(예: 전자 장치(210))와 연결을 수행하도록 설정될 수 있다.An electronic device (eg, the first external electronic device 220) according to various embodiments includes a communication circuit, a memory, and a processor operatively connected to the communication circuit and the memory, wherein the processor includes an external electronic device. Based on detecting an input for screen sharing with a device (eg, the electronic device 210), the identification information of the external electronic device (eg, the electronic device 210) stored in the memory and the electronic device (eg, the electronic device 210) First push information is generated based on the identification information of the first external electronic device 220, and the generated first push information is transmitted to the external electronic device (eg, the electronic device 210) through the communication circuit. and second push information including network information of the external electronic device (eg, the electronic device 210) is transmitted from the external electronic device (eg, the electronic device 210) through the communication circuit. If received, it can be set to perform a connection with the external electronic device (eg, the electronic device 210) based on the network information.
다양한 실시예들에서, 상기 제1 푸시 정보는, 상기 제1 푸시 정보의 전송과 관련된 파라미터를 포함하고, 및 상기 파라미터는, 수신인, 우선순위, 데이터, 유효 기간, 또는 중복 푸시 정보 중 적어도 하나를 포함할 수 있다.In various embodiments, the first push information includes a parameter related to transmission of the first push information, and the parameter includes at least one of recipient, priority, data, expiration date, or redundant push information. can include
다양한 실시예들에서, 상기 메모리는, 상기 외부 전자 장치(예: 전자 장치(210))의 토큰 정보, 상기 외부 전자 장치(예: 전자 장치(210))의 식별 정보, 상기 외부 전자 장치(예: 전자 장치(210))와 송수신되는 데이터를 암호화 및/또는 복호화 하기 위한 비밀 키, 및/또는 상기 제1 푸시 정보의 전송과 관련된 서버 키를 저장하도록 설정될 수 있다.In various embodiments, the memory may include token information of the external electronic device (eg, the electronic device 210), identification information of the external electronic device (eg, the electronic device 210), and the external electronic device (eg, the electronic device 210). : It may be configured to store a secret key for encrypting and/or decrypting data transmitted/received with the electronic device 210) and/or a server key related to transmission of the first push information.
다양한 실시예들에서, 상기 네트워크 정보는, IP 주소 정보 또는 포트(port) 정보를 포함할 수 있다.In various embodiments, the network information may include IP address information or port information.
다양한 실시예들에서, 상기 프로세서는, 상기 네트워크 정보에 기반하여, 소켓(socket)을 연결하고, 및 상기 소켓을 연결하는 것에 기반하여, 상기 외부 전자 장치(예: 전자 장치(210))와 정보의 송수신이 가능하도록 설정될 수 있다.In various embodiments, the processor connects a socket based on the network information, and the external electronic device (eg, the electronic device 210) and information based on the connection of the socket. It can be set to enable transmission and reception of
다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))는 디스플레이를 더 포함하며, 상기 프로세서는, 상기 제1 푸시 정보를 전송하는 것에 대한 응답으로, 상기 제1 푸시 정보의 전송 실패에 대한 메시지를 수신하는 경우, 상기 제1 푸시 정보를 재전송하는 대신, 화면 공유 기능의 실행을 가이드 하는 메시지 상기 디스플레이에 표시하도록 설정될 수 있다.An electronic device (eg, the first external electronic device 220) according to various embodiments further includes a display, and the processor, in response to transmission of the first push information, transmits the first push information. When a message about transmission failure is received, instead of retransmitting the first push information, a message guiding execution of the screen sharing function may be displayed on the display.
다양한 실시예들에서, 상기 프로세서는, 상기 메모리에 복수의 외부 전자 장치들의 정보들이 저장된 경우, 상기 복수의 외부 전자 장치들 중 최근 연결된 외부 전자 장치의 식별 정보 및 상기 전자 장치(예: 제1 외부 전자 장치(220))의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 및 상기 통신 회로를 통해, 상기 생성된 제1 푸시 정보를 상기 최근 연결된 외부 전자 장치에 전송하도록 설정될 수 있다.In various embodiments, the processor may, when information of a plurality of external electronic devices is stored in the memory, identify identification information of a recently connected external electronic device among the plurality of external electronic devices and the electronic device (eg, a first external electronic device). It may be configured to generate first push information based on identification information of the electronic device 220 and to transmit the generated first push information to the recently connected external electronic device through the communication circuit.
다양한 실시예들에 따른 전자 장치(예: 제1 외부 전자 장치(220))는 디스플레이를 더 포함하며, 상기 프로세서는, 상기 전자 장치(예: 제1 외부 전자 장치(220))의 모드를 설정하기 위한 사용자 인터페이스를 상기 디스플레이에 표시하고, 상기 사용자 인터페이스를 통해 상기 전자 장치(예: 제1 외부 전자 장치(220))의 모드를 설정하고, 및 상기 전자 장치(예: 제1 외부 전자 장치(220))가 상기 설정된 모드로 동작하도록 설정될 수 있다. An electronic device (eg, the first external electronic device 220) according to various embodiments further includes a display, and the processor sets a mode of the electronic device (eg, the first external electronic device 220). displaying a user interface for the above on the display, setting a mode of the electronic device (eg, the first external electronic device 220) through the user interface, and setting the mode of the electronic device (eg, the first external electronic device (eg, the first external electronic device) ( 220)) may be set to operate in the set mode.
다양한 실시예들에서, 상기 전자 장치(예: 제1 외부 전자 장치(220))의 모드는, 제1 모드 및 제2 모드를 포함하고, 상기 제1 모드는, 상기 외부 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하는 보조 장치로 동작하는 모드이고, 및 상기 제2 모드는, 상기 전자 장치(예: 제1 외부 전자 장치(220))와 관련된 정보를 제2 외부 전자 장치(예: 제2 외부 전자 장치(230))에 공유하는 주 장치로 동작하는 모드일 수 있다.In various embodiments, the mode of the electronic device (eg, the first external electronic device 220) includes a first mode and a second mode, and the first mode is the external electronic device (eg, the electronic device 220). A mode for operating as an auxiliary device receiving information shared from the device 210), and the second mode transmits information related to the electronic device (eg, the first external electronic device 220) to a second external electronic device. It may be a mode of operating as a main device shared by a device (eg, the second external electronic device 230).
다양한 실시예들에서, 상기 프로세서는, 상기 전자 장치(예: 제1 외부 전자 장치(220))의 모드가 상기 제1 모드로 설정되는 경우, 상기 메모리에 저장된 외부 전자 장치(예: 전자 장치(210))의 식별 정보 및 상기 전자 장치(예: 제1 외부 전자 장치(220))의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 상기 통신 회로를 통해, 상기 생성된 제1 푸시 정보를 상기 외부 전자 장치(예: 전자 장치(210))에 전송하고, 및 상기 전자 장치(예: 제1 외부 전자 장치(220))의 모드가 상기 제2 모드로 설정되는 경우, 상기 전자 장치(예: 제1 외부 전자 장치(220))가 상기 제2 외부 전자 장치(예: 제2 외부 전자 장치(230))에 의해 검색 가능한 상태 또는 제2 외부 전자 장치(예: 제2 외부 전자 장치(230))와의 연결을 대기하는 상태가 되도록 설정할 수 있다.In various embodiments, the processor may, when the mode of the electronic device (eg, the first external electronic device 220) is set to the first mode, the external electronic device stored in the memory (eg, the electronic device ( 210)) and the electronic device (eg, the first external electronic device 220) generates first push information based on the identification information, and transmits the generated first push information through the communication circuit. When transmitted to the external electronic device (eg, the electronic device 210) and the mode of the electronic device (eg, the first external electronic device 220) is set to the second mode, the electronic device (eg, the first external electronic device 220) : A state in which the first external electronic device 220 is searchable by the second external electronic device (eg, the second external electronic device 230) or the second external electronic device (eg, the second external electronic device 230) )) can be set to wait for connection.
다양한 실시예들에서, 상기 프로세서는, 상기 연결된 외부 전자 장치(예: 전자 장치(210))와 정보를 송수신하는 중에 상기 전자 장치(예: 제1 외부 전자 장치(220))의 모드를 변경하기 위한 입력이 검출되면, 상기 외부 전자 장치(예: 전자 장치(210))와의 연결을 해제하고, 및 제2 외부 전자 장치(예: 제2 외부 전자 장치(230))와의 연결을 위한 대기 상태가 되도록 설정될 수 있다.In various embodiments, the processor may change the mode of the electronic device (eg, the first external electronic device 220) while transmitting and receiving information with the connected external electronic device (eg, the electronic device 210). When an input for the external electronic device (eg, the electronic device 210) is detected, the connection with the external electronic device (eg, the electronic device 210) is released, and a standby state for connection with the second external electronic device (eg, the second external electronic device 230) is entered. can be set so that
도 4는, 다양한 실시예들에 따른, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 전자 장치(210)와 통신 연결 방법을 설명하기 위한 흐름도(400)이다.4 is a flowchart for explaining a method of communicating with an electronic device 210 of an external electronic device (eg, a first external electronic device 220 or a second external electronic device 230) according to various embodiments. (400).
다양한 실시예들에서, 전자 장치(예: 도 2의 전자 장치(210))는 전자 장치(210)와 관련된 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 다른 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))에 공유하는, 주 장치(예: primary device)일 수 있다. 예컨대, 전자 장치(210)가 주 장치로 동작하는 경우, 전자 장치(210)는 수신되는 알림 정보 및/또는 전자 장치(210)의 디스플레이에 표시되는 화면 정보를 다른 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))에 전송함으로써 공유할 수 있다.In various embodiments, an electronic device (eg, the electronic device 210 of FIG. 2 ) may provide information related to the electronic device 210 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi (eg, Wi-Fi)). wi-fi on/off, and/or user's individual setting information) to another electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) )), it can be a primary device (e.g. primary device). For example, when the electronic device 210 operates as a main device, the electronic device 210 transmits received notification information and/or screen information displayed on a display of the electronic device 210 to another electronic device (eg, FIG. 2 ). It can be shared by transmitting to the first external electronic device 220 or the second external electronic device 230 .
다양한 실시예들에서, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 다른 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하는, 보조 장치(예: secondary device)일 수 있다. 예컨대, 외부 전자 장치가 보조 장치로 동작하는 경우, 외부 전자 장치는 다른 전자 장치(예: 전자 장치(210))로부터 알림 정보 및/또는 다른 전자 장치의 디스플레이에 표시되는 화면 정보를 수신하여, 외부 전자 장치의 디스플레이에 표시할 수 있다.In various embodiments, an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) is information shared by another electronic device (eg, the electronic device 210 ). It may be an auxiliary device (eg secondary device) that receives. For example, when an external electronic device operates as an auxiliary device, the external electronic device receives notification information and/or screen information displayed on a display of another electronic device from another electronic device (eg, the electronic device 210), It can be displayed on a display of an electronic device.
이에 한정하는 것은 아니며, 외부 전자 장치의 디스플레이에 전자 장치(210)의 화면이 표시되는 동안, 외부 전자 장치는 전자 장치(210)의 화면이 제공되는 윈도우 상에서 사용자 입력을 검출할 수 있다. 이 경우, 외부 전자 장치는 검출된 사용자 입력에 대한 신호를 전자 장치(210)에 전송할 수 있다. 검출된 사용자 입력에 대한 신호를 전자 장치(210)에 전송하는 것에 대한 응답으로, 외부 전자 장치는 전자 장치(210)로부터 사용자 입력에 의해 제어된 어플리케이션의 기능(예: 제어된 어플리케이션 화면의 제어, 어플리케이션의 기능을 제어)과 관련된 정보를 수신하여 표시할 수 있다. 예컨대, 외부 전자 장치는 사용자 입력에 의해 제어된 어플리케이션 화면, 제어된 기능의 어플리케이션 화면을 외부 전자 장치의 디스플레이에 표시할 수 있다. The present invention is not limited thereto, and while the screen of the electronic device 210 is displayed on the display of the external electronic device, the external electronic device may detect a user input on a window provided with the screen of the electronic device 210 . In this case, the external electronic device may transmit a signal for the detected user input to the electronic device 210 . In response to transmitting a signal for the detected user input to the electronic device 210, the external electronic device functions of the application controlled by the user input from the electronic device 210 (eg, control of the controlled application screen, Information related to application function control) may be received and displayed. For example, the external electronic device may display an application screen controlled by a user input and an application screen of a controlled function on a display of the external electronic device.
다양한 실시예들에서, 후술하는 410동작 내지 430동작은, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))가 연결된 이력이 있는 경우에 수행되는 동작일 수 있다.In various embodiments, operations 410 to 430 described below may include a connection history between the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). It may be an operation performed in case.
일 실시예에서, 후술하는 410동작 전에, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 최초 연결을 설정하는 동작을 수행할 수 있다. 전자 장치(210)는 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))와 최초 연결을 설정하는 동작을 통해 서로의 정보를 교환할 수 있다. 예컨대, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 근접하게 위치하는 적어도 하나의 전자 장치(예: 화면 공유 기능(예: 화면 공유 어플리케이션)을 실행 중인 적어도 하나의 전자 장치)를 검색할 수 있다. 검색된 적어도 하나의 전자 장치 중 연결하고자 하는 전자 장치(예: 전자 장치(210))를 선택하는 입력이 검출되면, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 선택된 전자 장치(210)에 연결을 요청하는 신호를 전송할 수 있다. 선택된 전자 장치(210)에 연결을 요청하는 신호를 전송하는 것에 기반하여, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 전자 장치(210)와의 통신 연결을 위해 인증을 수행하는 인터페이스(예: 통신 연결을 위한 인증번호를 포함하는 인터페이스)를 외부 전자 장치의 디스플레이에 표시할 수 있다. 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))로부터 연결을 요청하는 신호를 수신하는 것에 기반하여, 전자 장치(210)는 외부 전자 장치와의 통신 연결을 위해 인증을 수행하는 인터페이스(예: 통신 연결을 위한 인증번호를 포함하는 인터페이스)를 전자 장치(210)의 디스플레이에 표시할 수 있다. 인터페이스를 통해 인증이 완료되면, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))와 전자 장치는 통신 연결될 수 있다. In one embodiment, before operation 410 described below, the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) perform an operation to establish an initial connection. can do. The electronic device 210 may exchange information with an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) through an operation of establishing an initial connection. For example, an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) operates at least one nearby electronic device (eg, a screen sharing function (eg, a screen sharing application)). At least one electronic device being executed) may be searched. When an input for selecting an electronic device (eg, the electronic device 210) to be connected is detected from among the at least one electronic device found, an external electronic device (eg, the first external electronic device 220 or the second external electronic device (eg, the electronic device 220)) 230) may transmit a signal requesting connection to the selected electronic device 210 . Based on transmitting a signal requesting a connection to the selected electronic device 210, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) communicates with the electronic device 210. An interface performing authentication for communication connection (eg, an interface including an authentication number for communication connection) may be displayed on the display of the external electronic device. Based on receiving a signal requesting a connection from an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), the electronic device 210 establishes a communication connection with the external electronic device. For this purpose, an interface performing authentication (eg, an interface including an authentication number for communication connection) may be displayed on the display of the electronic device 210 . When authentication is completed through the interface, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) and the electronic device may be connected through communication.
예컨대, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))가 근거리 통신 회로(예: 도 1의 제1 네트워크(198))를 통해 통신 연결될 수 있으며, 통신 연결되는 것에 기반하여, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 푸시 정보(push information)를 전송하기 위한 서로의 정보를 공유할 수 있다. 예컨대, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 푸시 정보를 전송하는 센더(sender)와 푸시 정보를 수신하여 처리하는 리시버(receiver)를 포함하는 푸시 정보 매니저를 통해 전자 장치(210)와 푸시 정보를 송수신할 수 있다. For example, the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) connect a short-range communication circuit (eg, the first network 198 of FIG. 1 ). Based on the communication connection, the electronic device 210 and the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) transmit push information. It is possible to share each other's information for transmitting. For example, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) includes a sender that transmits push information and a receiver that receives and processes the push information. Push information may be transmitted and received with the electronic device 210 through the push information manager.
일 실시예에서, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 공유된 서로의 정보를 암호화하여, 메모리에 저장할 수 있다. 예컨대, 전자 장치(210)는 근거리 통신 회로를 통해 연결된 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 토큰 값(token value)(예: 고유 정보), 데이터를 암호화 및 복호화하기 위한 비밀키(secret key), 연결된 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 신뢰성을 확인하기 위한 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 식별 정보(예: 외부 전자 장치의 ID(identification))를 메모리(예: 도 3의 메모리(320))에 저장할 수 있다. 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 전자 장치(210)의 토큰 값, 데이터를 암호화 및 복호화하기 위한 비밀키, 전자 장치(210)의 식별 정보, 및/또는 푸시 서버를 통해 푸시 정보를 송수신하기 위한 푸시 서버키를 메모리에 저장할 수 있다.In an embodiment, the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) may encrypt shared information with each other and store it in a memory. . For example, the electronic device 210 may obtain a token value (eg, unique information) of an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) connected through a short-range communication circuit. ), a secret key for encrypting and decrypting data, and an external electronic device for verifying reliability of a connected external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). Identification information (eg, ID (identification) of the external electronic device) of (eg, the first external electronic device 220 or the second external electronic device 230) is stored in a memory (eg, the memory 320 of FIG. 3 ). can be saved The external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 ) includes a token value of the electronic device 210 , a secret key for encrypting and decrypting data, and a Identification information and/or a push server key for transmitting/receiving push information through a push server may be stored in a memory.
도 4를 참조하면, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 410동작에서, 화면 공유를 위한 입력이 검출되면, 외부 전자 장치의 메모리에 저장된 전자 장치(210)의 식별 정보(예: 전자 장치(210)의 토큰 값) 및 외부 전자 장치의 식별 정보(예: 외부 전자 장치의 ID)에 기반하여, 제1 푸시 정보를 생성할 수 있다. 화면 공유를 위한 입력은, 화면 공유 어플리케이션을 실행하는 입력을 포함할 수 있다. 하지만 이에 한정하는 것은 아니다.Referring to FIG. 4 , when an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) detects an input for screen sharing in operation 410, the external electronic device Based on the identification information (eg, token value of the electronic device 210) and the identification information (eg, ID of the external electronic device) of the electronic device 210 stored in the memory of the device, first push information is generated. can do. The input for screen sharing may include an input for executing a screen sharing application. However, it is not limited thereto.
앞에서 살펴본 바와 같이, 전자 장치(210)와 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 최초 연결을 설정하는 동작을 통해 교환된 서로의 정보를 메모리에 저장한 상태일 수 있다. 이 경우, 외부 전자 장치는 화면 공유를 위한 입력이 검출되면, 하기 <표 1>에 기반하여, 통신 연결할 전자 장치(210)에 전송할 제1 푸시 정보를 생성할 수 있다. As described above, the electronic device 210 and the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) exchanged each other through an operation of establishing an initial connection. It may be in a state in which information of is stored in memory. In this case, when an input for screen sharing is detected, the external electronic device may generate first push information to be transmitted to the electronic device 210 to be connected for communication based on Table 1 below.
일 실시예에서, 제1 푸시 정보는, 수신자(To), 우선순위(priority), 데이터(data), 유효 기간(예: 살아있는 시간(time to live)), 및/또는 중복 푸시 정보(collapse key)를 포함할 수 있다.In one embodiment, the first push information includes recipient (To), priority (priority), data (data), validity period (eg, time to live), and/or duplicate push information (collapse key). ) may be included.
파라미터parameter 설명Described
ToTo 제1 푸시 정보를 수신할 장치의 식별 정보(예: 토큰 값)Identification information of the device to receive the first push information (eg, token value)
prioritypriority 제1 푸시 정보의 우선순위에 대한 정보Information about the priority of the first push information
datadata 제1 푸시 정보를 전송할 장치의 식별 정보(예: 장치의 ID)Identification information of the device to which the first push information will be sent (eg device ID)
time to livetime to live 제1 푸시 정보가 살아있는 시간에 대한 정보Information about the time when the first push information is alive
collapse keycollapse key 동일한 제1 푸시 정보가 전자 장치에 중복으로 전송되는 것을 방지하기 위해 설정되는 정보Information set to prevent duplicate transmission of the same first push information to the electronic device
일 실시예에서, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 메모리에 저장된 전자 장치(210)의 토큰 값에 기반하여, 제1 푸시 정보의 수신자(To)를 설정할 수 있다. 예컨대, 전자 장치(210)의 토큰 값은 제1 푸시 정보를 수신할 전자 장치(210)의 주소 값을 의미할 수 있으며, 제1 푸시 정보를 전자 장치(210)에 전송하기 위해 토큰 값을 이용할 수 있다. 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 제1 푸시 정보를 전송하는 전송자인 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 식별 정보를 제1 푸시 정보의 데이터로 설정할 수 있다. 외부 전자 장치의 식별 정보는 외부 전자 장치의 MAC(media access control address) 주소를 조합하여 생성될 수 있다. 예컨대, 데이터는 키(key) 또는 값(value)의 형태로 설정될 수 있다. 데이터는 제1 푸시 정보의 수신자인 전자 장치(210)가 공유한 비밀키를 이용하여 암호화될 수 있다. 암호화된 데이터를 전자 장치(210)에 전송함에 따라 데이터의 보안성이 높아질 수 있다. 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 설정된 수신자 및 데이터를 포함하는 제1 푸시 정보를 생성할 수 있다.In an embodiment, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) determines the first external electronic device 220 or the second external electronic device 230 based on a token value of the electronic device 210 stored in a memory. A recipient (To) of push information can be set. For example, the token value of the electronic device 210 may refer to an address value of the electronic device 210 to receive the first push information, and to transmit the first push information to the electronic device 210, the token value may be used. can An external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) is an external electronic device that is a transmitter that transmits the first push information (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ). Identification information of the device 220 or the second external electronic device 230 may be set as data of the first push information. Identification information of an external electronic device may be generated by combining a media access control address (MAC) address of the external electronic device. For example, data may be set in the form of a key or value. Data may be encrypted using a secret key shared by the electronic device 210, which is the receiver of the first push information. As the encrypted data is transmitted to the electronic device 210, data security may be increased. An external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) may generate first push information including a set recipient and data.
이에 한정하는 것은 아니며, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 제1 푸시 정보의 우선순위, 유효 기간, 및/또는 중복 푸시 정보를 포함하는 제1 푸시 정보를 생성할 수 있다.It is not limited thereto, and the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) determines the priority, validity period, and/or overlapping push information of the first push information. First push information including information may be generated.
예컨대, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 제1 푸시 정보의 우선순위를 설정할 수 있다. 제1 푸시 정보의 우선순위는 “높음”, “보통”, 및 “낮음”을 포함할 수 있다. 예컨대, 제1 푸시 정보의 우선순위가 “높음”으로 설정된 경우, 저전력 상태에서 제1 푸시 정보의 전송이 지연되지 않고, 전자 장치(210)에 바로 전송되도록 할 수 있다.For example, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) may set the priority of the first push information. The priority of the first push information may include “high”, “normal”, and “low”. For example, when the priority of the first push information is set to “high”, transmission of the first push information may be directly transmitted to the electronic device 210 without delay in a low power state.
다른 예를 들어, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 제1 푸시 정보의 살아있는 시간(time to live)을 설정할 수 있다. 예컨대, 제1 푸시 정보를 수신할 전자 장치(210)가 네트워크 장애와 같은 문제로 제1 푸시 정보를 수신할 수 없는 경우에 대비하여 푸시 서버(push server)에 제1 푸시 정보가 살아있는 시간(예: 15초)을 설정할 수 있다. 예컨대, 제1 푸시 정보에 설정된 살아있는 시간이 경과하는 경우, 제1 푸시 정보는 삭제될 수 있다.For another example, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) may set a time to live of the first push information. For example, in case the electronic device 210 to receive the first push information cannot receive the first push information due to a problem such as a network failure, the time the first push information is alive in the push server (e.g., : 15 seconds) can be set. For example, when the living time set in the first push information elapses, the first push information may be deleted.
또 다른 예를 들어, 제1 푸시 정보가 여러 개 전송되는 경우, 동일한 제1 푸시 정보가 중복으로 전자 장치(210)에 전송되는 것을 방지하기 위해, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 제1 푸시 정보의 collapse key를 설정할 수 있다. 예컨대, 전송되는 여러 개의 제1 푸시 정보의 collapse key가 동일한 값을 가지는 경우, 전송되는 여러 개의 제1 푸시 정보 중 마지막에 전송되는 하나의 제1 푸시 정보만을 전자 장치(210)에 전송되도록 할 수 있다.As another example, when multiple pieces of first push information are transmitted, in order to prevent the same first push information from being repeatedly transmitted to the electronic device 210, an external electronic device (eg, the first external device in FIG. 2 ) The electronic device 220 or the second external electronic device 230 may set a collapse key of the first push information. For example, when the collapse key of a plurality of transmitted first push information has the same value, only one first push information transmitted last among the plurality of first push information to be transmitted may be transmitted to the electronic device 210 . there is.
일 실시예에서, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 420동작에서, 생성된 제1 푸시 정보를 전자 장치(210)에 전송할 수 있다. 예컨대, 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 정책 서버에 저장된 푸시 서버키를 리드하여, 생성된 제1 푸시 정보를 전자 장치(210)에 전송할 수 있다. 푸시 서버키는, 푸시 플랫폼(push platform)에 어플리케이션(예: 화면 공유 어플리케이션)의 정보를 등록하면서 할당 받을 수 있다.In an embodiment, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) may transmit the generated first push information to the electronic device 210 in operation 420. . For example, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) reads the push server key stored in the policy server and sends the generated first push information to the electronic device. (210). The push server key may be allocated while registering information of an application (eg, a screen sharing application) on a push platform.
일 실시예에서, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 430동작에서, 전자 장치(210)로부터 네트워크 정보를 포함하는 제2 푸시 정보가 수신되면, 네트워크 정보에 기반하여 전자 장치(210)와 연결을 수행할 수 있다. 예컨대, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 제2 푸시 정보에 포함된 데이터를 복호화하여 네트워크 정보(예: IP 주소 정보 및/또는 포트(port) 정보)를 획득할 수 있다. 외부 전자 장치는 네트워크 정보에 기반하여 소켓(socket)을 연결하여, 전자 장치(210)와의 연결을 완료할 수 있다.In an embodiment, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) receives second push information including network information from the electronic device 210 in operation 430. Upon reception, a connection with the electronic device 210 may be performed based on the network information. For example, the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) decrypts data included in the second push information to obtain network information (eg, IP address information and/or port). (port) information) can be obtained. The external electronic device may complete a connection with the electronic device 210 by connecting a socket based on network information.
다양한 실시예들에서, 미도시 되었으나, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 메모리에는 복수의 전자 장치들의 정보들(예: 복수의 전자 장치들 각각의 토큰 값, 데이터를 암호화 및 복호화하기 위한 비밀키, 식별 정보)이 저장되어 있을 수 있다. 이 경우, 외부 전자 장치는 메모리에 저장된 복수의 전자 장치들 중 최근 연결된 전자 장치의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 생성된 제1 푸시 정보를 최근 연결된 전자 장치에 전송할 수 있다. 제1 푸시 정보를 수신한 전자 장치로부터 제2 푸시 정보를 수신하는 것에 기반하여, 외부 전자 장치와 최근 연결된 전자 장치는 통신 연결될 수 있다.In various embodiments, although not shown, the memory of the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) stores information (eg, a plurality of electronic devices) A token value of each device, a secret key for encrypting and decrypting data, and identification information) may be stored. In this case, the external electronic device may generate first push information based on identification information of a recently connected electronic device among a plurality of electronic devices stored in the memory, and transmit the generated first push information to the recently connected electronic device. Based on receiving the second push information from the electronic device that has received the first push information, the electronic device recently connected to the external electronic device may establish a communication connection.
다양한 실시예들에서, 미도시 되었으나, 최근 연결된 전자 장치에 제1 푸시 정보를 전송한 결과, 최근 연결된 전자 장치와 통신 연결이 수행되지 않는 경우, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 메모리에 저장된 복수의 전자 장치들의 리스트를 표시할 수 있다. 리스트로부터 하나의 전자 장치를 선택하는 입력이 검출되면, 외부 전자 장치는 선택된 전자 장치의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 생성된 제1 푸시 정보를 선택된 전자 장치에 전송할 수 있다. 제1 푸시 정보를 수신한 전자 장치로부터 제2 푸시 정보가 수신되는 경우, 외부 전자 장치와 선택된 전자 장치는 통신 연결될 수 있다. In various embodiments, although not shown, when a communication connection with the recently connected electronic device is not performed as a result of transmitting the first push information to the recently connected electronic device, the external electronic device (eg, the first external electronic device 220 ) or the second external electronic device 230) may display a list of a plurality of electronic devices stored in the memory. When an input for selecting one electronic device from the list is detected, the external electronic device may generate first push information based on identification information of the selected electronic device and transmit the generated first push information to the selected electronic device. When the second push information is received from the electronic device that has received the first push information, the external electronic device and the selected electronic device may be connected through communication.
도 5는, 다양한 실시예들에 따른, 전자 장치(210)의 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))와 통신 연결 방법을 설명하기 위한 흐름도(500)이다.5 is a flowchart for explaining a method of communicating with an external electronic device (eg, a first external electronic device 220 or a second external electronic device 230) of the electronic device 210 according to various embodiments. (500).
전술한 도 4에서 살펴본 바와 같이, 다양한 실시예들에서, 전자 장치(예: 도 2의 전자 장치(210))는 전자 장치(210)와 관련된 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 다른 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))에 공유하는, 주 장치(예: primary device)일 수 있다. 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 다른 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하는, 보조 장치(예: secondary device)일 수 있다.As described above with reference to FIG. 4 , in various embodiments, an electronic device (eg, the electronic device 210 of FIG. 2 ) may provide information related to the electronic device 210 (eg, notification information, screen information, and/or Setting-related information (eg, Wi-Fi on/off, and/or user's individual setting information) is transferred to another electronic device (eg, the first external electronic device 220 of FIG. 2 ). ) or a main device (eg, a primary device) shared by the second external electronic device 230). An external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) receives information shared from another electronic device (eg, the electronic device 210 ), an auxiliary device (eg secondary device).
다양한 실시예들에서, 후술하는 510동작 내지 550동작은, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))가 연결된 이력이 있는 경우에 수행되는 동작일 수 있다. 예컨대, 후술하는 510동작 전에, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 최초 연결을 설정하는 동작을 수행할 수 있다. 예컨대, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))가 근거리 통신 회로(예: 도 1의 제1 네트워크(198))를 통해 최초 연결되는 경우, 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 푸시 정보(push information)를 전송하기 위한 서로의 정보를 공유할 수 있다. 전자 장치(210)는 푸시 정보를 전송하는 센더(sender)와 푸시 정보를 수신하여 처리하는 리시버(receiver)를 포함하는 푸시 정보 매니저를 통해 외부 전자 장치와 푸시 정보를 송수신할 수 있다. 전자 장치(210)와 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 공유된 서로의 정보를 암호화하여, 메모리에 저장할 수 있다. 예컨대, 전자 장치(210)는 근거리 통신 회로를 통해 연결된 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 식별 정보(예: 외부 전자 장치의 ID), 토큰 값, 비밀키, 및/또는 푸시 서버를 통해 푸시 정보를 송수신하기 위한 푸시 서버키를 메모리(예: 도 3의 메모리(320))에 저장할 수 있다. 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))는 전자 장치(210)의 식별 정보(예: 전자 장치(210)의 ID), 토큰 값, 비밀키, 및/또는 푸시 서버를 통해 푸시 정보를 송수신하기 위한 푸시 서버키를 메모리에 저장할 수 있다.In various embodiments, operations 510 to 550 described below may include a history of connection between the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). It may be an operation performed in case. For example, before operation 510 described later, the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) may perform an operation to establish an initial connection. . For example, the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) connect a short-range communication circuit (eg, the first network 198 of FIG. 1 ). When connected for the first time, the electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) transmit push information to each other. can share. The electronic device 210 may transmit and receive push information with an external electronic device through a push information manager including a sender that transmits push information and a receiver that receives and processes the push information. The electronic device 210 and an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) may encrypt shared information and store it in a memory. For example, the electronic device 210 may provide identification information (eg, ID of the external electronic device) of an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) connected through a short-range communication circuit. , a token value, a secret key, and/or a push server key for transmitting and receiving push information through a push server may be stored in a memory (eg, the memory 320 of FIG. 3 ). The external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) includes the identification information of the electronic device 210 (eg, the ID of the electronic device 210), a token value, and a secret key. , and/or a push server key for transmitting and receiving push information through the push server may be stored in memory.
도 5를 참조하면, 전자 장치(210)는 510동작에서, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))로부터 식별 정보(예: 제2 외부 전자 장치(230)의 ID)를 포함하는 제1 푸시 정보를 수신할 수 있다.Referring to FIG. 5 , in operation 510, the electronic device 210 receives identification information (eg, a second external electronic device) from an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). The first push information including the ID of the device 230 may be received.
일 실시예에서, 제1 푸시 정보는, 전자 장치(210)에서 화면 공유 기능이 실행되지 않은 상태(예: 화면 공유 어플리케이션이 실행되지 않은 상태), 화면 공유 기능이 백그라운드(background)에 대기 상태로 있는 경우, 또는 화면 공유 기능이 종료된 상태에서도 수신 가능할 수 있다.In one embodiment, the first push information is a state in which the screen sharing function is not executed in the electronic device 210 (eg, a state in which the screen sharing application is not executed), and the screen sharing function is in a standby state in the background. If there is, or even when the screen sharing function is terminated, reception may be possible.
일 실시예에서, 전자 장치(210)는 520동작에서, 수신된 제1 푸시 정보에 포함된 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 식별 정보가 메모리(320)에 저장되어 있는지 여부를 확인할 수 있다. 예컨대, 전자 장치(210)는 푸시 정보의 송수신을 제공하는 서비스(예: FCM(firebase cloud messaging) 서비스)를 통해 수신된 제1 푸시 정보의 메소드(method) 예컨대, “messageReceived”를 호출할 수 있다. 전자 장치(210)는 메소드 “messageReceived”에서 제1 푸시 정보의 데이터에 포함된 외부 전자 장치의 식별 정보를 리드할 수 있다. 전자 장치(210)는 리드한 외부 전자 장치의 식별 정보를 비밀키를 이용하여 복호화한 후, 전자 장치(210)에 외부 전자 장치의 식별 정보가 저장(또는 등록)되어 있는지 여부를 확인할 수 있다.In an embodiment, in operation 520, the electronic device 210 identifies an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) included in the received first push information. It is possible to check whether information is stored in the memory 320 . For example, the electronic device 210 may call a method, for example, “messageReceived” of the first push information received through a service that provides transmission and reception of push information (eg, a firebase cloud messaging (FCM) service). . The electronic device 210 may read the identification information of the external electronic device included in the data of the first push information in the method “messageReceived”. After the electronic device 210 decrypts the read identification information of the external electronic device using the private key, it can check whether the identification information of the external electronic device is stored (or registered) in the electronic device 210 .
일 실시예에서, 전자 장치(210)는 530동작에서, 전자 장치(210)의 네트워크 정보 및 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 식별 정보에 기반하여, 제2 푸시 정보를 생성할 수 있다. 예컨대, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 식별 정보가 메모리(320)에 저장되어 있는 것으로 확인되면, 전자 장치(210)는 외부 전자 장치를 신뢰할 수 있는 장치(예: 연결 이력이 있는 장치)로 결정하고, 하기 <표 2>에 기반하여, 외부 전자 장치에 전송할 제2 푸시 정보를 생성할 수 있다.In an embodiment, in operation 530, the electronic device 210 identifies the network information of the electronic device 210 and the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). Based on the information, second push information may be generated. For example, when it is confirmed that the identification information of the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230) is stored in the memory 320, the electronic device 210 may send the external electronic device 210 to the external electronic device 210. A device may be determined as a reliable device (eg, a device having a connection history), and second push information to be transmitted to an external electronic device may be generated based on Table 2 below.
일 실시예에서, 제2 푸시 정보는, 수신자(To), 우선순위(priority), 데이터(data), 유효 기간(예: 살아있는 시간(time to live)), 및/또는 중복 푸시 정보(collapse key)를 포함할 수 있다.In one embodiment, the second push information includes recipient (To), priority (priority), data (data), valid period (eg, time to live), and/or redundant push information (collapse key). ) may be included.
파라미터parameter 설명Described
ToTo 제2 푸시 정보를 수신할 장치의 식별 정보(예: 토큰 값)Identification information of the device to receive the second push information (eg, token value)
prioritypriority 제2 푸시 정보의 우선순위에 대한 정보Information about the priority of the second push information
datadata 제2 푸시 정보를 전송할 장치의 식별 정보(예: 장치의 ID) 및 네트워크 정보Identification information (eg, device ID) and network information of the device to which the second push information will be transmitted
time to livetime to live 제2 푸시 정보가 살아있는 시간에 대한 정보Information about the time when the second push information is alive
collapse keycollapse key 동일한 제2 푸시 정보가 전자 장치에 중복으로 전송되는 것을 방지하기 위해 설정되는 값에 대한 정보Information on a value set to prevent the same second push information from being repeatedly transmitted to the electronic device
예컨대, 전자 장치(210)는 메모리(320)에 저장된 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 토큰 값에 기반하여, 제2 푸시 정보의 수신자(To)를 설정할 수 있다. 외부 전자 장치의 토큰 값은 제2 푸시 정보를 수신할 외부 전자 장치의 주소 값을 의미할 수 있으며, 제2 푸시 정보를 외부 전자 장치에 전송하기 위해 토큰 값을 이용할 수 있다. 전자 장치(210)는 제2 푸시 정보를 전송하는 전송자인 전자 장치(210)의 식별 정보를 암호화하여 제2 푸시 정보의 데이터로 설정할 수 있다.For example, the electronic device 210 generates a second electronic device based on a token value of an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230 of FIG. 2 ) stored in the memory 320 . A recipient (To) of push information can be set. The token value of the external electronic device may refer to an address value of an external electronic device to receive second push information, and may use the token value to transmit the second push information to the external electronic device. The electronic device 210 may encrypt identification information of the electronic device 210, which is a transmitter that transmits the second push information, and set it as data of the second push information.
이에 한정하는 것은 아니며, 전자 장치(210)는 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))와 연결을 위한 서버를 silence open하고, 네트워크 정보(예: IP 주소 정보 및/또는 포트 정보)를 제2 푸시 정보의 데이터로 설정할 수 있다. 데이터 예컨대, 전자 장치(210)의 식별 정보 및 네트워크 정보는 제2 푸시 정보의 수신자인 외부 전자 장치가 공유한 비밀키를 이용하여 암호화될 수 있다. 암호화된 데이터를 외부 전자 장치에 전송함에 따라 데이터의 보안성아 높아질 수 있다. 전자 장치(210)는 540동작에서, 생성된 제2 푸시 정보를 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))에 전송할 수 있다.It is not limited thereto, and the electronic device 210 silence opens a server for connection with an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), and provides network information (eg, the first external electronic device 220 or the second external electronic device 230). : IP address information and/or port information) may be set as data of the second push information. Data, for example, identification information and network information of the electronic device 210 may be encrypted using a secret key shared by an external electronic device that is a receiver of the second push information. As encrypted data is transmitted to an external electronic device, data security may be increased. In operation 540, the electronic device 210 may transmit the generated second push information to an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230).
일 실시예에서, 전자 장치(210)는 550동작에서, 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))와 연결을 수행할 수 있다. 전자 장치(210)는 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))와 연결되는 것에 기반하여, 외부 전자 장치와 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 공유할 수 있다.In an embodiment, in operation 550, the electronic device 210 may perform a connection with an external electronic device (eg, the first external electronic device 220 or the second external electronic device 230). Based on the connection with the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), the electronic device 210 provides information (eg, notification information, screen information) with the external electronic device. , and/or setting-related information (eg, Wi-Fi on/off, and/or user's individual setting information) may be shared.
종래에 전자 장치(210)와 외부 전자 장치는 화면 공유 기능을 수행하기 위한 연결을 위해, 매번 서로의 정보를 교환해야 했으나, 다양한 실시예들에 따른 도 4 및 도 5에서, 전자 장치(210)와 외부 전자 장치가 연결된 이력을 가지는 경우, 외부 전자 장치는 전자 장치(210)의 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 획득하기 위해 화면 공유 기능의 실행을 요청하는 신호를 전자 장치(210)에 송신하지 않아도 될 수 있다. 또한, 외부 전자 장치는 전자 장치(210)와 연결된 이력을 가지는 경우 연결을 위한 제1 푸시 정보를 전자 장치(210)에만 전송함으로써, 지정된 시간 간격(예: 15초)으로 통신 연결할 전자 장치를 스캔(또는 검색)하는 동작을 수행하지 않을 수 있다. 이에 따라, 화면 공유 기능을 수행하기 위해 전자 장치와 외부 전자 장치 간 연결하는 동작의 시간이 단축될 수 있다.Conventionally, the electronic device 210 and the external electronic device had to exchange information with each other every time to connect to perform a screen sharing function, but in FIGS. 4 and 5 according to various embodiments, the electronic device 210 When the external electronic device has a history of connection with the external electronic device, the external electronic device provides information (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi) on of the electronic device 210. )/off, and/or user's individual setting information)), it may not be necessary to transmit a signal requesting execution of the screen sharing function to the electronic device 210 . In addition, when the external electronic device has a history of being connected to the electronic device 210, the first push information for connection is transmitted only to the electronic device 210, thereby scanning the electronic device to be connected for communication at a specified time interval (eg, 15 seconds). (or search) operation may not be performed. Accordingly, the time required for connecting the electronic device and the external electronic device to perform the screen sharing function may be shortened.
다양한 실시예들에 따른 전자 장치(210)의 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230)) 연결 방법은, 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보를 포함하는 제1 푸시 정보를 수신하는 동작, 상기 제1 푸시 정보를 수신하는 것에 기반하여, 상기 제1 푸시 정보에 포함된 상기 외부 전자 장치의 식별 정보가 메모리(320)에 저장되어 있는지 여부를 확인하는 동작, 상기 외부 전자 장치의 식별 정보가 상기 메모리(320)에 저장되어 있는 것으로 확인되면, 상기 외부 전자 장치와 화면 공유를 위한 기능을 자동으로 실행하고, 상기 외부 전자 장치와 연결을 위한 상기 전자 장치(210)의 네트워크 정보 및 상기 외부 전자 장치의 식별 정보에 기반하여, 제2 푸시 정보를 생성하는 동작, 상기 생성된 제2 푸시 정보를 상기 외부 전자 장치에 전송하는 동작, 및 상기 외부 전자 장치와 연결을 수행하는 동작을 포함할 수 있다.A method of connecting an external electronic device (eg, a first external electronic device 220 or a second external electronic device 230) of an electronic device 210 according to various embodiments includes identification of the external electronic device from the external electronic device. An operation of receiving first push information including information, and whether identification information of the external electronic device included in the first push information is stored in the memory 320 based on receiving the first push information. If it is confirmed that the identification information of the external electronic device is stored in the memory 320, a function for screen sharing with the external electronic device is automatically executed, and for connection with the external electronic device Based on the network information of the electronic device 210 and the identification information of the external electronic device, generating second push information, transmitting the generated second push information to the external electronic device, and An operation of performing a connection with an electronic device may be included.
다양한 실시예들에서, 상기 제2 푸시 정보는, 상기 제2 푸시 정보의 전송과 관련된 파라미터를 포함하고, 및 상기 파라미터는, 수신인, 우선순위, 데이터, 유효 기간, 또는 중복 푸시 정보 중 적어도 하나를 포함할 수 있다.In various embodiments, the second push information includes a parameter related to transmission of the second push information, and the parameter includes at least one of recipient, priority, data, expiration date, or redundant push information. can include
다양한 실시예들에서, 상기 메모리(320)는, 상기 외부 전자 장치(예: 제1 외부 전자 장치(220) 또는 제2 외부 전자 장치(230))의 토큰 정보, 상기 외부 전자 장치의 식별 정보, 상기 외부 전자 장치와 송수신되는 데이터를 암호화 및/또는 복호화 하기 위한 비밀키, 및/또는 상기 제2 푸시 정보의 전송과 관련된 서버 키를 저장하도록 설정될 수 있다.In various embodiments, the memory 320 may include token information of the external electronic device (eg, the first external electronic device 220 or the second external electronic device 230), identification information of the external electronic device, A secret key for encrypting and/or decrypting data transmitted/received with the external electronic device and/or a server key related to transmission of the second push information may be stored.
다양한 실시예들에서, 상기 제2 푸시 정보를 생성하는 동작은, 상기 비밀키에 기반하여, 상기 전자 장치(210)의 네트워크 정보를 암호화하는 동작, 및 상기 전자 장치(210)의 식별 정보 및 상기 암호화된 상기 전자 장치(210)의 네트워크 정보에 기반하여, 상기 제2 푸시 정보를 생성하는 동작을 포함할 수 있다.In various embodiments, the operation of generating the second push information may include operations of encrypting network information of the electronic device 210 based on the secret key, and identification information of the electronic device 210 and the An operation of generating the second push information based on the encrypted network information of the electronic device 210 may be included.
도 6은, 다양한 실시예들에 따른, 전자 장치(210)와 제1 외부 전자 장치(220) 간 통신 연결을 위한 신호 흐름을 도시한 도면(600)이다.6 is a diagram 600 illustrating a signal flow for communication connection between an electronic device 210 and a first external electronic device 220 according to various embodiments.
다양한 실시예들에 따른 도 6은, 전술한 도 4의 제1 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220))의 동작과 도 5의 전자 장치(예: 도 2의 전자 장치(210))의 동작을 보다 구체화한 도면이다.FIG. 6 according to various embodiments illustrates the operation of the aforementioned first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) of FIG. 4 and the electronic device of FIG. 5 (eg, the electronic device of FIG. 2 ). It is a diagram in which the operation of the device 210 is more detailed.
다양한 실시예들에 따른 도 6에서, 전자 장치(210)는 전자 장치(210)와 관련된 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 제1 외부 전자 장치(220)에 공유하는, 주 장치일 수 있다. 제1 외부 전자 장치(220)는 전자 장치(210)로부터 공유되는 정보를 수신하는, 보조 장치일 수 있다.In FIG. 6 according to various embodiments, the electronic device 210 displays information related to the electronic device 210 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi turned on)). It may be a main device that shares (on)/off, and/or user's individual setting information) with the first external electronic device 220 . The first external electronic device 220 may be an auxiliary device that receives information shared from the electronic device 210 .
다양한 실시예들에서, 615동작을 수행하기 전에, 전자 장치(210)와 제1 외부 전자 장치(220) 간 푸시 정보의 전송을 위해, 전자 장치(210)와 제1 외부 전자 장치(220) 간 최초 연결과 최초 연결에 따른 서로의 정보를 저장하는 동작이 선행될 수 있다. 전자 장치(210)와 제1 외부 전자 장치(220)가 최초 연결이 완료되면, 전자 장치(210)와 제1 외부 전자 장치(220)는 서로의 정보를 공유하고, 공유된 정보를 저장할 수 있다. 예컨대, 정보는, 토큰 값, 식별 정보, 비밀키, 서버키를 포함할 수 있다.In various embodiments, before performing operation 615, between the electronic device 210 and the first external electronic device 220 to transmit push information between the electronic device 210 and the first external electronic device 220. An initial connection and an operation of storing each other's information according to the initial connection may be preceded. When the initial connection between the electronic device 210 and the first external electronic device 220 is completed, the electronic device 210 and the first external electronic device 220 may share information with each other and store the shared information. . For example, the information may include a token value, identification information, a secret key, and a server key.
도 6을 참조하면, 제1 외부 전자 장치(220)는 615동작에서, 화면 공유를 위한 입력(예: 화면 공유 어플리케이션을 실행하는 입력)을 검출하는 것에 기반하여, 제1 외부 전자 장치(220)의 메모리에 저장된 전자 장치(210)의 식별 정보 및 제1 외부 전자 장치(220)의 식별 정보에 기반하여, 제1 푸시 정보를 생성할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 메모리(미도시)에 저장된 전자 장치(210)의 토큰 값을 리드하여 제1 푸시 정보의 수신자를 설정하고, 제1 외부 전자 장치(220)의 신뢰성을 판단하기 위한 제1 외부 전자 장치(220)의 식별 정보(예: 제1 외부 전자 장치(220)의 ID)를 암호화하여 제1 푸시 정보의 데이터로 설정함으로써, 제1 푸시 정보를 생성할 수 있다. 제1 외부 전자 장치(220)는 620동작에서, 제1 푸시 정보를 전자 장치(210)에 전송할 수 있다.Referring to FIG. 6 , in operation 615, the first external electronic device 220, based on detecting an input for screen sharing (eg, an input for executing a screen sharing application), first external electronic device 220 First push information may be generated based on the identification information of the electronic device 210 and the identification information of the first external electronic device 220 stored in the memory of . For example, the first external electronic device 220 sets a recipient of the first push information by reading a token value of the electronic device 210 stored in a memory (not shown), and determines the reliability of the first external electronic device 220. First push information may be generated by encrypting identification information (eg, ID of the first external electronic device 220) of the first external electronic device 220 for determination and setting it as data of the first push information. . The first external electronic device 220 may transmit the first push information to the electronic device 210 in operation 620 .
다양한 실시예들에 따른 도 6의 615동작 및 620동작은, 전술한 도 4의 410동작 및 420동작과 동일하므로, 이에 대한 상세한 설명은 생략하도록 한다. Operations 615 and 620 of FIG. 6 according to various embodiments are the same as operations 410 and 420 of FIG. 4 described above, and thus detailed description thereof will be omitted.
다양한 실시예들에서, 미도시 되었으나, 제1 외부 전자 장치(220)는 제1 푸시 정보를 전자 장치(210)에 전송한 후, 푸시 서버로부터 제1 푸시 정보에 대한 전송 결과를 리턴(return) 받을 수 있다.In various embodiments, although not shown, the first external electronic device 220 transmits the first push information to the electronic device 210 and then returns a transmission result for the first push information from the push server. can receive
예컨대, 전자 장치(210)로부터 전송 성공에 대한 메시지(예: 코드 200을 포함하는 메시지)를 수신하는 경우, 제1 외부 전자 장치(220)는 제1 푸시 정보가 전자 장치(210)에 정상적으로 전송된 것으로 확인할 수 있다. 이 경우, 후술하는 625동작이 수행될 수 있다.For example, when receiving a transmission success message (eg, a message including code 200) from the electronic device 210, the first external electronic device 220 normally transmits the first push information to the electronic device 210. can be confirmed as having been In this case, operation 625 to be described later may be performed.
다른 예를 들어, 제1 푸시 정보는 전자 장치(210)에 전송되지 않거나, 지연되어 전송될 수 있다. 이 경우, 제1 외부 전자 장치(220)는 전자 장치(210)로부터 전송 실패에 대한 메시지(예: 코드 400 또는 500을 포함하는 메시지)를 수신할 수 있다. 전자 장치(210)로부터 전송 실패에 대한 메시지를 수신하는 경우, 제1 외부 전자 장치(220)는 제1 푸시 정보가 전자 장치(210)에 정상적으로 전송되지 않은 것으로 확인할 수 있다. 이 경우, 제1 외부 전자 장치(220)는 전자 장치(210)에 제1 푸시 정보를 재전송 하지 않을 수 있다. 제1 외부 전자 장치(220)는 전자 장치(210)에 제1 푸시 정보를 재전송하는 대신, 화면 공유 기능의 실행(예: 화면 공유 어플리케이션을 실행)을 가이드 하는 메시지(예: “연결하고자 하는 기기에서 화면 공유 어플리케이션을 실행하세요.”)를 제1 외부 전자 장치(220)의 디스플레이에 표시할 수 있다. 예컨대, 제1 푸시 정보의 전송이 실패하는 상황은 네트워크가 불안정한 상황일 수 있다. 이 경우, 제1 푸시 정보를 전자 장치(210)에 재전송 하여도 동일하게 제1 푸시 정보의 전송 실패가 될 확률이 높을 수 있기 때문에, 제1 외부 전자 장치(220)는 전자 장치(210)에 제1 푸시 정보를 재전송하는 대신, 화면 공유 기능의 실행(예: 화면 공유 어플리케이션을 실행)을 가이드 하는 메시지를 외부 전자 장치(220)의 디스플레이에 표시할 수 있다. 제1 외부 전자 장치(220)의 사용자는 디스플레이에 표시된 화면 공유 기능의 실행을 가이드 하는 메시지를 확인한 후, 전자 장치(210)에서 화면 공유 기능을 실행할 수 있다. 전자 장치(210)는 화면 공유 기능을 실행하는 입력을 검출하는 것에 기반하여, 실행된 화면 공유 기능(예: 화면 공유 어플리케이션)의 화면을 디스플레이에 표시할 수 있다. 이 후, 후술하는 630동작이 수행될 수 있다.For another example, the first push information may not be transmitted to the electronic device 210 or may be transmitted with a delay. In this case, the first external electronic device 220 may receive a transmission failure message (eg, a message including code 400 or 500) from the electronic device 210 . When receiving a message about transmission failure from the electronic device 210 , the first external electronic device 220 may determine that the first push information was not normally transmitted to the electronic device 210 . In this case, the first external electronic device 220 may not retransmit the first push information to the electronic device 210 . Instead of retransmitting the first push information to the electronic device 210, the first external electronic device 220 sends a message guiding execution of the screen sharing function (eg, running a screen sharing application) (eg, “device to be connected”). Execute the screen sharing application on .”) may be displayed on the display of the first external electronic device 220 . For example, a situation in which transmission of the first push information fails may be a situation in which the network is unstable. In this case, even if the first push information is retransmitted to the electronic device 210, the transmission failure rate of the first push information may be high. Instead of retransmitting the first push information, a message guiding execution of the screen sharing function (eg, execution of a screen sharing application) may be displayed on the display of the external electronic device 220 . The user of the first external electronic device 220 can execute the screen sharing function on the electronic device 210 after checking the message displayed on the display for guiding execution of the screen sharing function. The electronic device 210 may display a screen of an executed screen sharing function (eg, a screen sharing application) on a display based on detecting an input for executing the screen sharing function. After this, operation 630 to be described below may be performed.
일 실시예에서, 전자 장치(210)는 625동작에서, 제1 외부 전자 장치(220)로부터 수신한 제1 푸시 정보에 포함된 제1 외부 전자 장치(220)의 식별 정보가 메모리(예: 도 3의 메모리(320))에 저장된 경우, 화면 공유 기능을 실행할 수 있다.In an embodiment, in operation 625, the electronic device 210 stores identification information of the first external electronic device 220 included in the first push information received from the first external electronic device 220 in a memory (eg, diagram). If stored in the memory 320 of 3), the screen sharing function can be executed.
예컨대, 전자 장치(210)는 화면 공유 기능이 실행되지 않은 상태(예: 화면 공유 어플리케이션이 실행되지 않은 상태, 화면 공유 기능이 백그라운드(background)에 대기 상태로 있는 경우, 또는 화면 공유 기능이 종료된 상태)에서도 제1 외부 전자 장치(220)로부터 제1 푸시 정보를 수신할 수 있다. 제1 푸시 정보가 수신되면, 전자 장치(210)는 제1 푸시 정보의 메소드(method) 예컨대, “messageReceived”를 호출할 수 있다. 전자 장치(210)는 메소드 “messageReceived”에서 제1 푸시 정보의 데이터에 포함된 제1 외부 전자 장치(220)의 식별 정보를 리드할 수 있다. 전자 장치(210)는 리드한 제1 외부 전자 장치(220)의 식별 정보를 비밀키를 이용하여 복호화한 후, 전자 장치(210)에 제1 외부 전자 장치(220)의 식별 정보가 저장(또는 등록)되어 있는지 여부를 확인할 수 있다.For example, the electronic device 210 is in a state in which the screen sharing function is not executed (eg, a state in which a screen sharing application is not executed, a screen sharing function is in a standby state in the background, or a screen sharing function is terminated). state), the first push information may be received from the first external electronic device 220 . When the first push information is received, the electronic device 210 may call a method of the first push information, for example, “messageReceived”. The electronic device 210 may read the identification information of the first external electronic device 220 included in the data of the first push information in the method “messageReceived”. The electronic device 210 decrypts the read identification information of the first external electronic device 220 using a secret key, and then stores the identification information of the first external electronic device 220 in the electronic device 210 (or registered).
일 실시예에서, 제1 푸시 정보에 포함된 제1 외부 전자 장치(220)의 식별 정보가 메모리(320)에 저장(또는 등록)되어 있는 것으로 확인되면, 전자 장치(210)는 제1 외부 전자 장치(220)를 신뢰할 수 있는 장치(예: 연결 이력이 있는 장치)로 결정할 수 있다. 제1 푸시 정보에 포함된 제1 외부 전자 장치(220)의 식별 정보가 메모리(320)에 저장(또는 등록)되어 있지 않은 것으로 확인되면, 전자 장치(210)는 제1 외부 전자 장치(220)를 신뢰할 수 있는 장치(예: 연결 이력이 없는 장치)로 결정하지 않을 수 있다.In one embodiment, if it is confirmed that the identification information of the first external electronic device 220 included in the first push information is stored (or registered) in the memory 320, the electronic device 210 may send the first external electronic device 210 The device 220 may be determined as a trustworthy device (eg, a device having a connection history). When it is confirmed that the identification information of the first external electronic device 220 included in the first push information is not stored (or registered) in the memory 320, the electronic device 210 sends the first external electronic device 220 may not be determined as a trustworthy device (e.g. a device with no connection history).
종래에 전자 장치(210)는 인증 서버를 구성하여 연결을 요청하는 제1 외부 전자 장치(220)가 신뢰할 수 있는 장치인지 여부를 확인하였으나, 본 개시의 다양한 실시예들에서, 제1 푸시 정보에 포함된 암호화된 제1 외부 전자 장치(220)의 식별 정보가 메모리(320)에 저장(또는 등록)되어 있는지 여부에 기반하여 제1 외부 전자 장치(220)가 신뢰할 수 있는 장치인지 여부를 확인할 수 있다. 이에 따라, 종래와 같이 불필요하게 인증 서버를 구성하는 동작은 수행되지 않을 수 있다.Conventionally, the electronic device 210 configures an authentication server to check whether the first external electronic device 220 requesting connection is a trustworthy device, but in various embodiments of the present disclosure, the first push information It is possible to determine whether the first external electronic device 220 is a trustworthy device based on whether the included encrypted identification information of the first external electronic device 220 is stored (or registered) in the memory 320. there is. Accordingly, an operation of configuring an authentication server unnecessarily as in the prior art may not be performed.
일 실시예에서, 제1 외부 전자 장치(220)가 신뢰할 수 있는 장치로 확인되는 것에 기반하여, 전자 장치(210)는 화면 공유 기능(예: 화면 공유 어플리케이션)을 자동으로 실행할 수 있다(예: 625동작). 이에 따라, 전자 장치(210)는 화면 공유 기능을 실행하기 위한 입력(예: 화면 공유 어플리케이션을 실행하는 입력) 없이도, 제1 외부 전자 장치(220)가 신뢰할 수 있는 장치로 확인되는 것에 기반하여 화면 공유 기능을 자동으로 수행함으로써 제1 외부 전자 장치(220)와의 통신 연결을 준비할 수 있다.In one embodiment, based on the identification of the first external electronic device 220 as a trusted device, the electronic device 210 may automatically execute a screen sharing function (eg, a screen sharing application) (eg, a screen sharing application). 625 action). Accordingly, the electronic device 210 screens the screen based on the identification of the first external electronic device 220 as a trustworthy device without an input for executing the screen sharing function (eg, an input for executing a screen sharing application). A communication connection with the first external electronic device 220 may be prepared by automatically performing the sharing function.
일 실시예에서, 전자 장치(210)는 630동작에서, 서버를 silence open하고, 635동작에서, 전자 장치(210)의 네트워크 정보 및 제1 외부 전자 장치(220)의 식별 정보에 기반하여, 제2 푸시 정보를 생성할 수 있다. 전자 장치(210)는 640동작에서, 제2 푸시 정보를 제1 외부 전자 장치(220)에 전송할 수 있다.In an embodiment, in operation 630, the electronic device 210 silence opens the server, and in operation 635, based on the network information of the electronic device 210 and the identification information of the first external electronic device 220, 2 Push information can be created. The electronic device 210 may transmit the second push information to the first external electronic device 220 in operation 640 .
다양한 실시예들에서, 전자 장치(210)는 서버를 silence 오픈함으로써, 기존의 브로드캐스트(broadcast)에 따른 서버의 오픈을 다른 외부 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에 알리지 않을 수 있다. 전자 장치(210)는 네트워크 정보(예: IP 주소 정보 및/또는 포트 정보)를 포함하는 제2 푸시 정보를 제1 외부 전자 장치(220)에 전송함으로써, 제1 외부 전자 장치(220)에만 서버가 오픈되었음을 알릴 수 있다. 이 경우, 전자 장치(210)는 전자 장치(210)에 근접하게 위치하는 적어도 하나의 다른 외부 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에 노출되지 않을 수 있으며, 이에 따라, 보안성이 높아질 수 있다.In various embodiments, the electronic device 210 silences the server, thereby opening the server according to an existing broadcast to another external electronic device (eg, the second external electronic device 230 of FIG. 2 ). may not be notified. The electronic device 210 transmits the second push information including network information (eg, IP address information and/or port information) to the first external electronic device 220, so that only the first external electronic device 220 has a server. can be notified that has been opened. In this case, the electronic device 210 may not be exposed to at least one other external electronic device located close to the electronic device 210 (eg, the second external electronic device 230 of FIG. 2 ), and thus , security can be increased.
다양한 실시예들에 따른 도 6의 635동작 및 640동작은, 전술한 도 5의 530동작 및 540동작과 동일하므로, 이에 대한 상세한 설명은 생략하도록 한다. Operations 635 and 640 of FIG. 6 according to various embodiments are the same as operations 530 and 540 of FIG. 5 described above, and thus detailed description thereof will be omitted.
일 실시예에서, 미도시 되었으나, 전자 장치(210)는 제2 푸시 정보를 제1 외부 전자 장치(220)에 전송하고, 푸시 서버로부터 제2 푸시 정보의 전송 결과를 리턴(return) 받을 수 있다.In one embodiment, although not shown, the electronic device 210 may transmit the second push information to the first external electronic device 220 and receive a return result of the transmission of the second push information from the push server. .
일 실시예에서, 제1 외부 전자 장치(220)는 645동작에서, 제2 푸시 정보에 포함된 네트워크 정보에 기반하여, 전자 장치(210)와 연결을 수행할 수 있다. 예컨대, 제2 푸시 정보가 수신되면, 제1 외부 전자 장치(220)는 제1 푸시 정보의 메소드(method) 예컨대, “messageReceived”를 호출할 수 있다. 제1 외부 전자 장치(220)는 메소드 “messageReceived”에서 제2 푸시 정보의 데이터에 포함된 전자 장치(210)의 네트워크 정보(예: IP 주소 정보 및/또는 포트 정보)를 리드할 수 있다. 전자 장치(210)는 리드한 전자 장치(210)의 네트워크 정보(예: IP 주소 정보 및/또는 포트 정보)를 비밀키를 이용하여 복호화할 수 있다. 제1 외부 전자 장치(220)는 복호화한 네트워크 정보를 이용하여 소켓(socket)을 연결하고, 전자 장치(210)와 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 사용자의 개별 설정 정보, 및/또는 사용자 입력에 대한 정보))의 송수신이 가능한 상태로 설정함으로써, 전자 장치(210)와의 연결을 완료할 수 있다.In an embodiment, the first external electronic device 220 may perform a connection with the electronic device 210 in operation 645 based on the network information included in the second push information. For example, when second push information is received, the first external electronic device 220 may call a method of the first push information, for example, “messageReceived”. The first external electronic device 220 may read network information (eg, IP address information and/or port information) of the electronic device 210 included in data of the second push information in the method “messageReceived”. The electronic device 210 may decrypt network information (eg, IP address information and/or port information) of the read electronic device 210 using a private key. The first external electronic device 220 connects a socket using the decrypted network information, and connects the electronic device 210 with information (eg notification information, screen information, and/or information related to settings (eg: Connection with the electronic device 210 is completed by setting a state in which transmission and reception of Wi-Fi on/off, user's individual setting information, and/or user input information) is possible. can do.
일 실시예에서, 전자 장치(210)는 650동작에서, 제1 외부 전자 장치(220)와 연결을 수행할 수 있다. 전자 장치(210)와 제1 외부 전자 장치(220)는 655동작에서, 정보를 공유할 수 있다. 예컨대, 전자 장치(210)는 디스플레이(330)에 표시되는 화면(예: 어플리케이션 화면)을 제1 외부 전자 장치(220)에 전송할 수 있다. 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)의 디스플레이에 전자 장치(210)의 디스플레이(330)에 표시되는 화면을 표시할 수 있다. 이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)의 디스플레이에 표시된 전자 장치(210)의 화면에 대한 사용자 입력을 검출하는 경우, 사용자 입력에 대한 신호를 전자 장치(210)에 송신할 수 있다. 전자 장치(210)는 제1 외부 전자 장치(220)로부터 수신한 사용자 입력에 기반하여 어플리케이션과 관련된 기능(예: 어플리케이션 화면의 제어, 어플리케이션의 기능을 제어)을 제어하고, 이에 대한 정보를 제1 외부 전자 장치(220)에 전송할 수 있다. 제1 외부 전자 장치(220)는 사용자 입력에 기반하여 제어된 어플리케이션 화면(예: 사용자 입력에 따라 제어된 어플리케이션 화면 또는 제어된 기능의 어플리케이션 화면)을 제1 외부 전자 장치(220)의 디스플레이에 표시할 수 있다. In one embodiment, the electronic device 210 may perform a connection with the first external electronic device 220 in operation 650 . The electronic device 210 and the first external electronic device 220 may share information in operation 655 . For example, the electronic device 210 may transmit a screen (eg, an application screen) displayed on the display 330 to the first external electronic device 220 . The first external electronic device 220 may display a screen displayed on the display 330 of the electronic device 210 on the display of the first external electronic device 220 . The present invention is not limited thereto, and when a user input for the screen of the electronic device 210 displayed on the display of the first external electronic device 220 is detected, a signal for the user input may be transmitted to the electronic device 210. . The electronic device 210 controls an application-related function (eg, application screen control, application function control) based on a user input received from the first external electronic device 220, and transmits information thereto to the first external electronic device 220. It can be transmitted to the external electronic device 220 . The first external electronic device 220 displays an application screen controlled based on user input (eg, an application screen controlled according to user input or an application screen of a controlled function) on the display of the first external electronic device 220. can do.
다양한 실시예들에 따른 도 6에서, 전자 장치(210)와 제1 외부 전자 장치(220) 간에 화면 공유 기능을 수행하는 것으로 설명하였으나, 이에 한정하는 것은 아니다. 예컨대, 전자 장치(210)와 제2 외부 전자 장치(230) 간에 화면 공유 기능을 수행할 수 있으며, 이 경우, 제1 외부 전자 장치(220)의 동작은 제2 외부 전자 장치(230)가 수행할 수 있다.In FIG. 6 according to various embodiments, it has been described that the screen sharing function is performed between the electronic device 210 and the first external electronic device 220, but is not limited thereto. For example, a screen sharing function may be performed between the electronic device 210 and the second external electronic device 230. In this case, the operation of the first external electronic device 220 is performed by the second external electronic device 230. can do.
도 7은, 다양한 실시예들에 따른, 제1 외부 전자 장치(220)의 모드를 설정하는 방법을 설명하기 위한 흐름도(700)이다.7 is a flowchart 700 illustrating a method of setting a mode of the first external electronic device 220 according to various embodiments.
도 7을 참조하면, 제1 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220))는 705동작에서, 전자 장치(예: 도 2의 외부 전자 장치(210) 또는 제2 외부 전자 장치(230))와 화면 공유를 위한 입력을 검출하는 것에 기반하여, 제1 외부 전자 장치(220)의 모드를 설정하기 위한 사용자 인터페이스를 디스플레이에 표시할 수 있다. 제1 외부 전자 장치(220)는 710동작에서, 사용자 인터페이스를 통해 제1 외부 전자 장치(220)의 모드를 설정할 수 있다.Referring to FIG. 7 , in operation 705, a first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) operates an electronic device (eg, the external electronic device 210 of FIG. 2 or the second external electronic device 220 of FIG. 2 ). Based on detecting an input for screen sharing with the device 230), a user interface for setting a mode of the first external electronic device 220 may be displayed on the display. In operation 710, the first external electronic device 220 may set the mode of the first external electronic device 220 through the user interface.
다양한 실시예들에서, 제1 외부 전자 장치(220)의 모드는 제1 모드 및 제2 모드를 포함할 수 있다. In various embodiments, the mode of the first external electronic device 220 may include a first mode and a second mode.
다양한 실시예들에서, 제1 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220))는 다른 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하는, 보조 장치로 동작할 수 있다. 이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)와 관련된 정보(예: 알림 정보, 화면 정보, 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 다른 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에 공유하는, 주 장치로 동작할 수 있다.In various embodiments, a first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) is an auxiliary device that receives information shared from another electronic device (eg, the electronic device 210 ). It can work. The present invention is not limited thereto, and the first external electronic device 220 may include information related to the first external electronic device 220 (eg, notification information, screen information, information related to settings (eg, Wi-Fi turned on)). on/off, and/or user's individual setting information) may be operated as a main device that shares other electronic devices (eg, the second external electronic device 230 of FIG. 2 ).
일 실시예에서, 제1 외부 전자 장치(220)가 보조 장치로 동작하는 경우 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정된 것으로 가정하여 설명하고, 제1 외부 전자 장치(220)가 주 장치로 동작하는 경우 제1 외부 전자 장치(220)의 모드가 제2 모드로 설정된 것으로 가정하여 설명하도록 한다.In one embodiment, when the first external electronic device 220 operates as an auxiliary device, it is assumed that the mode of the first external electronic device 220 is set to the first mode, and the first external electronic device 220 When is operated as a main device, it will be described assuming that the mode of the first external electronic device 220 is set to the second mode.
일 실시예에서, 제1 외부 전자 장치(220)는 715동작에서, 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정되었는지 여부를 확인할 수 있다. 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정된 경우(예: 715동작의 ‘예’), 제1 외부 전자 장치(220)는 720동작에서, 제1 외부 전자 장치(220)가 제1 모드로 동작하도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정된 경우, 제1 외부 전자 장치(220)는 모드와 관련된 파라미터인 “isClient”의 속성 값을 “true”로 지정하여, 제1 외부 전자 장치(220)가 제1 모드(예: 보조 장치)로 동작하도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)의 메모리에 저장된 전자 장치(예: 전자 장치(210))의 식별 정보(예: 토큰 값) 및 제1 외부 전자 장치(220)의 식별 정보(예: 외부 전자 장치(220)의 ID)에 기반하여 제1 푸시 정보를 생성하고, 생성된 제1 푸시 정보를 전자 장치(예: 전자 장치(210))에 전송할 수 있다. 이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)의 메모리에 전자 장치(예: 전자 장치(210))의 식별 정보(예: 토큰 값)가 저장되어 있지 않은 경우, 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하기 위해, 제1 외부 전자 장치(220)에 근접한 전자 장치(예: 전자 장치(210))의 검색을 수행하도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 NSD(network service discovery), 블루투스 스캔(bluetooth scan)을 이용하여 연결할 전자 장치를 검색하는 동작을 수행할 수 있다. 제1 외부 전자 장치(220)는 725동작에서, 검색된 전자 장치(예: 전자 장치(210))와 연결을 수행할 수 있다.In an embodiment, in operation 715, the first external electronic device 220 may check whether the mode of the first external electronic device 220 is set to the first mode. When the mode of the first external electronic device 220 is set to the first mode (eg, 'yes' in operation 715), in operation 720, the first external electronic device 220 It can be set to operate in the first mode. For example, when the mode of the first external electronic device 220 is set to the first mode, the first external electronic device 220 sets the property value of “isClient”, a parameter related to the mode, to “true”, The external electronic device 220 may be configured to operate in a first mode (eg, an auxiliary device). For example, identification information (eg, token value) of the electronic device (eg, the electronic device 210) stored in the memory of the first external electronic device 220 and identification information (eg, external electronic device 220) of the first external electronic device 220 First push information may be generated based on the ID of the electronic device 220, and the generated first push information may be transmitted to the electronic device (eg, the electronic device 210). It is not limited thereto, and the first external electronic device 220 does not store identification information (eg, token value) of the electronic device (eg, the electronic device 210) in the memory of the first external electronic device 220. Otherwise, in order to receive information shared from the electronic device (eg, the electronic device 210), it is set to search for an electronic device (eg, the electronic device 210) close to the first external electronic device 220. can For example, the first external electronic device 220 may perform an operation of searching for an electronic device to be connected using network service discovery (NSD) or bluetooth scan. In operation 725, the first external electronic device 220 may perform a connection with the searched electronic device (eg, the electronic device 210).
일 실시예에서, 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정되지 않은 경우(예: 715동작의 ‘아니오’), 제1 외부 전자 장치(220)는 730동작에서, 제1 외부 전자 장치(220)의 모드가 제2 모드로 설정되었는지 여부를 확인할 수 있다. 제1 외부 전자 장치(220)의 모드가 제2 모드로 설정된 경우(에: 730동작의 ‘예’), 제1 외부 전자 장치(220)는 735동작에서, 제1 외부 전자 장치(220)가 제2 모드로 동작하도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)의 모드가 제2 모드로 설정된 경우, 제1 외부 전자 장치(220)는 모드와 관련된 파라미터인 “isClient”의 속성 값을 “false”로 지정하여, 제1 외부 전자 장치(220)가 제2 모드(예: 주 장치)로 동작하도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)와 관련된 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에 공유하기 위해, 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에 의해 제1 외부 전자 장치(220)가 검색 가능한 상태(또는 전자 장치(예: 도 2의 제2 외부 전자 장치(230))와의 연결을 대기하는 상태)가 되도록 설정할 수 있다. 예컨대, NSD 등록을 통해 제1 외부 전자 장치(220)가 다른 전자 장치에서 검색이 가능해지도록 설정하거나, 및/또는 블루투스 브로드캐스트 리시버(bluetooth broadcast receiver)를 통해 다른 전자 장치로부터 수신되는 블루투스 연결 요청에 응답하도록 하여 제1 외부 전자 장치(220)를 연결 가능한 상태가 되도록 설정할 수 있다. 제1 외부 전자 장치(220)는 740동작에서, 연결을 요청하는 전자 장치(예: 제2 외부 전자 장치(230))와 연결을 수행할 수 있다.In an embodiment, when the mode of the first external electronic device 220 is not set to the first mode (eg, 'No' in operation 715), the first external electronic device 220, in operation 730, first It may be checked whether the mode of the external electronic device 220 is set to the second mode. When the mode of the first external electronic device 220 is set to the second mode (e.g., 'yes' in operation 730), the first external electronic device 220, in operation 735, the first external electronic device 220 It can be set to operate in the second mode. For example, when the mode of the first external electronic device 220 is set to the second mode, the first external electronic device 220 sets the attribute value of “isClient”, a parameter related to the mode, to “false”, The external electronic device 220 may be set to operate in the second mode (eg, the main device). For example, the first external electronic device 220 may provide information related to the first external electronic device 220 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi) on. )/off, and/or user's individual setting information)) to the electronic device (eg, the second external electronic device 230 of FIG. 2 ), the electronic device (eg, the second external electronic device 230 of FIG. 2 ). Set so that the first external electronic device 220 can be searched by the external electronic device 230 (or waits for connection with an electronic device (eg, the second external electronic device 230 of FIG. 2)). can For example, setting the first external electronic device 220 to be searchable by other electronic devices through NSD registration, and/or responding to a Bluetooth connection request received from another electronic device through a Bluetooth broadcast receiver. By responding, the first external electronic device 220 can be set to be in a connectable state. In operation 740, the first external electronic device 220 may perform a connection with an electronic device requesting a connection (eg, the second external electronic device 230).
일 실시예에서, 제1 외부 전자 장치(220)는 745동작에서, 제1 외부 전자 장치(220)의 모드를 변경(예: 제1 모드에서 제2 모드로 변경, 또는 제2 모드에서 제1 모드로 변경)하기 위한 입력이 검출되는지 여부를 확인할 수 있다. 제1 외부 전자 장치(220)의 모드를 변경하기 위한 입력이 검출되면(예: 745동작의 ‘예’), 제1 외부 전자 장치(220)는 750동작에서, 연결된 전자 장치(예: 전자 장치(210) 또는 제2 외부 전자 장치(230))와의 연결을 해제하고, 제1 외부 전자 장치(220)가 변경된 모드로 동작하도록 설정할 수 있다.In an embodiment, in operation 745, the first external electronic device 220 changes the mode of the first external electronic device 220 (eg, changing from the first mode to the second mode, or from the second mode to the first mode). mode) is detected. When an input for changing the mode of the first external electronic device 220 is detected (eg, 'Yes' in operation 745), the first external electronic device 220, in operation 750, connects the connected electronic device (eg, the electronic device 210 or the connection with the second external electronic device 230 may be disconnected, and the first external electronic device 220 may be set to operate in the changed mode.
일 실시예에서, 제1 외부 전자 장치(220)의 모드를 변경하기 위한 입력이 검출되지 않으면(예: 745동작의 ‘아니오’), 제1 외부 전자 장치(220)는 715동작으로 분기하여, 제1 외부 전자 장치(220)가 설정된 모드(예: 제1 모드 또는 제2 모드)로 계속해서 동작하도록 할 수 있다.In one embodiment, if an input for changing the mode of the first external electronic device 220 is not detected (eg, 'No' in operation 745), the first external electronic device 220 branches to operation 715, The first external electronic device 220 may continue to operate in a set mode (eg, the first mode or the second mode).
일 실시예에서, 제1 외부 전자 장치(220)의 모드가 제2 모드로 설정되지 않은 경우(예: 730동작의 ‘아니오’), 제1 외부 전자 장치(220)는 705동작의 제1 외부 전자 장치(220)의 모드를 설정하기 위한 사용자 인터페이스를 디스플레이에 표시하는 동작을 수행할 수 있다. 이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)의 모드가 제2 모드로 설정되지 않은 경우(에: 730동작의 ‘아니오’), 제1 외부 전자 장치(220)는 화면 공유 기능을 종료할 수 있다. 예컨대, 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정되지 않은 경우(예: 715동작의 ‘아니오’)와 제2 모드로 설정되지 않은 경우(에: 730동작의 ‘아니오’)는 지정된 시간 동안 제1 외부 전자 장치(220)의 모드가 제1 모드 또는 제2 모드를 설정하기 위한 입력이 검출되지 않은 경우를 포함할 수 있다. 이 경우, 제1 외부 전자 장치(220)는 화면 공유 기능을 수행하지 않는 것으로 결정하고, 화면 공유 기능을 종료할 수 있다.In an embodiment, when the mode of the first external electronic device 220 is not set to the second mode (eg, 'No' in operation 730), the first external electronic device 220 operates as the first external electronic device 220 in operation 705. An operation of displaying a user interface for setting a mode of the electronic device 220 on the display may be performed. It is not limited to this, and when the mode of the first external electronic device 220 is not set to the second mode (eg: 'No' in operation 730), the first external electronic device 220 terminates the screen sharing function. can do. For example, when the mode of the first external electronic device 220 is not set to the first mode (eg, 'No' in operation 715) and when it is not set to the second mode (eg, 'No' in operation 730) may include a case where an input for setting the mode of the first external electronic device 220 to the first mode or the second mode is not detected for a specified time period. In this case, the first external electronic device 220 may determine not to perform the screen sharing function and terminate the screen sharing function.
도 8a는, 다양한 실시예들에 따른, 제1 외부 전자 장치(220)의 모드를 설정하는 사용자 인터페이스를 설명하기 위한 도면(800)이다.8A is a diagram 800 for describing a user interface for setting a mode of a first external electronic device 220 according to various embodiments.
다양한 실시예들에 따른 제1 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220))는 제1 모드 또는 제2 모드로 동작 가능할 수 있다. 예컨대, 제1 모드로 설정되는 경우, 제1 외부 전자 장치(220)는 다른 전자 장치(예: 전자 장치(210))로부터 공유되는 정보를 수신하는 보조 장치로 동작할 수 있다. 또는, 제2 모드로 설정되는 경우, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)와 관련된 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 및/또는 사용자의 개별 설정 정보))를 다른 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에 공유하는 주 장치로 동작할 수 있다.A first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) according to various embodiments may operate in a first mode or a second mode. For example, when set to the first mode, the first external electronic device 220 may operate as an auxiliary device receiving information shared from another electronic device (eg, the electronic device 210). Alternatively, when set to the second mode, the first external electronic device 220 provides information related to the first external electronic device 220 (eg, notification information, screen information, and/or information related to settings (eg, Wi-Fi). (Wi-Fi) on / off (and / or user's individual setting information)) as a main device that shares other electronic devices (eg, the second external electronic device 230 of FIG. 2) It can work.
도 8a를 참조하면, 제1 외부 전자 장치(220)는 참조번호 <810>에 도시된 바와 같이 전자 장치(예: 도 2의 외부 전자 장치(210) 또는 제2 외부 전자 장치(230))와 화면 공유를 위한 입력을 검출하는 것에 기반하여, 제1 외부 전자 장치(220)의 모드를 설정하기 위한 사용자 인터페이스를 디스플레이에 표시할 수 있다.Referring to FIG. 8A , the first external electronic device 220 is an electronic device (eg, the external electronic device 210 or the second external electronic device 230 of FIG. 2 ) as shown by reference number <810>. Based on detecting an input for screen sharing, a user interface for setting a mode of the first external electronic device 220 may be displayed on the display.
일 실시예에서, 사용자 인터페이스는 제1 외부 전자 장치(220)가 제1 모드로 동작하도록 설정하는 제1 아이템(811)(예: tablet to phone) 및 제2 모드로 동작하도록 설정하는 제2 아이템(813)(예: tablet to pc)을 포함할 수 있다. 제1 외부 전자 장치(220)는 제1 아이템(811) 및 제2 아이템(813) 중 하나의 아이템(예: 제1 아이템(811) 또는 제2 아이템(813))을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)가 선택된 아이템(예: 제1 아이템(811) 또는 제2 아이템(813))에 대응하는 모드(예: 제1 모드 또는 제2 모드)로 동작하도록 설정할 수 있다.In one embodiment, the user interface includes a first item 811 (eg, tablet to phone) for setting the first external electronic device 220 to operate in the first mode and a second item for setting the operation in the second mode. (813) (eg tablet to pc). When an input for selecting one of the first item 811 and the second item 813 is detected, the first external electronic device 220 (eg, the first item 811 or the second item 813) is detected. , The first external electronic device 220 may be set to operate in a mode (eg, a first mode or a second mode) corresponding to the selected item (eg, the first item 811 or the second item 813). .
일 실시예에서, 제1 외부 전자 장치(220)는 제1 아이템(811)을 선택하는 입력이 검출되면, 제1 아이템(811)에 대응하는 제1 모드 예컨대, 제1 외부 전자 장치(220)의 메모리에 저장된 전자 장치(예: 전자 장치(210))와 통신 연결할 수 있다. 예컨대, 전술한 도 6의 615동작 내지 650동작을 통해 제1 외부 전자 장치(220)와 전자 장치(예: 전자 장치(210))는 통신 연결될 수 있다.In an embodiment, when an input for selecting the first item 811 is detected, the first external electronic device 220 selects a first mode corresponding to the first item 811, for example, the first external electronic device 220. Communication with the electronic device (eg, the electronic device 210) stored in the memory of the memory may be connected. For example, through operations 615 to 650 of FIG. 6 described above, the first external electronic device 220 and the electronic device (eg, the electronic device 210) may be connected through communication.
일 실시예에서, 전자 장치(예: 전자 장치(210))와 통신 연결되는 것에 기반하여, 제1 외부 전자 장치(220)는 참조번호 <820>에 도시된 바와 같이, 전자 장치(예: 전자 장치(210))와의 히스토리 정보(예: 전자 장치(예: 전자 장치(210))와 주고 받은 정보(821)(예: 문서, 사진, 및/또는 동영상과 같은 파일 정보))를 포함하는 사용자 인터페이스를 표시할 수 있다.In one embodiment, based on communication connection with an electronic device (eg, the electronic device 210), the first external electronic device 220, as shown in reference numeral 820, is an electronic device (eg, the electronic device 210). User including history information (eg, information 821 sent and received with the electronic device (eg, the electronic device 210) (eg, file information such as documents, pictures, and/or videos)) with the device 210) interface can be displayed.
일 실시예에서, 전자 장치(예: 전자 장치(210))와의 히스토리 정보를 포함하는 사용자 인터페이스는 제3 아이템(823) 및 제4 아아템(825)을 더 포함할 수 있다. 예컨대, 제3 아이템(823)은 연결된 전자 장치(예: 전자 장치(210))의 화면을 표시하기 위한 아이템일 수 있다. 제4 아이템(825)은 제1 외부 전자 장치(220)의 모드를 변경하기 위한 아이템일 수 있다.In one embodiment, a user interface including history information with an electronic device (eg, the electronic device 210) may further include a third item 823 and a fourth item 825. For example, the third item 823 may be an item for displaying a screen of a connected electronic device (eg, the electronic device 210). The fourth item 825 may be an item for changing the mode of the first external electronic device 220 .
일 실시예에서, 미도시 되었으나, 제3 아이템(823)을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)는 전자 장치(예: 전자 장치(210))의 디스플레이(330)에 표시되는 화면을 수신하여, 제1 외부 전자 장치(220)의 디스플레이에 표시할 수 있다.In one embodiment, although not shown, when an input for selecting the third item 823 is detected, the first external electronic device 220 displays it on the display 330 of the electronic device (eg, the electronic device 210). A screen may be received and displayed on the display of the first external electronic device 220 .
일 실시예에서, 제4 아이템(825)을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)의 모드 변경을 위한 아이템을 포함하는 리스트를 표시할 수 있다. 이와 관련하여, 후술하는 도 8b에서 보다 상세히 살펴보도록 한다.In one embodiment, when an input for selecting the fourth item 825 is detected, the first external electronic device 220 may display a list including an item for changing the mode of the first external electronic device 220. there is. In this regard, it will be described in more detail in FIG. 8B to be described later.
일 실시예에서, 미도시 되었으나, 제1 외부 전자 장치(220)의 메모리에 전자 장치(예: 전자 장치(210))의 식별 정보(예: 토큰 값)가 저장되어 있지 않은 경우, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)에 근접한 다른 전자 장치를 검색하는 동작을 수행하도록 설정할 수 있다. 제1 외부 전자 장치(220)에 근접한 다른 전자 장치를 검색하는 동작을 통해, 제1 외부 전자 장치(220)는 검색된 전자 장치의 리스트를 표시할 수 있으며, 표시된 전자 장치의 리스트에서 연결하고자 하는 다른 전자 장치를 선택함으로써, 다른 전자 장치와의 최초 연결을 수행할 수 있다.In one embodiment, although not shown, when identification information (eg, a token value) of an electronic device (eg, the electronic device 210) is not stored in the memory of the first external electronic device 220, the first external electronic device 220 The electronic device 220 may be set to perform an operation of searching for other electronic devices close to the first external electronic device 220 . Through an operation of searching for other electronic devices close to the first external electronic device 220, the first external electronic device 220 may display a list of searched electronic devices, and other electronic devices to be connected from the displayed list of electronic devices. By selecting an electronic device, an initial connection with another electronic device may be performed.
일 실시예에서, 제1 외부 전자 장치(220)는 제2 아이템(813)을 선택하는 입력이 검출되면, 제2 아이템(813)에 대응하는 제2 모드 예컨대, 제1 외부 전자 장치(220)가 다른 전자 장치에 의해 검색 가능한 상태(또는 다른 전자 장치와의 연결을 대기하는 상태)가 되도록 설정할 수 있다. 제1 외부 전자 장치(220)가 검색 가능한 대기 상태(또는 다른 전자 장치와의 연결을 대기하는 상태)가 되는 경우, 제1 외부 전자 장치(220)는 참조번호 <830>에 도시된 바와 같이, 대기 상태에 대한 텍스트(예: 연결 대기 중…)를 디스플레이에 표시할 수 있다.In an embodiment, when an input for selecting the second item 813 is detected, the first external electronic device 220 selects a second mode corresponding to the second item 813, for example, the first external electronic device 220. may be set to be in a searchable state by other electronic devices (or in a waiting state for connection with other electronic devices). When the first external electronic device 220 is in a searchable standby state (or waiting for connection with another electronic device), the first external electronic device 220, as shown in reference number <830>, A text about the waiting state (eg Waiting for connection...) can be displayed on the display.
도 8b는, 다양한 실시예들에 따른, 제1 외부 전자 장치(220)의 모드를 변경하는 사용자 인터페이스를 설명하기 위한 도면(850)이다.FIG. 8B is a diagram 850 for describing a user interface for changing a mode of the first external electronic device 220 according to various embodiments.
다양한 실시예들에 따른 도 8b는, 제1 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220))가 제1 모드로 설정됨에 따라 보조 장치로 동작하는 중에, 제1 외부 전자 장치(220)의 모드를 변경하는 동작을 설명하기 위한 도면이다.FIG. 8B according to various embodiments shows that the first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) is set to the first mode and operates as an auxiliary device, while the first external electronic device is operating as an auxiliary device. It is a diagram for explaining the operation of changing the mode of 220.
다양한 실시예들에서, 제1 외부 전자 장치(220)는 도 8a에서 살펴본 바와 같이 전자 장치(예: 전자 장치(210))와의 히스토리 정보를 포함하는 사용자 인터페이스에서 아이템들(예: 제3 아이템(823) 및 제4 아아템(825)) 중 제4 아이템(825)을 선택하는 입력이 검출되면, 도 8b에 도시된 바와 같이, 제1 외부 전자 장치(220)의 모드 변경을 위한 아이템을 포함하는 리스트(860)를 표시할 수 있다. 모드 변경을 위한 아이템을 포함하는 리스트(860)는 제1 모드에서 제2 모드로 변경하기 위한 제5 아이템(861)(예: Connect to computer) 및 제1 모드를 유지하며 연결할 전자 장치를 변경하기 위한 제6 아이템(863)(예: Connect to new phone)을 포함할 수 있다. 하지만 이에 한정하는 것은 아니다.In various embodiments, the first external electronic device 220 displays items (eg, a third item (eg, a third item ( 823) and the fourth item 825), when an input for selecting the fourth item 825 is detected, as shown in FIG. 8B, including an item for changing the mode of the first external electronic device 220 A list 860 may be displayed. The list 860 including an item for mode change includes a fifth item 861 (eg, Connect to computer) for changing from the first mode to the second mode and changing an electronic device to be connected while maintaining the first mode. A sixth item 863 (eg, Connect to new phone) may be included. However, it is not limited thereto.
일 실시예에서, 리스트(860)로부터 제1 외부 전자 장치(220)의 제1 모드를 제2 모드로 변경하기 위한 제5 아이템(861)을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)가 제2 모드로 동작하도록, 제1 모드의 설정 값을 초기화할 수 있다.In one embodiment, when an input for selecting the fifth item 861 for changing the first mode of the first external electronic device 220 to the second mode is detected from the list 860, the first external electronic device ( 220) may initialize the setting value of the first mode so that the first external electronic device 220 operates in the second mode.
일 실시예에서, 리스트(860)로부터 제1 모드를 유지하며 연결할 전자 장치를 변경하기 위한 제6 아이템(863)을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)는 기 연결 중인 전자 장치(예: 전자 장치(210))와의 연결을 해제하고, 제1 외부 전자 장치(220)에 저장된 다른 전자 장치와 통신 연결할 수 있다. 예컨대, 전술한 도 6의 615동작 내지 650동작을 통해 제1 외부 전자 장치(220)와 다른 전자 장치는 통신 연결될 수 있다. 이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)의 메모리에 전자 장치(예: 전자 장치(210)) 외 다른 전자 장치의 식별 정보(예: 토큰 값)가 저장되어 있지 않은 경우, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)에 근접한 다른 전자 장치를 검색하는 동작을 통해 다른 전자 장치와의 최초 연결을 수행할 수 있다. In one embodiment, when an input for selecting the sixth item 863 for changing the electronic device to be connected while maintaining the first mode is detected from the list 860, the first external electronic device 220 is connected to the electronic device. A connection with a device (eg, the electronic device 210 ) may be disconnected, and a communication connection may be made with another electronic device stored in the first external electronic device 220 . For example, through operations 615 to 650 of FIG. 6 described above, the first external electronic device 220 and other electronic devices may be connected through communication. It is not limited thereto, and when identification information (eg, a token value) of an electronic device other than the electronic device (eg, the electronic device 210) is not stored in the memory of the first external electronic device 220, the first The external electronic device 220 may perform an initial connection with another electronic device through an operation of searching for other electronic devices close to the first external electronic device 220 .
종래에 제1 외부 전자 장치(220)의 모드가 고정(예: 제1 모드만 수행하도록 고정)된 반면, 다양한 실시예들에 따른 도 8a 및 도 8b에서 사용자가 제1 외부 전자 장치(220)의 모드(예: 제1 모드 또는 제2 모드)를 설정할 수 있도록, 사용자 인터페이스를 제공함으로써, 화면 공유 기능의 활용성 및 제1 외부 전자 장치(220)의 사용성을 높일 수 있다. Conventionally, the mode of the first external electronic device 220 is fixed (eg, fixed to perform only the first mode), whereas in FIGS. 8A and 8B according to various embodiments, the user selects the first external electronic device 220 Utilization of the screen sharing function and usability of the first external electronic device 220 may be increased by providing a user interface to set a mode (eg, a first mode or a second mode).
도 9는, 다양한 실시예들에 따른, 전자 장치(210)와 제1 외부 전자 장치(220) 간 통신 연결 중에 제1 외부 전자 장치(220)의 모드 변경을 위한 신호 흐름을 도시한 도면(900)이다.FIG. 9 is a diagram 900 illustrating a signal flow for mode change of a first external electronic device 220 during communication connection between the electronic device 210 and the first external electronic device 220 according to various embodiments. )to be.
도 9를 참조하면, 제1 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220))는 905동작에서, 전자 장치(예: 도 2의 전자 장치(210))와 화면 공유를 위한 입력을 검출하는 것에 기반하여, 제1 외부 전자 장치(220)의 모드를 설정하기 위한 사용자 인터페이스를 디스플레이에 표시할 수 있다. 제1 외부 전자 장치(220)는 디스플레이에 표시된 사용자 인터페이스를 통해 제1 외부 전자 장치(220)의 모드를 설정할 수 있다.Referring to FIG. 9 , in operation 905, a first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) performs screen sharing with an electronic device (eg, the electronic device 210 of FIG. 2 ). Based on the detection of the input, a user interface for setting a mode of the first external electronic device 220 may be displayed on the display. The first external electronic device 220 may set the mode of the first external electronic device 220 through a user interface displayed on the display.
일 실시예에서, 사용자 인터페이스는, 전술한 도 8a에서 살펴본 바와 같이, 제1 외부 전자 장치(220)가 제1 모드로 동작하도록 설정하는 제1 아이템(예: 도 8a의 제1 아이템(811)) 및 제2 모드로 동작하도록 설정하는 제2 아이템(예: 도 8a의 제2 아이템(813))을 포함할 수 있다. 제1 외부 전자 장치(220)는 제1 아이템(811) 및 제2 아이템(813) 중 하나의 아이템을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)가 선택된 아이템(예: 제1 아이템(811) 또는 제2 아이템(813))에 대응하는 모드로 동작하도록 설정할 수 있다.In one embodiment, as described above with reference to FIG. 8A, the user interface is a first item configured to operate the first external electronic device 220 in the first mode (eg, the first item 811 of FIG. 8A). ) and a second item (eg, the second item 813 of FIG. 8A) configured to operate in the second mode. When the first external electronic device 220 detects an input for selecting one of the first item 811 and the second item 813, the first external electronic device 220 selects the selected item (eg, the first external electronic device 220). It can be set to operate in a mode corresponding to the item 811 or the second item 813.
일 실시예에서, 제1 외부 전자 장치(220)는 915동작에서, 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정되었는지 여부를 확인할 수 있다. 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정된 경우(예: 915동작의 ‘예’), 제1 외부 전자 장치(220)는 920동작에서, 제1 외부 전자 장치(220)가 제1 모드로 동작하도록 설정할 수 있다.In an embodiment, in operation 915, the first external electronic device 220 may check whether the mode of the first external electronic device 220 is set to the first mode. When the mode of the first external electronic device 220 is set to the first mode (eg, 'yes' in operation 915), in operation 920, the first external electronic device 220 It can be set to operate in the first mode.
예컨대, 제1 외부 전자 장치(220)의 모드를 설정하기 위한 사용자 인터페이스에서 제1 아이템(811)을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)가 제1 아이템(811)에 대응하는 제1 모드로 동작하도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)의 모드를 설정하기 위한 사용자 인터페이스에서 제1 아이템(811)을 선택하는 입력이 검출되면, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)의 모드 설정과 관련된 파라미터 “isClient”의 속성 값을 “true”로 지정하고, 제1 모드 예컨대, 제1 외부 전자 장치(220)의 메모리에 저장된 전자 장치(예: 전자 장치(210))와 통신 연결할 수 있다. 예컨대, 전술한 도 6의 615동작 내지 650동작을 통해 제1 외부 전자 장치(220)와 전자 장치(예: 전자 장치(210))는 통신 연결될 수 있다. For example, when an input for selecting the first item 811 is detected in the user interface for setting the mode of the first external electronic device 220, the first external electronic device 220 operates as the first external electronic device 220. may be set to operate in a first mode corresponding to the first item 811 . For example, when an input for selecting the first item 811 is detected in the user interface for setting the mode of the first external electronic device 220, the first external electronic device 220 operates as the first external electronic device 220. Set the property value of “isClient”, a parameter related to mode setting, to “true”, and communicate with an electronic device (eg, the electronic device 210) stored in the memory of the first external electronic device 220 in the first mode, for example. can connect For example, through operations 615 to 650 of FIG. 6 described above, the first external electronic device 220 and the electronic device (eg, the electronic device 210) may be connected through communication.
일 실시예에서, 미도시 되었으나, 제1 외부 전자 장치(220)의 메모리에 전자 장치(예: 전자 장치(210))의 식별 정보(예: 토큰 값)가 저장되어 있지 않은 경우, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)에 근접한 전자 장치를 검색하는 동작을 수행하도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 NSD, 블루투스 스캔을 이용하여 연결할 전자 장치를 검색하는 동작을 수행할 수 있다. 제1 외부 전자 장치(220)에 근접한 전자 장치를 검색하는 동작을 통해, 검색된 전자 장치의 리스트를 표시할 수 있다.In one embodiment, although not shown, when identification information (eg, a token value) of an electronic device (eg, the electronic device 210) is not stored in the memory of the first external electronic device 220, the first external electronic device 220 The electronic device 220 may be set to perform an operation of searching for an electronic device close to the first external electronic device 220 . For example, the first external electronic device 220 may perform an operation of searching for an electronic device to be connected using NSD and Bluetooth scanning. Through an operation of searching for electronic devices close to the first external electronic device 220, a list of searched electronic devices may be displayed.
일 실시예에서, 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정된 경우, 제1 외부 전자 장치(220)에 연결되는 전자 장치(210)의 모드는 자동으로 제2 모드로 설정될 수 있다. 예컨대, 전자 장치(210)는 925동작에서, 전자 장치(210)가 제2 모드로 동작하도록 설정할 수 있다. 일 실시예에서, 제2 모드는 전자 장치(210)가 제1 외부 전자 장치(220)에 의해 검색 가능한 상태(또는 다른 전자 장치와의 연결을 대기하는 상태)가 되도록 설정하는 모드일 수 있다.In one embodiment, when the mode of the first external electronic device 220 is set to the first mode, the mode of the electronic device 210 connected to the first external electronic device 220 is automatically set to the second mode. can For example, in operation 925, the electronic device 210 may set the electronic device 210 to operate in the second mode. In one embodiment, the second mode may be a mode in which the electronic device 210 is set to be in a searchable state by the first external electronic device 220 (or a state of waiting for connection with another electronic device).
일 실시예에서, 제1 외부 전자 장치(220)는 930동작에서, 제1 외부 전자 장치(220)의 식별 정보 및 전자 장치(210)의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 935동작에서, 생성된 제1 푸시 정보를 전자 장치(210)에 전송할 수 있다.In an embodiment, the first external electronic device 220 generates first push information based on the identification information of the first external electronic device 220 and the identification information of the electronic device 210 in operation 930, and in operation 935 In operation, the generated first push information may be transmitted to the electronic device 210 .
다양한 실시예들에 따른 도 9의 930동작 및 935동작은, 전술한 도 4의 410동작 및 420동작과 동일하므로, 이에 대한 상세한 설명은 생략하도록 한다. Operations 930 and 935 of FIG. 9 according to various embodiments are the same as operations 410 and 420 of FIG. 4 described above, and thus detailed description thereof will be omitted.
일 실시예에서, 전자 장치(210)는 940동작에서, 네트워크 정보를 포함하는 제2 푸시 정보를 생성하고, 945동작에서, 제2 푸시 정보를 제1 외부 전자 장치(220)에 전송할 수 있다.In an embodiment, the electronic device 210 may generate second push information including network information in operation 940 and transmit the second push information to the first external electronic device 220 in operation 945 .
다양한 실시예들에 따른 도 9의 940동작 및 945동작은, 전술한 도 5의 530동작 및 540동작과 동일하므로, 이에 대한 상세한 설명은 생략하도록 한다.Since operations 940 and 945 of FIG. 9 according to various embodiments are the same as operations 530 and 540 of FIG. 5 described above, a detailed description thereof will be omitted.
일 실시예에서, 제1 외부 전자 장치(220)는 950동작에서, 전자 장치(210)의 네트워크 정보에 기반하여, 전자 장치(210)와 연결될 수 있다. 전자 장치(210)는 955동작에서, 제1 외부 전자 장치(220)와 연결될 수 있다.In one embodiment, the first external electronic device 220 may be connected to the electronic device 210 based on network information of the electronic device 210 in operation 950 . The electronic device 210 may be connected to the first external electronic device 220 in operation 955 .
일 실시예에서, 전자 장치(210)와 제1 외부 전자 장치(220)는 960동작에서, 정보를 공유할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 전자 장치(210)의 디스플레이(330)에 표시되는 화면을 수신하여, 제1 외부 전자 장치(220)의 디스플레이에 표시할 수 있다. 이에 한정하는 것은 아니며, 제1 외부 전자 장치(220)의 디스플레이에 표시된 전자 장치(210)의 화면에 대한 사용자 입력을 검출하는 경우, 제1 외부 전자 장치(220)는 사용자 입력에 대한 신호를 전자 장치(210)에 송신할 수 있다. 제1 외부 전자 장치(220)는 전자 장치(210)가 제1 외부 전자 장치(220)로부터 수신한 사용자 입력에 기반하여 제어된 어플리케이션 화면(예: 사용자 입력에 따라 제어된 어플리케이션 화면 또는 제어된 기능의 어플리케이션 화면)을 제1 외부 전자 장치(220)의 디스플레이에 표시할 수 있다.In one embodiment, the electronic device 210 and the first external electronic device 220 may share information in operation 960 . For example, the first external electronic device 220 may receive a screen displayed on the display 330 of the electronic device 210 and display it on the display of the first external electronic device 220 . The present invention is not limited thereto, and when detecting a user input for the screen of the electronic device 210 displayed on the display of the first external electronic device 220, the first external electronic device 220 transmits a signal for the user input electronically. device 210. The first external electronic device 220 is an application screen controlled based on a user input received by the electronic device 210 from the first external electronic device 220 (eg, an application screen controlled according to a user input or a controlled function). The application screen of) may be displayed on the display of the first external electronic device 220 .
다양한 실시예들에 따른 도 9의 955동작은, 전술한 도 6의 650동작과 동일하므로, 이에 대한 상세한 설명은 생략하도록 한다.Since operation 955 of FIG. 9 according to various embodiments is the same as operation 650 of FIG. 6 described above, a detailed description thereof will be omitted.
다양한 실시예들에서, 미도시 되었으나, 제2 모드로 설정된 전자 장치(210)가 검색되지 않는 경우, 제1 외부 전자 장치(220)는 화면 공유 기능(예: 화면 공유 어플리케이션)의 실행을 요청하는 메시지(예: 연결할 전자 장치(210)에서 화면 공유 기능을 실행해주세요.”)를 제1 외부 전자 장치(220)의 디스플레이에 표시할 수 있다. 제1 외부 전자 장치(220)의 디스플레이에 화면 공유 기능의 실행을 요청하는 메시지를 표시함으로써, 전자 장치(210)에서 화면 공유 기능을 실행하도록 사용자에게 알릴 수 있다. 사용자는 제1 외부 전자 장치(220)의 디스플레이에 화면 공유 기능의 실행을 요청하는 메시지를 확인하고, 전자 장치(210)에서 화면 공유 기능을 실행할 수 있다. In various embodiments, although not shown, when the electronic device 210 set to the second mode is not found, the first external electronic device 220 requests execution of a screen sharing function (eg, a screen sharing application). A message (eg, please execute the screen sharing function on the electronic device 210 to be connected.”) may be displayed on the display of the first external electronic device 220 . By displaying a message requesting execution of the screen sharing function on the display of the first external electronic device 220 , the user may be notified to execute the screen sharing function on the electronic device 210 . The user can check a message requesting execution of the screen sharing function on the display of the first external electronic device 220 and execute the screen sharing function on the electronic device 210 .
일 실시예에서, 화면 공유 기능을 실행하는 입력이 검출되면, 전자 장치(210)는 실행된 화면 공유 기능(예: 어플리케이션)의 화면을 디스플레이(330)에 표시할 수 있다. 화면 공유 기능을 실행함에 따라, 전자 장치(210)는 검색 가능한 상태가 될 수 있다. 예컨대, NSD(network service discovery) 등록을 통해 전자 장치(210)가 다른 전자 장치에서 검색이 가능해지도록 설정할 수 있다. In an embodiment, when an input for executing the screen sharing function is detected, the electronic device 210 may display the screen of the executed screen sharing function (eg, application) on the display 330 . As the screen sharing function is executed, the electronic device 210 may become a searchable state. For example, through network service discovery (NSD) registration, the electronic device 210 may be configured to be searchable by other electronic devices.
이에 한정하는 것은 아니며, 전자 장치(210)는 블루투스 브로드캐스트 리시버(bluetooth broadcast receiver)를 통해 다른 전자 장치로부터 수신되는 블루투스 연결 요청에 응답하도록 하여, 전자 장치(210)가 연결 가능한 상태가 되도록 설정할 수 있다. 제1 외부 전자 장치(220)는 전자 장치(210)의 검색을 완료하고, 전자 장치(210)로부터 MAC 주소, 네트워크 정보(예: IP 주소 정보 및/또는 포트 정보)와 같이 전자 장치(210)와 연결에 필요한 정보를 리드(예: 획득)할 수 있다. 제1 외부 전자 장치(220)는 리드한 MAC 주소, 네트워크 정보(예: IP 주소 정보 및/또는 포트 정보)를 이용하여 소켓(socket)을 연결함으로써, 전자 장치(210)와 정보(예: 알림 정보, 화면 정보, 및/또는 설정과 관련된 정보(예: 와이파이(wi-fi) 온(on)/오프(off), 사용자의 개별 설정 정보, 및/또는 사용자 입력에 대한 정보))의 송수신이 가능한 상태로 설정함으로써, 전자 장치(210)와의 연결을 완료할 수 있다.The present invention is not limited thereto, and the electronic device 210 responds to a Bluetooth connection request received from another electronic device through a Bluetooth broadcast receiver, so that the electronic device 210 can be configured to be in a connectable state. there is. The first external electronic device 220 completes the search for the electronic device 210, and receives the electronic device 210 such as a MAC address and network information (eg, IP address information and/or port information) from the electronic device 210. You can lead (e.g., obtain) information necessary for connection with The first external electronic device 220 connects a socket using the read MAC address and network information (eg, IP address information and/or port information) to connect the electronic device 210 and information (eg, notification). transmission and reception of information, screen information, and/or information related to settings (e.g., Wi-Fi on/off, information on individual user settings, and/or information on user input) By setting to a possible state, the connection with the electronic device 210 can be completed.
일 실시예에서, 제1 외부 전자 장치(220)는 970동작에서, 제1 모드를 제2 모드로 변경하기 위한 입력을 검출할 수 있다. 예컨대, 도 8b에 도시된, 제1 외부 전자 장치(220)의 모드 변경을 위한 아이템을 포함하는 리스트(860)에서 제1 모드에서 제2 모드로 변경하기 위한 제5 아이템(861)을 선택하는 입력을 검출할 수 있다. 제1 외부 전자 장치(220)는 980동작에서, 전자 장치(210)와의 연결을 해제하고, 제1 외부 전자 장치(220)가 제2 모드로 동작하도록 설정할 수 있다. 일 실시예에서, 제1 외부 전자 장치(220)의 모드가 제1 모드에서 제2 모드로 변경되는 경우, 제1 외부 전자 장치(220)는 전자 장치(210)로부터 수신되는 화면 공유 기능을 수행하지 않기 때문에, 세션(session)을 종료하고, 전자 장치(210)와의 연결을 해제할 수 있다. In an embodiment, the first external electronic device 220 may detect an input for changing the first mode to the second mode in operation 970 . For example, selecting a fifth item 861 for changing from the first mode to the second mode in the list 860 including items for changing the mode of the first external electronic device 220 shown in FIG. 8B. input can be detected. In operation 980, the first external electronic device 220 may release the connection with the electronic device 210 and set the first external electronic device 220 to operate in the second mode. In one embodiment, when the mode of the first external electronic device 220 is changed from the first mode to the second mode, the first external electronic device 220 performs a screen sharing function received from the electronic device 210. Since it does not, the session may be terminated and the connection with the electronic device 210 may be disconnected.
종래에 제1 외부 전자 장치(220)는 전자 장치(210)와의 재 연결을 위해 세션을 지정된 시간 유지하였으나, 본 개시의 다양한 실시예들에서, 모드를 변경하기 위한 입력이 검출되면 세션을 바로 중단하고, 새로운 장치와의 연결을 위한 새로운 세션을 준비를 할 수 있다.Conventionally, the first external electronic device 220 maintains a session for a specified time to reconnect with the electronic device 210, but in various embodiments of the present disclosure, when an input for changing a mode is detected, the session is immediately stopped. and prepare a new session for connection with the new device.
일 실시예에서, 제1 외부 전자 장치(220)가 변경된 제2 모드로 동작하도록 설정된 경우, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)의 모드 설정과 관련된 파라미터 “isClient”의 속성 값을 “false”로 지정하고, 제2 모드 예컨대, 제1 외부 전자 장치(220)가 다른 전자 장치에 의해 검색 가능한 상태가 되도록 설정할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 제1 모드의 동작을 종료하고, 제1 모드로 동작하기 위해 설정된 값을 초기화할 수 있다. 제1 외부 전자 장치(220)는 새로운 전자 장치와의 연결을 위한 대기 상태가 될 수 있다.In one embodiment, when the first external electronic device 220 is set to operate in the changed second mode, the first external electronic device 220 sets a parameter “isClient” related to the mode setting of the first external electronic device 220. An attribute value of is set to “false”, and the second mode, for example, the first external electronic device 220 may be set to be in a searchable state by other electronic devices. For example, the first external electronic device 220 may terminate the operation of the first mode and initialize a value set to operate in the first mode. The first external electronic device 220 may be in a standby state for connection with a new electronic device.
일 실시예에서, 제1 외부 전자 장치(220)는 전자 장치(210)와의 연결 해제를 위한 신호를 전자 장치(210)에 송신할 수 있다. 전자 장치(210)는 제1 외부 전자 장치(220)로부터 수신한 연결 해제에 대한 신호에 기반하여, 985동작에서, 제1 외부 전자 장치(220)와의 연결을 해제할 수 있다.In one embodiment, the first external electronic device 220 may transmit a signal for disconnection with the electronic device 210 to the electronic device 210 . The electronic device 210 may disconnect the first external electronic device 220 in operation 985 based on the signal for disconnection received from the first external electronic device 220 .
일 실시예에서, 제1 외부 전자 장치(220)의 모드가 제1 모드로 설정되지 않은 경우(예: 915동작의 ‘아니오’), 제1 외부 전자 장치(220)는 후술하는 도 10의 1005동작을 수행할 수 있다.In one embodiment, when the mode of the first external electronic device 220 is not set to the first mode (eg, 'No' in operation 915), the first external electronic device 220 operates at 1005 of FIG. 10 to be described later. action can be performed.
도 10은, 다양한 실시예들에 따른, 제1 외부 전자 장치(220)의 모드 변경으로, 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230) 간 통신 연결을 위한 신호 흐름을 도시한 도면(1000)이다.FIG. 10 illustrates a signal flow for communication connection between a first external electronic device 220 and a second external electronic device 230 according to a mode change of the first external electronic device 220 according to various embodiments. It is a drawing 1000.
다양한 실시예들에 따른 도 10은, 전술한 도 9의 추가적인 동작일 수 있다.10 according to various embodiments may be an additional operation of the above-described FIG. 9 .
도 10을 참조하면, 제1 외부 전자 장치(예: 도 2의 제1 외부 전자 장치(220))는 1005동작에서, 제2 모드(예: 도 9의 980동작에서 설정된 모드)로, 검색 가능한 상태(또는 다른 전자 장치와의 연결을 대기하는 상태)가 되도록 설정될 수 있다. 예컨대, NSD 등록을 통해 제1 외부 전자 장치(220)가 다른 전자 장치에서 검색이 가능해지도록 설정하거나, 또는 블루투스 브로드캐스트 리시버를 통해 블루투스 연결 요청에 응답하도록 하여, 제1 외부 전자 장치(220)가 연결 가능한 상태가 되도록 설정할 수 있다. 제1 외부 전자 장치(220)는 검색 가능한 상태가 되도록 설정한 후, 대기 상태에 진입할 수 있다. 대기 상태에 진입한 후, 제1 외부 전자 장치(220)는 제2 외부 전자 장치(예: 도 2의 제2 외부 전자 장치(230))에서 연결 설정을 완료하라는 안내 메시지를 디스플레이에 표시할 수 있다.Referring to FIG. 10 , in operation 1005, the first external electronic device (eg, the first external electronic device 220 of FIG. 2 ) is in a second mode (eg, the mode set in operation 980 of FIG. 9 ), capable of searching. It may be set to be in a state (or a state of waiting for connection with another electronic device). For example, by setting the first external electronic device 220 to be searchable by other electronic devices through NSD registration or responding to a Bluetooth connection request through a Bluetooth broadcast receiver, the first external electronic device 220 It can be set to be in a connectable state. After setting the first external electronic device 220 to be in a searchable state, it may enter a standby state. After entering the standby state, the first external electronic device 220 may display a guide message prompting the second external electronic device (eg, the second external electronic device 230 of FIG. 2 ) to complete connection setup on the display. there is.
일 실시예에서, 제2 외부 전자 장치(230)는 1010동작에서, 제2 외부 전자 장치(230)가 제1 모드로 동작하도록 설정될 수 있다. 예컨대, 제1 외부 전자 장치(220)의 모드가 제2 모드로 설정된 경우, 제1 외부 전자 장치(220)에 연결되는 제2 외부 전자 장치(230)의 모드는 자동으로 제1 모드로 설정될 수 있다.In one embodiment, in operation 1010, the second external electronic device 230 may be set to operate in the first mode. For example, when the mode of the first external electronic device 220 is set to the second mode, the mode of the second external electronic device 230 connected to the first external electronic device 220 is automatically set to the first mode. can
일 실시예에서, 제2 외부 전자 장치(230)는 1015동작에서, 제1 외부 전자 장치(220)와 화면 공유를 위한 입력을 검출할 수 있다. 예컨대, 화면 공유를 위한 입력은, 화면 공유 어플리케이션을 실행하는 입력을 포함할 수 있다. 하지만 이에 한정하는 것은 아니다.In an embodiment, the second external electronic device 230 may detect an input for screen sharing with the first external electronic device 220 in operation 1015 . For example, the input for screen sharing may include an input for executing a screen sharing application. However, it is not limited thereto.
일 실시예에서, 제2 외부 전자 장치(230)는 1025동작에서, 저장된 제1 외부 전자 장치(220)의 식별 정보(예: 제1 외부 전자 장치(220)의 토큰 값) 및 제2 외부 전자 장치(230)의 식별 정보(예: 제2 외부 전자 장치(230)의 ID)에 기반하여, 제1 푸시 정보를 생성할 수 있다. 제2 외부 전자 장치(230)는 1030동작에서, 제1 푸시 정보를 제1 외부 전자 장치(220)에 전송할 수 있다.In an embodiment, the second external electronic device 230, in operation 1025, stores identification information (eg, token value of the first external electronic device 220) of the first external electronic device 220 and the second external electronic device 220 . First push information may be generated based on identification information of the device 230 (eg, ID of the second external electronic device 230). The second external electronic device 230 may transmit the first push information to the first external electronic device 220 in operation 1030 .
일 실시예에서, 제1 외부 전자 장치(220)는 1035동작에서, 네트워크 정보를 포함하는 제2 푸시 정보를 생성하고, 1040동작에서, 제2 푸시 정보를 제2 외부 전자 장치(230)에 전송할 수 있다. 제2 외부 전자 장치(230)는 1045동작에서, 제1 외부 전자 장치(220)의 네트워크 정보에 기반하여, 제1 외부 전자 장치(220)와 연결될 수 있다. 제1 외부 전자 장치(220)는 1050동작에서, 제2 외부 전자 장치(230)와 연결될 수 있다.In an embodiment, the first external electronic device 220 generates second push information including network information in operation 1035 and transmits the second push information to the second external electronic device 230 in operation 1040. can In operation 1045, the second external electronic device 230 may be connected to the first external electronic device 220 based on network information of the first external electronic device 220. The first external electronic device 220 may be connected to the second external electronic device 230 in operation 1050 .
일 실시예에서, 제1 외부 전자 장치(220)와 제2 외부 전자 장치(230)는 1055동작에서, 정보를 공유할 수 있다. 예컨대, 제2 외부 전자 장치(230)는 제1 외부 전자 장치(220)의 디스플레이에 표시되는 화면을 수신하여, 제2 외부 전자 장치(230)의 디스플레이에 표시할 수 있다. 이에 한정하는 것은 아니며, 제2 외부 전자 장치(230)의 디스플레이에 표시된 제1 외부 전자 장치(220)의 화면에 대한 사용자 입력을 검출하는 경우, 제2 외부 전자 장치(230)는 사용자 입력에 대한 신호를 제1 외부 전자 장치(220)에 송신할 수 있다. 제2 외부 전자 장치(230)는 사용자 입력에 기반하여 제어된 어플리케이션 화면(예: 사용자 입력에 따라 제어된 어플리케이션 화면 또는 제어된 기능의 어플리케이션 화면)을 제1 외부 전자 장치(220)로부터 수신하여, 제2 외부 전자 장치(230)의 디스플레이에 표시할 수 있다.In one embodiment, the first external electronic device 220 and the second external electronic device 230 may share information in operation 1055 . For example, the second external electronic device 230 may receive a screen displayed on the display of the first external electronic device 220 and display it on the display of the second external electronic device 230 . It is not limited thereto, and when detecting a user input on the screen of the first external electronic device 220 displayed on the display of the second external electronic device 230, the second external electronic device 230 responds to the user input. A signal may be transmitted to the first external electronic device 220 . The second external electronic device 230 receives an application screen controlled based on a user input (eg, an application screen controlled according to a user input or an application screen of a controlled function) from the first external electronic device 220, It can be displayed on the display of the second external electronic device 230 .
다양한 실시예들에서, 미도시 되었으나, 제1 외부 전자 장치(220)의 모드가 제2 모드에서 제1 모드로 변경되는 경우, 제1 외부 전자 장치(220)는 제2 외부 전자 장치(230)로 화면을 공유하는 동작을 수행하지 않기 때문에, 세션(session)을 종료하고, 제2 외부 전자 장치(230)와의 연결을 해제할 수 있다. 예컨대, 제1 외부 전자 장치(220)는 제2 모드의 서비스를 종료하여, 다른 전자 장치에 의해 검색되는 동작을 종료하고, 제2 모드의 제1 외부 전자 장치(220)가 검색 가능하도록 설정된 값(예: 제2 모드로 동작하기 위해 설정된 값)을 초기화할 수 있다.In various embodiments, although not shown, when the mode of the first external electronic device 220 is changed from the second mode to the first mode, the first external electronic device 220 operates as a second external electronic device 230 Since the screen sharing operation is not performed with , the session may be terminated and the connection with the second external electronic device 230 may be disconnected. For example, the first external electronic device 220 terminates the service of the second mode, ends an operation searched by another electronic device, and sets a value set so that the first external electronic device 220 in the second mode can search. (eg, a value set to operate in the second mode) may be initialized.
다양한 실시예들에 따른 도 7 내지 도 10에서, 제1 외부 전자 장치(220)는 제1 외부 전자 장치(220)가 제1 모드 또는 제2 모드로 수행 가능하도록 함으로써, 사용자에게 크로스 장치 경험(cross device experience)을 제공할 수 있다. 예컨대, 제1 외부 전자 장치(220)를 이용하는 사용자는 제1 외부 전자 장치(220)를 제1 모드(또는 제2 모드)로 사용하는 중에 모드 변경을 위한 사용자 인터페이스를 제2 모드(또는 제1 모드)로 동작하도록 변경할 수 있다. 제1 외부 전자 장치(220)의 모드를 확장하여 지원함에 따라 제1 외부 전자 장치(220)의 사용성을 높일 수 있다.7 to 10 according to various embodiments, the first external electronic device 220 enables the first external electronic device 220 to perform in the first mode or the second mode, so that the user has a cross-device experience ( cross device experience). For example, a user using the first external electronic device 220 displays a user interface for mode change while using the first external electronic device 220 in the first mode (or second mode). mode) can be changed to operate. As the modes of the first external electronic device 220 are extended and supported, usability of the first external electronic device 220 may be enhanced.
본 명세서와 도면에 개시된 다양한 실시예들은 본 개시의 기술 내용을 쉽게 설명하고 본 개시의 이해를 돕기 위해 특정 예를 제시한 것일 뿐이며, 본 개시의 범위를 한정하고자 하는 것은 아니다. 따라서 본 개시의 범위는 여기에 개시된 실시예들 이외에도 본 개시의 기술적 사상을 바탕으로 도출되는 모든 변경 또는 변형된 형태가 본 개시의 범위에 포함되는 것으로 해석되어야 한다.The various embodiments disclosed in this specification and drawings are only presented as specific examples to easily explain the technical content of the present disclosure and help understanding of the present disclosure, and are not intended to limit the scope of the present disclosure. Therefore, the scope of the present disclosure should be construed as including all changes or modified forms derived based on the technical spirit of the present disclosure in addition to the embodiments disclosed herein.

Claims (15)

  1. 전자 장치에 있어서, In electronic devices,
    통신 회로; communication circuit;
    메모리; 및Memory; and
    상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고,a processor operatively coupled with the communication circuitry and the memory;
    상기 프로세서는,the processor,
    상기 통신 회로를 통해, 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보를 포함하는 제1 푸시 정보를 수신하고,Receiving first push information including identification information of the external electronic device from an external electronic device through the communication circuit;
    상기 제1 푸시 정보를 수신하는 것에 기반하여, 상기 제1 푸시 정보에 포함된 상기 외부 전자 장치의 식별 정보가 상기 메모리에 저장되어 있는지 여부를 확인하고,Based on receiving the first push information, determine whether identification information of the external electronic device included in the first push information is stored in the memory;
    상기 외부 전자 장치의 식별 정보가 상기 메모리에 저장되어 있는 것으로 확인되면, 상기 외부 전자 장치와 화면 공유를 위한 기능을 자동으로 실행하고, 상기 외부 전자 장치와 연결을 위한 상기 전자 장치의 네트워크 정보 및 상기 외부 전자 장치의 식별 정보에 기반하여, 제2 푸시 정보를 생성하고,When it is confirmed that the identification information of the external electronic device is stored in the memory, a function for screen sharing with the external electronic device is automatically executed, and network information of the electronic device for connection with the external electronic device and Based on the identification information of the external electronic device, second push information is generated;
    상기 통신 회로를 통해, 상기 생성된 제2 푸시 정보를 상기 외부 전자 장치에 전송하고, 및transmits the generated second push information to the external electronic device through the communication circuit; and
    상기 외부 전자 장치와 연결을 수행하도록 설정된 전자 장치.An electronic device configured to perform a connection with the external electronic device.
  2. 제 1 항에 있어서,According to claim 1,
    상기 제2 푸시 정보는, 상기 제2 푸시 정보의 전송과 관련된 파라미터를 포함하고, 및The second push information includes a parameter related to transmission of the second push information, and
    상기 파라미터는, 수신인, 우선순위, 데이터, 유효 기간, 또는 중복 푸시 정보 중 적어도 하나를 포함하는 전자 장치.The electronic device of claim 1 , wherein the parameter includes at least one of recipient, priority, data, valid period, and overlapping push information.
  3. 제 1 항에 있어서,According to claim 1,
    상기 메모리는, 상기 외부 전자 장치의 토큰 정보, 상기 외부 전자 장치의 식별 정보, 상기 외부 전자 장치와 송수신되는 데이터를 암호화 및/또는 복호화 하기 위한 비밀키, 및/또는 상기 제2 푸시 정보의 전송과 관련된 서버 키를 저장하도록 설정된 전자 장치.The memory includes token information of the external electronic device, identification information of the external electronic device, a secret key for encrypting and/or decrypting data transmitted and received with the external electronic device, and/or transmission of the second push information and An electronic device set up to store associated server keys.
  4. 제 3 항에 있어서,According to claim 3,
    상기 프로세서는,the processor,
    상기 비밀키에 기반하여, 상기 전자 장치의 네트워크 정보를 암호화하고, 및Based on the secret key, encrypt network information of the electronic device, and
    상기 전자 장치의 식별 정보 및 상기 암호화된 상기 전자 장치의 네트워크 정보에 기반하여, 상기 제2 푸시 정보를 생성하도록 설정된 전자 장치.The electronic device configured to generate the second push information based on the identification information of the electronic device and the encrypted network information of the electronic device.
  5. 제 1 항에 있어서,According to claim 1,
    상기 프로세서는,the processor,
    상기 통신 회로를 통해, 상기 외부 전자 장치로부터 상기 전자 장치와의 연결 해제를 위한 신호를 수신하면, 상기 외부 전자 장치와의 연결을 해제하도록 설정된 전자 장치.An electronic device configured to disconnect from the external electronic device when receiving a signal for disconnection from the external electronic device through the communication circuit.
  6. 전자 장치에 있어서, In electronic devices,
    통신 회로; communication circuit;
    메모리; 및Memory; and
    상기 통신 회로 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고,a processor operatively coupled with the communication circuitry and the memory;
    상기 프로세서는,the processor,
    외부 전자 장치와 화면 공유를 위한 입력을 검출하는 것에 기반하여, 상기 메모리에 저장된 상기 외부 전자 장치의 식별 정보 및 상기 전자 장치의 식별 정보에 기반하여 제1 푸시 정보를 생성하고,Based on detecting an input for screen sharing with an external electronic device, generating first push information based on identification information of the external electronic device and identification information of the electronic device stored in the memory;
    상기 통신 회로를 통해, 상기 생성된 제1 푸시 정보를 상기 외부 전자 장치에 전송하고, 및transmits the generated first push information to the external electronic device through the communication circuit; and
    상기 통신 회로를 통해, 상기 외부 전자 장치로부터, 상기 외부 전자 장치의 네트워크 정보를 포함하는 제2 푸시 정보가 수신되면, 상기 네트워크 정보에 기반하여 상기 외부 전자 장치와 연결을 수행하도록 설정된 전자 장치.The electronic device configured to perform a connection with the external electronic device based on the network information when second push information including network information of the external electronic device is received from the external electronic device through the communication circuit.
  7. 제 6 항에 있어서,According to claim 6,
    상기 제1 푸시 정보는, 상기 제1 푸시 정보의 전송과 관련된 파라미터를 포함하고, The first push information includes parameters related to transmission of the first push information;
    상기 파라미터는, 수신인, 우선순위, 데이터, 유효 기간, 또는 중복 푸시 정보 중 적어도 하나를 포함하고, 및The parameter includes at least one of recipient, priority, data, validity period, or duplicate push information, and
    상기 네트워크 정보는, IP 주소 정보 또는 포트(port) 정보를 포함하는 전자 장치.The network information includes IP address information or port information.
  8. 제 7 항에 있어서,According to claim 7,
    상기 프로세서는,the processor,
    상기 네트워크 정보에 기반하여, 소켓(socket)을 연결하고, 및Based on the network information, connect a socket, and
    상기 소켓을 연결하는 것에 기반하여, 상기 외부 전자 장치와 정보의 송수신이 가능하도록 설정된 전자 장치.An electronic device configured to transmit/receive information with the external electronic device based on the connection of the socket.
  9. 제 6 항에 있어서,According to claim 6,
    상기 메모리는, 상기 외부 전자 장치의 토큰 정보, 상기 외부 전자 장치의 식별 정보, 상기 외부 전자 장치와 송수신되는 데이터를 암호화 및/또는 복호화 하기 위한 비밀 키, 및/또는 상기 제1 푸시 정보의 전송과 관련된 서버 키를 저장하도록 설정된 전자 장치.The memory includes token information of the external electronic device, identification information of the external electronic device, a secret key for encrypting and/or decrypting data transmitted and received with the external electronic device, and/or transmission of the first push information and An electronic device set up to store associated server keys.
  10. 제 6 항에 있어서,According to claim 6,
    디스플레이를 더 포함하며,further comprising a display;
    상기 프로세서는,the processor,
    상기 제1 푸시 정보를 전송하는 것에 대한 응답으로, 상기 제1 푸시 정보의 전송 실패에 대한 메시지를 수신하는 경우, 상기 제1 푸시 정보를 재전송하는 대신, 화면 공유 기능의 실행을 가이드 하는 메시지 상기 디스플레이에 표시하도록 설정된 전자 장치.In response to the transmission of the first push information, when a message regarding transmission failure of the first push information is received, instead of retransmitting the first push information, a message guiding the execution of the screen sharing function The display An electronic device set to display on.
  11. 제 6 항에 있어서,According to claim 6,
    상기 프로세서는,the processor,
    상기 메모리에 복수의 외부 전자 장치들의 정보들이 저장된 경우, 상기 복수의 외부 전자 장치들 중 최근 연결된 외부 전자 장치의 식별 정보 및 상기 전자 장치의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 및When information on a plurality of external electronic devices is stored in the memory, first push information is generated based on identification information of a recently connected external electronic device among the plurality of external electronic devices and identification information of the electronic device; and
    상기 통신 회로를 통해, 상기 생성된 제1 푸시 정보를 상기 최근 연결된 외부 전자 장치에 전송하도록 설정된 전자 장치.An electronic device configured to transmit the generated first push information to the recently connected external electronic device through the communication circuit.
  12. 제 6 항에 있어서,According to claim 6,
    디스플레이를 더 포함하며,further comprising a display;
    상기 프로세서는,the processor,
    상기 전자 장치의 모드를 설정하기 위한 사용자 인터페이스를 상기 디스플레이에 표시하고, Displaying a user interface for setting a mode of the electronic device on the display;
    상기 사용자 인터페이스를 통해 상기 전자 장치의 모드를 설정하고, 및setting the mode of the electronic device through the user interface; and
    상기 전자 장치가 상기 설정된 모드로 동작하도록 설정하고,setting the electronic device to operate in the set mode;
    상기 전자 장치의 모드는, 제1 모드 및 제2 모드를 포함하고,The mode of the electronic device includes a first mode and a second mode,
    상기 제1 모드는, 상기 외부 전자 장치로부터 공유되는 정보를 수신하는 보조 장치로 동작하는 모드이고, 및The first mode is a mode operating as an auxiliary device receiving information shared from the external electronic device, and
    상기 제2 모드는, 상기 전자 장치와 관련된 정보를 제2 외부 전자 장치에 공유하는 주 장치로 동작하는 모드인 전자 장치.The second mode is a mode in which the electronic device operates as a main device that shares information related to the electronic device with a second external electronic device.
  13. 제 12 항에 있어서,According to claim 12,
    상기 프로세서는,the processor,
    상기 전자 장치의 모드가 상기 제1 모드로 설정되는 경우, 상기 메모리에 저장된 외부 전자 장치의 식별 정보 및 상기 전자 장치의 식별 정보에 기반하여 제1 푸시 정보를 생성하고, 상기 통신 회로를 통해, 상기 생성된 제1 푸시 정보를 상기 외부 전자 장치에 전송하고, 및When the mode of the electronic device is set to the first mode, first push information is generated based on the identification information of the external electronic device and the identification information of the electronic device stored in the memory, and through the communication circuit, the transmits the generated first push information to the external electronic device; and
    상기 전자 장치의 모드가 상기 제2 모드로 설정되는 경우, 상기 전자 장치가 상기 제2 외부 전자 장치에 의해 검색 가능한 상태 또는 제2 외부 전자 장치와의 연결을 대기하는 상태가 되도록 설정하는 전자 장치.When the mode of the electronic device is set to the second mode, the electronic device is configured to be in a searchable state by the second external electronic device or in a waiting state for connection with the second external electronic device.
  14. 제 6 항에 있어서,According to claim 6,
    상기 프로세서는,the processor,
    상기 연결된 외부 전자 장치와 정보를 송수신하는 중에 상기 전자 장치의 모드를 변경하기 위한 입력이 검출되면, 상기 외부 전자 장치와의 연결을 해제하고, 및When an input for changing the mode of the electronic device is detected while transmitting and receiving information with the connected external electronic device, the connection with the external electronic device is disconnected, and
    제2 외부 전자 장치와의 연결을 위한 대기 상태가 되도록 설정된 전자 장치.An electronic device set to be in a standby state for connection with a second external electronic device.
  15. 전자 장치의 외부 전자 장치 연결 방법에 있어서,A method for connecting an external electronic device of an electronic device,
    외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보를 포함하는 제1 푸시 정보를 수신하는 동작;receiving first push information including identification information of the external electronic device from an external electronic device;
    상기 제1 푸시 정보를 수신하는 것에 기반하여, 상기 제1 푸시 정보에 포함된 상기 외부 전자 장치의 식별 정보가 메모리에 저장되어 있는지 여부를 확인하는 동작;determining whether identification information of the external electronic device included in the first push information is stored in a memory, based on receiving the first push information;
    상기 외부 전자 장치의 식별 정보가 상기 메모리에 저장되어 있는 것으로 확인되면, 상기 외부 전자 장치와 화면 공유를 위한 기능을 자동으로 실행하고, 상기 외부 전자 장치와 연결을 위한 상기 전자 장치의 네트워크 정보 및 상기 외부 전자 장치의 식별 정보에 기반하여, 제2 푸시 정보를 생성하는 동작;When it is confirmed that the identification information of the external electronic device is stored in the memory, a function for screen sharing with the external electronic device is automatically executed, and network information of the electronic device for connection with the external electronic device and generating second push information based on the identification information of the external electronic device;
    상기 생성된 제2 푸시 정보를 상기 외부 전자 장치에 전송하는 동작; 및transmitting the generated second push information to the external electronic device; and
    상기 외부 전자 장치와 연결을 수행하는 동작을 포함하는 방법.A method comprising performing a connection with the external electronic device.
PCT/KR2022/010236 2021-07-15 2022-07-13 Electronic device and method for connecting external electronic device by using same WO2023287207A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
KR10-2021-0092977 2021-07-15
KR20210092925 2021-07-15
KR20210092977 2021-07-15
KR10-2021-0092925 2021-07-15
KR1020210138104A KR20230012392A (en) 2021-07-15 2021-10-18 Electronic device and method for connecting external electronic device using the same
KR10-2021-0138104 2021-10-18

Publications (1)

Publication Number Publication Date
WO2023287207A1 true WO2023287207A1 (en) 2023-01-19

Family

ID=84920232

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2022/010236 WO2023287207A1 (en) 2021-07-15 2022-07-13 Electronic device and method for connecting external electronic device by using same

Country Status (1)

Country Link
WO (1) WO2023287207A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101675226B1 (en) * 2015-05-13 2016-11-10 (주) 비앤디 Interface for mirroring between user terminal and vehicle terminal and method for providing interface
US20170131963A1 (en) * 2012-06-08 2017-05-11 Apple Inc. System and method for display mirroring
KR101913256B1 (en) * 2012-01-06 2018-12-28 엘지전자 주식회사 Apparatus of processing a service and method for processing the same
KR20190035414A (en) * 2017-09-26 2019-04-03 엘지전자 주식회사 Wireless device and operating method thereof
KR20200022040A (en) * 2017-09-19 2020-03-02 엘지전자 주식회사 Display device and terminal controlling it

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101913256B1 (en) * 2012-01-06 2018-12-28 엘지전자 주식회사 Apparatus of processing a service and method for processing the same
US20170131963A1 (en) * 2012-06-08 2017-05-11 Apple Inc. System and method for display mirroring
KR101675226B1 (en) * 2015-05-13 2016-11-10 (주) 비앤디 Interface for mirroring between user terminal and vehicle terminal and method for providing interface
KR20200022040A (en) * 2017-09-19 2020-03-02 엘지전자 주식회사 Display device and terminal controlling it
KR20190035414A (en) * 2017-09-26 2019-04-03 엘지전자 주식회사 Wireless device and operating method thereof

Similar Documents

Publication Publication Date Title
WO2022154272A1 (en) Iot device and method for onboarding iot device to server
WO2021162371A1 (en) Method for communication based on state of external electronic device and electronic device thereof
WO2022145768A1 (en) Electronic device performing wireless communication with accessory device, and operating method thereof
WO2023287207A1 (en) Electronic device and method for connecting external electronic device by using same
WO2022030801A1 (en) Method for managing wireless connection of electronic device and device therefor
WO2020180113A1 (en) Method for sharing channel information in bluetooth network, and electronic device therefor
WO2022203184A1 (en) Electronic device for sharing function and operating method therefor
WO2023018189A1 (en) Method for managing electronic devices on basis of group account, and device providing same
WO2023013845A1 (en) Electronic device and method for installing embedded-subscriber identification module profile in electronic device
WO2023054839A1 (en) Electronic device and method for adaptively providing authentication scheme of service on basis of situation, and non-transitory computer-readable storage medium
WO2023068507A1 (en) Electronic device for providing rcs function, and operation method thereof
WO2021256747A1 (en) Paired device information-based communication method and electronic device therefor
WO2024091022A1 (en) Method for connecting devices using biometric information and electronic device therefor
WO2023113370A1 (en) Electronic device for wireless lan communication with plurality of external apparatuses, and operation method therefor
WO2022098015A1 (en) Electronic device for generating transaction including internal data, and operating method thereof
WO2024029725A1 (en) Electronic device communicating via bluetooth connection and operation method therefor
WO2023090722A1 (en) Response packet transmission device and method
WO2022250280A1 (en) Electronic device for transmitting files and method for operating same
WO2024014654A1 (en) Electronic device for performing call recording and operation method thereof
WO2022139131A1 (en) Electronic device for processing duplicate message, and operating method therefor
WO2023214695A2 (en) Electronic device and method for substitute agreement for inactive node
WO2022211236A1 (en) Electronic device for allocating ip address of external electronic device and method for operating electronic device
WO2022220584A1 (en) Electronic device, and method by which electronic device performs cloud onboarding of external electronic device
WO2024076209A1 (en) Method and device for remote control of electronic device
WO2022035028A1 (en) Electronic device and method for controlling bluetooth connection in electronic device

Legal Events

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

Ref document number: 22842469

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE