Electronic device for recognizing asynchronous digital pen and recognizing method thereof

An electronic device for receiving an input by a digital pen having a waveform generation means is provided. The electronic device includes at least three reception sensors and a processor. The at least three reception sensors are installed in the electronic device at positions that are separated from one another, and are configured to receive a waveform generated by the waveform generator of the digital pen. The processor is configured to calculate an input coordinate of the digital pen using a difference of velocities and reception times of the waveform received by the at least three reception sensors.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims the benefit under 35 U.S.C. §119(a) of a Korean patent application filed on Jan. 4, 2013 in the Korean Intellectual Property Office and assigned Serial No. 10-2013-0001021, the entire disclosure of which is hereby incorporated by reference.

TECHNICAL FIELD

The present disclosure relates to an electronic device for recognizing a digital pen and a recognizing method thereof.

BACKGROUND

With rapid development of an electronic communication technology, a peripheral device attached to or additionally used for an electronic device also develops. For example, for the peripheral device, there exists an auxiliary memory card, an ear microphone mounted and installed in an electronic device to allow communication with a counterpart user, a Bluetooth headset for performing short distance wireless communication via a Bluetooth module mounted in the electronic device, and a stylus pen which is a kind of a digital pen used to manipulate a touchscreen unit for performing input and output simultaneously.

Recently, a so-called smartphone is mainly used as a representative electronic device, and the smartphone indispensably has a touchscreen unit performing input/output of data simultaneously using a large-sized screen with consideration of use convenience.

A touch panel used for the touchscreen unit is roughly classified into various touch panels such as a resistive touch panel, a capacitive touch panel, an ultrasonic touch panel, a light (infrared) sensor type touch panel, a touch panel using an electromagnetic resonance, etc.

To increase convenience and variety in touch, the electronic device having the above-described various types of touchscreen unit has a stylus pen of a predetermined length, whose end has a pointed tip so that it is detachable from the inside of the electronic device. For example, an electronic device having a resistive touchscreen may have a construction where a stylus pen has a simply pointed end and touches the touchscreen with a predetermined pressure. Also, in a case of a capacitive touch panel, it is preferable that a tip contacting the touchscreen is formed of a conductive material and applied.

Meanwhile, a method using an electromagnetic resonance requires a sensor pad (referred to as a ‘digitizer’) arranged in an array configuration for generating electromagnetic resonance at the lower portion of a display screen on which pen input is performed, and detection is possible only within a detect region of the sensor pad.

However, since this method requires a magnetic material and a coil body inside a pen and requires a flat-shaped sensor pad also inside an electronic device, the structure is complicated and manufacturing costs increase. Also, in the method using an ultrasonic wave, when a pen generates an ultrasonic wave, a time until a receiver provided to an electronic device receives the ultrasonic wave is measured, and a distance between the receiver and the pen is calculated from the propagation velocity of an ultrasonic wave and the time until the ultrasonic wave is received. Therefore, unlike the electromagnetic resonance method, the method using the ultrasonic wave does not require the sensor pad of array configuration and the detect region is relatively wide. The above-described related-art ultrasonic wave method uses a method of measuring distances between two or more receivers and a pen, and calculating the coordinate of the pen using triangle drawing. This method may accurately measure a time until an ultrasonic wave is received only when a receiver knows an accurate point at which the pen generates the ultrasonic wave. Therefore, there is a need for a more reasonable measurement method.

SUMMARY

Aspects of the present disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the present disclosure is to provide an electronic device and a method for recognizing an asynchronous digital pen so as not to require a separate synchronization means.

Another aspect of the present disclosure is to provide an electronic device and a method for recognizing an asynchronous digital pen, realized to contribute to slimness of the electronic device by excluding a synchronization means that should be added.

Still another aspect of the present disclosure is to provide an electronic device and a method for recognizing an asynchronous digital pen, realized to contribute to manufacturing cost reduction by excluding a synchronization means.

In accordance with an aspect of the present disclosure, an electronic device for receiving an input by a digital pen having a waveform generator is provided. The electronic device includes at least three reception sensors installed in the electronic device at positions that are separated from one another, and are configured to receive a waveform generated by the waveform generator of the digital pen, and a processor configured to calculate an input coordinate of the digital pen using a difference between a velocity of the waveform received by the at least three reception sensors and a reception time.

In accordance with an aspect of the present disclosure, at least one of the at least three reception sensors is not disposed on a line between at least two other of the at least three reception sensors.

More preferably, the reception sensors may be disposed in a region of the electronic device other than a display region of a display unit provided to the electronic device. However, they are not limited thereto but the at least three reception sensors may be disposed in the display region without influencing device units.

In accordance with an aspect of the present disclosure, the waveform generator may be an ultrasonic wave generating unit, and the at least three reception sensors may be ultrasonic reception sensors. Also, the waveform generator may be a vibration generating unit, and the at least three reception sensors may be vibration reception sensors. However, they are not limited thereto but various types of generator for generating a pulse-shaped waveform or a modulated continuous waveform may be used.

In accordance with another aspect of the present disclosure, a method for calculating an input coordinate of a digital pen having a waveform generator in an electronic device including at least three reception sensors is provided. The method includes determining a difference of at least two reception times of waveforms received from the at least three reception sensors, respectively, and determining an input coordinate of the digital pen using the determined deference of at least two reception times and a velocity of the waveform set in advance.

DETAILED DESCRIPTION

In describing the present disclosure, for the electronic device, a portable terminal for communication having a composite touchscreen unit has been illustrated and described, but it is not limited thereto. For example, the electronic device may include various apparatuses having a composite touchscreen unit, that is, a Personal Digital Assistant (PDA), a laptop computer, a smartphone, a netbook, a Mobile Internet Device (MID), an Ultra Mobile Personal Computer (UMPC), a tablet Personal Computer (PC), a navigation, a digital audio player, a TeleVision (TV), a remote controller applied thereto, etc.

Particularly, in the case where the TV is applied as an electronic device, the remote controller may be realized to replace the function of a digital pen as a pointing device.

Also, according to the present disclosure, a digital pen has an ultrasonic wave generating unit, and an electronic device has at least three reception sensors for receiving an ultrasonic wave but they are not limited thereto. For example, various waveform generators that may generate a waveform may be provided to the digital pen. The waveform generator may be replaced by a vibration generator. That is, the present disclosure is applicable to various systems where respective reception sensors may receive with a predetermined time difference a waveform generated by a waveform generator provided to the digital pen.

Furthermore, according to the present disclosure, besides reception sensors for receiving a coordinate via the digital pen, a separate touch panel (for example, a capacitive touch panel) that may detect a touch by a user's hand is applied to a display unit of the electronic device, but the present disclosure is not limited thereto and a position may be detected by the digital pen independently.

FIG. 1is a view illustrating a state of an electronic device for recognizing an asynchronous digital pen in use according to an embodiment of the present disclosure.

A portable terminal has been illustrated as an electronic device100. The electronic device100includes a display unit101on its front side, a speaker unit102on the upper side of the display unit101, and a microphone unit103on its lower side.

Also, for a data input unit using the display unit101, a digital pen1has been applied. Though the present disclosure uses the digital pen1as a coordinate input tool. The digital pen1may be also be referred to as a ‘stylus’ pen. The digital pen1has an ultrasonic wave generator (e.g., ultrasonic wave generator10ofFIG. 2) at its end. The ultrasonic wave generator may be realized to generate an ultrasonic wave constantly. In this case, the digital pen1received in the electronic device100may detect it is separated from the electronic device to generate an ultrasonic wave constantly. In this case, the electronic device100may detect the digital pen1is separated from the electronic device100to automatically enter an ultrasonic wave input mode.

Also, the digital pen1may generate an ultrasonic wave for only a time intended by a user's manipulation. For example, the user may generate an ultrasonic wave by pressing a button protruded on a portion of the digital pen1. Also, in the case where the digital pen1inputs data two-dimensionally by contacting the surface of the display unit101, the user may generate an ultrasonic wave by pressing a tip installed at the end of the digital pen1.

Though not shown, the electronic device100may have a touch panel separately from a Liquid Crystal Display (LCD) module provided as the display unit to receive data input by a user's hand touch in the case where the digital pen1is not used.

FIG. 2is a view illustrating an electronic device where the digital pen ofFIG. 1and reception sensors are disposed according to an embodiment of the present disclosure.

According to the present disclosure, at least three ultrasonic reception sensors S1, S2, and S3separated with a predetermined interval are disposed at appropriate positions of the electronic device100. Preferably, at least one of the ultrasonic reception sensors S1, S2, and S3should not be installed on a straight line. Also, it is preferable that these reception sensors S1, S2, and S3are installed at the edge region excluding the display101of the electronic device100.

Hereinafter, a method for detecting the input position of the digital pen1using the above ultrasonic reception sensors S1, S2, and S3, which sense ultrasonic waves generated by the ultrasonic wave generator10, is described below.

FIG. 3is a schematic view illustrating a time difference related to ultrasonic signal transfer between respective reception sensors and the digital pen ofFIG. 2according to an embodiment of the present disclosure;FIG. 4Ais a graph measuring a coordinate of a digital pen by a synchronization means according to the related art; andFIG. 4Bis a graph measuring the coordinate of a digital pen, and illustrating correlation between a coordinate of a digital pen and time difference between respective reception sensors, according to an embodiment of the present disclosure.

Referring toFIGS. 3,4A, and4B, reception sensors for receiving an ultrasonic wave are represented by S1, S2, S3, respectively, and times consumed until ultrasonic waves generated by the ultrasonic wave generator10of the digital pen1are received by the respective reception sensors is represented by t1, t2, t3, respectively. In this structure, since means for synchronizing the digital pen1with the electronic device100does not exist, an accurate generation point at which the digital pen1has generated an ultrasonic wave cannot be known, but the coordinate of the digital pen1may be calculated using a difference between points at which the ultrasonic waves have been received by the respective reception sensors S1, S2, S3.

When a time of a reception side and a time of a generating side are not accurately synchronized in the present disclosure and generating time information is not transferred to the reception side using other methods excluding an ultrasonic wave, it is not possible to measure t1which is a time consumed until a generated signal is transferred to the sensor S1as illustrated inFIG. 3. However, since time points at which the respective reception sensors have received a signal are measured, a reception time difference between the sensors may be easily measured.

ThoughFIG. 3illustrates a pulse-shaped generated waveform for convenience in description, the generated waveform may have waveforms of various shapes. For example, a continuous waveform obtained by Frequency Modulation (FM)-modulating a specific frequency may be used. A receiver may perform FM demodulation and extract a specific frequency, and each receiver may detect a time difference using a phase difference of the extracted specific frequency. Besides, various modulation/demodulation methods such as Phase Modulation (PM), Phase Shift Keying (PSK), etc. may be utilized. Also, this generation waveform may include modulated various state information of the pen including the state of the button positioned on the digital pen.

Meanwhile, assuming that times for which an ultrasonic wave is transferred from the digital pen1to the reception sensors S1, S2, S3are t1, t2, t3, respectively, time differences between time points at which the respective sensors receive an ultrasonic wave may be expressed as follows.
Δt12=t1−t2
Δt23=t2−t3
Δt13=t1−t3

Here, since Δt13=Δt13+Δt23, Δt12, Δt23, and Δt13are subordinated to one another. However, when two are selected from Δt12, Δt23, and Δt13, a subordinate relation does not exist, so that they may be used for calculating a 2 Dimensional (2D) coordinate. Hereinafter, for convenience in description, an operation is described mainly using Δt12and Δt13.

Assuming that the propagation velocity of an ultrasonic wave is Vs and a distance from the pen to the respective sensors are d1, d2, d3, non-linear simultaneous equations may be formed as in Equation (1).
1)d1−d2=[(x−x1)2+(y−y1)2]1/2−[(x−x2)2+(y−y2)2]1/2=Δt12Vs
2)d1−d3=[(x−x1)2+(y−y1)2]1/2−[(x−x3)2+(y−y3)2]1/2=Δt13VsEquation (1)
where d1, d2, d3are respective distances from the respective sensors S1, S2, S3to a currently input pointing position of the digital pen, (x1, y1) is a coordinate of the sensor S1, (x2, y2) is a coordinate of the sensor S2, and (x3, y3) is a coordinate of the sensor S3. Also, Vs is a velocity (for example, 340 m/s) of an ultrasonic wave set in advance used for a calculation equation in the electronic device. (x, y) is a current coordinate of the digital pen to detect.

Therefore, coordinate (x, y) of the pen may be calculated using Equation (1) as simultaneous equations. Since this calculation should solve non-linear equations, the equations should be solved with respect to Δt12and Δt13in advance, and a high look-up table may be used.

Therefore, compared to the related-art method, the present disclosure does not require a separate circuit that uses Infra-Red (IR) or Radio Frequency (RF) for synchronization between the digital pen and the reception sensor, so that elements of the digital pen which is a generating side is more simplified. Also, a reception side does not require an IR or RF circuit and only an ultrasonic sensor is further added, so that the reception side is also simplified even more.

Compared to the related-art method, the related-art method uses a time for which an ultrasonic wave is transmitted from an ultrasonic pen to each receiver, but the present disclosure uses a difference of a time for which an ultrasonic wave is transmitted from an ultrasonic pen to two sensors. Therefore, an effect of increasing a movement distance of an ultrasonic wave twice occurs, and so an effect that resolution increases twice as illustrated inFIGS. 4A and 4Boccurs. That is, when a coordinate line using a reception time is represented using resolution of 20 μs, the coordinate line is arranged to be twice as dense in the present disclosure. Therefore, in a case of having the same time resolution, twice the resolution may be achieved.

FIG. 5Aillustrates an input error of a digital pen depending on a difference between an actual speed of sound and a speed of sound used for calculation according to the related art; andFIG. 5Billustrates an input error of a digital pen depending on a difference between an actual speed of sound and a speed of sound used for calculation according to an embodiment of the present disclosure.

Referring toFIGS. 5A and 5B, the present disclosure has an advantage of reducing a coordinate calculation error of a pen depending on a change of an environmental factor. In a case of an ultrasonic wave, a propagation velocity (speed of sound) changes depending on a kind, temperature, etc. of a medium. For example, as illustrated, in the case where a coordinate (x, y) of a digital pen is (10, 30), when the speed of sound used for calculation is 340 m/s, but the actual speed of sound is 370 m/s,FIGS. 5A and 5Bcompare errors between the related-art method and the present disclosure and show the present disclosure is much less influenced by a change of the speed of sound.

Meanwhile, an input error caused by a difference between the calculated speed of sound and the actual speed of sound may also be measured by adding one more reception sensor as described below.

FIG. 6is a view illustrating an electronic device including reception sensors disposed for correcting an input error generated inFIG. 5Band a digital pen according to an embodiment of the present disclosure; andFIG. 7is a view illustrating a coordinate system depending on an ultrasonic wave transfer time difference between the respective reception sensors ofFIG. 6according to an embodiment of the present disclosure.

FIG. 8Ais a graph illustrating an input point of a digital pen and an input point by calculation in a case where an actual speed of sound and a speed of sound used for calculation coincide according to an embodiment of the present disclosure; andFIG. 8Bis a graph illustrating an input error between an input point of a digital pen and an input point by calculation in a case where an actual speed of sound and a speed of sound used for calculation do not coincide according to an embodiment of the present disclosure.

Referring toFIGS. 6,7,8A, and8B, assuming that times for which ultrasonic waves are transferred from the ultrasonic wave generator10of the digital pen1to the reception sensors S1, S2, S3, S4(which are installed at the edge region excluding the display101of the electronic device100) are t1, t2, t3, t4, differences between points at which an ultrasonic wave is received by the respective sensors are represented as follows.
Δt12=t1−t2
Δt13=t1−t3
Δt14=t1−t4

Also, when four reception sensors are used, three time differences having independence may be extracted. For example, when Δt12, Δt13, Δt14are used, a 2D plane may be represented using a coordinate system with three lines. Among them, when two are extracted and represented using a coordinate system, it may be represented as inFIG. 7. That is, hyperbolic coordinate systems may be formed with respect to each reception sensor and a corresponding sensor.

Here, assuming the calculated propagation velocity of an ultrasonic wave is Vs, and distances from the pen to the respective sensors are d1, d2, d3, d4, non-linear simultaneous equations of Equation (2) and non-linear simultaneous equations of Equation (3) may be formed as below.
1)d1−d2=[(x−x1)2+(y−y1)2]1/2−[(x−x2)2+(y−y2)2]1/2=Δt12Vs
2)d1−d3=[(x−x1)2+(y−y1)2]1/2−[(x−x3)2+(y−y3)2]1/2=Δt13VsEquation (2)
where d1, d2, d3are distances from the sensors S1, S2, S3to a currently input pointing position of the digital pen, (x1, y1) is a coordinate of the sensor S1, (x2, y2) is a coordinate of the sensor S2, and (x3, y3) is a coordinate of the sensor S3. Also, Vs is a velocity (for example, 340 m/s) of an ultrasonic wave used for a calculation equation in the electronic device. (x, y) is a current coordinate of the digital pen to detect.
1)d1−d2=[(x−x1)2+(y−y1)2]1/2−[(x−x2)2+(y−y2)2]1/2=Δt12Vs
2)d1−d4=[(x−x1)2+(y−y1)2]1/2−[(x−x4)2+(y−y4)2]1/2=Δt14VsEquation (3)
where d4is a distance from the reception sensor S4to a currently input pointing position of the digital pen, and (x4, y4) is a coordinate of the sensor S4.

Also, the coordinate (x, y) of the digital pen may be calculated using Equation (3) and Equation (4) as simultaneous equations. Since this calculation should solve non-linear equations, the equations should be solved with respect to Δt12, Δt13, Δt14in advance, and a high look-up table may be used.

In the case where coordinate values of the digital pen according to Equation (2) and Equation (3) are calculated as the same value, a line formed by Δt12, Δt13, Δt14passes through the same point as illustrated inFIG. 8A. That is, a coordinate system (Δt12, Δt13) and a coordinate system (Δt12, Δt14) ofFIG. 7represent the same point. Therefore, in this case, the speed of sound calculated by the electronic device and the actual speed of sound emitted from the digital pen coincide.

However, in the case where the actual speed of sound and the speed of sound used for calculation are different, that is, the coordinate values of the digital pen according to results of Equation (2) and Equation (3) do not coincide, Δt12, Δt13, Δt14do not overlap at one point as illustrated inFIG. 8B.

In this case, when coordinates calculated using (Δt12, Δt13) and (Δt12, Δt14) are different, the speed of sound used for calculation and the actual speed of sound are different. Then, the electronic device determines the speed of sound allowing the lines of Δt12, Δt13, Δt14to meet at one point while changing the speed of sound used for the calculation. For an algorithm for determining the actual speed of sound while changing the speed of sound, a variety of methods may exist. This means that fast calculated correction of the speed of sound is possible in an electronic device where at least four sensors are arranged even though the calculated speed of sound and the actual speed of sound are different.

That is, when the four reception sensors are used, a change in the speed of sound depending on an influence of an environment, etc. may be detected. An environment change generating a rapid change in the speed of sound almost does not occur even under an actual use condition, and the environment changes relatively slowly. Therefore, an algorithm for detecting and correcting a change in the speed of sound slowly operates in the background compared to a coordinate detect algorithm and may reduce an amount of operations of the processor of the electronic device.

FIG. 9is a view illustrating an electronic device illustrating a digital pen and arrangement of respective reception sensors for detecting a 3 Dimensional (3D) input coordinate on a space according to an embodiment of the present disclosure.

Referring toFIG. 9, a 2D coordinate on the display is obtained using three or more reception sensors, and four or more reception sensors are required to detect an error between the calculated speed of sound and the actual speed of sound. To detect the 3D coordinate of the digital pen, in the case where only a coordinate is calculated using the same principle, four or more receivers are required. To detect an error between the calculated speed of sound and the actual speed of sound, five or more reception sensors may be used.

Assuming that times for which an ultrasonic wave is transmitted from the ultrasonic wave generator10of the digital pen1to the reception sensors S1, S2, S3, S4(which are installed at the edge region excluding the display101of the electronic device100) are t1, t2, t3, t4inFIG. 9, differences between points at which an ultrasonic wave is received by the respective sensors may be represented as follows.
Δt12=t1−t2
Δt13=t1−t3
Δt34=t3−t4

Here, assuming the calculated propagation velocity of an ultrasonic wave is Vs, and distances from the pen to the respective sensors are d1, d2, d3, d4, non-linear simultaneous equations of Equation (4) may be formed as below.
1)d1−d2=[(x−x1)2+(y−y1)2+(z−z1)2]1/2−[(x−x2)2+(y−y2)2+(z−z2)2]1/2=Δt12Vs
2)d1−d3=[(x−x1)2+(y−y1)2+(z−z1)2]1/2−[(x−x3)2+(y−y3)2+(z−z3)2]1/2=Δt13Vs
3)d3−d4=[(x−x3)2+(y−y3)2+(z−z3)2]1/2−[(x−x4)2+(y−y4)2+(z−z4)2]1/2=Δt34VsEquation (4)
where d1, d2, d3, d4are distances from the sensors S1, S2, S3, S4to a currently input pointing position of the digital pen, (x1, y1, z1) is a coordinate of the sensor S1, (x2, y2, z2) is a coordinate of the sensor S2, (x3, y3, z3) is a coordinate of the sensor S3, and (x4, y4, z4) is a coordinate of the sensor S4. Also, Vs is a velocity of an ultrasonic wave used for a calculation equation in the electronic device. (x, y, z) is a current coordinate of the digital pen to detect.

Also, a coordinate (x, y, z) of the digital pen may be calculated using Equation (4) as third degree simultaneous equations. Since this calculation should solve non-linear equations, the equations should be solved with respect to Δt12, Δt13, Δt34in advance, and a high look-up table may be used.

Meanwhile, according to the present disclosure, in the case where the tip of the digital pen is allowed to contact the surface of the display unit of the electronic device, pressure information of the tip is also modulated and included in a generated wave and transmitted.

Therefore, as described above, in the case where four sensors are used, when the pen contacts the surface of the display unit, not only a 2D coordinate of the pen but also the actual speed of sound may be measured, so that more accurate position may be detected. In the case where the pen is separated from the screen and moves, only a 3D coordinate may be calculated. However, since a user cannot clearly recognize an error of a 3D coordinate in most of electronic devices having a 2D screen, a problem in using the electronic device may not noticeably occur even though the actual speed of sound is corrected only at the point where the tip of the digital pen contacts the screen.

FIG. 10is a block diagram illustrating an electronic device according to an embodiment of the present disclosure.

The electronic device100according to the present disclosure includes a storage module110, a processor module120, a communication module130, an external port140, an audio processor150, an Input/Output (I/O) control module160, a display unit170, and an input unit180. Here, a plurality of storage modules110and external ports140may exist, and the display unit is a display module and may include a Liquid Crystal Display (LCD) module.

The processor module120includes a memory controller121, a processor122, and a peripheral interface123. Here, a plurality of processors121may exist.

The communication module130includes an RF processor131and a baseband processor132.

The above-described element may be implemented as hardware such as one or more Integrated Circuits (IC) or software, or a combination of hardware and software.

Each element is described below.

The storage module110may include a program storage for storing a program for controlling an operation of a portable terminal, and a data storage117for storing data occurring during execution of a program. For example, the program storage includes an Operating System (OS) software module111, a communication software module112, a graphic software module113, a user interface software module114, at least one application software module115, and a touch operation program module116according to the present disclosure.

The OS software module111includes at least one software element for controlling a general system operation. At this point, the OS software module111also performs a function for swift communication between a plurality of hardware (devices) and software elements.

The communication software module112includes at least one software element for processing data transmitted and received via the RF processor131or the external port140.

The graphic software module113includes at least one software element for providing and displaying graphics on the display unit170.

The user interface module114includes at least one software element related to the user interface.

The application software module115includes a software element for at least one application installed in the portable electronic device100.

The touch operation program module116includes not only a software element for correcting a touch error recognized by a touch panel IC and a pen touch panel IC included in the I/O control module160, but also various routines for supporting a composite touch operation resource in the case where the present disclosure uses an ultrasonic input method and a touch input method in a combination manner. For example, the touch operation program module116may include a routine for supporting to activate the touch panel182and the waveform detect sensors S1to S4.

Furthermore, the touch operation program module116includes a routine supporting to discriminate the kind of input touch events by determining information corresponding to device information of the touch panel and device information of the digital pen based on the waveform detect sensors S1to S4. Also, the above-described touch operation program module116may include a routine for discriminating a collected human body touch event by a user and a pen touch event, and a routine for operating discriminated touch events with reference to a predetermined touch operation table.

The memory controller121of the processor module120controls an access of the storage module110by other elements such as the processor122or the peripheral interface123, and controls various signal flows required for supporting a composite touch operation and information collection and output according to the present disclosure.

When the waveform of the digital pen is detected by the sensors according to the present disclosure, the processor module120may drive a relevant look-up table to calculate a coordinate value of a currently input pointing position of the digital pen, and output corresponding data to the display unit. In addition, in a case of operating at least four reception sensors and calculating a 2D coordinate, the processor module120may drive a predetermined look-up table to calculate and compare the coordinates of the same digital pen at respective different positions. When the comparison values do not coincide, the processor module120may perform a correction operation that matches the actual speed of sound and the calculated speed of sound by changing the calculated speed of sound until the calculated respective different coordinate values coincide.

The peripheral interface123controls connection between I/O peripherals of the portable terminal100and the processor122and the storage module110.

The processor122controls the portable terminal to provide various services such as voice communication and data communication using at least one software program. Also, the processor122executes a software module stored in the storage module110and controls to provide a multimedia service corresponding to the relevant software module.

The memory controller121, the processor122, and the peripheral interface123included in the processor module120may be implemented as a single chip or as separate chips.

The RF processor131of the communication module130processes an RF signal transmitted/received via an antenna. For example, the RF processor131converts a baseband signal provided from the baseband processor132to an RF signal and transmits the same via the antenna. Also, the RF processor131converts an RF signal provided via the antenna to a baseband signal and transmits the same to the baseband processor132. Here, the RF processor131includes an RF transceiver, an amplifier, a tuner, an oscillator, a digital signal processor, a Coding Decoding (CODEC) chip set, a Subscriber Identity Module (SIM) card, etc.

The external port140includes a connection interface allowing the portable terminal to be directly connected with another device or to be connected with another device via a network. For example, the external port140may include a charge interface for charging of the electronic device.

The audio processor150forms an audio packet between a user and the portable electronic device100via a speaker and a microphone, and provides an audio interface.

The I/O control module160provides an interface between the display unit170including a display module, the I/O unit such as a key input button181, the input unit180including the touch panel182and the waveform detect sensors S1to S4according to the present disclosure, and the peripheral interface123. At this point, the I/O control module160may include a driver IC determining a touch coordinate depending on input information received from the touch panel.

The display unit170displays state information of the portable electronic device100, a character input by a user, a moving picture, and a still picture, etc. under control of the graphic software module113. Also, the display unit170displays touch information input via the touch panel of the input unit and the digital pen. The display101may include the display unit170and the touch panel182.

FIG. 11is a flowchart illustrating a procedure for correcting an error of an input coordinate of a digital pen using a plurality of reception sensors according to an embodiment of the present disclosure.

Referring toFIG. 11, first, the electronic device100determines whether an ultrasonic wave by the digital pen is input to sensors at operation1101. This operation denotes, for example, that the electronic device has switched to an ultrasonic input mode and a user has performed an input operation with a digital pen. Here, in a case of a 2D input, this operation denotes a state where the tip of the digital pen contacts the display screen of the electronic device.

After that, the electronic device calculates a first coordinate of the digital pen using a difference of an ultrasonic wave reception time for each sensor at operation1103. As described above, since a difference of an ultrasonic wave reception time between at least two sensors may be known using at least three reception sensors though a synchronization time for an initial input of the digital pen is not known, a coordinate value may be calculated using this.

After that, a second coordinate of the digital pen is calculated using a difference of the ultrasonic wave reception time for each sensor again at operation1105. In this case, a difference of a reception time by an additional at least one reception sensor besides the above three reception sensors is calculated, so that the same input coordinate is calculated.

After that, the electronic device determines whether the first coordinate and the second coordinate coincide at operation1107. When the first coordinate and the second coordinate coincide, it means the speed of sound which the electronic device has used for calculation and the speed of sound of an ultrasonic wave generated from the ultrasonic generating unit of the digital pen are the same. In this case, the electronic device enters operation1111to receive the input coordinate of the relevant digital pen and perform the relevant function. For this relevant function, various functions such as data input by a user, program execution, etc.

When the first coordinate and the second coordinate do not coincide at operation1107, the processor of the electronic device determines the speed of sound which the electronic device has used for calculation and the speed of sound of an ultrasonic wave generated from the ultrasonic generating unit of the digital pen do not coincide, and proceeds to operation1109to change the speed of sound, and then performs operations from operation1103again to perform the correction process consistently until the first coordinate and the second coordinate coincide.

Though not shown, when the number of the reception sensors increases, the number of cases that may calculate the coordinate of the ultrasonic generating unit of the digital pen increases, so that more than the first and second coordinates may be calculated and a more accurate correction process may be performed.

Furthermore, though not shown, correction corresponding to calculation of a 3D coordinate may be performed using the above-described method.

Since the electronic device according to various embodiments of the present disclosure may detect the position of the digital pen using a difference of a reception time of a waveform transferred to the respective sensors when the electronic device only has the reception sensors capable of receiving a signal generated from the waveform generator of the asynchronous digital pen, a synchronization means that has been provided separately is excluded and so manufacturing costs are reduced and slimness of the device is achieved. Consequently, the present disclosure may contribute to securing reliability of the electronic device.