KR20230114663A - Electronic device and the method to alarm and connect electronic pen - Google Patents

Electronic device and the method to alarm and connect electronic pen Download PDF

Info

Publication number
KR20230114663A
KR20230114663A KR1020220040396A KR20220040396A KR20230114663A KR 20230114663 A KR20230114663 A KR 20230114663A KR 1020220040396 A KR1020220040396 A KR 1020220040396A KR 20220040396 A KR20220040396 A KR 20220040396A KR 20230114663 A KR20230114663 A KR 20230114663A
Authority
KR
South Korea
Prior art keywords
electronic pen
electronic device
electronic
pen
communication
Prior art date
Application number
KR1020220040396A
Other languages
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
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2022/021431 priority Critical patent/WO2023146142A1/en
Publication of KR20230114663A publication Critical patent/KR20230114663A/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/038Indexing scheme relating to G06F3/038
    • G06F2203/0384Wireless input, i.e. hardware and software details of wireless interface arrangements for pointing devices

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

다양한 실시예에 따른 전자 장치는, 디스플레이, 통신 모듈, 메모리, 및 상기 디스플레이, 상기 통신 모듈 및 상기 메모리와 작동적으로(operatively) 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 디스플레이에 대한 제1전자 펜의 터치 입력을 수신하고, 상기 터치 입력을 수신함에 대응하여 상기 제1전자 펜이 상기 전자 장치와 상기 통신 모듈을 통해 연결되어 있는지 여부를 확인하고, 상기 제1전자 펜이 상기 전자 장치와 연결되어 있지 않음을 확인함에 대응하여 상기 전자 장치와 연결되어 있는 전자 펜이 존재하는지 여부를 확인하고, 상기 전자 장치와 연결되어 있는 제2전자 펜이 존재함을 확인함에 기반하여 상기 제2전자 펜에 알림 신호를 전송하고, 및 상기 전자 장치와 연결되어 있는 전자 펜이 존재하지 않음을 확인함에 기반하여 상기 제1전자 펜과 통신 연결을 수립하도록 설정될 수 있다.
그 외에 다양한 실시예가 가능하다.
An electronic device according to various embodiments includes a display, a communication module, a memory, and a processor operatively connected to the display, the communication module, and the memory, wherein the processor includes a first electronic device for the display. Receiving a touch input from a pen, determining whether the first electronic pen is connected to the electronic device through the communication module in response to receiving the touch input, and determining whether the first electronic pen is connected to the electronic device. In response to confirming that it is not, it is checked whether an electronic pen connected to the electronic device exists, and based on confirming that a second electronic pen connected to the electronic device exists, the second electronic pen It may be configured to transmit a notification signal and to establish a communication connection with the first electronic pen based on confirming that there is no electronic pen connected to the electronic device.
Various other embodiments are possible.

Description

전자 장치 및 전자 펜 알림 및 연결 방법{ELECTRONIC DEVICE AND THE METHOD TO ALARM AND CONNECT ELECTRONIC PEN}Electronic device and electronic pen notification and connection method {ELECTRONIC DEVICE AND THE METHOD TO ALARM AND CONNECT ELECTRONIC PEN}

본 문서는 전자 장치에 관한 것이며, 예를 들어 전자 장치를 이용하여 전자 펜으로 알림을 전송하고, 전자 펜과 통신 연결하는 기술에 관한 것이다.This document relates to an electronic device, and, for example, to a technology for transmitting a notification to an electronic pen using an electronic device and communicating with the electronic pen.

이동통신 기술 및 하드웨어/소프트웨어 기술의 발달에 따라 휴대용 전자 장치(이하, 전자 장치)는 종래의 통화 기능에서 나아가 다양한 기능들을 구현할 수 있게 되었다. 전자 장치는 외부 장치와의 상호작용을 통하여 사용자에게 다양한 기능을 제공할 수 있다. 예를 들어, 전자 장치는 스타일러스에 의한 터치 입력을 수신하고 정해진 다양한 기능을 수행할 수 있다.With the development of mobile communication technology and hardware/software technology, a portable electronic device (hereinafter referred to as an electronic device) can implement various functions beyond a conventional call function. An electronic device may provide various functions to a user through interaction with an external device. For example, an electronic device may receive a touch input by a stylus and perform various predetermined functions.

전자 장치는 스타일러스와 블루투스 연결과 같은 통신 연결을 수립하고 신호를 주고받을 수 있으며, 스타일러스가 전자 장치의 디스플레이를 터치하는 경우 입력되는 주파수와 맵핑된 기능을 제공할 수 있다. 예를 들어, 제1주파수를 수신하면 제1주파수와 맵핑된 제1기능을 제공하고, 제2주파수를 수신하면 제2주파수와 맵핑된 제2기능을 제공할 수 있다.The electronic device may establish a communication connection with the stylus, such as a Bluetooth connection, send and receive signals, and provide a function mapped to an input frequency when the stylus touches the display of the electronic device. For example, when a first frequency is received, a first function mapped with the first frequency may be provided, and when a second frequency is received, a second function mapped with the second frequency may be provided.

전자 펜은 주파수를 사용하여 전자 장치와 상호작용 하며, 전자 장치와 통신 연결된 전자 펜이 아니더라도 동일한 주파수를 사용한다면 전자 장치 상에서 터치 입력을 수신할 수 있다. 그러나 종래의 전자 장치는 사용자가 통신 연결되지 않은 펜으로 터치하는 경우 터치 입력만 수신할 수 있을 뿐 통신 연결을 활용한 다양한 동작들을 지원할 수 없는 문제가 있었다. 이에 따라 사용자는 전자 장치와 연결된 전자 펜을 사용해야 하나, 사용자가 여러 개의 전자 펜을 소유하고 있는 경우 어느 것이 전자 장치와 통신 연결된 것인지 파악하기 어려운 문제가 있었다.The electronic pen interacts with the electronic device using a frequency, and even if the electronic pen is not communicatively connected to the electronic device, it can receive a touch input on the electronic device if the same frequency is used. However, conventional electronic devices have a problem in that they can only receive touch input when a user touches with a pen that is not connected to communication, but cannot support various operations using communication connection. Accordingly, the user needs to use the electronic pen connected to the electronic device, but when the user owns several electronic pens, it is difficult to determine which one is communicatively connected to the electronic device.

또한, 종래의 전자 장치는 전자 장치 상에서 전자 펜을 제어하고자 하는 경우 디스플레이를 터치해야만 전자 펜 제어 메뉴가 생성되어, 사용하기 번거로운 문제점이 있었다.In addition, in the conventional electronic device, when an electronic pen is to be controlled on the electronic device, an electronic pen control menu is generated only when the display is touched, which is cumbersome to use.

본 문서의 다양한 실시예들은 상기와 같이 사용자가 전자 장치와 통신 연결된 전자 펜을 찾으려 하거나 전자 펜에 대한 조작을 하고자 하는 경우, 사용자에게 전자 장치와 통신 연결된 전자 펜을 알려주거나 현재 터치 입력하는 전자 펜과 통신 연결을 수립하는 방법을 제공할 수 있다.Various embodiments of the present document inform the user of the electronic pen connected to the electronic device, or the electronic pen currently touch-input, when the user wants to find the electronic pen connected to the electronic device or to manipulate the electronic pen as described above. and a method for establishing a communication connection.

다양한 실시예에 따른 전자 장치는, 디스플레이, 통신 모듈, 메모리, 및 상기 디스플레이, 상기 통신 모듈 및 상기 메모리와 작동적으로(operatively) 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 디스플레이에 대한 제1전자 펜의 터치 입력을 수신하고, 상기 터치 입력을 수신함에 대응하여 상기 제1전자 펜이 상기 전자 장치와 상기 통신 모듈을 통해 연결되어 있는지 여부를 확인하고, 상기 제1전자 펜이 상기 전자 장치와 연결되어 있지 않음을 확인함에 대응하여 상기 전자 장치와 연결되어 있는 전자 펜이 존재하는지 여부를 확인하고, 상기 전자 장치와 연결되어 있는 제2전자 펜이 존재함을 확인함에 기반하여 상기 제2전자 펜에 알림 신호를 전송하고, 및 상기 전자 장치와 연결되어 있는 전자 펜이 존재하지 않음을 확인함에 기반하여 상기 제1전자 펜과 통신 연결을 수립하도록 설정될 수 있다.An electronic device according to various embodiments includes a display, a communication module, a memory, and a processor operatively connected to the display, the communication module, and the memory, wherein the processor includes a first electronic device for the display. Receiving a touch input from a pen, determining whether the first electronic pen is connected to the electronic device through the communication module in response to receiving the touch input, and determining whether the first electronic pen is connected to the electronic device. In response to confirming that it is not, it is checked whether an electronic pen connected to the electronic device exists, and based on confirming that a second electronic pen connected to the electronic device exists, the second electronic pen It may be configured to transmit a notification signal and to establish a communication connection with the first electronic pen based on confirming that there is no electronic pen connected to the electronic device.

다양한 실시예에 따른 전자 펜은, 통신 모듈, 메모리, 및 상기 통신 모듈 및 상기 메모리와 작동적으로(operatively) 연결된 프로세서를 포함하고, 상기 프로세서는, 공진 주파수를 감지함에 대응하여 전자 장치로 통신 신호를 전송하고, 상기 통신 신호에 대응하는 응답 신호를 수신하고, 상기 응답 신호를 수신함에 대응하여 상기 전자 장치로 제어 신호를 전송하도록 설정될 수 있다.An electronic pen according to various embodiments includes a communication module, a memory, and a processor operatively connected to the communication module and the memory, wherein the processor sends a communication signal to an electronic device in response to detecting a resonant frequency. It may be set to transmit, receive a response signal corresponding to the communication signal, and transmit a control signal to the electronic device in response to receiving the response signal.

다양한 실시예에 따른 전자 펜 알림 및 연결 방법은, 디스플레이에 대한 제1전자 펜의 터치 입력을 수신하는 동작, 상기 터치 입력을 수신함에 대응하여 상기 제1전자 펜이 전자 장치와 통신 모듈을 통해 연결되어 있는지 여부를 확인하는 동작, 상기 제1전자 펜이 상기 전자 장치와 연결되어 있지 않음을 확인함에 대응하여 상기 전자 장치와 연결되어 있는 전자 펜이 존재하는지 여부를 확인하는 동작, 상기 전자 장치와 연결되어 있는 제2전자 펜이 존재함을 확인함에 기반하여 상기 제2전자 펜에 알림 신호를 전송하는 동작, 및 상기 전자 장치와 연결되어 있는 전자 펜이 존재하지 않음을 확인함에 기반하여 상기 제1전자 펜과 통신 연결을 수립하는 동작을 포함할 수 있다.An electronic pen notification and connection method according to various embodiments includes an operation of receiving a touch input of a first electronic pen on a display, and a connection between the first electronic pen and an electronic device through a communication module in response to receiving the touch input. Operation of checking whether the electronic pen is connected to the electronic device, operation of checking whether or not there is an electronic pen connected to the electronic device in response to confirming that the first electronic pen is not connected to the electronic device, connection with the electronic device An operation of transmitting a notification signal to the second electronic pen based on confirmation that the second electronic pen exists, and an operation of transmitting a notification signal to the second electronic pen based on confirmation that the electronic pen connected to the electronic device does not exist. It may include an operation to establish a communication connection with the pen.

다양한 실시예에 따르면, 전자 장치는 통신 연결되지 않은 전자 펜이 디스플레이를 터치하는 경우, 현재 통신 연결된 전자 펜이 있는지 확인할 수 있다. 현재 통신 연결된 전자 펜이 없는 경우, 전자 장치는 현재 디스플레이를 터치한 전자 펜과 통신 연결을 수립할 수 있다. 현재 통신 연결된 전자 펜이 있는 경우, 전자 장치는 통신 연결된 전자 펜으로 알림을 전송할 수 있다. 일 실시예에 따르면, 전자 장치는 통신 연결된 전자 펜에 움직임이 감지되는 경우 디스플레이에 전자 펜을 지시하는 그래픽 객체를 표시하여, 사용자에게 현재 터치하고 있는 전자 펜이 통신 연결된 것임을 알릴 수 있다.According to various embodiments, when an electronic pen not connected in communication touches the display, the electronic device may determine whether there is an electronic pen currently connected in communication. If there is no electronic pen currently connected in communication, the electronic device may establish a communication connection with the electronic pen currently touching the display. If there is an electronic pen currently connected in communication, the electronic device may transmit a notification to the electronic pen connected in communication. According to an embodiment, the electronic device may display a graphic object indicating the electronic pen on the display when motion is sensed from the electronic pen connected through communication, thereby notifying the user that the electronic pen currently being touched is connected through communication.

그 외에 본 전자 장치의 다양한 실시예들로 인하여 얻을 수 있거나 예측되는 효과에 대해서는 전자 장치의 실시예에 대한 상세한 설명에서 직접적으로 또는 암시적으로 개시하도록 한다. 예컨대, 전자 장치의 다양한 실시예들에 따라 예측되는 다양한 효과에 대해서는 후술될 상세한 설명 내에서 개시될 것이다.In addition, effects that can be obtained or predicted due to various embodiments of the present electronic device will be directly or implicitly disclosed in the detailed description of the embodiment of the electronic device. For example, various effects predicted according to various embodiments of an electronic device will be disclosed within the detailed description to be described later.

도 1은 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 다양한 실시예에 따른 전자 펜을 도시하는 블록도이다.
도 3은 본 발명의 다양한 실시예에 따른 전자 장치의 블록도를 도시한다.
도 4는 본 발명의 다양한 실시예에 따른 전자 장치 및 외부 전자 장치의 구성을 도시하는 도면이다.
도 5는 다양한 실시예에 따른 전자 장치가 전자 펜과 통신 연결을 수립하거나, 전자 펜으로 알림 신호를 전송하는 것을 도시한 것이다.
도 6a는 다양한 실시예에 따른 전자 장치가 전자 펜과 통신 연결을 수립하기 위한 가이드 화면을 도시한 것이다.
도 6b는 다양한 실시예에 따른 전자 펜에서 발광 소자를 이용하여 사용자에게 알림을 제공하는 것을 도시한 것이다.
도 6c는 다양한 실시예에 따른 전자 장치와 통신 연결되어 있는 전자 펜에서 움직임이 감지되는 경우 전자 장치에서 그래픽 오브젝트를 표시하는 것을 도시한 것이다.
도 7은 다양한 실시예에 따른 전자 장치의 전자 펜 알림 및 연결 방법의 순서도이다.
도 8은 다양한 실시예에 따른 전자 장치와 전자 펜의 동작 순서도이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2 is a block diagram illustrating an electronic pen according to various embodiments.
3 shows a block diagram of an electronic device according to various embodiments of the present invention.
4 is a diagram illustrating configurations of an electronic device and an external electronic device according to various embodiments of the present disclosure.
5 illustrates that an electronic device establishes a communication connection with an electronic pen or transmits a notification signal to an electronic pen according to various embodiments.
6A illustrates a guide screen for an electronic device to establish a communication connection with an electronic pen according to various embodiments.
6B illustrates providing a notification to a user by using a light emitting device in an electronic pen according to various embodiments.
6C illustrates displaying a graphic object in an electronic device when motion is detected by an electronic pen connected to the electronic device through communication according to various embodiments of the present disclosure.
7 is a flowchart of a notification and connection method of an electronic pen of an electronic device according to various embodiments.
8 is an operation flowchart of an electronic device and an electronic pen according to various embodiments.

이하, 본 발명의 실시 예를 첨부된 도면에 의거하여 상세히 설명한다. Hereinafter, embodiments of the present invention will be described in detail based on the accompanying drawings.

실시 예를 설명함에 있어서 본 발명이 속하는 기술분야에 익히 알려져 있고 본 발명과 직접적으로 관련이 없는 기술 내용에 대해서는 설명을 생략한다. 또한, 실질적으로 동일한 구성과 기능을 가진 구성 요소들에 대해서는 상세한 설명을 생략하도록 한다.In describing the embodiments, descriptions of technical contents that are well known in the art to which the present invention pertains and are not directly related to the present invention will be omitted. In addition, detailed descriptions of components having substantially the same configuration and function will be omitted.

마찬가지의 이유로 첨부 도면에 있어서 일부 구성요소는 과장되거나 생략되거나 또는 개략적으로 도시되었으며, 각 구성요소의 크기는 실제 크기를 전적으로 반영하는 것이 아니다. 따라서 본 발명은 첨부한 도면에 그려진 상대적인 크기나 간격에 의해 제한되어지지 않는다.For the same reason, some components in the accompanying drawings are exaggerated, omitted, or schematically illustrated, and the size of each component does not entirely reflect the actual size. Accordingly, the present invention is not limited by the relative size or spacing drawn in the accompanying drawings.

도 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 one 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, the 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 may include 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, image signal processor or communication processor) may be implemented as part of other functionally related components (eg, camera module 180 or 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 one embodiment, the display module 160 may include a touch sensor set to detect a touch or a pressure sensor set 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 one 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 IR (infrared) 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 is 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 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, legacy 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 is a peak data rate for eMBB realization (eg, 20 Gbps or more), a loss coverage for mMTC realization (eg, 164 dB or less), or a U-plane latency for URLLC realization (eg, 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 one 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 lower 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 "A Each of the phrases such as "at least one of , 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 a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited. A (e.g., first) component is said to be "coupled" or "connected" to another (e.g., 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 (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store TM ) or on two user devices ( 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 device-readable storage medium 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는 다양한 실시예에 따른 전자 펜을 도시하는 블록도이다. 2 is a block diagram illustrating an electronic pen according to various embodiments.

도 2를 참조하면, 일 실시예에 따른 전자 펜(201)은, 펜 프로세서(220), 메모리(230), 공진 회로(287), 충전 회로(288), 배터리(289), 통신 회로(290), 안테나(297), 트리거 회로(298) 및/또는 센서 회로(299)를 포함할 수 있다. 어떤 실시예들에서는, 펜 프로세서(220), 공진 회로(287)의 적어도 일부 및/또는 통신 회로(290)의 적어도 일부는 인쇄회로기판 상에 또는 칩 형태로 구성될 수 있다. 펜 프로세서(220), 공진 회로(287) 및/또는 통신 회로(290)는 메모리(230), 충전 회로(288), 배터리(289), 안테나(297), 트리거 회로(298) 및/또는 센서 회로(299)와 전기적으로 연결될 수 있다. Referring to FIG. 2 , the electronic pen 201 according to an embodiment includes a pen processor 220, a memory 230, a resonance circuit 287, a charging circuit 288, a battery 289, and a communication circuit 290. ), an antenna 297, a trigger circuit 298 and/or a sensor circuit 299. In some embodiments, the pen processor 220, at least a portion of the resonant circuit 287, and/or at least a portion of the communication circuit 290 may be configured on a printed circuit board or in the form of a chip. Pen processor 220, resonance circuit 287 and/or communication circuit 290 may include memory 230, charging circuit 288, battery 289, antenna 297, trigger circuit 298 and/or sensor. It may be electrically connected to circuit 299.

펜 프로세서(220)는, 커스터마이즈드(customized) 하드웨어 모듈 또는 소프트웨어(예를 들어, 어플리케이션 프로그램)를 실행하도록 구성된 제너릭(generic) 프로세서를 포함할 수 있다. 펜 프로세서(220)는, 전자 펜(201)에 구비된 다양한 센서들, 데이터 측정 모듈, 입출력 인터페이스, 전자 펜(201)의 상태 또는 환경을 관리하는 모듈 또는 통신 모듈 중 적어도 하나를 포함하는 하드웨어적인 구성 요소(기능) 또는 소프트웨어적인 요소(프로그램)를 포함할 수 있다. 상기 펜 프로세서(220)는 예를 들어, 하드웨어, 소프트웨어 또는 펌웨어(firmware) 중 하나 또는 둘 이상의 조합을 포함할 수 있다. The pen processor 220 may include a generic processor configured to execute a customized hardware module or software (eg, an application program). The pen processor 220 is hardware that includes at least one of various sensors provided in the electronic pen 201, a data measurement module, an input/output interface, a module for managing a state or environment of the electronic pen 201, or a communication module. It may include components (functions) or software elements (programs). The pen processor 220 may include, for example, one or a combination of two or more of hardware, software, or firmware.

일 실시 예에 따르면, 펜 프로세서(220)는 버튼의 눌림 상태를 나타내는 정보, 센서 회로(299)에 의하여 획득된 센싱 정보, 및/또는 센싱 정보에 기반하여 계산된 정보(예: 전자 펜(201)의 위치와 연관된 정보)를, 통신 회로(290)를 통하여 전자 장치(101)로 송신하도록 설정될 수 있다.According to an embodiment, the pen processor 220 includes information representing a pressed state of a button, sensing information obtained by the sensor circuit 299, and/or information calculated based on the sensing information (e.g., the electronic pen 201 ) may be set to transmit information related to the location of the electronic device 101 through the communication circuit 290 .

공진 회로(287)는, 코일(coil)(또는, 인덕터(inductor)) 및/또는 캐패시터(capacitor)를 포함할 수 있다. 공진 회로(287)는 전자 장치(101)의 디지타이저(예: 도 1의 디스플레이 모듈(160))로부터 발생되는 전자기장 신호에 기반하여 공진될 수 있으며, 공진에 의하여 전자기 공명 방식(electro-magnetic resonance, EMR) 입력 신호(또는, 자기장)를 방사할 수 있다. 전자 펜(201)이 EMR 방식에 의하여 신호를 전송하는 경우, 전자 펜(201)은 전자 장치(101)의 유도성 패널(inductive panel)로부터 발생되는 전자기장(electromagnetic field)에 기반하여, 공진 주파수를 포함하는 신호를 생성할 수 있다. 전자 펜(201)이 AES(active electrostatic) 방식에 의하여 신호를 전송하는 경우, 전자 펜(201)은 전자 장치(101)와 용량 결합(capacity coupling)을 이용하여 신호를 생성할 수 있다. 전자 펜(201)이 ECR(electrically coupled resonance) 방식에 의하여 신호를 전송하는 경우, 전자 펜(201)은 전자 장치의 용량성(capacitive) 장치로부터 발생되는 전기장(electric field)에 기반하여, 공진 주파수를 포함하는 신호를 생성할 수 있다. The resonant circuit 287 may include a coil (or inductor) and/or a capacitor. The resonance circuit 287 may be resonated based on an electromagnetic field signal generated from the digitizer (eg, the display module 160 of FIG. 1) of the electronic device 101, and by resonance, an electromagnetic resonance method (electro-magnetic resonance, EMR) input signal (or magnetic field) can be radiated. When the electronic pen 201 transmits a signal by the EMR method, the electronic pen 201 determines the resonant frequency based on an electromagnetic field generated from an inductive panel of the electronic device 101. signals can be generated. When the electronic pen 201 transmits a signal using an active electrostatic (AES) method, the electronic pen 201 may generate a signal using capacitive coupling with the electronic device 101 . When the electronic pen 201 transmits a signal by electrically coupled resonance (ECR) method, the electronic pen 201 transmits a resonance frequency based on an electric field generated from a capacitive device of an electronic device. It is possible to generate a signal containing.

전자 장치(101)는, 전자기 공명 방식 입력 신호를 이용하여, 전자 장치(101) 상의 전자 펜(201)의 위치를 확인할 수 있다. 예를 들어, 전자 장치(101)는, 디지타이저 내의 복수 개의 채널들(예: 복수 개의 루프 코일들) 각각에서, 전자기 공명 방식 입력 신호에 의하여 발생되는 유도 기전력(예: 출력 전류)의 크기에 기반하여, 전자 펜(201)의 위치를 확인할 수 있다. 한편, 상술한 바에서는, 전자 장치(101) 및 전자 펜(201)이 EMR 방식에 기반하여 동작하는 것과 같이 설명되었지만, 이는 단순히 예시적인 것으로, 전자 장치(101)는 ECR(electrically coupled resonance) 방식에 기반하여 전기장에 기반한 신호를 발생시킬 수도 있다. 전자 펜(201)의 공진 회로는, 전기장에 의하여 공진될 수 있다. 전자 장치(101)는, 전자 펜(201)에서의 공진에 의한 복수 개의 채널들(예: 전극들)에서의 전위를 확인할 수 있으며, 전위에 기반하여 전자 펜(201)의 위치를 확인할 수도 있다. 전자 펜(201)은, AES(active electrostatic) 방식으로 구현될 수도 있으며, 그 구현 종류에는 제한이 없음을 당업자는 이해할 것이다. The electronic device 101 may check the position of the electronic pen 201 on the electronic device 101 using an electromagnetic resonance method input signal. For example, the electronic device 101 is based on the magnitude of an induced electromotive force (eg, output current) generated by an electromagnetic resonance method input signal in each of a plurality of channels (eg, a plurality of loop coils) in the digitizer. Thus, the position of the electronic pen 201 can be confirmed. Meanwhile, in the above description, the electronic device 101 and the electronic pen 201 have been described as operating based on the EMR method, but this is merely exemplary, and the electronic device 101 is an electrically coupled resonance (ECR) method. A signal based on an electric field may be generated based on . The resonance circuit of the electronic pen 201 may be resonated by an electric field. The electronic device 101 can check potentials in a plurality of channels (eg, electrodes) by resonance in the electronic pen 201, and can also check the position of the electronic pen 201 based on the potentials. . The electronic pen 201 may be implemented in an active electrostatic (AES) method, and those skilled in the art will understand that there is no limitation in the type of implementation.

일 실시 예에 따르면, 상기 공진 회로(287)는 사용자의 조작 상태에 따라 전자기장의 세기 또는 주파수를 변경시키는데 이용될 수 있다. 예를 들어, 상기 공진 회로(287)는, 호버링 입력, 드로잉 입력, 버튼 입력 또는 이레이징 입력을 인식하기 위한 다양한 주파수를 제공할 수 있다. 예를 들어, 공진 회로(287)는, 복수 개의 커패시터의 연결 조합에 따라 다양한 공진 주파수를 제공할 수 있거나, 또는 가변 인덕터, 및/또는 가변 커패시터에 기반하여 다양한 공진 주파수를 제공할 수도 있다.According to one embodiment, the resonant circuit 287 may be used to change the strength or frequency of the electromagnetic field according to a user's manipulation state. For example, the resonance circuit 287 may provide various frequencies for recognizing a hovering input, a drawing input, a button input, or an erasing input. For example, the resonant circuit 287 may provide various resonant frequencies according to a connection combination of a plurality of capacitors or may provide various resonant frequencies based on a variable inductor and/or a variable capacitor.

메모리(230)는, 전자 펜(201)의 동작에 관련된 정보를 저장할 수 있다. 예를 들어, 상기 정보는 상기 전자 장치(101)와의 통신을 위한 정보 및 전자 펜(201)의 입력 동작에 관련된 주파수 정보를 포함할 수 있다. 아울러, 메모리(230)는, 센서 회로(299)의 센싱 데이터로부터 전자 펜(201)의 위치에 대한 정보(예: 좌표 정보, 및/또는 변위 정보)를 계산하기 위한 프로그램(또는, 어플리케이션, 알고리즘, 또는 처리 루프)을 저장할 수도 있다. 메모리(230)는, 통신 회로(290)의 통신 스택을 저장할 수도 있다. 구현에 따라, 통신 회로(290) 및/또는 펜 프로세서(220)는 전용 메모리를 포함할 수도 있다.The memory 230 may store information related to the operation of the electronic pen 201 . For example, the information may include information for communication with the electronic device 101 and frequency information related to an input operation of the electronic pen 201 . In addition, the memory 230 may include a program (or application or algorithm) for calculating information on the position of the electronic pen 201 (eg, coordinate information and/or displacement information) from the sensing data of the sensor circuit 299. , or processing loops). The memory 230 may store a communication stack of the communication circuit 290 . Depending on implementation, communication circuitry 290 and/or pen processor 220 may include dedicated memory.

통신 회로(290)는, 전자 펜(201)과 전자 장치(101)의 통신 모듈(190) 간의 무선 통신 기능을 수행하도록 구성될 수 있다. 일 실시 예에 따르면, 통신 회로(290)는 근거리 통신 방식을 이용하여 전자 펜(201)의 상태 정보, 입력 정보, 및/또는 위치와 연관된 정보를 전자 장치(101)로 전송할 수 있다. 예를 들어, 통신 회로(290)는 센서 회로(299)를 통해 획득한 전자 펜(201)의 방향 정보(예: 모션 센서 데이터), 마이크로 폰을 통해 입력된 음성 정보 또는 배터리(289)의 잔량 정보를 전자 장치(101)로 전송할 수 있다. 예를 들어, 통신 회로(290)는, 센서 회로(299)로부터 획득된 센싱 데이터, 및/또는 센싱 데이터에 기반하여 확인된 전자 펜(201)의 위치와 연관된 정보를 전자 장치(101)로 송신할 수 있다. 예를 들어, 통신 회로(290)는, 트리거 회로(298)를 통해 획득한 전자 펜(201)에 포함된 버튼의 상태에 대한 정보를 전자 장치(101)로 송신할 수 있다. 일 예로, 근거리 통신 방식은 블루투스, BLE(bluetooth low energy) NFC, Wi-Fi direct, UWB(ultra wideband) 또는 무선랜 중 적어도 하나를 포함할 수 있으나, 그 종류에는 제한이 없다.The communication circuit 290 may be configured to perform a wireless communication function between the electronic pen 201 and the communication module 190 of the electronic device 101 . According to an embodiment, the communication circuit 290 may transmit state information, input information, and/or location-related information of the electronic pen 201 to the electronic device 101 using a short-range communication method. For example, the communication circuit 290 may include direction information (eg, motion sensor data) of the electronic pen 201 obtained through the sensor circuit 299, voice information input through a microphone, or remaining amount of the battery 289. Information may be transmitted to the electronic device 101 . For example, the communication circuit 290 transmits sensing data acquired from the sensor circuit 299 and/or information related to the position of the electronic pen 201 identified based on the sensing data to the electronic device 101. can do. For example, the communication circuit 290 may transmit information about a state of a button included in the electronic pen 201 acquired through the trigger circuit 298 to the electronic device 101 . For example, the short-distance communication method may include at least one of Bluetooth, bluetooth low energy (BLE) NFC, Wi-Fi direct, ultra wideband (UWB), or wireless LAN, but the type is not limited.

안테나(297)는 신호 또는 전력을 외부(예를 들어, 상기 전자 장치(101))로 송신하거나 외부로부터 수신하는데 이용될 수 있다. 일 실시 예에 따르면, 전자 펜(201)은, 복수의 안테나(297)들을 포함할 수 있고, 이들 중에, 통신 방식에 적합한 적어도 하나의 안테나(297)를 선택할 수 있다. 상기 선택된 적어도 하나의 안테나(297)를 통하여, 통신 회로(290)는 신호 또는 전력을 외부 전자 장치와 교환할 수 있다. The antenna 297 may be used to transmit or receive signals or power to the outside (eg, the electronic device 101). According to an embodiment, the electronic pen 201 may include a plurality of antennas 297, and among them, at least one antenna 297 suitable for a communication method may be selected. Through the at least one selected antenna 297, the communication circuit 290 may exchange signals or power with an external electronic device.

트리거 회로(298)는 적어도 하나의 버튼을 포함할 수 있다. 일 실시 예에 따르면, 트리거 회로(298)는 버튼의 입력 신호를 이용하여 전자 장치(101)로 트리거 신호를 전송할 수 있다.The trigger circuit 298 may include at least one button. According to an embodiment, the trigger circuit 298 may transmit a trigger signal to the electronic device 101 using an input signal of a button.

일 실시 예에 따르면, 펜 프로세서(220)는 수신한 트리거 신호에 기반하여 전자 펜(201)의 버튼의 입력 방식(예를 들어, 터치 또는 눌림) 또는 종류(예를 들어, EMR 버튼 또는 BLE 버튼)를 확인할 수 있다. According to one embodiment, the pen processor 220 determines the input method (eg, touch or press) or type (eg, EMR button or BLE button) of the button of the electronic pen 201 based on the received trigger signal. ) can be checked.

센서 회로(299)는 전자 펜(201)의 내부의 작동 상태 또는 외부의 환경 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 예를 들어, 센서 회로(299)는 모션 센서, 배터리 잔량 감지 센서, 압력 센서, 광 센서, 온도 센서, 지자계 센서, 또는 생체 센서 중 적어도 하나를 포함할 수 있다. The sensor circuit 299 may generate an electrical signal or data value corresponding to an internal operating state of the electronic pen 201 or an external environmental state. For example, the sensor circuit 299 may include at least one of a motion sensor, a battery level detection sensor, a pressure sensor, a light sensor, a temperature sensor, a geomagnetic field sensor, or a bio sensor.

센서 회로(299)는, 가속도 센서(accelerometer), 자이로 센서(gyro sensor), 및/또는 지자계 센서(geomagnetic sensor)를 포함할 수 있다. 가속도 센서는, 전자 펜(201)의 리니어한 움직임 및/또는 전자 펜(201)의 3축, 6축 또는 9축에 대한 가속도에 대한 정보를 센싱할 수 있다. 자이로 센서는, 전자 펜(201)의 회전과 관련된 정보를 센싱할 수 있다. 지자계 센서는, 전자 펜(201)의 기울어진 상태(예: 자세(orientation))에 대한 정보를 센싱할 수 있다. 센서 회로(299)는, 움직임을 측정하기 위한 센서뿐만 아니라, 전자 펜(201)의 내부의 작동 상태 또는 외부의 환경 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있는 센서, 예를 들어, 배터리 잔량 감지 센서, 압력 센서, 광 센서, 온도 센서, 생체 센서 중 적어도 하나를 포함할 수 있다. 펜 프로세서(220)는, 센서 회로(299)로부터 획득한 정보를, 통신 회로(290)를 통하여 전자 장치(101)로 송신할 수 있다. 또는, 펜 프로세서(220)는, 센서 회로 (299)로부터 획득한 정보에 기반하여, 전자 펜(201)의 위치와 연관된 정보(예: 전자 펜(201)의 좌표 및/또는 전자 펜(201)의 변위)를, 통신 회로(290)를 통하여 전자 장치(101)로 송신할 수도 있다.The sensor circuit 299 may include an accelerometer, a gyro sensor, and/or a geomagnetic sensor. The acceleration sensor may sense information about the linear motion of the electronic pen 201 and/or the 3-axis, 6-axis, or 9-axis acceleration of the electronic pen 201 . The gyro sensor may sense information related to rotation of the electronic pen 201 . The geomagnetic sensor may sense information about an inclined state (eg, orientation) of the electronic pen 201 . The sensor circuit 299 may include a sensor capable of generating an electrical signal or data value corresponding to an operating state of the inside of the electronic pen 201 or an external environmental state, as well as a sensor for measuring movement, for example, It may include at least one of a battery level detection sensor, a pressure sensor, an optical sensor, a temperature sensor, and a biosensor. The pen processor 220 may transmit information acquired from the sensor circuit 299 to the electronic device 101 through the communication circuit 290 . Alternatively, the pen processor 220, based on the information acquired from the sensor circuit 299, information associated with the position of the electronic pen 201 (eg, the coordinates of the electronic pen 201 and/or the electronic pen 201) The displacement of) may be transmitted to the electronic device 101 through the communication circuit 290.

도 3을 참조하면, 일 실시예에 따른 전자 장치(300)는 디스플레이(320)(예: 도 1의 디스플레이 모듈(160)), 통신 모듈(330)(예: 도 1의 통신 모듈(190)), 프로세서(310)(예: 도 1의 프로세서(120)) 및/또는 메모리(340) (예: 도 1의 메모리(130)를 포함할 수 있다. Referring to FIG. 3 , an electronic device 300 according to an embodiment includes a display 320 (eg, the display module 160 of FIG. 1 ) and a communication module 330 (eg, the communication module 190 of FIG. 1 ). ), a processor 310 (eg, the processor 120 of FIG. 1 ) and/or a memory 340 (eg, the memory 130 of FIG. 1 ).

일 실시예에 따르면, 전자 장치(300)는 전자 펜(예: 도 2의 전자 펜(201))을 전자 장치(300)의 내부 공간 또는 외부 공간에 수납 또는 부착할 수 있으며, 이에 한정하는 것은 아니다. 어떤 실시예에 따르면, 전자 펜(201)은 별도의 외부 입력 장치로 구성될 수도 있다. According to an embodiment, the electronic device 300 may accommodate or attach an electronic pen (eg, the electronic pen 201 of FIG. 2 ) to an internal space or an external space of the electronic device 300, but is not limited thereto. no. According to some embodiments, the electronic pen 201 may be configured as a separate external input device.

디스플레이(320)는 입력 기능과 디스플레이 기능을 수행하는 입출력 장치를 포함할 수 있다. 디스플레이(320)는 도 1의 디스플레이 모듈(160)의 구성 및/또는 도 1의 입력 모듈(150)의 기능 중 적어도 일부를 포함할 수 있다. 디스플레이(320)는 평면 디스플레이 또는 플렉서블 디스플레이를 지칭할 수 있다. 디스플레이(320)는 적어도 1개 이상의 디스플레이를 포함할 수 있다. 디스플레이(320)는 GUI(graphic user interface) 요소 및/또는 시각적 정보(예: 텍스트, 그래픽, 이미지, 비디오 또는 이들의 조합)를 표시할 수 있다. The display 320 may include an input/output device that performs an input function and a display function. The display 320 may include at least some of the components of the display module 160 of FIG. 1 and/or the functions of the input module 150 of FIG. 1 . The display 320 may refer to a flat display or a flexible display. The display 320 may include at least one or more displays. The display 320 may display graphic user interface (GUI) elements and/or visual information (eg, text, graphics, images, video, or combinations thereof).

일 실시예에 따르면, 디스플레이(320)는 터치 감지 회로, 터치의 세기(압력)를 측정할 수 있는 압력 센서, 및/또는 전자 펜(201)을 검출하는 디지타이저 회로와 결합되거나 인접하여 배치될 수 있다. 디스플레이(320)는 터치 감응 디스플레이일 수 있다. 터치 감응 디스플레이는 사용자의 손가락(또는 다른 신체 일부)을 이용한 터치, 터치 제스처, 에어 제스처 또는 호버(hover)(또는 근접 터치) 입력을 감지할 수 있다. 터치 감응 디스플레이는 전자 펜(201)의 터치, 에어 커맨드(command), 또는 호버 입력을 감지할 수 있다. According to one embodiment, the display 320 may be combined with or disposed adjacent to a touch sensing circuit, a pressure sensor capable of measuring the intensity (pressure) of a touch, and/or a digitizer circuit detecting the electronic pen 201. there is. Display 320 may be a touch sensitive display. The touch-sensitive display may detect a touch, a touch gesture, an air gesture, or a hover (or proximity touch) input using a user's finger (or other body part). The touch sensitive display may detect a touch of the electronic pen 201, an air command, or a hover input.

일 실시예에 따르면, 디스플레이(320)는 전자 펜(201)의 입력 신호에 대응하는 기능을 실행하고 이에 대한 사용자 인터페이스(user interface: UI)가 표시될 수 있다. 예를 들어, 디스플레이(320)는 전자 펜(201)과 관련된 펜 테마 UI를 사용자에게 제공할 수 있다. According to an embodiment, the display 320 may execute a function corresponding to an input signal of the electronic pen 201 and display a user interface (UI) for the function. For example, the display 320 may provide a pen theme UI related to the electronic pen 201 to the user.

통신 모듈(330)은 전자 펜(201)(예: 전자 장치에서 탈거된 스타일러스 펜, 전자 장치와 별개인 스타일러스 펜)과 근거리 통신 연결을 수행할 수 있다. 통신 모듈(330)은 전자 펜(201)과 다양한 방식의 근거리 무선 통신 방식 중 하나인, 예를 들어, 저전력 블루투스 기술(Bluetooth Low Energy(BLE))을 이용해 통신할 수 있으나, 이에 한정하는 것은 아니다. 통신 모듈(330)은 전자 펜(201)이 근거리 통신 연결이 가능한 거리에 위치한 경우 상호 간 통신 연결을 수행할 수 있다. 다양한 실시예에 따른 통신 모듈(330)은 도 1의 통신 모듈(190)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. The communication module 330 may perform a short-range communication connection with the electronic pen 201 (eg, a stylus pen removed from the electronic device or a stylus pen separate from the electronic device). The communication module 330 may communicate with the electronic pen 201 using, for example, Bluetooth Low Energy (BLE), which is one of various short-range wireless communication methods, but is not limited thereto. . The communication module 330 may perform mutual communication connection when the electronic pen 201 is located at a distance where a short-range communication connection is possible. The communication module 330 according to various embodiments may include at least some of the components and/or functions of the communication module 190 of FIG. 1 .

일 예를 들어, 통신 모듈(330)은 전자 펜(201)으로부터 전자 펜 정보(또는 센서 정보)를 수신할 수 있다. 예를 들어, 전자 펜 정보는 호버 입력과 관련된 좌표 정보 및 기울기 정보, 또는 에어 커맨드와 관련된 액션 좌표 정보 중 적어도 하나를 포함할 수 있다. For example, the communication module 330 may receive electronic pen information (or sensor information) from the electronic pen 201 . For example, the electronic pen information may include at least one of coordinate information and tilt information related to a hover input, or action coordinate information related to an air command.

프로세서(310)는 전자 장치(101)의 각 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 수행할 수 있는 구성으로써, 도 1의 프로세서(120)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. 후술할 프로세서(310)의 동작들은 메모리(340)에 저장된 인스트럭션들을 로딩 함으로써 수행될 수 있다. The processor 310 is a component capable of performing calculations or data processing related to control and/or communication of each component of the electronic device 101, and at least some of the components and/or functions of the processor 120 of FIG. can include Operations of the processor 310 to be described later may be performed by loading instructions stored in the memory 340.

메모리(340)는 프로세서(310)와 작동적으로(operatively) 연결되고, 데이터 및 프로세서(310)에서 수행될 수 있는 다양한 인스트럭션(instruction)들을 저장할 수 있다. 이와 같은 인스트럭션들은 프로세서(310)에 의해 인식될 수 있는 산술 및 논리 연산, 데이터 이동, 또는 입출력과 같은 제어 명령을 포함할 수 있다. The memory 340 is operatively connected to the processor 310 and may store data and various instructions that may be executed by the processor 310 . Such instructions may include control commands such as arithmetic and logical operations, data movement, or input/output that may be recognized by the processor 310 .

메모리(340)는 전자 펜(201)의 입력에 따른 제어 신호에 대응하는 기능을 실행하기 위한 프로그램, 또는 전자 펜 테마 설정을 지원하는 프로그램(또는 어플리케이션)을 저장할 수 있다. The memory 340 may store a program for executing a function corresponding to a control signal according to an input of the electronic pen 201 or a program (or application) supporting electronic pen theme setting.

일 실시예에 따르면, 프로세서(310)는 펜 테마 어플리케이션(이하, 앱)을 실행하여 펜 테마 앱이 제공하는 유저 인터페이스(user interface)를 디스플레이(320)에 표시할 수 있다. 펜 테마 앱은 전자 펜(201)과 관련된 그래픽 객체들(예: 에어 커맨드 UI, 또는 전자 펜 포인터 객체) 또는 펜 사운드를 사용자 취향에 따라 변경 및/또는 설정 가능한 앱일 수 있다. According to an embodiment, the processor 310 may display a user interface provided by the pen theme app on the display 320 by executing a pen theme application (hereinafter referred to as app). The pen theme app may be an app capable of changing and/or setting graphic objects related to the electronic pen 201 (eg, an air command UI or an electronic pen pointer object) or pen sound according to a user's taste.

일 실시예에 따르면, 프로세서(310)는 펜 테마 앱과 관련된 동작들 또는 기능들의 수행을 제어할 수 있다. 프로세서(310)는 전자 펜(201)의 호버 입력에 대응하여 전자 펜 포인터를 표시할 수 있다. 예를 들어, 프로세서(310)는 디폴트로 설정된 호버 객체(예: 도트 포인터)를 표시할 수 있다. 프로세서(310)는 펜 테마 앱을 통해 사용자가 전자 펜 포인터 테마를 변경하는 경우, 펜 테마가 적용된 변형 호버 객체 (예: 변형 포인터)를 표시할 수 있다. According to an embodiment, the processor 310 may control the execution of operations or functions related to the pen theme app. The processor 310 may display an electronic pen pointer in response to a hover input of the electronic pen 201 . For example, the processor 310 may display a hover object (eg, a dot pointer) set as a default. When the user changes the electronic pen pointer theme through the pen theme app, the processor 310 may display a modified hover object (eg, modified pointer) to which the pen theme is applied.

일 실시예에 따르면, 프로세서(310)는 전자 펜 포인터의 시각적 특성, 전자 펜(201)의 상황 및 디스플레이(320)의 상황 중 적어도 하나를 고려하여 디스플레이(320)에 표시된 전자 펜 포인터의 방향 및 좌표를 적응적(또는 실시간, 자동적)으로 결정하여 전자 펜 포인터의 위치를 변경할 수 있다.According to an embodiment, the processor 310 determines the direction and direction of the electronic pen pointer displayed on the display 320 in consideration of at least one of a visual characteristic of the electronic pen pointer, a situation of the electronic pen 201, and a situation of the display 320. The location of the electronic pen pointer may be changed by adaptively (or real-time, automatically) determining the coordinates.

다양한 실시예에 따르면, 프로세서(310)는 전자 장치(300)의 각 구성요소들(예: 디스플레이(320), 통신 모듈(330), 메모리(340))과 작동적으로(operatively), 기능적으로(functionally), 및/또는 전기적으로(electrically) 연결되어, 각 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 수행할 수 있는 구성일 수 있다. 프로세서(310)는 도 1의 프로세서(120)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.According to various embodiments, the processor 310 operatively and functionally interacts with each component of the electronic device 300 (eg, the display 320, the communication module 330, and the memory 340). (functionally) and / or electrically (electrically) connected, it may be a configuration capable of performing calculations or data processing related to control and / or communication of each component. The processor 310 may include at least some of the components and/or functions of the processor 120 of FIG. 1 .

다양한 실시예에 따르면, 프로세서(310)가 전자 장치(300) 상에서 구현할 수 있는 연산 및 데이터 처리 기능에는 한정됨이 없을 것이나, 이하에서는 전자 장치(300)를 이용하여 전자 펜과 통신 연결을 수립하거나, 전자 펜으로 알림 신호를 전송하기 위한 다양한 실시예에 대해 설명하기로 한다. 후술할 프로세서(310)의 동작들은 메모리(340)에 저장된 인스트럭션들을 로딩(loading)함으로써 수행될 수 있다.According to various embodiments, arithmetic and data processing functions that the processor 310 can implement on the electronic device 300 will not be limited, but hereinafter, a communication connection with an electronic pen may be established using the electronic device 300, Various embodiments for transmitting a notification signal to an electronic pen will be described. Operations of the processor 310 to be described later may be performed by loading instructions stored in the memory 340.

다양한 실시예에 따르면, 프로세서(310)는 디스플레이(320)에 대한 전자 펜의 터치 입력을 수신할 수 있다. 디스플레이(320)는 전자 펜의 터치 입력을 감지할 수 있는 터치 패널을 포함할 수 있다. 예를 들어, 사용자가 제1전자 펜을 들고 전자 장치(300)의 디스플레이(320)를 터치하면, 프로세서(310)는 터치 패널을 이용하여 디스플레이(320)에 대한 제1전자 펜의 터치 입력을 수신할 수 있다. 이 때 프로세서(310)가 수신하는 터치 입력은 후술할 통신 신호(예: 블루투스 신호)와 다를 수 있다. 이하, 디스플레이(320)를 터치한 전자 펜을 제1전자 펜으로 설명하도록 한다.According to various embodiments, the processor 310 may receive a touch input of an electronic pen to the display 320 . The display 320 may include a touch panel capable of detecting a touch input of an electronic pen. For example, when a user touches the display 320 of the electronic device 300 while holding the first electronic pen, the processor 310 receives a touch input of the first electronic pen on the display 320 using the touch panel. can receive At this time, the touch input received by the processor 310 may be different from a communication signal (eg, a Bluetooth signal) to be described later. Hereinafter, an electronic pen that touches the display 320 will be described as a first electronic pen.

다양한 실시예에 따르면, 프로세서(310)는 터치 입력을 수신함에 대응하여, 제1전자 펜이 전자 장치(300)와 통신 연결되어 있는지 확인할 수 있다. 일 실시예에 따르면, 전자 장치(300)와 통신 연결되어 있는 전자 펜이 디스플레이(320)를 터치하는 경우 프로세서(310)는 터치 입력과 동시에 또는 정해진 시간 간격 내에 통신 신호를 수신할 수 있다. 통신 신호는 전자 펜의 시리얼 넘버(serial number) 또는 별도의 펜 ID를 포함할 수 있다. 예를 들어, 제1전자 펜이 전자 장치(300)와 통신 연결되어 있는 경우, 프로세서(310)는 사용자가 제1전자 펜으로 디스플레이(320)를 터치함과 동시에 또는 정해진 시간 간격 내에 통신 신호를 수신할 수 있다. 다른 실시예에 따르면, 프로세서(310)는 사용자가 제1전자 펜으로 디스플레이(320)를 최초로 터치하는 경우 통신 신호를 획득하고, 이후 정해진 시간 동안은 제1전자 펜이 디스플레이(320)를 터치하더라도 통신 신호를 획득하지 않을 수 있다. 예를 들어, 제1전자 펜의 펜 프로세서는 전자 장치의 디스플레이(320)를 최초로 터치할 때 전자 장치로 통신 신호를 전송하고, 최초의 터치 이후에는 직전 터치와 현재 터치 사이의 시간 간격이 정해진 시간 간격보다 큰 경우에만 통신 신호를 전송할 수 있다. 따라서, 프로세서(310)는 전자 장치(300)와 통신 연결된 전자 펜의 터치 입력을 수신할 경우 통신 신호를 함께 수신할 수 있고, 전자 장치(300)와 통신 연결되지 않은 전자 펜의 터치 입력을 수신하는 경우 통신 신호를 수신하지 못할 수 있다. 일 실시예에 따르면, 프로세서(310)는 터치 입력과 통신 신호가 동시에 또는 정해진 시간 간격 내에 수신되는 경우 현재 디스플레이(320)를 터치한 전자 펜이 전자 장치(300)와 통신 연결되어 있는 것으로 결정할 수 있고, 터치 입력과 통신 신호가 동시에 또는 정해진 시간 간격 내에 수신되지 않는 경우 현재 디스플레이(320)를 터치한 전자 펜이 전자 장치(300)와 통신 연결되어 있지 않은 것으로 결정할 수 있다.According to various embodiments, the processor 310 may determine whether the first electronic pen is communicatively connected to the electronic device 300 in response to receiving a touch input. According to an embodiment, when an electronic pen communicatively connected to the electronic device 300 touches the display 320, the processor 310 may receive a communication signal simultaneously with the touch input or within a predetermined time interval. The communication signal may include a serial number of the electronic pen or a separate pen ID. For example, when the first electronic pen is communicatively connected to the electronic device 300, the processor 310 transmits a communication signal at the same time as the user touches the display 320 with the first electronic pen or within a predetermined time interval. can receive According to another embodiment, the processor 310 acquires a communication signal when the user touches the display 320 with the first electronic pen for the first time, even if the first electronic pen touches the display 320 for a predetermined time thereafter. A communication signal may not be acquired. For example, the pen processor of the first electronic pen transmits a communication signal to the electronic device when the display 320 of the electronic device is touched for the first time, and after the first touch, the time interval between the previous touch and the current touch is determined. A communication signal can be transmitted only when it is greater than the interval. Accordingly, the processor 310 can receive a communication signal together when receiving a touch input from an electronic pen that is communicatively connected to the electronic device 300, and receives a touch input from an electronic pen that is not communicatively connected to the electronic device 300. If you do, you may not be able to receive communication signals. According to an embodiment, the processor 310 may determine that the electronic pen currently touching the display 320 is communicatively connected to the electronic device 300 when a touch input and a communication signal are received simultaneously or within a predetermined time interval. If the touch input and the communication signal are not received at the same time or within a predetermined time interval, it may be determined that the electronic pen currently touching the display 320 is not connected to the electronic device 300 through communication.

다양한 실시예에 따르면, 프로세서(310)는 제1전자 펜이 전자 장치(300)와 통신 연결되어 있는 것으로 결정함에 대응하여 정해진 동작을 수행할 수 있다. 프로세서(310)는 전자 펜의 터치 입력 및/또는 호버링 제스처에 따라서 정해진 동작을 수행할 수 있다. 예를 들어, 프로세서(310)는 전자 펜에서 수신되는 통신 신호의 주파수에 기초하여 쓰기(writing) 또는 지우기(erasing) 동작을 수행할 수 있다.According to various embodiments, the processor 310 may perform a predetermined operation in response to determining that the first electronic pen is communicatively connected to the electronic device 300 . The processor 310 may perform a predetermined operation according to a touch input and/or a hovering gesture of the electronic pen. For example, the processor 310 may perform a writing or erasing operation based on the frequency of a communication signal received from an electronic pen.

다양한 실시예에 따르면, 프로세서(310)는 제1전자 펜이 전자 장치(300)와 통신 연결되어 있지 않은 것으로 결정함에 대응하여, 전자 장치(300)와 통신 연결된 다른 전자 펜이 존재하는지 확인할 수 있다. 예를 들어, 디스플레이(320)에는 제1전자 펜의 터치 입력이 수신되었으나 통신 신호는 수신되지 않은 경우, 프로세서(310)는 전자 장치(300)의 통신 모듈(330)을 이용하여 통신 연결한 전자 펜이 존재하는지 확인할 수 있다. 일 실시예에 따르면, 프로세서(310)는 전자 장치(300)와 통신 연결된 제2전자 펜이 존재함을 확인할 수 있다. 다른 실시예에 따르면, 프로세서(310)는 전자 장치(300)와 통신 연결된 다른 전자 펜이 존재하지 않음을 확인할 수 있다.According to various embodiments, in response to determining that the first electronic pen is not communicatively connected to the electronic device 300, the processor 310 may determine whether another electronic pen communicatively connected to the electronic device 300 exists. . For example, when a touch input of a first electronic pen is received on the display 320 but a communication signal is not received, the processor 310 communicates with the electronic device 300 by using the communication module 330. You can check if the pen exists. According to an embodiment, the processor 310 may confirm that a second electronic pen communicatively connected to the electronic device 300 exists. According to another embodiment, the processor 310 may determine that there is no other electronic pen communicatively connected to the electronic device 300 .

다양한 실시예에 따르면, 프로세서(310)는 전자 장치(300)와 통신 연결된 제2전자 펜이 존재하는 것으로 확인함에 대응하여, 제2전자 펜으로 알림 신호를 전송할 수 있다. 알림 신호는 진동, 소리, 및 광 중 적어도 하나를 트리거할 수 있다. 예를 들어, 프로세서(310)는 제2전자 펜으로 진동을 트리거하는 알림 신호를 전송할 수 있다. 제2전자 펜의 펜 프로세서(310)는 상기 알림 신호를 수신하여 진동 모터를 구동할 수 있다. 사용자는 진동이 울리는 전자 펜이 전자 장치(300)와 통신 연결된 것을 확인하고 해당 펜으로 디스플레이(320)를 터치할 수 있다.According to various embodiments, the processor 310 may transmit a notification signal to the second electronic pen in response to confirming that there is a second electronic pen communicatively connected to the electronic device 300 . The notification signal may trigger at least one of vibration, sound, and light. For example, the processor 310 may transmit a notification signal triggering vibration to the second electronic pen. The pen processor 310 of the second electronic pen may receive the notification signal and drive the vibration motor. The user may confirm that the electronic pen generating vibration is connected to the electronic device 300 and touch the display 320 with the corresponding pen.

다양한 실시예에 따르면, 프로세서(310)는 전자 장치(300)와 통신 연결된 전자 펜이 존재하지 않은 것으로 확인함에 대응하여, 제1전자 펜과 통신 연결을 수립할 수 있다. 프로세서(310)는 통신 모듈(330)을 이용하여 제1전자 펜과 통신 연결을 수립할 수 있다. 프로세서(310)는 메모리(340)를 이용하여 제1전자 펜이 이전에 전자 장치(300)와 통신 연결을 수립한 적이 있는지 확인할 수 있다. 일 실시예에 따르면, 제1전자 펜이 이전에 전자 장치(300)와 통신 연결을 수립한 기록이 있는 경우, 프로세서(310)는 별다른 가이드 없이 바로 전자 장치(300)와 제1전자 펜의 통신 연결을 수립할 수 있다. 다른 실시예에 따르면, 제1전자 펜이 이전에 전자 장치(300)와 통신 연결을 수립한 적이 없는 경우, 프로세서(310)는 제1전자 펜과 전자 장치(300)를 페어링하기 위한 가이드를 디스플레이(320)에 출력할 수 있다. 즉, 전자 펜이 전자 장치(300)에 최초 연결 시 프로세서(310)는 전자 펜의 연결을 위한 가이드를 제공할 수 있다.According to various embodiments, the processor 310 may establish a communication connection with the first electronic pen in response to confirming that there is no electronic pen communicatively connected to the electronic device 300 . The processor 310 may establish a communication connection with the first electronic pen using the communication module 330 . The processor 310 may check whether the first electronic pen has previously established a communication connection with the electronic device 300 by using the memory 340 . According to an embodiment, if there is a record of the first electronic pen establishing a communication connection with the electronic device 300 in the past, the processor 310 communicates directly between the electronic device 300 and the first electronic pen without any guidance. connection can be established. According to another embodiment, if the first electronic pen has never established a communication connection with the electronic device 300 before, the processor 310 displays a guide for pairing the first electronic pen with the electronic device 300. (320). That is, when the electronic pen is initially connected to the electronic device 300, the processor 310 may provide a guide for connecting the electronic pen.

프로세서(310)는 전자 장치(300)와 통신 연결된 펜의 움직임에 기반하여, 디스플레이(320)에 전자 펜을 제어할 수 있는 메뉴 아이콘을 표시할 수 있다.The processor 310 may display a menu icon for controlling the electronic pen on the display 320 based on the movement of the pen connected to the electronic device 300 through communication.

다양한 실시예에 따르면, 프로세서(310)는 전자 펜의 펜 프로세서(310)로부터 전자 펜의 움직임에 관한 정보를 획득할 수 있다. 펜 프로세서(310)는 센서 회로로부터 전자 펜의 움직임에 관한 정보를 획득할 수 있다. 펜 프로세서(310)는 획득한 움직임 정보를 전자 장치(300)로 전송할 수 있다. 예를 들어, 사용자가 전자 장치(300)와 통신 연결된 전자 펜을 집어 드는 경우, 프로세서(310)는 전자 펜으로부터 사용자가 해당 전자 펜을 접촉했다는 정보를 수신할 수 있다.According to various embodiments, the processor 310 may obtain information about movement of the electronic pen from the pen processor 310 of the electronic pen. The pen processor 310 may obtain information about the movement of the electronic pen from the sensor circuit. The pen processor 310 may transmit the acquired motion information to the electronic device 300 . For example, when a user picks up an electronic pen communicatively connected to the electronic device 300, the processor 310 may receive information indicating that the user has touched the corresponding electronic pen from the electronic pen.

다양한 실시예에 따르면, 프로세서(310)는 전자 펜의 움직임 정보를 획득함에 대응하여, 전자 펜을 제어할 수 있는 그래픽 객체(예: 메뉴 아이콘)를 디스플레이(320)에 표시할 수 있다. 예를 들어, 프로세서(310)는 사용자가 전자 장치(300)에 통신 연결되지 않은 전자 펜을 이용할 때는 그래픽 객체를 표시하지 않고, 통신 연결된 전자 펜을 이용할 때 그래픽 객체를 표시할 수 있다.According to various embodiments, the processor 310 may display a graphic object (eg, a menu icon) capable of controlling the electronic pen on the display 320 in response to obtaining movement information of the electronic pen. For example, the processor 310 may not display a graphic object when the user uses an electronic pen that is not communicatively connected to the electronic device 300, but may display a graphic object when the user uses the electronic pen that is communicatively connected.

다양한 실시예에 따르면, 프로세서(310)는 그래픽 객체에 대한 사용자 입력에 기초하여, 전자 펜의 정보를 표시하고 및/또는 전자 펜을 제어할 수 있는 메뉴를 제공할 수 있다. 예를 들어, 프로세서(310)는 그래픽 객체에 대한 사용자 입력에 기초하여 전자 펜의 시리얼 넘버 및 상태를 표시할 수 있다. 예를 들어, 프로세서(310)는 그래픽 객체에 대한 사용자 입력에 기초하여 전자 펜의 통신 연결을 해제할 수 있는 메뉴를 제공할 수 있다.According to various embodiments, the processor 310 may display information about the electronic pen and/or provide a menu for controlling the electronic pen, based on a user input for a graphic object. For example, the processor 310 may display the serial number and status of the electronic pen based on a user's input on the graphic object. For example, the processor 310 may provide a menu for disconnecting communication of the electronic pen based on a user input for a graphic object.

도 4는 본 발명의 다양한 실시예에 따른 전자 장치 및 전자 펜의 구성을 도시하는 도면이다.4 is a diagram illustrating configurations of an electronic device and an electronic pen according to various embodiments of the present disclosure.

도 4를 참조하면, 일 실시예에 따르면, 전자 장치(예: 도 1, 도 3또는 도 4의 전자 장치(101))는, 전자 펜(예: 도 2 및 도 4의 전자 펜(201))과 통신할 수 있다. 전자 장치(101)와 전자 펜(201)은 통신 회로를 통하여 다양한 방식의 근거리 무선 통신 방식 중 적어도 하나를 이용해서 통신할 수 있다. 예컨대, 근거리 무선 통신 방식은 저전력 블루투스(bluetooth low energy, BLE) 통신일 수 있으나, 이에 한정하는 것은 아니다.Referring to FIG. 4 , according to an embodiment, an electronic device (eg, the electronic device 101 of FIGS. 1, 3, or 4) includes an electronic pen (eg, the electronic pen 201 of FIGS. 2 and 4). ) can communicate with. The electronic device 101 and the electronic pen 201 may communicate using at least one of various short-distance wireless communication methods through a communication circuit. For example, the short-distance wireless communication method may be Bluetooth low energy (BLE) communication, but is not limited thereto.

전자 장치(101)는 펜 컨트롤러(410)(예: 도 1의 프로세서(120) 또는 도 3의 프로세서(310))를 포함할 수 있다. The electronic device 101 may include a pen controller 410 (eg, the processor 120 of FIG. 1 or the processor 310 of FIG. 3 ).

펜 컨트롤러(410)는, 예를 들어 적어도 하나의 코일(411, 412)에 연결되는 적어도 하나의 증폭기(미도시)를 포함할 수 있다. 펜 컨트롤러(410)는, 적어도 하나의 코일(411, 412)을 포함할 수 있으며, 적어도 하나의 코일(411, 412)을 통하여 전자 펜(201)에 충전용 전력을 제공할 수 있다. The pen controller 410 may include, for example, at least one amplifier (not shown) connected to at least one coil 411 or 412 . The pen controller 410 may include at least one coil 411 or 412 and may provide charging power to the electronic pen 201 through the at least one coil 411 or 412 .

일 실시예에 따르면, 적어도 하나의 코일(411, 412)은 전자 펜(201)이 전자 장치(101)의 내부 공간으로 삽입된 경우, 전자 펜(201)의 코일(421)과 물리적으로 인접하는 위치에 배치될 수 있으나, 배치 위치에는 제한이 없다. 한편, 내부 공간으로의 삽입은 예시적인 것으로, 전자 장치(101)는 내부 공간 이외에도, 전자 펜(201)이 장착(또는, 부착)될 수 있는 영역(또는, 공간)을 포함할 수도 있으며, 이 경우 전자 펜(201)은 해당 영역(또는, 공간)에 탈부착될 수 있다. 펜 컨트롤러(410)의 적어도 일부의 기능은 프로세서(120)에 의하여 수행될 수 있거나, 또는 펜 컨트롤러(410) 및 프로세서(120)가 통합되어 적어도 일부의 기능을 수행하도록 구현될 수도 있다. According to an embodiment, the at least one coil 411 and 412 is physically adjacent to the coil 421 of the electronic pen 201 when the electronic pen 201 is inserted into the internal space of the electronic device 101. It can be placed in a location, but the placement location is not limited. Meanwhile, the insertion into the internal space is exemplary, and the electronic device 101 may include an area (or space) in which the electronic pen 201 can be mounted (or attached) in addition to the internal space. In this case, the electronic pen 201 may be attached or detached to the corresponding region (or space). At least some of the functions of the pen controller 410 may be performed by the processor 120, or the pen controller 410 and the processor 120 may be integrated to perform at least some of the functions.

일 예를 들어, 펜 컨트롤러(410)는, 적어도 하나의 코일(411, 412) 이외에도 제어 회로(예를 들어, 프로세서(120)로부터 독립적인 제어 회로), 인버터, 및/또는 증폭기를 포함할 수 있다. For example, the pen controller 410 may include a control circuit (eg, a control circuit independent of the processor 120), an inverter, and/or an amplifier in addition to at least one coil 411 or 412. there is.

전자 펜(201)의 공진회로(420)(예: 도 2의 공진 회로(287))는 코일(421), 적어도 하나의 커패시터(422, 423), 및/또는 스위치(424)를 포함할 수 있다. 스위치(424)가 오프 상태인 경우에는, 코일(421) 및 커패시터(422)가 공진 회로를 구성할 수 있으며, 스위치(424)가 온 상태인 경우에는 코일(421)과 커패시터들(422, 423)이 공진 회로를 구성할 수 있다. 이에 따라, 스위치(424)의 온/오프 상태에 따라 공진 회로(420)의 공진 주파수가 변경될 수 있다. 예를 들어, 전자 장치(101)는, 전자 펜(201)으로부터의 신호의 주파수에 기반하여, 스위치(424)의 온/오프 상태를 확인할 수 있다. 예를 들어, 전자 펜(201)의 버튼이 눌림/릴리즈되는 경우, 스위치(424)가 온/오프될 수 있으며, 전자 장치(101)는 전자 펜(201)의 버튼의 눌림 여부를, 디지타이저를 통하여 확인되는 수신 신호의 주파수에 기반하여 확인할 수 있다.The resonant circuit 420 (eg, the resonant circuit 287 of FIG. 2 ) of the electronic pen 201 may include a coil 421, at least one capacitor 422, 423, and/or a switch 424. there is. When the switch 424 is in an off state, the coil 421 and the capacitor 422 may constitute a resonance circuit, and when the switch 424 is in an on state, the coil 421 and the capacitors 422 and 423 ) can constitute a resonant circuit. Accordingly, the resonance frequency of the resonance circuit 420 may be changed according to the on/off state of the switch 424 . For example, the electronic device 101 may check the on/off state of the switch 424 based on the frequency of the signal from the electronic pen 201 . For example, when a button of the electronic pen 201 is pressed/released, the switch 424 may be turned on/off, and the electronic device 101 determines whether the button of the electronic pen 201 is pressed or not, and the digitizer It can be checked based on the frequency of the received signal that is checked through.

적어도 하나의 정류기(431, 435)는, 공진 회로(420)로부터 출력되는 교류 파형의 신호(VPEN)를 정류하여 출력할 수 있다. 충전 스위치 컨트롤러(SWchg ctrl)(432)는, 정류기(431)로부터 출력되는 정류된 신호(VM)를 수신할 수 있다. 정류된 신호(VM)에 기반하여, 충전 스위치 컨트롤러(432)는, 공진 회로(420)에서 발생되는 신호가 충전용 신호인지 또는 위치 검출을 위한 신호인지 여부를 확인할 수 있다. 예를 들어, 충전 스위치 컨트롤러(432)는, 예를 들어 정류된 신호(VM)의 전압의 크기에 기반하여 공진 회로(420)에서 발생되는 신호가 충전용 신호인지 또는 위치 검출을 위한 신호인지 여부를 확인할 수 있다. 또는, 충전 스위치 컨트롤러(432)는, 정류된 신호(VM)의 파형에 기반하여 충전 개시용 패턴을 가지는 신호가 입력되는지 여부를 확인할 수도 있다.At least one of the rectifiers 431 and 435 may rectify and output the AC waveform signal VPEN output from the resonance circuit 420 . The charge switch controller (SWchg ctrl) 432 may receive the rectified signal VM output from the rectifier 431 . Based on the rectified signal VM, the charge switch controller 432 may determine whether the signal generated by the resonance circuit 420 is a signal for charging or a signal for position detection. For example, the charge switch controller 432 determines whether the signal generated in the resonance circuit 420 is a signal for charging or a signal for position detection based on, for example, the magnitude of the voltage of the rectified signal VM. can be checked. Alternatively, the charge switch controller 432 may determine whether a signal having a charging start pattern is input based on the waveform of the rectified signal VM.

충전 스위치 컨트롤러(432)는 충전 스위치(436)를 켜거나 끌 수 있다. 충전 스위치 컨트롤러(432)는 배터리(437)의 충전을 제어할 수 있다.The charge switch controller 432 can turn the charge switch 436 on or off. The charge switch controller 432 may control charging of the battery 437 .

일 실시 예에서, 충전 스위치(436)는 충전 스위치 컨트롤러(432)의 제어에 따라 정류기(435)로부터 수신된 충전 전력을 배터리(437)로 전달할 수 있다.In one embodiment, the charge switch 436 may transfer the charge power received from the rectifier 435 to the battery 437 under the control of the charge switch controller 432 .

배터리(437)는, 충전 스위치(436)가 온 상태인 경우, 수신한 정류된 신호(VIN)를 이용하여 충전될 수 있다. 과전압 보호 회로(over-voltage protection circuit: OVP)(433)는 배터리 전압(VBAT)을 확인할 수 있으며, 배터리 전압(VBAT)이 과전압 임계치를 초과하면 충전 스위치(436)를 오프 상태로 제어할 수 있다.When the charging switch 436 is in an on state, the battery 437 may be charged using the received rectified signal VIN. An over-voltage protection circuit (OVP) 433 may check the battery voltage VBAT, and control the charging switch 436 to be turned off when the battery voltage VBAT exceeds an overvoltage threshold. .

일 실시 예에서, 로드 스위치 컨트롤러(SWL ctrl)(434)는 배터리(437)가 출력하는 전압 값을 측정할 수 있다.In one embodiment, the load switch controller (SWL ctrl) 434 may measure a voltage value output by the battery 437.

로드 스위치 컨트롤러(SWL ctrl)(434)는, 배터리 전압(VBAT)이 동작 전압 임계치를 초과하는 것으로 확인되면, 로드 스위치(SWL)(438)를 온 상태로 제어할 수 있다. 로드 스위치(438)가 온 상태가 되면, 배터리(437)로부터의 전력이 BLE 통신 회로 및 컨트롤러(BLE + controller)(439)(예: 도 2의 통신 회로(290) 및 프로세서(220))로 전달될 수 있다. 로드 스위치 컨트롤러(434)는 저 전압 록 아웃(UVLO, under voltage lock out) 회로를 포함할 수 있다.The load switch controller (SWL ctrl) 434 may control the load switch (SWL) 438 to be turned on when it is determined that the battery voltage VBAT exceeds an operating voltage threshold. When the load switch 438 is turned on, power from the battery 437 is supplied to the BLE communication circuit and controller (BLE + controller) 439 (eg, the communication circuit 290 and processor 220 of FIG. 2 ). can be conveyed The load switch controller 434 may include an under voltage lock out (UVLO) circuit.

일 실시 예에서, 로드 스위치(438)는 로드 스위치 컨트롤러(434)의 제어에 따라 BLE 통신 회로 및 컨트롤러(439)가 동작하는 데 필요한 전원을 공급할 수 있다. 로드 스위치(438)는 BLE 통신 회로 및 컨트롤러(439) 및 배터리(437) 사이의 연결을 제어할 수 있다.In one embodiment, the load switch 438 may supply power necessary for the BLE communication circuit and the controller 439 to operate under the control of the load switch controller 434 . The load switch 438 may control the BLE communication circuit and the connection between the controller 439 and the battery 437.

BLE 통신 회로 및 컨트롤러(439)는 수신한 전력을 이용하여 동작할 수 있다. 버튼 제어 회로(button control)(440)는, 전자 펜(201)과 전자 장치(101)와의 거리가 임계 거리보다 큰 경우, 버튼의 입력에 대한 정보를 BLE 통신 회로 및 컨트롤러(439)로 전달할 수 있다. BLE 통신 회로 및 컨트롤러(439)는 수신한 버튼 입력에 대한 정보를, 안테나(441)(예: 도 2의 안테나(297))를 통하여 전자 장치(101)로 송신할 수 있다. The BLE communication circuit and controller 439 may operate using the received power. The button control circuit (button control) 440, when the distance between the electronic pen 201 and the electronic device 101 is greater than the threshold distance, can transfer information about the input of the button to the BLE communication circuit and controller 439 there is. The BLE communication circuit and controller 439 may transmit information about the received button input to the electronic device 101 through the antenna 441 (eg, the antenna 297 of FIG. 2 ).

센서(450)(예: 도 2의 센서 회로(299))는, 자이로 센서(451) 및/또는 가속도 센서(452)를 포함할 수 있다. 자이로 센서(451) 및/또는 가속도 센서(452)에 의하여 획득된 센싱 데이터는 BLE 통신 회로 및 컨트롤러(439)로 전달될 수 있다. The sensor 450 (eg, the sensor circuit 299 of FIG. 2 ) may include a gyro sensor 451 and/or an acceleration sensor 452 . Sensing data obtained by the gyro sensor 451 and/or the acceleration sensor 452 may be transmitted to the BLE communication circuit and controller 439 .

BLE 통신 회로 및 컨트롤러(439)는, 수신한 센싱 데이터를 포함하는 통신 신호를 안테나(441)를 통하여 전자 장치(101)로 송신할 수 있다. 또는, BLE 통신 회로 및 컨트롤러(439)는, 수신한 센싱 데이터에 기반하여 확인된 전자 펜(201)의 위치와 연관된 정보(예: 전자 펜(201)의 좌표 및/또는 변위)를 확인할 수 있다. BLE 통신 회로 및 컨트롤러(439)는, 확인된 전자 펜(201)의 위치와 연관된 정보를, 안테나(441)를 통하여, 전자 장치(101)로 송신할 수 있다.The BLE communication circuit and controller 439 may transmit a communication signal including the received sensing data to the electronic device 101 through the antenna 441 . Alternatively, the BLE communication circuit and controller 439 may check information (eg, coordinates and/or displacement of the electronic pen 201) associated with the identified position of the electronic pen 201 based on the received sensing data. . The BLE communication circuit and controller 439 may transmit information related to the checked position of the electronic pen 201 to the electronic device 101 through the antenna 441 .

BLE 통신 회로 및 컨트롤러(439)는, 전자 펜(201)이 전자 장치(101)로부터 인출 또는 탈착된 경우, 가속도 센서(452)를 활성화할 수 있다. BLE 통신 회로 및 컨트롤러(439)는, 버튼이 눌러지는 경우, 자이로 센서(451)를 활성화시킬 수 있다. 한편, 활성화 시점은 단순히 예시적인 것으로, 센서별 활성화 시점에는 제한이 없다. 아울러, 센서(450)는 지자계 센서를 더 포함할 수도 있다. 가속도 센서(452)만이 활성화된 경우, 전자 펜(201)은 전자 장치(101)로 가속도 센서(452)에 의하여 측정된 가속도 정보를 제공할 수 있으며, 전자 장치(101)는 전자 펜 신호에 기반하여 확인된 전자 펜(201)의 위치와 가속도 정보에 기반하여 동작할 수도 있다.The BLE communication circuit and controller 439 may activate the acceleration sensor 452 when the electronic pen 201 is withdrawn or detached from the electronic device 101 . The BLE communication circuit and controller 439 may activate the gyro sensor 451 when the button is pressed. Meanwhile, the activation time point is merely exemplary, and the activation time point for each sensor is not limited. In addition, the sensor 450 may further include a geomagnetic field sensor. When only the acceleration sensor 452 is activated, the electronic pen 201 may provide acceleration information measured by the acceleration sensor 452 to the electronic device 101, and the electronic device 101 may provide the electronic device 101 based on the electronic pen signal. It may also operate based on the position and acceleration information of the electronic pen 201 confirmed by doing so.

도 5는 다양한 실시예에 따른 전자 장치가 전자 펜과 통신 연결을 수립하거나, 전자 펜으로 알림 신호를 전송하는 것을 도시한 것이다.5 illustrates that an electronic device establishes a communication connection with an electronic pen or transmits a notification signal to the electronic pen, according to various embodiments.

도 5를 참조하면, 프로세서(예: 도 3의 프로세서(310))는 디스플레이(예: 도 3의 디스플레이(320))를 터치하고 있는 제1전자 펜(510)과 통신 연결되지 않은 경우, 제1전자 펜(510)과 통신 연결을 수립하거나, 통신 연결되어 있는 제2전자 펜(520)으로 알림 신호를 전송할 수 있다. 다양한 실시예에 따르면, 프로세서는 제1전자 펜(510)과 전자 장치(500)가 통신 연결되어 있는지 여부를 확인할 수 있다. 프로세서는 터치 입력과 통신 신호가 동시에 수신되는 경우, 제1전자 펜(510)이 전자 장치(500)와 통신 연결되어 있는 것으로 결정할 수 있다. 또는, 프로세서는 터치 입력과 통신 신호가 정해진 시간 간격 내에 수신되는 경우 제1전자 펜(510)이 전자 장치(500)와 통신 연결되어 있는 것으로 결정할 수도 있다. 프로세서는 터치 입력과 통신 신호가 동시에 수신되지 않거나, 정해진 시간 간격 내에 수신되지 않는 경우, 제1전자 펜(510)이 전자 장치(500)와 통신 연결되지 않은 것으로 결정할 수 있다.Referring to FIG. 5 , when a processor (eg, the processor 310 of FIG. 3 ) is not connected in communication with the first electronic pen 510 touching a display (eg, the display 320 of FIG. 3 ), A communication connection with the first electronic pen 510 may be established, or a notification signal may be transmitted to the second electronic pen 520 connected through communication. According to various embodiments, the processor may check whether the first electronic pen 510 and the electronic device 500 are connected in communication. When a touch input and a communication signal are simultaneously received, the processor may determine that the first electronic pen 510 is communicatively connected to the electronic device 500 . Alternatively, the processor may determine that the first electronic pen 510 is communicatively connected to the electronic device 500 when a touch input and a communication signal are received within a predetermined time interval. The processor may determine that the first electronic pen 510 is not communicatively connected to the electronic device 500 when a touch input and a communication signal are not simultaneously received or received within a predetermined time interval.

다양한 실시예에 따르면, 제1전자 펜(510)이 전자 장치(500)와 통신 연결되지 않은 것으로 결정한 경우, 프로세서는 현재 전자 장치(500)와 통신 연결된 전자 펜이 존재하는지 확인할 수 있다. 일 실시예에 따르면, 현재 전자 장치(500)와 통신 연결된 다른 전자 펜이 존재하지 않는 경우, 프로세서는 제1전자 펜(510)과 통신 연결을 수립할 수 있다. 프로세서는 메모리(예: 도 3의 메모리(340))를 이용하여 제1전자 펜(510)과 이전에 통신 연결을 수립한 적이 있는지 확인할 수 있다. 이전에 제1전자 펜(510)과 통신 연결을 수립한 적이 있는 경우, 프로세서는 별다른 가이드 없이 제1전자 펜(510)과 바로 통신 연결을 수립할 수 있다. 일 실시예에 따르면, 프로세서는 제1전자 펜(510)과 통신 연결을 수립하기 위한 메뉴를 디스플레이에 표시할 수 있다. 이전에 제1전자 펜(510)과 통신 연결을 수립한 적이 없는 경우, 프로세서는 제1전자 펜(510)과 통신 연결을 수립하기 위한 가이드 화면을 디스플레이에 출력할 수 있다. 사용자는 가이드 화면을 이용하여 제1전자 펜(510)과 통신 연결을 수립한 뒤, 제1전자 펜(510)을 사용할 수 있다.According to various embodiments, when it is determined that the first electronic pen 510 is not communicatively connected to the electronic device 500, the processor may determine whether an electronic pen currently communicatively connected to the electronic device 500 exists. According to an embodiment, if there is no other electronic pen that is currently communicatively connected to the electronic device 500, the processor may establish a communication connection with the first electronic pen 510. The processor may check whether a communication connection has been previously established with the first electronic pen 510 by using a memory (eg, the memory 340 of FIG. 3 ). If a communication connection with the first electronic pen 510 has been previously established, the processor may directly establish a communication connection with the first electronic pen 510 without any guidance. According to an embodiment, the processor may display a menu for establishing a communication connection with the first electronic pen 510 on the display. If a communication connection with the first electronic pen 510 has never been established before, the processor may output a guide screen for establishing a communication connection with the first electronic pen 510 on the display. The user can use the first electronic pen 510 after establishing a communication connection with the first electronic pen 510 using the guide screen.

다른 실시예에 따르면, 현재 전자 장치(500)와 통신 연결된 제2전자 펜(520)이 존재하는 경우, 프로세서는 제2전자 펜(520)으로 알림 신호를 전송할 수 있다. 알림 신호는 제2전자 펜(520)에서 진동, 소리 및/또는 광을 트리거하는 신호일 수 있다. 예를 들어, 프로세서가 제2전자 펜(520)으로 광을 트리거하는 신호를 전송하는 경우, 제2전자 펜(520)은 해당 신호를 수신함에 대응하여 발광 소자를 이용하여 광을 출력할 수 있다. 사용자는 출력된 광을 보고 제2전자 펜(520)이 전자 장치(500)와 통신 연결되어 있음을 확인할 수 있다.According to another embodiment, if there is a second electronic pen 520 that is currently communicatively connected to the electronic device 500, the processor may transmit a notification signal to the second electronic pen 520. The notification signal may be a signal that triggers vibration, sound, and/or light in the second electronic pen 520 . For example, when the processor transmits a signal for triggering light to the second electronic pen 520, the second electronic pen 520 may output light using a light emitting device in response to receiving the corresponding signal. . The user can confirm that the second electronic pen 520 is communicatively connected to the electronic device 500 by looking at the output light.

도 6a는 다양한 실시예에 따른 전자 장치가 전자 펜과 통신 연결을 수립하기 위한 가이드 화면을 도시한 것이다.6A illustrates a guide screen for an electronic device to establish a communication connection with an electronic pen according to various embodiments.

도 6b는 다양한 실시예에 따른 전자 펜에서 발광 소자를 이용하여 사용자에게 알림을 제공하는 것을 도시한 것이다.6B illustrates providing a notification to a user using a light emitting device in an electronic pen according to various embodiments.

도 6c는 다양한 실시예에 따른 전자 장치와 통신 연결되어 있는 전자 펜에서 움직임이 감지되는 경우 전자 장치에서 그래픽 오브젝트를 표시하는 것을 도시한 것이다.6C illustrates displaying a graphic object in an electronic device when motion is detected in an electronic pen connected to the electronic device through communication according to various embodiments of the present disclosure.

도 6a를 참조하면, 프로세서(예: 도 3의 프로세서(310))는 새로운 전자 펜과 통신 연결을 수립하기 위한 가이드를 제공할 수 있다. 전자 장치(600)와 통신 연결된 전자 펜이 없는데 디스플레이(예: 도 3의 디스플레이(320))에 대한 전자 펜의 터치 입력이 수신된 경우, 프로세서는 현재 디스플레이를 터치한 전자 펜과 통신 연결을 수립하기 위하여 도 6a에 도시된 것과 같은 가이드 화면(602)을 출력할 수 있다. 예를 들어, 가이드 화면(602)은 현재 디스플레이를 터치한 전자 펜의 이미지, 새로운 전자 펜이 감지되었음을 지시하는 문구 및 전자 펜과 통신 연결하기 위한 메뉴를 포함할 수 있다. 프로세서는 통신 연결 메뉴에 대한 사용자 입력에 기초하여 감지된 전자 펜과 통신 연결을 수립할 수 있다.Referring to FIG. 6A , a processor (eg, the processor 310 of FIG. 3 ) may provide a guide for establishing a communication connection with a new electronic pen. When there is no electronic pen communicatively connected to the electronic device 600 and a touch input of the electronic pen to the display (eg, the display 320 of FIG. 3 ) is received, the processor establishes a communication connection with the electronic pen currently touching the display. To do so, a guide screen 602 as shown in FIG. 6A may be output. For example, the guide screen 602 may include an image of an electronic pen currently touching the display, a text indicating that a new electronic pen has been detected, and a menu for communicating with the electronic pen. The processor may establish a communication connection with the detected electronic pen based on a user input for the communication connection menu.

도 6b를 참조하면, 전자 펜(610)은 전자 장치(600)로부터 수신한 알림 신호에 대응하여 사용자에게 알림을 제공하기 위한 구성을 포함할 수 있다. 예를 들어, 전자 펜(610)은 적어도 하나의 발광 소자(612)를 포함할 수 있다. 전자 펜(610)은 전자 장치(600)로부터 광 출력을 트리거하는 알림 신호를 수신함에 대응하여 발광 소자(612)를 이용하여 광을 출력할 수 있다. 다른 실시예에 따르면, 전자 펜(610)은 진동 모터를 포함할 수 있다. 전자 펜(610)은 전자 장치(600)로부터 진동을 트리거하는 알림 신호를 수신함에 대응하여, 진동을 일으켜 사용자에게 알림을 제공할 수 있다. 다른 실시예에 따르면, 전자 펜(610)은 스피커를 포함할 수 있다. 전자 펜(610)은 전자 장치(600)로부터 소리를 트리거하는 알림 신호를 수신함에 대응하여, 소리를 출력하여 사용자에게 알림을 제공할 수 있다. 전자 펜(610)에서 사용자에게 제공할 수 있는 알림은 광, 진동, 소리에 제한되지 않으며, 전자 펜(610)은 복수의 알림 방법을 이용하여 사용자에게 알림을 제공할 수도 있다.Referring to FIG. 6B , the electronic pen 610 may include a component for providing a notification to the user in response to a notification signal received from the electronic device 600 . For example, the electronic pen 610 may include at least one light emitting element 612 . The electronic pen 610 may output light using the light emitting element 612 in response to receiving a notification signal triggering light output from the electronic device 600 . According to another embodiment, the electronic pen 610 may include a vibration motor. In response to receiving a notification signal triggering vibration from the electronic device 600, the electronic pen 610 may vibrate and provide a notification to the user. According to another embodiment, the electronic pen 610 may include a speaker. In response to receiving a notification signal triggering a sound from the electronic device 600, the electronic pen 610 may output a sound to provide a notification to the user. Notifications that can be provided to the user by the electronic pen 610 are not limited to light, vibration, and sound, and the electronic pen 610 may provide notifications to the user using a plurality of notification methods.

도 6c를 참조하면, 프로세서는 전자 장치(600)와 통신 연결된 전자 펜(610)에 대한 움직임 정보에 기초하여, 디스플레이에 전자 펜(610)을 지시하는 그래픽 객체(604)를 표시할 수 있다. 프로세서는 통신 연결된 전자 펜(610)으로부터 움직임 정보를 수신할 수 있다. 움직임 정보는 전자 펜(610)의 센서 회로에서 획득한 전자 펜(610)의 위치, 속도, 가속도에 대한 정보를 포함할 수 있다. 프로세서는 전자 펜(610)의 움직임이 감지되는 경우, 디스플레이에 전자 펜(610)을 지시하는 그래픽 객체(604)를 출력할 수 있다. 프로세서는 그래픽 객체(604)에 대한 사용자 입력에 기초하여 전자 펜(610)에 관한 정보를 표시하거나, 전자 펜(610)을 제어할 수 있는 메뉴를 제공할 수 있다.Referring to FIG. 6C , the processor may display a graphic object 604 indicating the electronic pen 610 on the display based on motion information of the electronic pen 610 connected through communication with the electronic device 600 . The processor may receive motion information from the electronic pen 610 connected through communication. The motion information may include information about the position, speed, and acceleration of the electronic pen 610 acquired by the sensor circuit of the electronic pen 610 . When the movement of the electronic pen 610 is detected, the processor may output a graphic object 604 indicating the electronic pen 610 on the display. The processor may display information about the electronic pen 610 or provide a menu for controlling the electronic pen 610 based on a user input for the graphic object 604 .

일 실시예에 따르면, 프로세서는 전자 펜(610)의 움직임 및/또는 회전에 따라서 그래픽 객체(604)를 이동 및/또는 회전시킬 수 있다. 프로세서는 전자 펜의 위치 및 놓여진 방향에 대한 정보를 획득하고, 획득한 정보에 기반하여 그래픽 객체(604)를 표시할 수 있다. 예를 들어, 제1전자 펜은 가로 방향, 제2전자 펜은 세로 방향으로 놓여진 경우 프로세서는 제1전자 펜에 대응하는 제1그래픽 객체는 가로 방향으로, 제2전자 펜에 대응하는 제2그래픽 객체는 세로 방향으로 디스플레이 상에 표시할 수 있다. 프로세서는 전자 펜(610)으로부터 수신한 정보에 기반하여 그래픽 객체(604)가 전자 펜(610)과 동일하게 움직이도록 제어할 수 있다. 예를 들어, 제1전자 펜이 가로 방향에서 세로 방향으로 회전함에 따라서 프로세서는 제1그래픽 객체도 가로 방향에서 세로 방향으로 회전하는 형태로 출력할 수 있다. 예를 들어, 제1전자 펜이 오른쪽 방향으로 이동함에 따라서 프로세서는 제1그래픽 객체도 오른쪽 방향으로 이동하도록 출력할 수 있다.According to one embodiment, the processor may move and/or rotate the graphic object 604 according to the movement and/or rotation of the electronic pen 610 . The processor may obtain information about the position and direction of the electronic pen, and display the graphic object 604 based on the acquired information. For example, when the first electronic pen is placed in the horizontal direction and the second electronic pen is placed in the vertical direction, the processor moves the first graphic object corresponding to the first electronic pen in the horizontal direction and the second graphic corresponding to the second electronic pen. The object may be displayed on the display in a vertical direction. The processor may control the graphic object 604 to move the same as the electronic pen 610 based on information received from the electronic pen 610 . For example, as the first electronic pen rotates from the horizontal direction to the vertical direction, the processor may also output the first graphic object in a form that rotates from the horizontal direction to the vertical direction. For example, as the first electronic pen moves in the right direction, the processor may output the first graphic object to move in the right direction as well.

다양한 실시예에 따른 전자 장치는, 디스플레이, 통신 모듈, 메모리, 및 상기 디스플레이, 상기 통신 모듈 및 상기 메모리와 작동적으로(operatively) 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 디스플레이에 대한 제1전자 펜의 터치 입력을 수신하고, 상기 터치 입력을 수신함에 대응하여 상기 제1전자 펜이 상기 전자 장치와 상기 통신 모듈을 통해 연결되어 있는지 여부를 확인하고, 상기 제1전자 펜이 상기 전자 장치와 연결되어 있지 않음을 확인함에 대응하여 상기 전자 장치와 연결되어 있는 전자 펜이 존재하는지 여부를 확인하고, 상기 전자 장치와 연결되어 있는 제2전자 펜이 존재함을 확인함에 기반하여 상기 제2전자 펜에 알림 신호를 전송하고, 및 상기 전자 장치와 연결되어 있는 전자 펜이 존재하지 않음을 확인함에 기반하여 상기 제1전자 펜과 통신 연결을 수립하도록 설정될 수 있다.An electronic device according to various embodiments includes a display, a communication module, a memory, and a processor operatively connected to the display, the communication module, and the memory, wherein the processor includes a first electronic device for the display. Receiving a touch input from a pen, determining whether the first electronic pen is connected to the electronic device through the communication module in response to receiving the touch input, and determining whether the first electronic pen is connected to the electronic device. In response to confirming that it is not, it is checked whether an electronic pen connected to the electronic device exists, and based on confirming that a second electronic pen connected to the electronic device exists, the second electronic pen It may be configured to transmit a notification signal and to establish a communication connection with the first electronic pen based on confirming that there is no electronic pen connected to the electronic device.

다양한 실시예에 따르면, 상기 프로세서는, 상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하고, 및 상기 터치 입력을 수신했으나 상기 통신 신호를 수신하지 않음에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립하지 않은 것으로 결정하도록 설정될 수 있다.According to various embodiments, the processor checks whether there is a communication signal received by the communication module in response to receiving the touch input, and in response to receiving the touch input but not receiving the communication signal, It may be set to determine that the first electronic pen has not established a communication connection with the electronic device.

다양한 실시예에 따르면, 상기 프로세서는, 상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하고, 및 상기 터치 입력 및 상기 통신 신호를 동시에 또는 정해진 시간 간격 내에 수신함에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립한 것으로 결정하고 정해진 기능을 수행하도록 설정될 수 있다.According to various embodiments, the processor checks whether there is a communication signal received by the communication module in response to receiving the touch input, and in response to receiving the touch input and the communication signal simultaneously or within a predetermined time interval , it may be determined that the first electronic pen has established a communication connection with the electronic device and set to perform a predetermined function.

다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하고, 및 상기 제1전자 펜의 연결 기록이 있음을 확인함에 기반하여 상기 통신 모듈을 이용하여 제1전자 펜과 통신 연결을 수립하도록 설정될 수 있다.According to various embodiments, the processor determines whether there is a previous connection record of the first electronic pen in the memory, and based on confirming that there is a connection record of the first electronic pen, the processor uses the communication module to perform the first connection. 1Can be set to establish a communication connection with the electronic pen.

다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하고, 및 상기 제1전자 펜의 연결 기록이 없음을 확인함에 대응하여 상기 디스플레이에 페어링 가이드를 출력하도록 설정될 수 있다.According to various embodiments, the processor determines whether there is a previous connection record of the first electronic pen in the memory, and outputs a pairing guide to the display in response to confirming that there is no connection record of the first electronic pen. can be set to

다양한 실시예에 따르면, 상기 프로세서는, 상기 제2전자 펜으로부터 움직임 정보를 수신함에 기반하여, 상기 제2전자 펜 및 상기 제2전자 펜의 상태를 지시하는 그래픽 객체를 상기 디스플레이에 출력하도록 설정될 수 있다.According to various embodiments, the processor may be configured to output the second electronic pen and a graphic object indicating a state of the second electronic pen to the display, based on receiving motion information from the second electronic pen. can

다양한 실시예에 따른 전자 펜은, 통신 모듈, 메모리, 및 상기 통신 모듈 및 상기 메모리와 작동적으로(operatively) 연결된 프로세서를 포함하고, 상기 프로세서는, 공진 주파수를 감지함에 대응하여 전자 장치로 통신 신호를 전송하고, 상기 통신 신호에 대응하는 응답 신호를 수신하고, 상기 응답 신호를 수신함에 대응하여 상기 전자 장치로 제어 신호를 전송하도록 설정될 수 있다.An electronic pen according to various embodiments includes a communication module, a memory, and a processor operatively connected to the communication module and the memory, wherein the processor sends a communication signal to an electronic device in response to detecting a resonant frequency. It may be set to transmit, receive a response signal corresponding to the communication signal, and transmit a control signal to the electronic device in response to receiving the response signal.

다양한 실시예에 따르면, 상기 전자 펜은 적어도 하나의 발광 소자를 더 포함하고, 상기 프로세서는, 상기 전자 장치로부터 알림 신호를 수신함에 대응하여 상기 발광 소자에서 광을 출력하도록 설정될 수 있다.According to various embodiments, the electronic pen may further include at least one light emitting element, and the processor may be configured to output light from the light emitting element in response to receiving a notification signal from the electronic device.

다양한 실시예에 따르면, 상기 전자 펜은 진동 모터를 더 포함하고, 상기 프로세서는, 상기 전자 장치로부터 알림 신호를 수신함에 대응하여 상기 진동 모터를 이용하여 진동 알림을 출력하도록 설정될 수 있다.According to various embodiments, the electronic pen may further include a vibration motor, and the processor may be set to output a vibration notification using the vibration motor in response to receiving a notification signal from the electronic device.

다양한 실시예에 따르면, 상기 전자 펜은 센서 모듈을 더 포함하고, 상기 프로세서는, 상기 센서 모듈을 이용하여 상기 전자 장치의 디스플레이와 접촉을 감지하고, 및 상기 전자 장치와 접촉함에 대응하여 상기 전자 장치로 시리얼 넘버를 전송하도록 설정될 수 있다.According to various embodiments, the electronic pen further includes a sensor module, and the processor detects contact with a display of the electronic device by using the sensor module, and responds to the contact with the electronic device by using the sensor module. It can be configured to transmit the serial number with .

도 7은 다양한 실시예에 따른 전자 장치의 전자 펜 알림 및 연결 방법의 순서도이다.7 is a flowchart of a notification and connection method of an electronic pen of an electronic device according to various embodiments.

도 7에 도시된 방법은 도 1 내지 도 6을 통해 설명한 전자 장치(예: 도 1의 전자 장치(101))에 의해 수행될 수 있으며, 이하에서는 앞서 설명한 바 있는 기술적 특징에 대해서는 그 설명을 생략하기로 한다.The method shown in FIG. 7 may be performed by the electronic device (eg, the electronic device 101 of FIG. 1) described with reference to FIGS. 1 to 6, and descriptions of the technical features described above are omitted below. I'm going to do it.

다양한 실시예에 따르면, 동작 702에서, 전자 장치는 제1전자 펜의 터치 입력을 수신할 수 있다. 전자 장치가 수신할 수 있는 입력은 물리적인 터치 입력 외에, 호버링 또는 버튼 입력과 같은 입력 신호를 포함할 수 있다. 디스플레이(예: 도 3의 디스플레이(320))는 전자 펜의 터치 입력을 감지할 수 있는 터치 패널을 포함할 수 있다. 예를 들어, 사용자가 제1전자 펜을 들고 전자 장치의 디스플레이를 터치하면, 전자 장치는 터치 패널을 이용하여 디스플레이에 대한 제1전자 펜의 터치 입력을 수신할 수 있다.According to various embodiments, in operation 702, the electronic device may receive a touch input of the first electronic pen. Inputs that the electronic device can receive may include input signals such as hovering or button inputs in addition to physical touch inputs. A display (eg, the display 320 of FIG. 3 ) may include a touch panel capable of detecting a touch input of an electronic pen. For example, when a user touches a display of an electronic device while holding a first electronic pen, the electronic device may receive a touch input of the first electronic pen to the display using a touch panel.

다양한 실시예에 따르면, 동작 710에서, 전자 장치는 통신 신호가 수신되는지 확인할 수 있다. 일 실시예에 따르면, 전자 장치와 통신 연결되어 있는 전자 펜이 디스플레이를 터치하는 경우 전자 장치는 터치 입력과 동시에 또는 정해진 시간 간격 내에 통신 신호를 수신할 수 있다. 통신 신호는 전자 펜의 시리얼 넘버(serial number)를 포함할 수 있다. 전자 장치는 전자 장치와 통신 연결된 전자 펜의 터치 입력을 수신할 경우 통신 신호를 함께 수신할 수 있고, 전자 장치와 통신 연결되지 않은 전자 펜의 터치 입력을 수신하는 경우 통신 신호를 수신하지 못할 수 있다. 일 실시예에 따르면, 전자 장치는 터치 입력과 통신 신호가 동시에 또는 정해진 시간 간격 내에 수신되는 경우 현재 디스플레이를 터치한 전자 펜이 전자 장치와 통신 연결되어 있는 것으로 결정할 수 있고, 터치 입력과 통신 신호가 동시에 또는 정해진 시간 간격 내에 수신되지 않는 경우 현재 디스플레이를 터치한 전자 펜이 전자 장치와 통신 연결되어 있지 않은 것으로 결정할 수 있다.According to various embodiments, in operation 710, the electronic device may determine whether a communication signal is received. According to an embodiment, when an electronic pen communicatively connected to the electronic device touches the display, the electronic device may receive a communication signal simultaneously with the touch input or within a predetermined time interval. The communication signal may include a serial number of the electronic pen. The electronic device may receive a communication signal when receiving a touch input from an electronic pen that is communicatively connected to the electronic device, and may not receive a communication signal when receiving a touch input from an electronic pen that is not communicatively connected to the electronic device. . According to an embodiment, when a touch input and a communication signal are received simultaneously or within a predetermined time interval, the electronic device may determine that the electronic pen currently touching the display is communicatively connected to the electronic device, and the touch input and the communication signal are If reception is not received at the same time or within a predetermined time interval, it may be determined that the electronic pen currently touching the display is not communicating with the electronic device.

다양한 실시예에 따르면, 전자 장치는 제1전자 펜이 전자 장치와 통신 연결되어 있는 것으로 결정함에 대응하여 정해진 동작을 수행할 수 있다. 전자 장치는 전자 펜의 터치 입력 및/또는 제스처에 따라서 정해진 동작을 수행할 수 있다. 예를 들어, 전자 펜은 전자 펜과 통신으로 연결된 전자장치의 디스플레이를 통해, 전자 펜의 압력 정보, 배터리 상태 정보 또는 버튼 입력에 따른 이벤트 정보와 같은 다양한 동작을 수행할 수 있다. According to various embodiments, the electronic device may perform a predetermined operation in response to determining that the first electronic pen is communicatively connected to the electronic device. The electronic device may perform a predetermined operation according to a touch input and/or gesture of the electronic pen. For example, the electronic pen may perform various operations, such as pressure information of the electronic pen, battery status information, or event information according to a button input, through a display of an electronic device connected to the electronic pen through communication.

또한 전자 펜은 에어 제스처(air gesture) 기능을 제공할 수 있으며, 상기 에어 제스처 기능은 버튼 입력(button press) 기능과 제스처(gesture) 기능을 포함할 수 있다. 전자 펜에서 버튼 입력(button press)이 발생하는 경우, 단일 입력(single press) 및/또는 더블 입력(double press)과 매핑되는 기능이 전자 장치에서 실행될 수 있으며, 전자 펜에서 제스처(gesture)가 발생하는 경우 좌/우(left/right), 위/아래(up/down), 및/또는 회전(rotation)과 매핑되는 기능이 전자 장치에서 실행될 수 있다. 예를 들어, 전자 장치에서 카메라 어플리케이션을 실행하는 동안, 전자 펜에서 시계방향(clockwise)/반 시계방향(counterclockwise)과 같은 제스처 동작이 발생되면, 전자 장치에서는 줌 인/아웃(zoom in/out) 기능을 수행할 수 있다. 또는 전자 펜에서 구비된 버튼으로 단일 입력(single press)이 검출되면, 전자 장치는 촬영(camera capture) 기능을 수행하고, 더블 입력(double press)이 검출되면 전/후면 카메라(front/rear camera)를 변경하는 기능을 수행할 수 있다. In addition, the electronic pen may provide an air gesture function, and the air gesture function may include a button press function and a gesture function. When a button press occurs on the electronic pen, a function mapped to a single press and/or double press may be executed on the electronic device, and a gesture occurs on the electronic pen. In this case, functions mapped to left/right, up/down, and/or rotation may be executed in the electronic device. For example, while a camera application is being executed in an electronic device, if a gesture action such as clockwise/counterclockwise is generated from an electronic pen, the electronic device zooms in/out function can be performed. Alternatively, when a single press is detected with a button provided in the electronic pen, the electronic device performs a camera capture function, and when a double press is detected, the front/rear camera You can perform a function to change the .

또한 전자 펜의 경우, 일반 마우스를 이용하여 표시하는 포인터와 같이, 전자 펜의 움직임에 따라 이동하는 에어 포인터(air pointer)를 전자 장치에 제공할 수 있으며, 상기 에어 포인터는 전자 장치에서 실행 중인 어플리케이션의 종류 또는 실행 중인 어플리케이션에 포함된 객체의 종류에 따라 다르게 표시될 수 있다.In addition, in the case of an electronic pen, an air pointer that moves according to the movement of the electronic pen, like a pointer displayed using a general mouse, may be provided to the electronic device, and the air pointer is an application running in the electronic device. may be displayed differently depending on the type of object or the type of object included in the running application.

다양한 실시예에 따르면, 동작 720에서, 통신 신호가 수신되지 않음에 대응하여, 전자 장치는 현재 통신 연결된 제2전자 펜이 존재하는지 확인할 수 있다. 예를 들어, 디스플레이에는 제1전자 펜의 터치 입력이 수신되었으나 통신 신호는 수신되지 않은 경우, 전자 장치는 전자 장치의 통신 모듈을 이용하여 통신 연결한 전자 펜이 존재하는지 확인할 수 있다. 일 실시예에 따르면, 전자 장치는 전자 장치와 통신 연결된 제2전자 펜이 존재함을 확인할 수 있다. 다른 실시예에 따르면, 전자 장치는 전자 장치와 통신 연결된 다른 전자 펜이 존재하지 않음을 확인할 수 있다.According to various embodiments, in operation 720, in response to a communication signal not being received, the electronic device may determine whether a second electronic pen currently connected in communication exists. For example, when a touch input of a first electronic pen is received on the display but a communication signal is not received, the electronic device may check whether or not there is a communicatively connected electronic pen using a communication module of the electronic device. According to an embodiment, the electronic device can confirm that a second electronic pen communicatively connected to the electronic device exists. According to another embodiment, the electronic device may determine that there is no other electronic pen communicatively connected to the electronic device.

다양한 실시예에 따르면, 동작 722에서, 전자 장치는 현재 제2전자 펜과 통신 연결되어 있음에 대응하여 제2전자 펜에 알림 신호를 전송할 수 있다. 알림 신호는 진동, 소리, 및 광 중 적어도 하나를 트리거할 수 있다. 예를 들어, 전자 장치는 제2전자 펜으로 진동을 트리거하는 알림 신호를 전송할 수 있다. 제2전자 펜의 펜 전자 장치는 상기 알림 신호를 수신하여 진동 모터를 구동할 수 있다. 사용자는 진동이 울리는 전자 펜이 전자 장치와 통신 연결된 것을 확인하고 해당 펜으로 디스플레이를 터치할 수 있다.According to various embodiments, in operation 722, the electronic device may transmit a notification signal to the second electronic pen in response to the current communication connection with the second electronic pen. The notification signal may trigger at least one of vibration, sound, and light. For example, the electronic device may transmit a notification signal triggering vibration to the second electronic pen. The pen electronic device of the second electronic pen may receive the notification signal and drive the vibration motor. The user may confirm that the electronic pen that vibrates is connected to the electronic device and may touch the display with the corresponding pen.

다양한 실시예에 따르면, 동작 730에서, 전자 장치는 현재 통신 연결된 전자 펜이 없음에 대응하여 제1전자 펜과 통신 연결을 수립할 수 있다. 전자 장치는 통신 모듈을 이용하여 제1전자 펜과 통신 연결을 수립할 수 있다. 전자 장치는 메모리(예: 도 3의 메모리(340))를 이용하여 제1전자 펜이 이전에 전자 장치와 통신 연결을 수립한 적이 있는지 확인할 수 있다. 일 실시예에 따르면, 제1전자 펜이 이전에 전자 장치와 통신 연결을 수립한 기록이 있는 경우, 전자 장치는 별다른 가이드 없이 바로 전자 장치와 제1전자 펜의 통신 연결을 수립할 수 있다. 다른 실시예에 따르면, 제1전자 펜이 이전에 전자 장치와 통신 연결을 수립한 적이 없는 경우, 전자 장치는 제1전자 펜과 전자 장치를 페어링하기 위한 가이드를 디스플레이에 출력할 수 있다. 즉, 전자 펜이 전자 장치에 최초 연결 시 전자 장치는 전자 펜의 연결을 위한 가이드를 제공할 수 있다.According to various embodiments, in operation 730, the electronic device may establish a communication connection with the first electronic pen in response to the absence of a currently connected electronic pen. The electronic device may establish a communication connection with the first electronic pen using the communication module. The electronic device may check whether the first electronic pen has previously established a communication connection with the electronic device by using a memory (eg, the memory 340 of FIG. 3 ). According to an embodiment, if there is a record of the first electronic pen establishing a communication connection with the electronic device in the past, the electronic device may directly establish a communication connection between the electronic device and the first electronic pen without any guidance. According to another embodiment, if the first electronic pen has never established a communication connection with the electronic device before, the electronic device may output a guide for pairing the first electronic pen with the electronic device on the display. That is, when the electronic pen is initially connected to the electronic device, the electronic device may provide a guide for connecting the electronic pen.

전자 장치는 전자 장치와 통신 연결된 펜의 움직임에 기반하여, 디스플레이에 전자 펜을 제어할 수 있는 메뉴 아이콘을 표시할 수 있다.The electronic device may display a menu icon for controlling the electronic pen on the display based on the movement of the pen connected to the electronic device through communication.

다양한 실시예에 따르면, 전자 장치는 전자 펜으로부터 전자 펜의 움직임에 관한 정보를 획득할 수 있다. 전자 펜은 센서 회로로부터 전자 펜의 움직임에 관한 정보를 획득할 수 있다. 전자 펜은 획득한 움직임 정보를 전자 장치로 전송할 수 있다. 예를 들어, 사용자가 전자 장치와 통신 연결된 전자 펜을 집어 드는 경우, 전자 장치는 전자 펜으로부터 사용자가 해당 전자 펜을 접촉했다는 정보를 수신할 수 있다. 예를 들어, 전자 펜은 내장된 터치 센서를 통해서 사용자 접촉을 감지할 수 있으며, 통신 연결된 전자 장치로 사용자 접촉에 대한 정보를 전송할 수 있다.According to various embodiments, the electronic device may obtain information about movement of the electronic pen from the electronic pen. The electronic pen may acquire information about movement of the electronic pen from the sensor circuit. The electronic pen may transmit the acquired motion information to the electronic device. For example, when a user picks up an electronic pen that is communicatively connected to the electronic device, the electronic device may receive information indicating that the user has touched the corresponding electronic pen from the electronic device. For example, the electronic pen may detect a user's touch through a built-in touch sensor and transmit information on the user's touch to a communication-connected electronic device.

다양한 실시예에 따르면, 전자 장치는 전자 펜의 움직임 정보를 획득함에 대응하여, 전자 펜을 제어할 수 있는 그래픽 객체(예: 메뉴 아이콘)를 디스플레이에 표시할 수 있다. 예를 들어, 전자 장치는 사용자가 전자 장치에 통신 연결되지 않은 전자 펜을 이용할 때는 그래픽 객체를 표시하지 않고, 통신 연결된 전자 펜을 이용할 때 그래픽 객체를 표시할 수 있다.According to various embodiments, the electronic device may display a graphic object (eg, a menu icon) capable of controlling the electronic pen on the display in response to obtaining movement information of the electronic pen. For example, the electronic device may not display a graphic object when a user uses an electronic pen that is not communicatively connected to the electronic device, but may display a graphic object when a user uses an electronic pen that is communicatively connected to the electronic device.

다양한 실시예에 따르면, 전자 장치는 그래픽 객체에 대한 사용자 입력에 기초하여, 전자 펜의 정보를 표시하고 및/또는 전자 펜을 제어할 수 있는 메뉴를 제공할 수 있다. 예를 들어, 전자 장치는 그래픽 객체에 대한 사용자 입력에 기초하여 전자 펜의 시리얼 넘버 및 상태를 표시할 수 있다. 예를 들어, 전자 장치는 그래픽 객체에 대한 사용자 입력에 기초하여 전자 펜의 통신 연결을 해제할 수 있는 메뉴를 제공할 수 있다.According to various embodiments, the electronic device may display information about the electronic pen and/or provide a menu for controlling the electronic pen based on a user input for a graphic object. For example, the electronic device may display the serial number and status of the electronic pen based on a user's input on the graphic object. For example, the electronic device may provide a menu for disconnecting communication of the electronic pen based on a user input for a graphic object.

도 8은 다양한 실시예에 따른 전자 장치와 전자 펜의 동작 순서도이다.8 is an operation flowchart of an electronic device and an electronic pen according to various embodiments.

다양한 실시예에 따르면, 동작 810에서, 전자 펜이 전자 장치의 디스플레이 근처로 다가가면 전자 장치와 공진 주파수가 형성될 수 있다. 미리 지정된 범위의 공진 주파수(예: 530kHz 내지 595kHz)가 형성이 되면, 동작 820에서, 전자 펜은 전자 장치로 통신 신호를 전송할 수 있다. 전자 펜이 전자 장치와 무선 통신을 이용하여 통신 연결이 된 상태라면, 동작 830에서, 전자 펜은 전송한 통신 신호에 대한 응답 신호를 전자 장치로부터 수신할 수 있다. 전자 펜은 통신 신호에 대한 응답을 수신함에 대응하여, 동작 840에서, 무선 통신을 이용하여 전자 장치로 다양한 제어 신호를 전송할 수 있다. 전자 펜이 전자 장치와 무선 통신을 이용하여 통신 연결이 되어 있지 않다면, 전자 장치와 통신 연결을 수행할 수 있다. 전자 펜이 전자 장치와 통신 연결된 상태라면 전자 장치로 다양한 제어 신호를 전송할 수 있다. 전자 장치는 전자 펜으로부터 제어 신호를 수신하여 정해진 기능을 수행할 수 있다. 예를 들어, 전자 장치는 전자 펜에서 제스처가 발생하는 경우 상/하, 좌/우 및/또는 회전에 매핑되는 기능을 제공하는 에어 제스처(air gesture) 기능 및 펜의 움직임에 따라 이동하는 에어 포인터(air pointer)기능과 같은 다양한 기능을 수행할 수 있다. According to various embodiments, in operation 810, when the electronic pen approaches the display of the electronic device, a resonant frequency may be formed with the electronic device. When a resonant frequency within a predetermined range (eg, 530 kHz to 595 kHz) is formed, in operation 820, the electronic pen may transmit a communication signal to the electronic device. If the electronic pen is connected to the electronic device through wireless communication, in operation 830, the electronic pen may receive a response signal to the transmitted communication signal from the electronic device. In response to receiving a response to the communication signal, the electronic pen may transmit various control signals to the electronic device using wireless communication in operation 840 . If the electronic pen is not connected to the electronic device through wireless communication, it may establish a communication connection with the electronic device. If the electronic pen is in a communication-connected state with the electronic device, various control signals may be transmitted to the electronic device. The electronic device may perform a predetermined function by receiving a control signal from the electronic pen. For example, the electronic device has an air gesture function that provides a function of mapping up/down, left/right, and/or rotation when a gesture occurs with an electronic pen, and an air pointer that moves according to the movement of the pen. It can perform various functions such as the air pointer function.

다양한 실시예에 따르면, 전자 장치는 복수의 전자 펜과 통신 연결을 수립할 수 있다. 일 실시예에 따르면, 전자 장치는 디스플레이에 대한 전자 펜의 터치 입력을 수신하고, 수신한 터치 입력에 기초하여 전자 펜과 통신 연결을 수립할 수 있다. 예를 들어, 전자 장치는 제1전자 펜의 디스플레이에 대한 제1터치 입력을 수신하고, 제1전자 펜과 통신 연결을 수립할 수 있다. 전자 장치는 제1전자 펜과 통신 연결을 수립한 상태에서, 제2전자 펜의 디스플레이에 대한 제2터치 입력을 수신하고, 제2전자 펜과 통신 연결을 수립할 수 있다. 전자 장치는 제1전자 펜 및 제2전자 펜과 통신 연결을 수립한 상태에서, 제3전자 펜의 디스플레이에 대한 제3터치 입력을 수신하고, 제3전자 펜과 통신 연결을 수립할 수 있다. 전자 장치가 적어도 하나의 펜과 통신 연결을 수립하는 방법은 위에서 기술한 실시예로 제한되지 않는다.According to various embodiments, an electronic device may establish a communication connection with a plurality of electronic pens. According to an embodiment, an electronic device may receive a touch input of an electronic pen on a display and establish a communication connection with the electronic pen based on the received touch input. For example, the electronic device may receive a first touch input on the display of the first electronic pen and establish a communication connection with the first electronic pen. In a state in which a communication connection is established with the first electronic pen, the electronic device may receive a second touch input to the display of the second electronic pen and establish a communication connection with the second electronic pen. In a state in which communication connections are established with the first electronic pen and the second electronic pen, the electronic device may receive a third touch input for the display of the third electronic pen and establish a communication connection with the third electronic pen. A method of establishing a communication connection with the at least one pen by the electronic device is not limited to the above-described embodiment.

다양한 실시예에 따르면, 전자 장치는 인디케이터(예: 가이드 메시지)를 출력하여, 새로운 전자 펜과 추가로 통신 연결할 수 있다. 예를 들어, 전자 장치는 전자 펜의 디스플레이에 대한 터치 입력을 수신함에 대응하여 전자 펜과 통신 연결하기 위한 인디케이터를 디스플레이에 출력할 수 있다. 전자 장치는 인디케이터에 대한 사용자 입력에 기초하여 전자 장치와 접촉한 전자 펜과 통신 연결을 수립할 수 있다.According to various embodiments, the electronic device may additionally communicate with the new electronic pen by outputting an indicator (eg, a guide message). For example, the electronic device may output an indicator for communication connection with the electronic pen to the display in response to receiving a touch input to the display of the electronic pen. The electronic device may establish a communication connection with the electronic pen in contact with the electronic device based on a user input for the indicator.

다양한 실시예에 따르면, 전자 장치는 복수의 전자 펜과 통신 연결된 경우, 각 전자 펜의 그래픽 객체를 구분하여 출력할 수 있다. 예를 들어, 전자 장치가 제1전자 펜, 제2전자 펜 및 제3전자 펜과 통신 연결되어 있는 경우, 전자 장치는 제1전자 펜에 대응하는 제1그래픽 객체를 제1색으로, 제2전자 펜에 대응하는 제2그래픽 객체를 제2색으로, 제3전자 펜에 대응하는 제3그래픽 객체를 제3색으로 출력할 수 있다. 전자 장치가 복수의 전자 펜에 대응하는 그래픽 객체들을 구분하기 위하여 변경할 수 있는 특징은 색깔에 한정되지 않고, 다양한 시각적, 감각적 특징을 포함할 수 있다.According to various embodiments, when an electronic device is communicatively connected to a plurality of electronic pens, it may distinguish and output graphic objects of each electronic pen. For example, when the electronic device is communicatively connected to a first electronic pen, a second electronic pen, and a third electronic pen, the electronic device displays a first graphic object corresponding to the first electronic pen in a first color and a second electronic pen. A second graphic object corresponding to the electronic pen may be output in a second color, and a third graphic object corresponding to a third electronic pen may be output in a third color. Features that can be changed by the electronic device to distinguish graphic objects corresponding to a plurality of electronic pens are not limited to colors, and may include various visual and sensory features.

다양한 실시예에 따른 전자 펜 알림 및 연결 방법은, 디스플레이에 대한 제1전자 펜의 터치 입력을 수신하는 동작, 상기 터치 입력을 수신함에 대응하여 상기 제1전자 펜이 전자 장치와 통신 모듈을 통해 연결되어 있는지 여부를 확인하는 동작, 상기 제1전자 펜이 상기 전자 장치와 연결되어 있지 않음을 확인함에 대응하여 상기 전자 장치와 연결되어 있는 전자 펜이 존재하는지 여부를 확인하는 동작, 상기 전자 장치와 연결되어 있는 제2전자 펜이 존재함을 확인함에 기반하여 상기 제2전자 펜에 알림 신호를 전송하는 동작, 및 상기 전자 장치와 연결되어 있는 전자 펜이 존재하지 않음을 확인함에 기반하여 상기 제1전자 펜과 통신 연결을 수립하는 동작을 포함할 수 있다.An electronic pen notification and connection method according to various embodiments includes an operation of receiving a touch input of a first electronic pen on a display, and a connection between the first electronic pen and an electronic device through a communication module in response to receiving the touch input. Operation of checking whether the electronic pen is connected to the electronic device, operation of checking whether or not there is an electronic pen connected to the electronic device in response to confirming that the first electronic pen is not connected to the electronic device, connection with the electronic device An operation of transmitting a notification signal to the second electronic pen based on confirmation that the second electronic pen exists, and an operation of transmitting a notification signal to the second electronic pen based on confirmation that the electronic pen connected to the electronic device does not exist. It may include an operation to establish a communication connection with the pen.

다양한 실시예에 따르면, 상기 제1전자 펜이 전자 장치와 통신 연결을 수립했는지 확인하는 동작은, 상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하는 동작, 및 상기 터치 입력을 수신했으나 상기 통신 신호를 수신하지 않음에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립하지 않은 것으로 결정하는 동작을 포함할 수 있다.According to various embodiments, the operation of determining whether the first electronic pen has established a communication connection with the electronic device may include an operation of determining whether there is a communication signal received through the communication module in response to receiving the touch input, and an operation of determining whether the touch input is received. In response to receiving an input but not receiving the communication signal, an operation of determining that the first electronic pen has not established a communication connection with the electronic device may be included.

다양한 실시예에 따르면, 상기 제1전자 펜이 전자 장치와 통신 연결을 수립했는지 확인하는 동작은, 상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하는 동작, 및 상기 터치 입력 및 상기 통신 신호를 동시에 또는 정해진 시간 간격 내에 수신함에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립한 것으로 결정하고 정해진 기능을 수행하는 동작을 포함할 수 있다.According to various embodiments, the operation of determining whether the first electronic pen has established a communication connection with the electronic device may include an operation of determining whether there is a communication signal received through the communication module in response to receiving the touch input, and an operation of determining whether the touch input is received. In response to receiving the input and the communication signal simultaneously or within a predetermined time interval, determining that the first electronic pen has established a communication connection with the electronic device and performing a predetermined function.

다양한 실시예에 따르면, 상기 제1전자 펜과 통신 연결을 수립하는 동작은, 상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하는 동작, 및 상기 제1전자 펜의 연결 기록이 있음을 확인함에 대응하여 상기 통신 모듈을 이용하여 제1전자 펜과 통신 연결을 수립하는 동작을 포함할 수 있다.According to various embodiments, the operation of establishing a communication connection with the first electronic pen may include an operation of checking whether there is a previous connection record of the first electronic pen in the memory, and whether there is a connection record of the first electronic pen. In response to confirmation, an operation of establishing a communication connection with the first electronic pen using the communication module may be included.

다양한 실시예에 따르면, 상기 제1전자 펜과 통신 연결을 수립하는 동작은, 상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하는 동작, 및 상기 제1전자 펜의 연결 기록이 없음을 확인함에 대응하여 상기 디스플레이에 페어링 가이드를 출력하는 동작을 포함할 수 있다.According to various embodiments, the operation of establishing a communication connection with the first electronic pen may include an operation of checking whether there is a previous connection record of the first electronic pen in the memory, and an operation of determining that there is no connection record of the first electronic pen. In response to confirmation, an operation of outputting a pairing guide to the display may be included.

다양한 실시예에 따르면, 상기 제2전자 펜으로부터 움직임 정보를 수신함에 기반하여, 상기 제2전자 펜 및 상기 제2전자 펜의 상태를 지시하는 그래픽 객체를 상기 디스플레이에 출력하는 동작을 포함할 수 있다.According to various embodiments, based on receiving motion information from the second electronic pen, an operation of outputting the second electronic pen and a graphic object indicating a state of the second electronic pen to the display may be included. .

Claims (16)

전자 장치에 있어서,
디스플레이;
통신 모듈;
메모리; 및
상기 디스플레이, 상기 통신 모듈 및 상기 메모리와 작동적으로(operatively) 연결된 프로세서를 포함하고,
상기 프로세서는,
상기 디스플레이에 대한 제1전자 펜의 터치 입력을 수신하고,
상기 터치 입력을 수신함에 대응하여 상기 제1전자 펜이 상기 전자 장치와 상기 통신 모듈을 통해 연결되어 있는지 여부를 확인하고,
상기 제1전자 펜이 상기 전자 장치와 연결되어 있지 않음을 확인함에 대응하여 상기 전자 장치와 연결되어 있는 전자 펜이 존재하는지 여부를 확인하고,
상기 전자 장치와 연결되어 있는 제2전자 펜이 존재함을 확인함에 기반하여 상기 제2전자 펜에 알림 신호를 전송하고, 및
상기 전자 장치와 연결되어 있는 전자 펜이 존재하지 않음을 확인함에 기반하여 상기 제1전자 펜과 통신 연결을 수립하도록 설정된 전자 장치.
In electronic devices,
display;
communication module;
Memory; and
a processor operatively coupled with the display, the communication module, and the memory;
the processor,
Receiving a touch input of a first electronic pen on the display;
In response to receiving the touch input, check whether the first electronic pen is connected to the electronic device through the communication module;
In response to confirming that the first electronic pen is not connected to the electronic device, check whether an electronic pen connected to the electronic device exists;
Transmitting a notification signal to the second electronic pen based on confirming that the second electronic pen connected to the electronic device exists, and
An electronic device configured to establish a communication connection with the first electronic pen based on confirming that there is no electronic pen connected to the electronic device.
제 1항에 있어서,
상기 프로세서는,
상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하고, 및
상기 터치 입력을 수신했으나 상기 통신 신호를 수신하지 않음에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립하지 않은 것으로 결정하도록 설정된 전자 장치.
According to claim 1,
the processor,
Checking whether there is a communication signal received by the communication module in response to receiving the touch input, and
The electronic device configured to determine that the first electronic pen has not established a communication connection with the electronic device in response to receiving the touch input but not receiving the communication signal.
제 1항에 있어서,
상기 프로세서는,
상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하고, 및
상기 터치 입력 및 상기 통신 신호를 동시에 또는 정해진 시간 간격 내에 수신함에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립한 것으로 결정하고 정해진 기능을 수행하도록 설정된 전자 장치.
According to claim 1,
the processor,
Checking whether there is a communication signal received by the communication module in response to receiving the touch input, and
The electronic device configured to determine that the first electronic pen has established a communication connection with the electronic device and perform a predetermined function in response to receiving the touch input and the communication signal simultaneously or within a predetermined time interval.
제 1항에 있어서,
상기 프로세서는,
상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하고, 및
상기 제1전자 펜의 연결 기록이 있음을 확인함에 기반하여 상기 통신 모듈을 이용하여 제1전자 펜과 통신 연결을 수립하도록 설정된 전자 장치.
According to claim 1,
the processor,
Check whether there is a previous connection record of the first electronic pen in the memory, and
An electronic device configured to establish a communication connection with the first electronic pen using the communication module based on confirming that there is a connection record of the first electronic pen.
제1항에 있어서,
상기 프로세서는,
상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하고, 및
상기 제1전자 펜의 연결 기록이 없음을 확인함에 대응하여 상기 디스플레이에 페어링 가이드를 출력하도록 설정된 전자 장치.
According to claim 1,
the processor,
Check whether there is a previous connection record of the first electronic pen in the memory, and
An electronic device configured to output a pairing guide to the display in response to confirming that there is no connection record of the first electronic pen.
제 1항에 있어서,
상기 프로세서는,
상기 제2전자 펜으로부터 움직임 정보를 수신함에 기반하여, 상기 제2전자 펜 및 상기 제2전자 펜의 상태를 지시하는 그래픽 객체를 상기 디스플레이에 출력하도록 설정된 전자 장치.
According to claim 1,
the processor,
The electronic device configured to output the second electronic pen and a graphic object indicating a state of the second electronic pen to the display, based on receiving motion information from the second electronic pen.
전자 펜에 있어서,
통신 모듈;
메모리; 및
상기 통신 모듈 및 상기 메모리와 작동적으로(operatively) 연결된 프로세서를 포함하고,
상기 프로세서는,
공진 주파수를 감지함에 대응하여 전자 장치로 통신 신호를 전송하고,
상기 통신 신호에 대응하는 응답 신호를 수신하고,
상기 응답 신호를 수신함에 대응하여 상기 전자 장치로 제어 신호를 전송하도록 설정된 전자 펜.
In the electronic pen,
communication module;
Memory; and
a processor operatively coupled with the communication module and the memory;
the processor,
Transmitting a communication signal to the electronic device in response to detecting the resonant frequency;
Receiving a response signal corresponding to the communication signal;
An electronic pen configured to transmit a control signal to the electronic device in response to receiving the response signal.
제 7항에 있어서,
상기 전자 펜은 적어도 하나의 발광 소자를 더 포함하고,
상기 프로세서는,
상기 전자 장치로부터 알림 신호를 수신함에 대응하여 상기 발광 소자에서 광을 출력하도록 설정된 전자 펜.
According to claim 7,
The electronic pen further includes at least one light emitting element,
the processor,
An electronic pen configured to output light from the light emitting element in response to receiving a notification signal from the electronic device.
제 7항에 있어서,
상기 전자 펜은 진동 모터를 더 포함하고,
상기 프로세서는,
상기 전자 장치로부터 알림 신호를 수신함에 대응하여 상기 진동 모터를 이용하여 진동 알림을 출력하도록 설정된 전자 펜.
According to claim 7,
The electronic pen further includes a vibration motor,
the processor,
An electronic pen configured to output a vibration notification using the vibration motor in response to receiving a notification signal from the electronic device.
제 7항에 있어서,
상기 전자 펜은 센서 모듈을 더 포함하고,
상기 프로세서는,
상기 센서 모듈을 이용하여 상기 전자 장치의 디스플레이와 접촉을 감지하고, 및
상기 전자 장치와 접촉함에 대응하여 상기 전자 장치로 시리얼 넘버를 전송하도록 설정된 전자 펜.
According to claim 7,
The electronic pen further includes a sensor module,
the processor,
Detecting a contact with a display of the electronic device using the sensor module, and
An electronic pen configured to transmit a serial number to the electronic device in response to contact with the electronic device.
전자 펜 알림 및 연결 방법에 있어서,
디스플레이에 대한 제1전자 펜의 터치 입력을 수신하는 동작,
상기 터치 입력을 수신함에 대응하여 상기 제1전자 펜이 전자 장치와 통신 모듈을 통해 연결되어 있는지 여부를 확인하는 동작,
상기 제1전자 펜이 상기 전자 장치와 연결되어 있지 않음을 확인함에 대응하여 상기 전자 장치와 연결되어 있는 전자 펜이 존재하는지 여부를 확인하는 동작,
상기 전자 장치와 연결되어 있는 제2전자 펜이 존재함을 확인함에 기반하여 상기 제2전자 펜에 알림 신호를 전송하는 동작, 및
상기 전자 장치와 연결되어 있는 전자 펜이 존재하지 않음을 확인함에 기반하여 상기 제1전자 펜과 통신 연결을 수립하는 동작을 포함하는 방법.
In the electronic pen notification and connection method,
Receiving a touch input of a first electronic pen on a display;
checking whether the first electronic pen is connected to an electronic device through a communication module in response to receiving the touch input;
An operation of checking whether an electronic pen connected to the electronic device exists in response to confirming that the first electronic pen is not connected to the electronic device;
Transmitting a notification signal to the second electronic pen based on confirming that the second electronic pen connected to the electronic device exists; and
and establishing a communication connection with the first electronic pen based on confirming that there is no electronic pen connected to the electronic device.
제 11항에 있어서,
상기 제1전자 펜이 전자 장치와 통신 연결을 수립했는지 확인하는 동작은,
상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하는 동작, 및
상기 터치 입력을 수신했으나 상기 통신 신호를 수신하지 않음에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립하지 않은 것으로 결정하는 동작을 포함하는 방법.
According to claim 11,
The operation of checking whether the first electronic pen establishes a communication connection with the electronic device,
An operation of checking whether there is a communication signal received by the communication module in response to receiving the touch input; and
and determining that the first electronic pen has not established a communication connection with the electronic device in response to receiving the touch input but not receiving the communication signal.
제 11항에 있어서,
상기 제1전자 펜이 전자 장치와 통신 연결을 수립했는지 확인하는 동작은,
상기 터치 입력을 수신함에 대응하여 상기 통신 모듈로 수신되는 통신 신호가 있는지 확인하는 동작, 및
상기 터치 입력 및 상기 통신 신호를 동시에 또는 정해진 시간 간격 내에 수신함에 대응하여, 상기 제1전자 펜이 상기 전자 장치와 통신 연결을 수립한 것으로 결정하고 정해진 기능을 수행하는 동작을 포함하는 방법.
According to claim 11,
The operation of checking whether the first electronic pen establishes a communication connection with the electronic device,
An operation of checking whether there is a communication signal received by the communication module in response to receiving the touch input; and
and determining that the first electronic pen has established a communication connection with the electronic device and performing a predetermined function in response to receiving the touch input and the communication signal simultaneously or within a predetermined time interval.
제 11항에 있어서,
상기 제1전자 펜과 통신 연결을 수립하는 동작은,
상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하는 동작, 및
상기 제1전자 펜의 연결 기록이 있음을 확인함에 대응하여 상기 통신 모듈을 이용하여 제1전자 펜과 통신 연결을 수립하는 동작을 포함하는 방법.
According to claim 11,
The operation of establishing a communication connection with the first electronic pen,
Checking whether there is a previous connection record of the first electronic pen in the memory; and
and establishing a communication connection with the first electronic pen using the communication module in response to confirming that there is a connection record of the first electronic pen.
제11항에 있어서,
상기 제1전자 펜과 통신 연결을 수립하는 동작은,
상기 메모리에 상기 제1전자 펜의 이전 연결 기록이 있는지 확인하는 동작, 및
상기 제1전자 펜의 연결 기록이 없음을 확인함에 대응하여 상기 디스플레이에 페어링 가이드를 출력하는 동작을 포함하는 방법.
According to claim 11,
The operation of establishing a communication connection with the first electronic pen,
Checking whether there is a previous connection record of the first electronic pen in the memory; and
and outputting a pairing guide to the display in response to confirming that there is no connection record of the first electronic pen.
제 11항에 있어서,
상기 제2전자 펜으로부터 움직임 정보를 수신함에 기반하여, 상기 제2전자 펜 및 상기 제2전자 펜의 상태를 지시하는 그래픽 객체를 상기 디스플레이에 출력하는 동작을 포함하는 방법.
According to claim 11,
and outputting the second electronic pen and a graphic object indicating a state of the second electronic pen to the display, based on receiving motion information from the second electronic pen.
KR1020220040396A 2022-01-25 2022-03-31 Electronic device and the method to alarm and connect electronic pen KR20230114663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2022/021431 WO2023146142A1 (en) 2022-01-25 2022-12-27 Electronic device, and notification and connection method for electronic pen

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220010592 2022-01-25
KR20220010592 2022-01-25

Publications (1)

Publication Number Publication Date
KR20230114663A true KR20230114663A (en) 2023-08-01

Family

ID=87561859

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220040396A KR20230114663A (en) 2022-01-25 2022-03-31 Electronic device and the method to alarm and connect electronic pen

Country Status (1)

Country Link
KR (1) KR20230114663A (en)

Similar Documents

Publication Publication Date Title
US11392225B2 (en) Electronic device and stylus pen charging method using same
US11301061B2 (en) Electronic device identifying gesture with stylus pen and method for operating the same
US20230350566A1 (en) Electronic apparatus and method for processing input from stylus pen in electronic apparatus
EP3608761B1 (en) Electronic device and method for displaying affordance for providing charging of battery of external device through display
US20230176665A1 (en) Electronic device, and method for displaying electronic pen pointer thereof
KR20210115796A (en) Electronic Device And Method For Remote Interaction Control
KR20230114663A (en) Electronic device and the method to alarm and connect electronic pen
KR20220109254A (en) Electronic device and method for shape recognition based on stroke analysis in electronic device
KR20220118196A (en) Call function control method and electronic device supporting the same
KR20220048827A (en) Method of requesting replacement of stylus pen tip and electronic device supporting the same
EP4332738A1 (en) Electronic device and method for operating electronic pen
WO2023146142A1 (en) Electronic device, and notification and connection method for electronic pen
US11922008B2 (en) Electronic device processing input of stylus pen and method for operating the same
EP4332736A1 (en) Electronic device and method for controlling input of electronic pen thereof
KR20230023277A (en) Electronic device and electronic pen for input control ant method thereof
KR20220031455A (en) Drawing method for preview and electronic device therefor
KR20220170212A (en) Electronic device, and method for correcting input error in electronic device
KR20230022766A (en) Electronic device for processing an input of a stylus's pen and method of operating the same
KR20240043019A (en) Electronic device for receiving handwriting input and method for controlling the same
KR20220105390A (en) Electronic device and method for displaying electronic pen pointer of the same
KR20220078929A (en) Electronic device using electronic pen and method thereof
KR20230072878A (en) Method for receiving input generated from external input device and electronic device thereof
KR20240021072A (en) Stylus pen with adjustable pen pressure, electronic device using the same as an input device, and operating method thereof
KR20220078430A (en) Electronic device for including extendable display and method using the same
KR20220127551A (en) Electronic device for providing vibration feedback and operation method thereof