Electronic device including electronic pen and method for controlling communication connection between the electronic device and the electronic pen
By applying charging power to the external electronic device and identifying inherent information, the problem of connecting the wrong electronic device in the environment of multiple electronic device is solved, and accurate communication connection with the target electronic device is achieved.
Patent Information
- Application Number
- CN201980053545.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-08
- Filing Date
- 2019-08-05
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2039-08-05
AI Technical Summary
In the case where multiple electronic devices and external electronic devices are present simultaneously, the external electronic device may establish a communication connection with the wrong electronic device rather than establish a connection with the target electronic device.
By applying charging power to the external electronic device and identifying the target external electronic device after receiving the inherent information, it is ensured that a communication connection is established with the target electronic device.
It effectively solves the problem of connecting incorrect electronic devices when multiple electronic devices and external electronic devices exist at the same time, ensuring the accuracy and stability of communication connections.
Smart Images

Figure CN112567321B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an electronic device including an electronic pen and a method of controlling a communication connection between the electronic device and the electronic pen. Background Art
[0002] An electronic device (e.g., a mobile terminal, a smartphone, or a wearable device) can provide various functions. A smartphone can provide not only a basic voice call function, but also a Wi-Fi function, a near field communication (NFC) function, a mobile communication (3rd generation (3G), 4th generation (4G), or 5th generation (5G)) function, a music or video reproduction function, a camera function, or a navigation function.
[0003] In addition, the electronic device may support a function of short-range wireless communication with an external electronic device (eg, using Bluetooth Low Energy (BLE)).
[0004] The above information is presented as background information only to assist with an understanding of the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with respect to the present disclosure. Summary of the invention
[0005] Solution to the problem
[0006] An external electronic device (e.g., an electronic pen) that supports short-range wireless communication (e.g., BLE) with an electronic device can send an advertising signal and can be connected to wirelessly communicate with the electronic device that receives the advertising signal. However, when there are multiple electronic devices within the range of the advertising signal, the external electronic device may establish a communication connection with another electronic device instead of establishing a communication connection with the target electronic device to which the external electronic device should be connected (e.g., the electronic device into which the external electronic device is inserted).
[0007] Similarly, when multiple external electronic devices exist near the electronic device and transmit advertising signals, the electronic device may be connected for short-range wireless communication with another external electronic device other than the target external electronic device (e.g., an electronic pen inserted into the electronic device).
[0008] Aspects of the present disclosure will at least solve the above-mentioned problems and / or disadvantages and provide at least the following advantages. Therefore, in order to connect with a target external electronic device (e.g., an electronic pen inserted into an electronic device) for communication, one aspect of the present disclosure provides an electronic device that can apply charging power to the external electronic device and identify the target external electronic device based on inherent (or unique) information (e.g., a Bluetooth address) or charging-related information received from the external electronic device.
[0009] Another aspect of the present disclosure provides a target external electronic device that can maintain a communication connection when a target external electronic device (e.g., an electronic pen inserted into an electronic device) to be connected for communication is an external electronic device with a previous connection history, and when the target external electronic device is an external electronic device with no previous connection history, the target external electronic device can perform a process for establishing a communication connection (e.g., pairing) with the target external electronic device.
[0010] Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments.
[0011] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes: a housing; a touch screen display exposed through a portion of the housing; a first wireless communication circuit arranged inside the housing; a recess arranged inside the housing; a first wireless charging circuit arranged inside the housing to be adjacent to the recess; an electronic pen including a second wireless communication circuit inserted to be removable from the recess and configured to perform wireless communication with the first wireless communication circuit, and a second wireless charging circuit electrically coupled to the first wireless charging circuit; a processor arranged inside the housing and operably connected to the first wireless communication circuit and the first wireless charging circuit; and a memory operably connected to the processor. The memory stores instructions that, when executed, cause the processor to: detect whether the electronic pen is inserted into the recess, charge the electronic pen through the first wireless charging circuit based on the detection, receive inherent information of the electronic pen through the first wireless communication circuit during or after charging, and maintain or reestablish a communication connection with the electronic pen based on at least a portion of the received inherent information.
[0012] According to another aspect of the present disclosure, an electronic device is provided. The electronic device includes: a housing; a touch screen display exposed through a portion of the housing; a first wireless communication circuit arranged inside the housing; a recess arranged inside the housing; a first wireless charging circuit arranged inside the housing to be adjacent to the recess; a processor arranged inside the housing and operably coupled to the display, the first wireless communication circuit, and the first wireless charging circuit; and a memory operably coupled to the processor, wherein the memory stores instructions that, when executed, cause the processor to: detect whether an electronic pen is inserted into the recess, charge the electronic pen through the first wireless charging circuit based on the detection, perform scanning through the first wireless communication circuit to identify information about the electronic pen, turn on or off the first wireless charging circuit in response to discovering multiple electronic pens through scanning in a predetermined pattern, identify an electronic pen inserted into the recess among multiple electronic pens based on charging-related information included in an advertising signal received from multiple discovered electronic pens, and establish a communication connection with the identified electronic pen.
[0013] According to another aspect of the present disclosure, a method for controlling a communication connection by an electronic device is provided. The method includes: detecting whether an electronic pen is inserted into a recess inside a housing; charging the electronic pen through a wireless charging circuit based on the detection; receiving inherent information of the electronic pen through a wireless communication circuit during or after charging; and maintaining or reestablishing a communication connection with the electronic pen based on at least a portion of the received inherent information.
[0014] Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following description taken in conjunction with the accompanying drawings, in which:
[0016] Figure 1 An electronic device and an electronic pen according to an embodiment of the present disclosure are shown;
[0017] Figure 2 is a block diagram of an electronic device within a network environment according to an embodiment of the present disclosure;
[0018] Figure 3 is a block diagram of an electronic device according to an embodiment of the present disclosure;
[0019] Figure 4 The structure of an electronic pen according to an embodiment of the present disclosure is shown;
[0020] Figure 5A is a flowchart illustrating a method for controlling a communication connection with an electronic pen by an electronic device according to an embodiment of the present disclosure;
[0021] Figure 5B A method for controlling a communication connection with an electronic pen by an electronic device according to an embodiment of the present disclosure is shown;
[0022] Figure 6 is a flowchart illustrating a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure;
[0023] Fig. 7A shows a transmission period of an advertising signal of an electronic pen and application of charging power according to an embodiment of the present disclosure, Figure 7B shows a transmission period of an advertisement signal and application of charging power of an electronic pen according to an embodiment of the present disclosure;
[0024] Figure 8 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is shown;
[0025] Fig. 9 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is shown;
[0026] Fig.10 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is shown;
[0027] Fig.11 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is shown;
[0028] Fig.12 is a flowchart illustrating a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure;
[0029] Fig.13 is a flowchart illustrating a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure; and
[0030] Fig.14 An operation for a communication connection between an electronic device and an electronic pen according to an embodiment of the present disclosure is illustrated.
[0031] Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures. DETAILED DESCRIPTION
[0032] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. It includes various specific details to assist in understanding, but these details are considered to be exemplary only. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and configurations may be omitted for clarity and brevity.
[0033] The terms and words used in the following description and claims are not limited to the bibliographical meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it should be clear to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustration purposes only and not for the purpose of limiting the present disclosure as defined by the appended claims and their equivalents.
[0034] It should be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of those surfaces.
[0035] Various embodiments of the present disclosure may include an external electronic device and an electronic device capable of performing short-range wireless communication (e.g., BLE). The electronic device may be a variety of electronic devices that can provide charging power to the external electronic device. For example, the electronic device may be a smartphone, a tablet personal computer (PC), or a notebook PC. The electronic device may operate as a scanner and a charging power providing device.
[0036] The external electronic device may be any of a variety of electronic devices that can receive charging power from the electronic device and send an advertising signal for connection to short-range wireless communication. For example, the external electronic device may include a battery and an accessory device such as an electronic pen or a protective case that is inserted into a recess formed in one side of the electronic device and can receive charging power from the electronic device. The external electronic device may operate as an advertiser.
[0037] The electronic device may be a vehicle that supports wireless charging and communication connection of an external electronic device (e.g., a smartphone). For example, when the smartphone is positioned at a predetermined location (e.g., a location where a wireless charging pad is installed), the vehicle may provide charging power to the smartphone and establish a short-range wireless communication connection with the smartphone.
[0038] The electronic device may be a testing device for checking whether an external electronic device (e.g., a smartphone) has an error. For example, when the smartphone is positioned at a predetermined location, the testing device may provide charging power to the smartphone, establish a short-range wireless communication connection with the smartphone, and check whether the smartphone has an error.
[0039] Hereinafter, for convenience of description, a case where the external electronic device is an electronic pen will be described by way of example.
[0040] Figure 1 An electronic device and an electronic pen according to an embodiment of the present disclosure are shown.
[0041] refer to Figure 1 , the electronic pen (or stylus) 10 according to an embodiment of the present disclosure may be arranged inside the housing 21 of the electronic device 20, and may be stored in the recess 22 so as to be removable therefrom. The electronic pen 10 may support wireless communication (e.g., wireless communication based on the Bluetooth protocol), and may include a rechargeable battery (not shown). The wireless communication may be Bluetooth Low Energy (BLE) communication.
[0042] When the electronic pen 10 is inserted into the electronic device 20, the electronic pen 10 may receive power from the electronic device 20 and charge the battery with the received power. The electronic pen 10 may output (e.g., broadcast) an advertising signal during charging. For example, the electronic pen 10 may output an advertising signal at predetermined intervals (e.g., 100 ms) for a predetermined time (e.g., 25 seconds). When the power of the battery is equal to or less than a predetermined level (e.g., 5%), the electronic pen 10 may first perform charging until a predetermined level (e.g., 10%), and then output an advertising signal. When the electronic pen 10 is removed from the electronic device 20, the electronic pen 10 may output an advertising signal. For example, the communication of the electronic pen 10 may be disconnected due to an unknown error in a state in which the electronic pen 10 is inserted into the electronic device 20. When the electronic pen 10 is removed from the electronic device 20 in a state in which the communication connection with the electronic device 20 is disconnected, the electronic pen 10 (e.g., Figure 4 The second wireless communication circuit 409 of the electronic device 20 may attempt to connect to the communication with the electronic device 20 by outputting an advertisement signal. To this end, the electronic pen 10 may further include a device (e.g., a sensor) for detecting whether the electronic pen 10 is removed from the electronic device 20. When the removal of the electronic pen 10 from the electronic device 20 is detected, the electronic device 20 may activate (execute) a scanning operation for a predetermined time (e.g., 20 seconds).
[0043] When a predetermined button is input (e.g., pressed) for a predetermined time (e.g., 3 seconds), the electronic pen 10 may output an advertising signal. For example, when the removal of the electronic pen 10 is detected and the electronic pen 10 has not been connected for communication for a predetermined time (e.g., 5 seconds), the electronic device 20 may output a pop-up message indicating that the electronic pen 10 has not been connected for communication and indicating a connection method through a display. When the removal is detected or after the pop-up message is output, the electronic device 20 may activate (execute) a scanning operation for a predetermined time (e.g., 20 seconds). The user may attempt to establish a communication connection between the electronic device 20 and the electronic pen 10 by pressing a predetermined button of the electronic pen 10 for a predetermined time or longer and causing the electronic pen 10 to output an advertising signal.
[0044] The electronic device 20 according to an embodiment of the present disclosure may be a smartphone or a tablet personal computer (PC) into which the electronic pen 10 may be inserted (attached or connected). The electronic device 20 may support wireless communication (e.g., wireless communication based on the Bluetooth protocol) with the electronic pen 10. The wireless communication may be BLE communication.
[0045] When the insertion of the electronic pen 10 is detected, the electronic device 20 may provide charging power to the electronic pen 10. For example, the electronic device 20 may detect the insertion of the electronic pen 10 by various methods and charge a battery (not shown) located inside the electronic pen 10 by applying charging power to the electronic pen 10. Figure 5AA method of detecting the insertion of the electronic pen 10 is described.
[0046] The electronic device 20 can identify whether the inserted electronic pen 10 is an electronic pen with a previous communication connection history (e.g., pairing). The electronic device 20 can compare reference inherent (or unique) information (e.g., device address) stored in a memory (not shown) with inherent information received from an electronic pen connected for communication, and identify whether the inserted electronic pen 10 is an electronic pen with a previous communication connection history (e.g., pairing).
[0047] When the inserted electronic pen 10 is an electronic pen with a previous communication connection history, the electronic device 20 can maintain the communication connection. When the electronic pen 10 is inserted in a state where the electronic pen 10 is connected for communication, the electronic device 20 can maintain the communication connection.
[0048] According to another embodiment of the present disclosure, when the inserted electronic pen 10 is not an electronic pen with a previous communication connection history, the electronic device 20 may initialize (e.g., reboot) the inserted electronic pen 10 or delete (or format) pairing-related data and establish a communication connection with the inserted electronic pen 10. When the electronic pen 10 is inserted in a state where a communication connection with another electronic pen (not shown) has been established, the electronic device 20 may terminate the communication connection with the other electronic pen and then establish a communication connection with the inserted electronic pen 10 (or establish a communication connection after initialization).
[0049] When the number of electronic pens capable of establishing a communication connection is plural, the electronic device 20 may identify the electronic pen inserted into the electronic device 20 among the plurality of electronic pens. For example, the electronic device 20 may identify the electronic pen inserted into the electronic device 20 among the plurality of electronic pens based on an advertising signal or charging related information. Figures 8 to 11 A detailed description thereof is given.
[0050] Figure 2 is a block diagram illustrating electronic devices in a network environment according to an embodiment of the present disclosure.
[0051] refer to Figure 2 , an electronic device 201 (eg, Figure 1The electronic device 201 may communicate with the electronic device 202 via a first network 298 (e.g., a short-range wireless communication network), or communicate with the electronic device 204 or the server 208 via a second network 299 (e.g., a long-range wireless communication network). The electronic device 201 may communicate with the electronic device 204 via the server 208. The electronic device 201 may include a processor 220, a memory 230, an input device 250, a sound output device 255, a display device 260, an audio module 270, a sensor module 276, an interface 277, a haptic module 279, a camera module 280, a power management module 288, a battery 289, a communication module 290, a user identification module (SIM) 296, or an antenna module 297. At least one of the components (e.g., the display device 260 or the camera module 280) may be omitted from the electronic device 201, or one or more other components may be added to the electronic device 201. Some of the components may be implemented as a single integrated circuit. For example, the sensor module 276 (eg, a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device 260 (eg, a display).
[0052] The processor 220 may run software (e.g., program 240) to control at least one other component (e.g., hardware component or software component) of the electronic device 201 connected to the processor 220, and may perform various data processing or calculations. As at least part of the data processing or calculation, the processor 220 may load commands or data received from another component (e.g., sensor module 276 or communication module 290) into the volatile memory 232, process the commands or data stored in the volatile memory 232, and store the result data in the non-volatile memory 234. The processor 220 may include a main processor 221 (e.g., a central processing unit (CPU) or an application processor (AP)) and an auxiliary processor 223 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 221 in operation. Additionally or alternatively, the auxiliary processor 223 may be adapted to consume less power than the main processor 221, or adapted to be specifically used for a specified function. The auxiliary processor 223 may be implemented separately from the main processor 221 , or as part of the main processor 221 .
[0053] When the main processor 221 is in an inactive (e.g., sleeping) state, the auxiliary processor 223 may control at least some of the functions or states related to at least one component (e.g., display device 260, sensor module 276, or communication module 290) among the components of the electronic device 201 (not the main processor 221), or when the main processor 221 is in an active state (e.g., running an application), the auxiliary processor 223 may control at least some of the functions or states related to at least one component (e.g., display device 260, sensor module 276, or communication module 290) among the components of the electronic device 201 together with the main processor 221. The auxiliary processor 223 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 280 or communication module 290) that is functionally related to the auxiliary processor 223.
[0054] The memory 230 may store various data used by at least one component of the electronic device 201 (e.g., the processor 220 or the sensor module 276). The various data may include, for example, software (e.g., the program 240) and input data or output data for commands related thereto. The memory 230 may include a volatile memory 232 or a non-volatile memory 234.
[0055] The program 240 may be stored as software in the memory 230 , and may include, for example, an operating system (OS) 242 , middleware 244 , or an application 246 .
[0056] The input device 250 may receive commands or data to be used by other components of the electronic device 201 (e.g., the processor 220) from outside the electronic device 201 (e.g., the user). The input device 250 may include a microphone, a mouse, a keyboard, or a digital pen (e.g., a stylus).
[0057] The sound output device 255 can output a sound signal to the outside of the electronic device 201. The sound output device 255 may include a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. The receiver can be implemented as a separate speaker or as part of the speaker.
[0058] The display device 260 may visually provide information to the outside of the electronic device 201 (e.g., a user). The display device 260 may include a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. The display device 260 may include a touch circuit adapted to detect a touch or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of a force caused by a touch.
[0059] The audio module 270 can convert sound into an electrical signal, or vice versa. The audio module 270 can obtain sound via the input device 250, or output sound via the sound output device 255 or an earphone of an external electronic device (e.g., electronic device 202) directly (e.g., wired) or wirelessly connected to the electronic device 201.
[0060] The sensor module 276 may detect an operating state (e.g., power or temperature) of the electronic device 201 or an environmental state (e.g., a state of a user) outside the electronic device 201, and then generate an electrical signal or data value corresponding to the detected state. The sensor module 276 may include a gesture sensor, a gyroscope sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.
[0061] The interface 277 may support one or more specific protocols to be used to connect the electronic device 201 directly (e.g., wired) or wirelessly with an external electronic device (e.g., the electronic device 202). The interface 277 may include a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
[0062] The connection end 278 may include a connector, wherein the electronic device 201 can be physically connected to an external electronic device (e.g., the electronic device 202) via the connector. The connection end 278 may include an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0063] The haptic module 279 may convert the electrical signal into a mechanical stimulus (eg, vibration or motion) or an electrical stimulus that can be recognized by the user via his sense of touch or kinesthetic sense. The haptic module 279 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.
[0064] The camera module 280 may capture an image or a moving image. According to an embodiment, the camera module 280 may include one or more lenses, an image sensor, an image signal processor, or a flash.
[0065] The power management module 288 may manage power supply to the electronic device 201. The power management module 288 may be implemented as at least part of a power management integrated circuit (PMIC).
[0066] The battery 289 may power at least one component of the electronic device 201. The battery 289 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0067] The communication module 290 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 201 and an external electronic device (e.g., electronic device 202, electronic device 204, or server 208), and perform communication via the established communication channel. The communication module 290 may include one or more communication processors capable of operating independently from the processor 220 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. The communication module 290 may include a wireless communication module 292 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 294 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules may communicate via a first network 298 (e.g., a short-range communication network such as Bluetooth TM , Wi-Fi Direct, or Infrared Data Association (IrDA)) or a second network 299 (for example, a long-distance communication network such as a cellular network, the Internet, or a computer network (for example, a LAN or a wide area network (WAN)))) to communicate with an external electronic device. These various types of communication modules can be implemented as a single component (for example, a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (for example, multiple chips). The wireless communication module 292 can use the user information (for example, the International Mobile Subscriber Identity (IMSI)) stored in the user identification module 296 to identify and authenticate the electronic device 201 in the communication network (such as the first network 298 or the second network 299).
[0068] The antenna module 297 may transmit a signal or power to the outside of the electronic device 201 (e.g., an external electronic device) or receive a signal or power from the outside of the electronic device 201 (e.g., an external electronic device). The antenna module 297 may include an antenna including a radiating element, the radiating element being formed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a printed circuit board (PCB)). The antenna module 297 may include a plurality of antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 298 or the second network 299) may be selected from the plurality of antennas by the communication module 290 (e.g., the wireless communication module 292). A signal or power may then be transmitted or received between the communication module 290 and the external electronic device via the selected at least one antenna. Additional components other than the radiating element (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module 297.
[0069] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, a general purpose input output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.
[0070] A command or data may be sent or received between the electronic device 201 and the external electronic device 204 via the server 208 connected to the second network 299. Each of the electronic device 202 and the electronic device 204 may be a device of the same type as the electronic device 201, or a device of a different type from the electronic device 201. All or some operations to be executed in the electronic device 201 may be executed in one or more of the external electronic device 202, the external electronic device 204, or the server 208. For example, if the electronic device 201 should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device 201 may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device 201 may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices that receive the request may execute the requested at least part of the function or service, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device 201. The electronic device 201 may provide the result as at least a partial reply to the request with or without further processing the result. To this end, for example, cloud computing technology, distributed computing technology, or client-server computing technology may be used.
[0071] Figure 3 is a block diagram of an electronic device according to an embodiment of the present disclosure.
[0072] refer to Figure 3 According to an embodiment of the present disclosure, the electronic device 301 (eg, Figure 1 The electronic device 20 or Figure 2 The electronic device 201 may include a processor 220, a memory 230, a touch screen display 330 (eg, Figure 2 display device 260), a first wireless charging circuit 340, and a first wireless communication circuit 350 (eg, Figure 2 wireless communication module 292).
[0073] The processor 220 may control the overall operation of the electronic device 301. For example, the processor 220 may be positioned within a housing (not shown) of the electronic device 301, and may be operably (or electrically) connected to the memory 230, the touch screen display 330, the first wireless charging circuit 340, and the first wireless communication circuit 350 so as to control each element of the electronic device 301.
[0074] The processor 220 may include a digitizing controller 211. The digitizing controller 211 may send a positioning detection signal through the digitizing panel 335 and receive a positioning signal from the electronic pen (eg, Figure 1 The resonant circuit of the electronic pen 10) receives the response signal. The digital controller 211 can determine the positioning information of the electronic pen by analyzing the received response signal. Alternatively, the digital controller 211 can send a detection signal through a coil included in the first wireless charging circuit 340, and can receive a signal from the electronic pen to identify whether the electronic pen is physically connected or electrically connected. Alternatively, the digital controller 211 can charge the battery (or super capacitor) of the electronic pen by applying a charging signal with a higher voltage than the detection signal to the coil of the first wireless charging circuit 340.
[0075] The digitizing controller 211 may be a separate element. In this case, the processor 220 may perform control to receive the electronic pen (e.g., Figure 1 The electronic pen 10 receives the insertion information of the electronic pen 10, sends the wireless communication connection command to the first wireless communication circuit 350 based on the received insertion information, and sends the charging signal and the control signal to the digital controller 211 based on the data received from the first wireless communication circuit 350. Figure 5A and Figure 5B , Figure 6 , Fig. 7A and Figure 7B , Figures 8 to 13 The processor 220 is described in detail.
[0076] The memory 230 may be operably (or electrically) connected to the processor 220. The memory 230 may include an encrypted file system (EFS) area for storing reference inherent information of a previously connected electronic pen and / or pairing-related data (e.g., binding data) in the EFS area. The reference inherent information may include a Bluetooth address of a previously connected electronic pen, and the pairing-related data is data generated when pairing is performed, and may include one or more shared secret keys for secure connection.
[0077] The touch screen display 330 may be exposed through a portion of the housing and may provide input and output functions. For example, the touch screen display 330 may include a display panel 331, a touch panel 333, and a digitizing panel 335. The display panel 331 may be embodied as, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a micro-electromechanical system (MEMS) display, or an electronic paper display. The touch panel 333 may detect (or recognize) changes in physical properties (capacitance or frequency) of various touch inputs (e.g., tapping, double-clicking, touching, touching movement, or multi-touch) using an input tool (e.g., a finger), and send it to the processor 220. The digitizing panel 335 may detect electromagnetic changes in response to the input of the electronic pen and send it to the digitizing controller 211 of the processor 220. The touch screen display 330 may also include a pressure detection panel (not shown) for detecting pressure.
[0078] The first wireless charging circuit 340 according to an embodiment of the present disclosure may be adjacent to a recess (eg, Figure 1 The first wireless charging circuit 340 may supply power to charge the battery of the electronic pen inserted into the recess. Under the control of the processor 220, the first wireless charging circuit 340 may be turned on for a first predetermined time (e.g., 9 seconds) and turned off for a second predetermined time (e.g., 1 second). For example, the processor 220 may perform control to turn on or off the first wireless charging circuit 340 before the battery of the electronic pen is fully charged.
[0079] In order to identify (or verify) whether the pen currently connected for communication is the inserted pen, the first wireless charging circuit 340 according to an embodiment of the present disclosure may be turned on or off in a predetermined mode under the control of the processor 220 or the digital controller 211 .
[0080] The electronic device 301 can charge the electronic pen through the first wireless charging circuit 340, but the method of charging the electronic pen is not limited to the wireless charging method. For example, the electronic device 301 can charge the electronic pen through an electrically connected charging circuit (eg, a wired charging circuit).
[0081] The first wireless communication circuit 350 may be disposed inside the housing of the electronic device 301 and may communicate with an external electronic device (eg, Figure 1 During or after charging of the electronic pen, the first wireless communication circuit 350 can receive inherent information from the electronic pen through the antenna 351.
[0082] The first wireless communication circuit 350 may support the Bluetooth protocol. For example, the first wireless communication circuit 350 may be a BLE communication circuit. When the insertion of the electronic pen is detected or a charging signal is applied, the first wireless communication circuit 350 according to an embodiment of the present disclosure may scan for connectable electronic pens. The first wireless communication circuit 350 may receive an advertising signal of the electronic pen. The advertising signal may include charging-related information.
[0083] The first wireless charging circuit 340 may be a separate element from the electronic device 301. The first wireless charging circuit 340 may establish a communication connection with the electronic device 301 through a server and transmit and receive various data (eg, charging-related information and / or communication connection status information).
[0084] Although not in Figure 3 As shown in FIG. 3 , the electronic device 301 may further include at least one other element equivalent to the aforementioned elements (eg, a camera module, an audio module, or a sensor module).
[0085] Figure 4 is a block diagram of an electronic pen according to an embodiment of the present disclosure.
[0086] refer to Figure 4 According to an electronic pen 400 (eg, Figure 1 The electronic pen 10) may include a coil 401, a fine-tuning capacitor 402, a button switch 403, a rectifier circuit unit 405, a first voltage comparator 406, a charging switch 407, a second voltage comparator 408, a second wireless communication circuit 409, an antenna 410, a start switch 411, a battery 412, and an OR gate 413. The rectifier circuit unit 405 may be referred to as the first voltage comparator 406, and the charging switch 407 may be referred to as the second wireless charging circuit 404.
[0087] The coil 401 may be a resonant circuit that may detect an electromagnetic field signal applied by an external device (e.g., the first wireless charging circuit 340 of the electronic device 20, 201, or 301) and transmit a signal of a specific frequency. For example, the coil 401 may be an electromagnetic resonance (EMR) coil. The fine-tuning capacitor 402 may store an induced current applied to the coil 401. The button switch 403 may detect an input (press) of a button positioned at one side of the housing of the electronic pen 400. When the button switch 403 is turned on, the resonant frequency of the coil 401 may be changed. The electronic device may detect a button input by a change in the resonant frequency.
[0088] The rectifying circuit unit 405 according to an embodiment of the present disclosure may convert alternating current (AC) power applied to the coil 401 into direct current (DC) power and transmit the converted DC power to the first voltage comparator 406 and the charging switch 407 .
[0089] The first voltage comparator 406 can identify whether the DC power is a positioning detection signal or a charging signal based on the voltage of the DC power provided from the rectification circuit unit 405. For example, the charging signal may have a greater value than the positioning detection signal. When the DC power is less than a reference voltage (e.g., 3V), the first voltage comparator 406 can determine that the DC power is a positioning detection signal, and when the DC power is greater than or equal to the reference voltage, the first voltage comparator 406 can determine that the DC power is a charging signal. When the DC power provided from the rectification circuit unit 405 is a charging signal, the first voltage comparator 406 can provide a signal indicating that the electronic pen 400 is inserted into the electronic device to the second wireless communication circuit 409. In addition, the first voltage comparator 406 can turn on the charging switch 407 when the DC power is a charging signal, and can turn off the charging switch 407 when the DC power is a positioning detection signal.
[0090] The charging switch 407 may control on / off of charging of the battery 412. For example, the charging switch 407 may provide or block the DC power provided to the battery 412 from the rectifying circuit unit 405 based on the output from the first voltage comparator 406.
[0091] The electronic pen 400 can charge the battery 412 through the second wireless charging circuit 404, but the method of charging the battery 412 is not limited to the wireless charging method. For example, the electronic pen 400 can charge the battery 412 through a charging circuit (e.g., a wired charging circuit) electrically connected to an external device (e.g., an electronic device).
[0092] When the voltage of the battery 412 is greater than or equal to a predetermined voltage, the second voltage comparator 408 according to an embodiment of the present disclosure may turn on (activate) the second wireless communication circuit 409 .
[0093] The second wireless communication circuit 409 may be arranged inside the housing of the electronic pen 400, and may perform wireless communication with the first wireless communication circuit 350 of an external device (e.g., the electronic device 20, 201, or 301). The second wireless communication circuit 409 may support the Bluetooth protocol. For example, the second wireless communication circuit 409 may be a BLE communication circuit.
[0094] The second wireless communication circuit 409 may transmit state information (e.g., inherent information or charging-related information) and / or data of the electronic pen 400 based on a button input to the first wireless communication circuit through the antenna 410. The antenna 410 may be electrically connected to the second wireless communication circuit 409 and may transmit and receive wireless signals.
[0095] The start switch 411 may control on / off of the second wireless communication circuit 409 . For example, the start switch 411 may supply or block power from the battery 412 to the second wireless communication circuit 409 based on the output of the second voltage comparator 408 .
[0096] The battery 412 is a rechargeable secondary cell, which can be charged with the DC power from the rectifying circuit unit 405, and can supply the power to the second wireless communication circuit 409. For example, the battery 412 may be a super capacitor.
[0097] The OR gate 413 may provide a signal based on an OR of the output of the first voltage comparator 406 and the button input to the second wireless communication circuit 409 .
[0098] According to various embodiments of the present disclosure, an electronic device (eg, Figure 1 electronic device 20, Figure 2 The electronic device 201 or Figure 3 The electronic device 301 may include a housing (eg, Figure 1 The housing 21), the touch screen display (eg, Figure 2 The display device 260 or Figure 3 A touch screen display 330), a first wireless communication circuit (eg, Figure 2 The wireless communication module 292 or Figure 3 The first wireless communication circuit 350 is arranged in a recessed portion inside the housing (for example, Figure 1 The first wireless charging circuit (e.g., the first wireless charging circuit 340) is arranged inside the housing so as to be adjacent to the recess, and includes a second wireless communication circuit (e.g., the first wireless charging circuit 340) that is inserted to be removable from the recess and that is capable of performing wireless communication with the first wireless communication circuit. Figure 2 The wireless communication module 292 or Figure 4 A second wireless communication circuit 409) and a second wireless charging circuit electrically coupled to the first wireless charging circuit (eg, Figure 4 The electronic pen (for example, Figure 1 Electronic pen 10 or Figure 4 The electronic pen 400 is located inside the housing and is operably coupled to the display, the first wireless communication circuit, and the first wireless charging circuit. Figure 2 or 3 of the processor 220), and a memory operatively coupled to the processor (e.g., Figure 2The memory may store instructions that, when executed, cause the processor to detect whether the electronic pen is inserted into the recess, charge the electronic pen through the first wireless charging circuit based on the detection, receive inherent information of the electronic pen through the first wireless communication circuit during or after charging, and maintain or reestablish the communication connection with the electronic pen based on at least a portion of the received inherent information.
[0099] The first wireless communication circuit may support Bluetooth protocol.
[0100] The inherent information may be the Bluetooth address of the electronic pen.
[0101] The instructions may cause the processor to store the reference inherent information in the memory, compare the received inherent information with the reference inherent information, and maintain or reestablish the communication connection according to a result of the comparison.
[0102] The reestablishment of the communication connection may include at least one of the following: restarting at least one of the first wireless communication circuit and the second wireless communication circuit and deleting pairing related data.
[0103] The inherent information may be included in the advertising signal of the electronic pen, and the instructions may enable the processor to randomly turn on or off the first wireless charging circuit in response to receiving multiple advertising signals from multiple electronic pens, and maintain or re-establish the communication connection based on whether the advertising signal is synchronized with the on or off mode of the first wireless charging circuits of the multiple electronic pens.
[0104] The inherent information may be included in the advertising signal of the electronic pen, and the instructions may enable the processor to randomly turn on or off the first wireless charging circuit in response to the reception of multiple advertising signals from multiple electronic pens, and maintain or re-establish the communication connection based on whether the charging-related information included in the advertising signal is synchronized with the on or off mode of the first wireless charging circuits of the multiple electronic pens.
[0105] Intrinsic information may be included in an advertising signal of an electronic pen, and the instructions may cause the processor to make a request to reduce the strength of the advertising signal of an electronic pen connected for communication to a preset size or less in response to reception of multiple advertising signals from multiple electronic pens, maintain a communication connection with the electronic pen in response to continuous reception of advertising signals with reduced signal strength, and reestablish a communication connection with the electronic pen in response to not receiving an advertising signal with reduced signal strength.
[0106] The instructions may cause the processor to provide a notification that the electronic pen inserted into the recess has an error when the inherent information is not received.
[0107] The instructions may cause the processor to apply charging power to the electronic pen by periodically repeating turning on and off the first wireless charging circuit.
[0108] The electronic pen can be configured to send an advertising signal including inherent information during the on-period of the first wireless charging circuit, not send an advertising signal during the off-period of the first wireless charging circuit, send an advertising signal during the on-period of the first wireless charging circuit, and stop sending the advertising signal after maintaining the sending of the advertising signal for a predetermined time after the first wireless charging circuit is disconnected.
[0109] According to various embodiments of the present disclosure, an electronic device (eg, Figure 1 electronic device 20, Figure 2 The electronic device 201 or Figure 3 The electronic device 301 may include a housing (eg, Figure 1 a touch screen display exposed through a portion of the housing (eg, Figure 2 The display device 260 or Figure 3 A touch screen display 330); a first wireless communication circuit (eg, Figure 2 The wireless communication module 292 or Figure 3 a first wireless communication circuit 350); a recessed portion arranged inside the housing (eg, Figure 1 a first wireless charging circuit (e.g., first wireless charging circuit 340) disposed inside the housing to be adjacent to the recess; a processor (e.g., Figure 2 or 3 of the processor 220); and a memory operably coupled to the processor (e.g., Figure 2 or 3). The memory stores instructions that, when executed, cause the processor to detect whether the electronic pen is inserted into the recess, to charge the electronic pen through the first wireless charging circuit based on the detection, to perform scanning through the first wireless communication circuit to identify information about the electronic pen, to turn on or off the first wireless charging circuit in a predetermined mode in response to finding a plurality of electronic pens through the scanning, to identify the electronic pen inserted into the recess among the plurality of electronic pens based on the charging-related information included in the advertising signal received from the plurality of found electronic pens, and to establish a communication connection with the identified electronic pen.
[0110] Figure 5A is a flowchart illustrating a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure, Figure 5B An example of a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure is illustrated.
[0111] refer to Figure 5A and Figure 5B , electronic devices (e.g. Figure 1electronic device 20, Figure 2 The electronic device 201 or Figure 3 A processor (eg, Figure 2 The processor 220 or Figure 3 The processor 220 of the embodiment may detect an electronic pen (eg, Figure 1 Electronic pen 10 or Figure 4 For example, the processor may detect whether the electronic pen is inserted into a recess (eg, Figure 1 The insertion of the electronic pen can be detected by various methods. For example, the processor or the digital controller 211 can send a signal through the detection coil at a predetermined time period, and identify whether a response signal is received from the electronic pen to identify whether the electronic pen is inserted into the electronic device. According to some embodiments, the processor can detect whether the electronic pen is inserted into the electronic device through the digitizing panel (e.g., Figure 3 The electronic device may include a digitizing panel 335 of the electronic pen to send a signal for calculating the location of the electronic pen and receive a response signal from the electronic pen. The processor may determine whether the electronic pen is inserted into the electronic device based on the location information of the electronic pen identified by the response. The electronic device may include a separate sensor, an electrical switch, or a physical switch for detecting the insertion or removal of the electronic pen.
[0112] In operation 503, the processor may apply charging power to the electronic pen. For example, the processor may arrange a first wireless charging circuit (eg, Figure 3 The first wireless charging circuit 340) applies charging power to the electronic pen. The processor can apply charging power to the electronic pen according to a predetermined time or period. Fig. 7A and Figure 7B Describe it in detail.
[0113] In operation 505, the processor may receive inherent information of the electronic pen. For example, the processor may receive inherent information of the electronic pen through a first wireless communication circuit (e.g., Figure 3 The first wireless communication circuit 350 of the electronic pen receives the inherent information of the electronic pen. The inherent information may be a device address included in the AdvA field of the payload of the advertising signal, for example, a Bluetooth address.
[0114] In operation 507, the processor may maintain or reestablish the communication connection with the electronic pen based on at least a portion of the received inherent information. For example, the processor may compare the received inherent information with the information stored in the memory (e.g., Figure 2or 3) in the encrypted file system (EFS) area of the memory 230 of the electronic device 502, and when the received inherent information matches the reference inherent information, the communication connection with the electronic pen is maintained. For example, when the previously paired electronic pen 51 is inserted into the electronic device 502, as shown in FIG. Figure 5B As indicated by reference numeral 510 , the processor may maintain a communication connection with the electronic pen 51 .
[0115] On the other hand, when the inherent information received from the electronic pen does not match the reference inherent information stored in the EFS area of the memory, the processor can reestablish the communication connection with the inserted electronic pen. For example, when another electronic pen 52, instead of the electronic pen 51 that previously performed the communication connection, is inserted into the electronic device 502, as shown in FIG. Figure 5B As indicated by reference numeral 520 in FIG. 5 , the processor may disconnect the communication connection with the electronic pen 51 and reestablish the communication connection with the inserted electronic pen 52. Reestablishing the communication connection may include at least one of the following: restarting the first wireless communication circuit (e.g., Figure 3 The first wireless communication circuit 350 of the electronic pen 51 or the second wireless communication circuit of the electronic pen 51 (for example, Figure 4 at least one of the second wireless communication circuit 409), or deleting the pairing related data.
[0116] Figure 6 is a flowchart illustrating a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure.
[0117] refer to Figure 6 , electronic devices (e.g. Figure 1 electronic device 20, Figure 2 The electronic device 201 or Figure 3 A processor (eg, Figure 2 or 3) can identify whether an electronic pen is detected (e.g., Figure 1 Electronic pen 10 or Figure 4 For example, the processor may recognize whether the electronic pen is inserted into a recess (eg, a recessed portion) formed inside the electronic device by any one of various methods. Figure 1 in the recess 22).
[0118] When it is determined based on the result of recognition in operation 601 that the electronic device is not inserted, the processor may continue to perform operation 601. When it is determined based on the result of recognition in operation 601 that the electronic pen is inserted, the processor may perform control in operation 603 so that the wireless charging circuit (e.g., Figure 3The first wireless charging circuit 340) applies charging power to the electronic pen. The processor can perform control so that the wireless charging circuit applies charging power to the electronic pen based on a predetermined time period. Fig. 7A and Figure 7B A method of applying charging power is described.
[0119] When charging power is applied, the electronic pen may transmit (eg, broadcast) an advertising signal.
[0120] In operation 605, the processor may identify whether there is an electronic pen connected for communication. For example, the processor may store in a memory (e.g., Figure 2 or 3) in the memory 230) of the external device. When the connection status information of the external device that can be connected to the electronic device is stored in the server (for example, Figure 2 When the electronic pen is in the server 208 of the embodiment, the processor can recognize the electronic pen through the server. Operation 605 is not limited to being performed after the charging power is applied to the electronic pen, but can be performed when the insertion of the electronic pen is detected or at a predetermined time.
[0121] When it is determined that there is no electronic pen connected for communication based on the result of the recognition in operation 605, the processor controls to activate the wireless communication circuit (eg, Figure 3 The processor may perform a scanning operation of the first wireless communication circuit 350 of the electronic pen. The scanning operation may be a filter scan, but the embodiments of the present disclosure are not limited thereto. The processor may search (or find) an electronic pen that can be connected by activating the scanning operation. The scanning operation may be an operation for receiving an advertising signal sent by the electronic pen. For example, the processor may receive an advertising signal sent by the electronic pen through the scanning operation.
[0122] When the insertion of the electronic pen is detected, the processor may activate a scanning operation.
[0123] When the electronic pen connected for communication is found based on the result of identification in operation 605, the processor may identify (verify) whether the electronic pen connected for communication is the same as the electronic pen being charged (inserted pen) in operation 607. For example, the processor may identify (verify) whether the electronic pen connected for communication is the same as the electronic pen inserted into the electronic device and being charged based on the attribute information indicating the charging state of the electronic pen. Figure 8 and Fig. 9 Describe it.
[0124] It is possible to identify whether the electronic pen connected for communication is the same as the electronic pen being charged by reducing the strength of the advertising signal of the electronic pen being charged or controlling the strength of the advertising signal in a predetermined mode. Fig.10 A detailed description thereof is given.
[0125] In an embodiment of the present disclosure, it is possible to identify whether the electronic pen connected for communication is the same as the electronic pen being charged by controlling the time for applying charging power. Fig.11 Describe this.
[0126] The electronic device can use the above (or the following reference Figures 8 to 11 Description) of one or more combinations of various authentication methods.
[0127] When it is determined on the basis of the result of the recognition in operation 607 that the electronic pen connected for communication is the same as the electronic pen being charged, the processor may maintain the communication connection and the charging state in operation 609 .
[0128] When it is determined based on the result identified in operation 607 that the electronic pen connected for communication is different from the electronic pen being charged, for example, when communication with an electronic pen located outside the electronic device is connected, in operation 611, the processor may disconnect the communication connection with the electronic pen connected for communication and proceed to operation 613.
[0129] Before performing operation 613 (scanning operation), the processor may initialize the inserted electronic pen. Initialization may include restarting the wireless communication circuit in the electronic pen (e.g., Figure 4 The electronic device may be connected to the second wireless communication circuit 409 of the electronic device, delete the pairing related data, or disconnect. The initialization may be performed using a charging signal. For example, the processor may apply a charging signal to the inserted electronic pen for a predetermined time or longer to initialize the electronic pen. The electronic pen that receives the charging signal from the electronic device for a predetermined time or longer may perform an initialization operation. After the initialization is completed, the electronic pen may send an advertising signal, and the electronic device may perform scanning.
[0130] In operation 615, the processor may control the wireless communication circuit to connect with the inserted electronic pen for communication. For example, when the inserted electronic pen is found through the scanning operation of the wireless communication circuit, the processor may establish a communication connection with the inserted electronic pen through the wireless communication circuit. At this time, the inserted electronic pen may be in a charging state through the charging power applied in operation 603. When multiple advertising signals are received through the scanning operation, the processor may combine the various verification methods described above (or the following references) to verify the identity of the inserted electronic pen. Figures 8 to 11The processor may perform a verification process by one or more of the electronic pen described in the embodiment of the present invention to identify (select) the electronic pen currently inserted into the electronic device. Optionally, when the electronic pen is not found after the scanning is completed, the processor may perform the scanning operation again for a predetermined number of times (for example, three times). The processor may display the electronic pen on the display (for example, Figure 2 The processor may output a screen asking whether to perform scanning again on the display device 260 of the electronic device and perform scanning again or cancel the scanning operation according to the user's selection. When the electronic pen is not found after completing the scan or performing a predetermined number of rescans, the processor may notify the user of an error in the electronic device or the electronic pen.
[0131] Fig. 7A shows a transmission period of an advertising signal and application of charging power of an electronic pen according to an embodiment of the present disclosure, and Figure 7B A transmission period of an advertisement signal and application of charging power of an electronic pen according to an embodiment of the present disclosure are shown.
[0132] refer to Fig. 7A and Figure 7B , when the electronic pen 710 (eg, Figure 1 Electronic pen 10 or Figure 4 When the electronic pen 400 is inserted, the electronic device 720 (eg, Figure 1 electronic device 20, Figure 2 The electronic device 201 or Figure 3 A processor (eg, Figure 2 or Figure 3 The processor 220 of the present invention can control the wireless charging circuit (for example, Figure 3 The first wireless charging circuit 340) is used to apply charging power to the electronic pen 710. For example, when the electronic pen 710 is inserted into the electronic device 720, Fig. 7A As shown, the processor may repeat the operation of controlling the wireless charging circuit to apply charging power to start charging for a first predetermined time (e.g., 9 seconds) and control the wireless charging circuit not to apply charging power (to turn off charging) for a second predetermined time (e.g., 1 second). Fig. 7A As shown, the electronic pen 710 can send an advertising signal while charging is being performed (while charging is turned on), and when charging is finished (charging is turned off), the sending of the advertising signal can be stopped. For example, the electronic pen 710 can be configured to send an advertising signal during the on period of the wireless charging circuit, and not to send an advertising signal during the off period of the wireless charging circuit.
[0133] The processor may add an electronic pen scanned (found) during the on period of the wireless charging circuit to the candidate list. On the other hand, the processor may add an electronic pen scanned (found) during the off period of the wireless charging circuit to the blacklist. The electronic pen added to the blacklist may be removed from the candidate list of inserted electronic pens. This operation may be repeated until only one electronic pen is left in the candidate list.
[0134] like Figure 7B As shown, in order to prevent misidentification of the charging state of the electronic pen during a charging OFF period (in which charging power is not applied even if charging has not actually ended), the electronic pen may send an advertising signal while performing charging, maintain the sending of the advertising signal within a third predetermined time (e.g., 1 second) after the end of charging, and stop sending the advertising signal after the third predetermined time has passed. The third predetermined time may be set to a value greater than or equal to the second predetermined time. As described above, when the third predetermined time is configured to be longer than or equal to the second predetermined time, charging is turned on after the second predetermined time, so that the advertising signal may be sent during the charging ON period and the charging OFF period.
[0135] When charging power is applied from the electronic device after the electronic pen is inserted, the electronic pen can charge the battery and identify the power (e.g., voltage) of the battery, and when the power (voltage) of the battery satisfies a preset condition (e.g., higher than or equal to 10% of full power), send an advertising signal. The electronic pen can send an advertising signal including state information indicating that the electronic pen is being charged. The electronic pen can change the state information included in the advertising signal to indicate that charging is turned off after a third predetermined time has passed. Even if the electronic pen is actually in a charging-off state between charging-off and the third predetermined time, the electronic pen can send an advertising signal including state information indicating a charging-on state.
[0136] Figure 8 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is shown.
[0137] refer to Figure 8 According to an embodiment of the present disclosure, the electronic device 820 (eg, Figure 1 electronic device 20, Figure 2 The electronic device 201 or Figure 3 The electronic device 301) can verify (identify) the electronic pen 810 connected for communication (for example, Figure 1 Electronic pen 10 or Figure 4The electronic pen 400 connected to the electronic device 820 is the same as the electronic pen that is inserted and being charged. For example, the electronic device 820 can perform verification by identifying attribute information indicating the charging state of the electronic pen through notification. Hereinafter, a case where the electronic pen 810 connected for communication is inserted into the electronic device 820 will be described by way of example.
[0138] When the electronic device 820 receives an insertion event of the electronic pen 810 as indicated by reference numeral 801, the electronic device 820 may apply a charging signal to the electronic pen 810 as indicated by reference numeral 803, and read attribute information indicating a charging state to check the charging state as indicated by reference numeral 805. At this time, the inserted electronic pen 810 may be operating with low power using a high slave latency value, and in the case of receiving a read command of the electronic device 820 while applying a charging signal, may exchange signals with the electronic device 820 at a period shorter than the slave latency.
[0139] When the electronic pen 810 connected for communication to the electronic device 820 does not respond to the read command within a predetermined time, or when a response indicating that charging is being performed is received, the electronic device 820 may regard that the electronic pen 810 connected for communication is disconnected from the recess (e.g., Figure 1 The electronic pen in the recess 22) is different.
[0140] On the other hand, when receiving a response indicating that the electronic pen 810 connected for communication is being charged, the electronic device can verify whether the electronic pen 810 connected for communication is the same as the electronic pen being charged. This is because if the determination is performed only on the basis of the charging state information, when the electronic pen 810 connected for communication is inserted into another electronic device nearby (within the communication range of the electronic device) and is being charged, the electronic pen 810 connected for communication is mistakenly regarded as the electronic pen inserted into the electronic device 820 even if the electronic pens are different from each other.
[0141] The electronic device 820 may register a notification in the attribute information indicating the charging state of the electronic pen, as indicated by reference numeral 807, turn off and then turn on the charging signal in a predetermined pattern during the charging on period, as indicated by reference numeral 809, and identify whether the attribute information is synchronized and changed through the notification. When the on / off change of the charging signal is the same as the change of the attribute information indicating the charging state received through the notification, or when the attribute information is synchronized, the electronic device may determine that the electronic pen 810 connected for communication is the same as the electronic pen inserted and being charged. When the change is different, the electronic device may determine that the electronic pen connected for communication is different from the electronic pen inserted and being charged. When the verification is completed, the processor may release the registration of the notification, as indicated by reference numeral 811.
[0142] According to some embodiments, when the number of electronic pens having the same charging state change as the on / off pattern of the charging signal is plural, the electronic device 820 may change the on / off pattern of the charging signal and repeat the verification process until only one electronic pen is detected.
[0143] When a communication connection with the electronic pen is established, the electronic device may register for notification.
[0144] In order to maintain the low power state, the electronic pen can prevent the response delay of the electronic pen that may be caused by using a high slave device delay value. When a charging signal is applied, the electronic pen can perform communication for a predetermined time or charging time at a predetermined period shorter than the slave device delay (e.g., a BLE connection interval or a separately configured interval) regardless of the slave device delay, so as to quickly share the charging state of the electronic pen. Therefore, in an embodiment of the present disclosure, the delay in sharing the charging state due to the high slave device delay value can be prevented.
[0145] Fig. 9 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is shown.
[0146] refer to Fig. 9 According to an embodiment of the present disclosure, the electronic device 920 can identify whether the electronic pen 910 connected for communication is the same as the electronic pen inserted and being charged by indication. For example, when the electronic device 920 receives an insertion event of the electronic pen 910 connected for communication, as indicated by reference numeral 901, the electronic device 920 can apply a charging signal to the inserted electronic pen 910, as indicated by reference numeral 903, and read attribute information indicating a charging state to check the charging state, as indicated by reference numeral 905.
[0147] The electronic device 920 may register an indication in the attribute information indicating the charging state of the electronic pen, as indicated by reference numeral 907, and perform verification by turning on / off the charging signal in a predetermined pattern during the charging on period, as indicated by reference numeral 909. When the predetermined off / on pattern of the charging signal is the same as the change pattern of the attribute information indicating the charging state received by the indication, the electronic device may determine that the electronic pen 910 connected for communication is the same as the electronic pen inserted and being charged. When the number of electronic pens having the same charging state change as the predetermined off / on pattern of the charging signal is multiple, the electronic device 920 may change the off / on pattern of the charging signal and repeat the verification process until only one electronic pen is detected. When the change patterns are different from each other, the electronic device may determine that the electronic pen connected for communication is different from the electronic pen inserted and being charged. When the verification is completed, the processor may release the registration of the indication, as indicated by reference numeral 911.
[0148] When the electronic device 920 does not receive a response signal to a read command from the electronic pen 910 connected for communication within a predetermined time, or when a response indicating that charging is not performed is received, the electronic device 920 can determine that the electronic pen 910 connected for communication is different from the electronic pen inserted into the electronic device 920.
[0149] The electronic pen 910 may share the charging state with the electronic device using a high slave latency value for operation with low power. According to some embodiments, in order to quickly share the charging state with the electronic device, the electronic pen 910 may exchange signals with the electronic device 920 at a period shorter than the slave latency when charging is applied.
[0150] Fig.10 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is shown.
[0151] refer to Fig.10 According to an embodiment, it is possible to verify whether the electronic pen connected for communication is the same as the electronic pen being charged by reducing the strength of the advertising signal to a predetermined amplitude. For example, when the electronic pen 11 is inserted into the electronic device 1001 and charging power is applied, the electronic pen 11 may send an advertising signal having a strength within a predetermined range 11a, such as Fig.10 When the electronic pen 11 is inserted into the electronic device 1001, the predetermined range 11a may be set to be within which the antenna (eg, Figure 3Therefore, the electronic device 1001 may not receive an advertising signal sent by an electronic pen inserted into another electronic device instead of the electronic pen 11 inserted into the electronic device 1001 itself, or may receive an advertising signal with very low signal strength.
[0152] The processor of the electronic device 1001 (eg, Figure 2 The processor 220 of the electronic device 1001 or 3 may verify whether the electronic pen connected for communication is the same as the electronic pen being charged by controlling the strength of the advertising signal of the electronic pen 11. For example, the processor may control the electronic pen connected for communication to send an advertising signal having an intensity reduced to a predetermined intensity or lower when the electronic pen is inserted. When the advertising signal is continuously received after the intensity of the advertising signal is reduced, the processor may determine that the electronic pen connected for communication is the same as the electronic pen inserted into the electronic device and being charged. On the other hand, when the advertising signal is not received after the intensity of the advertising signal is reduced, the processor may determine that the electronic pen connected for communication is inserted into another electronic device or is located outside the electronic device 1001.
[0153] When multiple advertising signals are received even after the signal of the advertising signal is reduced, the processor of the electronic device can perform control to reduce the strength of the advertising signal by a predetermined amount until one advertising signal is received. In another example, the processor can identify the inserted advertising signal of the electronic pen among the multiple advertising signals by controlling the charging time (for example, increasing the time to 9.3 seconds).
[0154] The processor of the electronic device may control the strength of the advertising signal according to a predetermined pattern, identify whether the strength of the received signal changes according to the predetermined pattern, and verify whether the electronic pen connected for communication is the same as the electronic pen being charged.
[0155] The inserted electronic pen may be identified by increasing the strength of the advertisement signal. For example, the processor of the electronic device may identify an electronic pen that transmits an advertisement signal having a strength higher than a predetermined advertisement signal strength as an inserted electronic pen.
[0156] Fig.11 A method of verifying whether an electronic pen connected for communication is the same as an electronic pen being charged according to an embodiment of the present disclosure is illustrated.
[0157] refer to Fig.11 According to an embodiment of the present disclosure, the electronic device 1120 (eg, Figure 1 electronic device 20, Figure 2 The electronic device 201 or Figure 3The electronic device 301 of FIG. 10 may verify whether the electronic pen connected for communication is the same as the electronic pen being charged by controlling the application time of the charging power. For example, if the electronic pen 1110 (e.g., Figure 1 Electronic pen 10 or Figure 4 If the electronic pen 400 is configured to send an advertising signal only when the electronic pen 1110 is being charged, the electronic device 1120 can turn on / off the charging signal in a predetermined mode during the charging period, and when the received advertising signal corresponds to the turning on / off of the charging signal (for example, synchronized with it), it is determined that the electronic pen 1110 connected for communication is the same as the electronic pen being charged.
[0158] When the electronic pen 1110 transmits an advertisement signal including charging-related information, the electronic device 1120 may turn on / off the charging signal according to a predetermined pattern, and when the charging-related information included in the received advertisement signal corresponds to (is synchronized with) the predetermined pattern, it is determined that the electronic pen 1110 connected for communication is the same as the electronic pen being charged. When the number of electronic pens having the same charging-related information as the predetermined on / off pattern of the charging signal is plural, the electronic device 1120 may change the predetermined on / off pattern of the charging signal and repeat the verification process until only one electronic pen is detected.
[0159] When the electronic pen 1110 is configured to send charging-related information to the electronic device 1120 connected for communication, the electronic device 1120 can turn on / off the charging signal in a predetermined mode, and when the charging-related information included in the signal sent by the electronic pen 1110 connected for communication corresponds to the predetermined mode (synchronized with it), it is determined that the electronic pen 1110 connected for communication is the same as the electronic pen being charged.
[0160] Fig.12 is a flowchart illustrating a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure.
[0161] refer to Fig.12 , according to an electronic device of an embodiment of the present disclosure (for example, Figure 1 electronic device 20, Figure 2 electronic device 201, Figure 3 electronic device 301, Figure 5B The electronic device 510 or 520, Fig. 7A and Figure 7B electronic device 720, Figure 8 electronic device 820, Fig. 9 Electronic device 920, Fig.10 The electronic device 1001, or Fig.11 A processor (eg, Figure 3 The processor 220 of the embodiment may detect an electronic pen (eg, Figure 1 Electronic pen 10, Figure 4 The electronic pen 400, Figure 5B The electronic pen 51 or 52, Fig. 7A and Figure 7B Electronic pen 710, Figure 8 Electronic pen 810, Fig. 9 Electronic pen 910, Fig.10 Electronic pen 11 or Fig.11 Insertion of the electronic pen 1110).
[0162] When the insertion of the electronic pen is detected, in operation 1202, the processor may control the wireless charging circuit (eg, Figure 3 The first wireless charging circuit 340) applies charging power to the inserted electronic pen. Fig. 7A and Figure 7B A method of applying charging power is described, and a detailed description thereof is omitted. The electronic pen to which charging power is applied can output an advertising signal.
[0163] In operation 1203 , the processor may identify whether there is an electronic pen connected for communication.
[0164] When the electronic pen connected for communication is found based on the result of identification in operation 1203, the processor may identify whether the electronic pen connected for communication is the same as the inserted electronic pen in operation 1205. For example, when the electronic pen is connected for communication, the processor may not activate the scanning mode but may identify the electronic pen connected for communication by referring to the scanning mode. Figures 8 to 11 Various methods are described to identify whether an electronic pen connected for communication is the same as an inserted electronic pen. When the electronic device is capable of establishing a communication connection with each of a plurality of electronic pens at the same time, the processor may activate scanning even if the electronic pen has been connected for communication. In this case, the processor may identify whether the electronic pen connected for communication is the same as the inserted electronic pen by comparing reference inherent information of the electronic pen connected for communication with inherent information included in an advertisement signal transmitted by the inserted electronic pen.
[0165] When it is determined based on the result of recognition in operation 1205 that the electronic pen connected for communication is the same as the inserted electronic pen, the processor may maintain the communication connection in operation 1207. On the other hand, when it is determined based on the result of recognition in operation 1205 that the electronic pen connected for communication is different from the inserted electronic pen, the processor may initialize the inserted electronic pen in operation 1209.
[0166] The processor may notify the user that another electronic pen has been inserted before performing operation 1209. The processor may alternatively notify the user that the electronic pen has been changed after operation 1209. For example, the processor may notify the user of the insertion of another electronic pen or the change of the electronic pen through a visual method (e.g., output of a pop-up message on a display), an auditory method (e.g., output of an audio signal through a speaker), or a tactile method (e.g., output of a predetermined pattern of vibrations through a vibration motor).
[0167] The processor may display a pop-up message asking whether to change the electronic pen on the display before operation 1209, and perform operation 1209 in response to receiving a user input requesting to change the electronic pen. The processor may terminate the communication connection process in response to receiving a user input requesting not to change the electronic pen.
[0168] The processor may maintain the communication connection with the electronic pen connected for communication and notify the user that another electronic pen has been inserted before operation 1209. Maintaining the communication connection with the electronic pen means that the electronic pen connected for communication is located near the electronic device because the user can easily replace the electronic pen inserted in the electronic device with the electronic pen. When the establishment of the communication connection with the electronic pen connected for communication is released before the user replaces the electronic pen, the processor may perform operation 1209.
[0169] When it is determined that there is no electronic pen connected for communication based on the result of the recognition in operation 1203, the processor may control the wireless communication circuit (eg, Figure 3 The processor may control the wireless communication circuit to receive an advertisement signal sent by at least one nearby electronic pen.
[0170] In operation 1235, the processor may identify whether a previously paired electronic pen is found. For example, the processor may identify whether a previously paired electronic pen is included in at least one currently found electronic pen by comparing reference inherent information stored in the memory with inherent information included in at least one received advertising signal.
[0171] When at least one electronic pen found based on the result of identification in operation 1235 includes a previously paired electronic pen, in operation 1243, the processor may connect to the previously paired electronic pen for communication. This is because users rarely change the electronic pens they have used. However, the embodiments of the present disclosure are not limited to this. For example, when a new electronic pen is inserted into an electronic device and an electronic pen used by the user (e.g., a previously paired electronic pen) is inserted into another nearby electronic device, a problem may occur in the communication connection with the previously paired electronic pen. In order to prevent this problem, a method for connecting to the previously paired electronic pen by referring to the electronic pen may be executed. Fig.11 Various methods are described to identify the verification process of whether an inserted electronic pen is a previously paired electronic pen.
[0172] On the other hand, when the at least one electronic pen found based on the result of identification in operation 1235 does not include a previously connected electronic pen, the processor may identify whether the number of the found electronic pens is one in operation 1237. When one electronic pen is found based on the result of identification in operation 1237, the processor may connect to the one found electronic pen for communication in operation 1245. The processor may execute a method for communicating with the electronic pen by referring to Fig.11 The various methods described herein identify the verification process of whether the found electronic pen is the same as the inserted electronic pen. This is because when a damaged electronic pen is inserted into an electronic device, an electronic pen inserted into another electronic device or an electronic pen located outside the electronic device may be found.
[0173] When it is determined based on the result of identification in operation 1237 that the number of found electronic pens is not one, for example, when the number of found electronic pens is two or more, the processor may identify (determine or select) an electronic pen inserted into the electronic device from a plurality of electronic pens in operation 1239. For example, the processor may identify (determine or select) an electronic pen inserted into the electronic device from a plurality of electronic pens by referring to Fig.11 Various methods are described to identify an electronic pen actually inserted into an electronic device.
[0174] In operation 1241 , the processor may connect with the recognized electronic pen for communication.
[0175] Although not shown, when the electronic pen is not found based on the result of the scan in operation 1233, the processor may notify the user of a breakdown of the electronic pen. According to some embodiments, when the electronic pen is not found, the processor may initialize the inserted electronic pen and perform the scanning operation again. This is because the electronic pen inserted into the electronic device is connected to another electronic device for communication, and thus may not be found when performing the scan.
[0176] Fig.13is a flowchart illustrating a method by which an electronic device controls a communication connection with an electronic pen according to an embodiment of the present disclosure.
[0177] refer to Fig.13 , electronic devices (e.g. Figure 1 electronic device 20, Figure 2 The electronic device 201, Figure 3 electronic device 301, Figure 5B The electronic device 510 or 520 or Fig.10 A processor (eg, Figure 2 The processor 220 of the processor 220 or 3 may detect the insertion of the electronic pen in operation 1301. The insertion of the electronic pen may be detected by any of various methods. Since the detailed description has been made above, the description will be omitted.
[0178] In operation 1303, the processor may control the wireless charging circuit (eg, Figure 3 The first wireless charging circuit 340) applies charging power to the inserted electronic pen. Fig. 7A and Figure 7B A method of applying charging power is described, and thus a detailed description thereof is omitted. The electronic pen to which the charging power is applied may output an advertising signal.
[0179] In operation 1305, the processor may control the wireless communication circuit (e.g., Figure 3 The processor may use a first wireless communication circuit 350 to scan at least one electronic pen. For example, the processor may receive an advertising signal sent by at least one electronic pen through the wireless communication circuit.
[0180] The processor may identify whether the electronic pen is found in operation 1307. When the electronic pen is found based on the result of identification in operation 1307, the processor may identify whether the number of the found electronic pens is two or more in operation 1309.
[0181] When the number of electronic pens found based on the result of identification in operation 1309 is two or more, the processor may identify the inserted electronic pen among the plurality of found electronic pens in operation 1311. For example, the processor may identify the inserted electronic pen by referring to Fig.11 Various methods are described to identify (determine / select) an electronic pen actually inserted into an electronic device.
[0182] In operation 1313 , the processor may establish a communication connection with the identified electronic pen.
[0183] When the electronic pen is not found based on the result of identification in operation 1307, the processor may provide a notification of an error of the electronic pen in operation 1333. For example, the processor may output a pop-up message to the display, output a predetermined audio signal through a speaker, or output vibration in a predetermined pattern through a vibration motor.
[0184] The processor may initialize the inserted electronic pen and perform the scanning operation again before providing a notification of an error of the electronic pen. This is because the electronic pen inserted into the electronic device is connected to another electronic device for communication and thus may not be found.
[0185] When the number of electronic pens is not plural based on the result of identification in operation 1309, for example, when the number of electronic pens found is one, the processor may establish a communication connection with the found electronic pen in operation 1335. For example, the processor may determine that the one found electronic pen is an electronic pen inserted into the electronic device, and establish a communication connection. The processor may execute a method for Fig.11 The various methods described are used to identify whether the found electronic pen is the inserted electronic pen. This is because when a damaged electronic pen is inserted into an electronic device, an electronic pen inserted into another electronic device or an electronic pen located outside the electronic device may be found.
[0186] Although the above description has been made on the basis of the case where the electronic pen is inserted, the electronic device can perform operations for communicating with the electronic pen in various states where a communication connection with the electronic pen is required, for example, when an application (or app) using the electronic pen is run, when an application (e.g., app) is terminated from a memory due to an error and then the app is run again, or when the communication connection is disconnected while the electronic pen is inserted.
[0187] In another example, when the electronic device is started (or restarted), the electronic device may perform an operation for communication connection with the electronic pen. For example, when the power of the electronic device is turned on, it is identified whether there is information related to the electronic pen in the memory, and when there is no relevant information, an operation for communication connection with the electronic pen may be performed. For example, when the power of the electronic device is turned on, charging power may be applied to the electronic pen inserted into the housing of the electronic device through the wireless charging circuit, and when there is no information related to the electronic pen in the memory, an operation for establishing a communication connection with the electronic pen being charged may be performed.
[0188] In another example, when the information about the electronic pen stored in the memory is initialized, an operation for communication connection with the electronic pen may be performed. For example, when the user runs a setting menu and initializes the information about the electronic pen even if the electronic pen is inserted into the electronic device, is being charged, and is connected for communication, an operation for communication connection with the electronic pen may be performed.
[0189] Fig.14 An operation for a communication connection between an electronic device and an electronic pen according to an embodiment of the present disclosure is shown.
[0190] refer to Fig.14 , electronic devices (e.g. Figure 1 The electronic device 20) (eg, a processor of the electronic device) may perform control to display the image on a display (eg, Figure 2 The display device 260 outputs a signal for making a response to the inserted electronic pen (for example, Figure 1 The electronic device may display a screen of a message requesting the electronic pen 10 to be inserted, as indicated by reference numeral 1410. For example, when no electronic pen is connected for communication and when the electronic pen is not inserted, the electronic device may perform control to display an insertion request screen on the display. Reference numeral 1410 is only an example, and the electronic device may provide a request for inserting the electronic pen by any of various methods. For example, the electronic device may provide a request for inserting the electronic pen through a pop-up window, a quick panel, or a notification bar.
[0191] When the electronic pen is inserted, the electronic device can control the output of instructions to the display through the wireless communication circuit (for example, Figure 3 The first wireless communication circuit 350 of the electronic device attempts to establish a communication connection with the inserted electronic pen (hereinafter referred to as a connection attempt screen), as indicated by reference numeral 1420. At this time, the electronic device can communicate with the inserted electronic pen through the wireless communication circuit (for example, Figure 3 The first wireless communication circuit 350 of the electronic pen provides charging power to the electronic pen, and the electronic pen can output (e.g., broadcast) an advertising signal. In addition, the electronic device can verify whether the inserted electronic pen is the same as the electronic pen being charged by any of various methods.
[0192] When the electronic device performs a communication connection with the inserted electronic pen, the electronic device may perform control to output a screen indicating that the communication with the electronic pen is connected (hereinafter referred to as a connection completion screen) to the display, as indicated by reference numeral 1430. When a predetermined time (e.g., 2 seconds) has passed from the output of the connection completion screen, the electronic device may perform control to output an initial screen (e.g., a home screen) to the display.
[0193] When the electronic device does not establish a communication connection with the inserted electronic pen, the electronic device may control to output a screen indicating that the communication with the electronic pen is not connected (hereinafter referred to as an unconnected notification screen) to the display, as indicated by reference numeral 1440. The unconnected notification screen may include a retry menu (or button) 1441. When the retry menu 1441 is selected (e.g., touched), the electronic device may perform control to output a connection attempt screen 1420 to the display while retrying the communication connection with the electronic pen. In addition, when the retry menu 1441 is selected, the electronic device may count up the number of retries.
[0194] The disconnected notification screen 1440 may be provided a predetermined number of times (N times). N may be a natural number (e.g., 3). When there is no communication connection between the electronic device and the electronic pen, it is identified whether the number of retries is less than the predetermined number of times. When the number of retries is less than the predetermined number of times, the electronic device may perform control to output the disconnected notification screen 1440 to the display again.
[0195] On the other hand, when the number of retries is the same as the predetermined number of times, the electronic device cannot establish a communication connection with the electronic pen, and may perform control to output a screen (hereinafter referred to as a connection-impossible screen) suggesting access to a service center to the display, as indicated by reference numeral 1450. The connection-impossible screen may include a close menu 1451. When the close menu 1451 is selected, the electronic device may perform control to output an initial screen (e.g., a home screen) to the display.
[0196] The electronic device does not need to provide a disconnection notification screen. For example, when disconnection between the electronic device and the electronic pen is displayed on the connection attempt screen 1420, the electronic device may perform control to directly output a connection impossible screen 1450 to the display.
[0197] According to various embodiments of the present disclosure, controlling an electronic device (eg, Figure 1 electronic device 20, Figure 2 The electronic device 201, Figure 3 electronic device 301, Figure 5B The electronic device 510 or 520, Fig. 7A and Figure 7B electronic device 720, Figure 8 electronic device 820, Fig. 9 Electronic device 920, Fig.10 The electronic device 1001 or Fig.11 The method of communicating with the electronic device 1120) may include: detecting an electronic pen (eg, Figure 1 Electronic pen 10, Figure 4 Electronic pen 400, Figure 5BThe electronic pen 51 or 52, Fig. 7A and Figure 7B Electronic pen 710, Figure 8 Electronic pen 810, Fig. 9 Electronic pen 910, Fig.10 Electronic pen 11 or Fig.11 Whether the electronic pen 1110 is inserted into the housing of the electronic device (for example, Figure 1 The recessed portion (eg, Figure 1 The operation of the recess 22) is performed by the wireless charging circuit (for example, Figure 3 The invention also provides an operation of charging the electronic pen by using the first wireless charging circuit 340, and an operation of receiving inherent information of the electronic pen through the wireless communication circuit during or after charging; and an operation of maintaining or reestablishing the communication connection with the electronic pen based on a part of the received inherent information.
[0198] The wireless communication circuitry may support the Bluetooth protocol.
[0199] The inherent information may be the Bluetooth address of the electronic pen.
[0200] Maintaining or reestablishing a communication connection may include comparing the received inherent information with reference inherent information stored in a memory of the electronic device; when, based on a result of the comparison, the received inherent information matches the reference inherent information, maintaining the communication connection; and when, based on a result of the comparison, the received inherent information does not match the reference inherent information, reestablishing the communication connection with the electronic pen.
[0201] The reestablishment of the communication connection may include at least one of: restarting the wireless communication circuit; and deleting pairing related data of the previously connected electronic pen.
[0202] The inherent information may be included in the advertising signal of the electronic pen, and the maintenance or re-establishment of the communication connection may include randomly turning on or off the wireless charging circuit in response to the reception of multiple advertising signals from multiple electronic pens; and maintaining or re-establishing the communication connection based on whether the advertising signal of the electronic pen or the charging-related information contained in the advertising signal is synchronized with the on or off mode of the wireless charging circuit.
[0203] Intrinsic information may be included in an advertising signal of an electronic pen, and maintaining or reestablishing a communication connection may include making a request to reduce the strength of an advertising signal of an electronic pen connected for communication to a preset size or less in response to receiving multiple advertising signals from multiple electronic pens; maintaining a communication connection with the electronic pen in response to continuous reception of advertising signals with reduced signal strength; and reestablishing a communication connection with the electronic pen in response to not receiving an advertising signal with reduced signal strength.
[0204] Charging of the electronic pen may include applying charging power to the electronic pen by periodically repeating the on / off of the wireless charging circuit, and the electronic pen may be configured to send an advertising signal including inherent information during the on period of the wireless charging circuit, not send an advertising signal during the off period of the first wireless charging circuit, send an advertising signal during the on period of the first wireless charging circuit, and stop sending the advertising signal after maintaining sending the advertising signal for a predetermined time after disconnecting the first wireless charging circuit.
[0205] According to various embodiments of the present disclosure, an electronic device can be connected for communication by identifying an external electronic device that needs to be connected for communication. For example, the electronic device can provide charging power to the external electronic device, and maintain or reestablish the communication connection according to whether the external electronic device to which the charging power is provided is an external electronic device with a previous communication connection history. According to various embodiments of the present disclosure, when multiple external electronic devices are found, the external electronic device that is inserted into the electronic device and is being charged can be identified (determined) among the multiple external electronic devices based on the charging-related information.
[0206] The electronic device may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. The electronic device is not limited to those described above.
[0207] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalents or alternative forms for the corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the noun corresponding to the item in the singular form may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include any one or all possible combinations of the items listed together with the corresponding one of the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the terms “operably” or “communicatively” are used or when the terms “operably” or “communicatively” are not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.
[0208] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).
[0209] The various embodiments described herein may be implemented as software (e.g., program 240) including one or more instructions stored in a storage medium (e.g., internal memory 236 or external memory 238) that can be read by a machine (e.g., electronic device 20, electronic device 201). For example, under the control of a processor, a processor (e.g., processor 220) of the machine (e.g., electronic device 20, electronic device 201) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be run by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. The term "non-transitory" only means that the storage medium is a tangible device and does not include signals (e.g., electromagnetic waves), but the term does not distinguish between data being semi-permanently stored in a storage medium and data being temporarily stored in a storage medium.
[0210] According to an embodiment of the present disclosure, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be released in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be downloaded via an application store (e.g., Play Store TM ) The computer program product may be published (e.g., downloaded or uploaded) online, or the computer program product may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smartphones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a forwarding server).
[0211] Each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities. One or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as a corresponding component in the multiple components before integration. The operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.
[0212] While the present disclosure has been described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents.
Claims
1. An electronic device, comprising: case; a touch screen display exposed through a portion of the housing; a first wireless communication circuit disposed inside the housing; a recess disposed inside the housing; a first wireless charging circuit disposed inside the housing to be adjacent to the recess; An electronic pen is inserted so as to be removable from the recess, and the electronic pen comprises: a second wireless communication circuit configured to perform wireless communication with the first wireless communication circuit, and a second wireless charging circuit electrically coupled to the first wireless charging circuit; a processor disposed inside the housing; and A memory storing instructions that, when executed by the processor, cause the electronic device to: Detect whether the electronic pen is inserted into the recess, Based on the detection, the electronic pen is charged by a first wireless charging circuit. During or after charging, receiving inherent information of the electronic pen through the first wireless communication circuit, Compare the inherent information with the information stored in the electronic device, If the inherent information matches the stored information, when the electronic pen is inserted into the electronic device, maintaining a communication connection with the electronic pen based on a result of the comparison, and If the inherent information does not match the stored information, when the electronic pen is inserted into the electronic device, a communication connection with the electronic pen is reestablished based on a result of the comparison.
2. The electronic device according to claim 1, wherein: The first wireless communication circuit supports Bluetooth protocol.
3. The electronic device according to claim 2, wherein: The unique information is the Bluetooth address of the electronic pen.
4. The electronic device according to claim 1, wherein: The information stored in the electronic device includes reference inherent information in a memory of the electronic device.
5. The electronic device according to claim 1, wherein: Reestablishing the communication connection includes at least one of the following: restarting at least one of the first wireless communication circuit or the second wireless communication circuit; or deleting pairing related data.
6. The electronic device according to claim 5, in, The inherent information is included in the advertising signal of the electronic pen, and Among them, when the instructions are executed by the processor, they also cause the electronic device to: randomly turn on or off the first wireless charging circuit in response to the reception of multiple advertising signals from multiple electronic pens, and maintain or re-establish the communication connection based on whether the advertising signal is synchronized with the on or off mode of the first wireless charging circuit of the multiple electronic pens.
7. The electronic device according to claim 5, in, The inherent information is included in the advertising signal of the electronic pen, and Among them, when the instructions are executed by the processor, they also cause the electronic device to: randomly turn on or off the first wireless charging circuit in response to the reception of multiple advertising signals from multiple electronic pens, and maintain or re-establish the communication connection based on whether the charging-related information included in the advertising signal is synchronized with the turn-on or turn-off mode of the first wireless charging circuit of the multiple electronic pens.
8. The electronic device according to claim 5, in, The inherent information is included in the advertising signal of the electronic pen, and Wherein, when the instructions are executed by the processor, the electronic device further causes: in response to reception of a plurality of advertisement signals from a plurality of electronic pens, making a request to reduce the strength of the advertisement signal of the electronic pens connected for communication to a preset level or less, In response to continued receipt of the advertising signal having a decreasing signal strength, maintaining the communication connection with the electronic pen, and In response to not receiving the advertisement signal with the reduced signal strength, the communication connection with the electronic pen is reestablished.
9. The electronic device according to claim 1, wherein: The instructions, when executed by the processor, further cause the electronic device to: provide a notification that the electronic pen inserted into the recess has an error when the inherent information is not received.
10. The electronic device according to claim 1, wherein: When executed by the processor, the instructions further cause the electronic device to apply charging power to the electronic pen by periodically repeating turning on and off the first wireless charging circuit.
11. The electronic device according to claim 10, wherein: The electronic pen is configured as: transmitting an advertising signal including inherent information during a turn-on period of the first wireless charging circuit; not sending the advertising signal during the disconnection period of the first wireless charging circuit, sending an advertising signal during the on-time period of the first wireless charging circuit, and After the first wireless charging circuit is disconnected, the sending of the advertisement signal is maintained for a predetermined time, and then the sending of the advertisement signal is stopped.
12. A method for controlling a communication connection by an electronic device, the method comprising: detecting whether the electronic pen is inserted into a recess inside a housing of the electronic device; Based on the detection, charging the electronic pen through a wireless charging circuit; During or after charging, receiving inherent information of the electronic pen through the wireless communication circuit; comparing the inherent information with information stored in the electronic device; as well as Based on the comparison result, when the electronic pen is inserted into the recess, maintaining or reestablishing the communication connection with the electronic pen, Among them, maintaining or reestablishing the communication connection includes: If the inherent information matches the stored information, when the electronic pen is inserted into the electronic device, maintaining a communication connection with the electronic pen based on a result of the comparison, and If the inherent information does not match the stored information, when the electronic pen is inserted into the electronic device, a communication connection with the electronic pen is reestablished based on a result of the comparison.
13. The method according to claim 12, wherein: The wireless communication circuit supports the Bluetooth protocol.
14. The method according to claim 13, wherein: The unique information is the Bluetooth address of the electronic pen.
15. The method according to claim 12, wherein: The information stored in the electronic device includes reference inherent information in a memory of the electronic device.
16. The method according to claim 12, wherein: The reestablishment of the communication connection includes at least one of the following: Restart the wireless communication circuit; or Delete the pairing related data of the previously connected electronic pen.
17. The method according to claim 16, in, The inherent information is included in the advertising signal of the electronic pen, and The maintenance or reestablishment of the communication connection includes: randomly turning on or off the wireless charging circuit in response to reception of a plurality of advertising signals from a plurality of electronic pens, and The communication connection is maintained or reestablished based on whether the advertisement signal of the electronic pen or the charging-related information contained in the advertisement signal is synchronized with the on or off mode of the wireless charging circuit.
18. The method according to claim 16, in, The inherent information is included in the advertising signal of the electronic pen, and The maintenance or reestablishment of the communication connection includes: in response to reception of a plurality of advertisement signals from a plurality of electronic pens, making a request to reduce the strength of the advertisement signal of the electronic pens connected for communication to a preset level or less, In response to continued receipt of the advertising signal having a decreasing signal strength, maintaining the communication connection with the electronic pen, and In response to not receiving the advertisement signal with the reduced signal strength, the communication connection with the electronic pen is reestablished.
19. The method according to claim 12, in, Charging the electronic pen includes applying charging power to the electronic pen by periodically repeating on / off of the wireless charging circuit, and The electronic pen is configured as follows: transmitting an advertising signal including inherent information during an on period of the wireless charging circuit; No advertising signal is sent during the disconnection period of the wireless charging circuit. sending an advertising signal during an on-period of the wireless charging circuit, and After the wireless charging circuit is disconnected, the transmission of the advertising signal is maintained for a predetermined time, and then the transmission of the advertising signal is stopped.
20. An electronic device comprising: case; a touch screen display exposed through a portion of the housing; a first wireless communication circuit disposed inside the housing; a recess disposed inside the housing; a first wireless charging circuit, arranged inside the housing to be adjacent to the recess; A processor is arranged inside the housing; as well as A memory storing instructions that, when executed by the processor, cause the electronic device to: Detect whether the electronic pen is inserted into the recess, Based at least in part on the detection, charging the electronic pen through a first wireless charging circuit, performing scanning to identify information about the electronic pen through the first wireless communication circuit, In response to discovering a plurality of electronic pens through scanning, the first wireless charging circuit is turned on or off in a predetermined mode, identifying an electronic pen inserted into the recess among the plurality of electronic pens based on charging-related information included in an advertisement signal received from the plurality of discovered electronic pens, and A communication connection is established with the recognized electronic pen.
Citation Information
Patent Citations
Mobile device having transmitter for wireless charging of stylus pen
KR1020160068099A
System and method of managing pairing information associated with peer-to-peer device pairings
US20130095753A1
Automatic device pairing
US20160337496A1
Electronic device including sensor and operating method thereof
US20170115755A1