






















技术领域technical field
本申请实施例涉及终端技术,尤其涉及一种笔迹绘制方法、装置、电子设备和可读存储介质。The embodiment of the present application relates to terminal technologies, and in particular to a handwriting drawing method, device, electronic equipment and readable storage medium.
背景技术Background technique
随着触控技术的发展,越来越多的电子设备采用触控方式进行人机交互。用户可以通过触控笔操作电子设备的触摸屏,以向电子设备提供输入,电子设备基于触控笔的输入执行相应的操作。With the development of touch technology, more and more electronic devices adopt touch mode for human-computer interaction. The user can operate the touch screen of the electronic device through the stylus to provide input to the electronic device, and the electronic device performs corresponding operations based on the input of the stylus.
目前,电子设备可以基于触控笔笔尖的压感信号,以及来自触控笔的触摸(touchpanel,TP)信号,在触摸屏上显示触控笔的笔迹,以实现触控笔在触摸屏上书写、绘画等。目前电子设备绘制笔迹的响应速度慢,控制精度低,容易出现书写不畅、漏墨等现象。At present, electronic devices can display the handwriting of the stylus on the touch screen based on the pressure-sensitive signal of the tip of the stylus and the touch (touch panel, TP) signal from the stylus, so as to realize the writing and drawing of the stylus on the touch screen. wait. At present, the response speed of electronic equipment to draw handwriting is slow, the control precision is low, and it is prone to phenomena such as poor writing and ink leakage.
发明内容Contents of the invention
本申请实施例提供一种笔迹绘制方法、装置、电子设备和可读存储介质,可以提高电子设备绘制笔迹的响应速度和控制精度。The embodiments of the present application provide a handwriting drawing method, device, electronic equipment and readable storage medium, which can improve the response speed and control precision of handwriting drawing by the electronic equipment.
第一方面,本申请实施例提供一种笔迹绘制方法,该方法的执行主体可以为电子设备,或者电子设备中的芯片,下述以执行主体为电子设备为例进行说明。电子设备包括触摸传感器TP sensor和第一传感器,所述第一传感器用于检测触控笔是否接触所述电子设备的触摸屏,所述TP sensor包含于所述触摸屏中。In the first aspect, the embodiment of the present application provides a handwriting drawing method. The execution subject of the method may be an electronic device, or a chip in the electronic device. The following description takes the electronic device as an example for execution. The electronic device includes a touch sensor TP sensor and a first sensor, the first sensor is used to detect whether the stylus touches the touch screen of the electronic device, and the TP sensor is included in the touch screen.
该笔迹绘制方法可以包括:电子设备响应于检测到所述第一传感器采集到信号,检测所述触控笔接触所述触摸屏的位置。因为第一传感器用于检测触控笔是否接触所述电子设备的触摸屏,因此当第一传感器采集到信号表征触控笔接触了触摸屏。电子设备检测所述触控笔接触所述触摸屏的位置的方式可以为:电子设备基于触摸屏中TP sensor的电容变化量的变化,获取触控笔接触所述触摸屏的位置。The handwriting drawing method may include: the electronic device detects a position where the stylus touches the touch screen in response to detecting the signal collected by the first sensor. Since the first sensor is used to detect whether the stylus touches the touch screen of the electronic device, when the first sensor collects a signal, it indicates that the stylus touches the touch screen. The manner in which the electronic device detects the position where the stylus touches the touch screen may be: the electronic device obtains the position where the stylus touches the touch screen based on the change in capacitance variation of the TP sensor in the touch screen.
电子设备检测到触控笔接触所述触摸屏的第一位置,可以获取所述第一位置的TPsensor的电容变化量阈值。其中,电子设备响应于检测到所述第一位置的TP sensor的电容变化量大于或等于所述第一位置的TP sensor的电容变化量阈值,执行绘制笔迹的操作,响应于检测到所述第一位置的TP sensor的电容变化量小于所述第一位置的TP sensor的电容变化量阈值,停止执行绘制笔迹的操作。The electronic device detects that the stylus pen touches the first position of the touch screen, and may acquire the capacitance variation threshold of the TP sensor at the first position. Wherein, the electronic device executes the operation of drawing handwriting in response to detecting that the capacitance variation of the TP sensor at the first position is greater than or equal to the capacitance variation threshold of the TP sensor at the first position, and in response to detecting that the capacitance variation threshold of the TP sensor at the first position is The capacitance variation of the TP sensor at a position is less than the capacitance variation threshold of the TP sensor at the first position, and the operation of drawing handwriting is stopped.
应理解的是,第一位置的TP sensor的电容变化量可以包括:触控笔接触第一位置时的TP sensor的电容变化量,触控笔未接触触摸屏的第一位置,但触控笔位于触摸屏的第一位置时的TP sensor的电容变化量。如此,电子设备可以确定触控笔接触触摸屏时,基于第一位置的TP sensor的电容变化量和第一位置的TP sensor的电容变化量阈值,判断是否执行绘制笔迹的操作。It should be understood that the capacitance change of the TP sensor at the first position may include: the capacitance change of the TP sensor when the stylus touches the first position, the stylus does not touch the first position of the touch screen, but the stylus is located The capacitance change of the TP sensor at the first position of the touch screen. In this way, the electronic device can determine whether to perform the operation of drawing handwriting based on the capacitance change of the TP sensor at the first position and the capacitance change threshold of the TP sensor at the first position when the stylus touches the touch screen.
本申请实施例中,因为未将触摸屏采集的压感信号或加速度信号作为电子设备是否执行绘制笔迹的操作的判断条件,而是作为触发电子设备基于TP sensor的电容变化量判断是否执行绘制笔迹的操作的触发条件,无需蓝牙传输来自触控笔的压感信号,可以提高电子设备绘制笔迹的响应速度。本申请实施例中可以将压力阈值和三轴加速度的阈值设置为很小的值,如小于目前现有技术中的压力阈值,电子设备检测到微小的压力即可以响应,可以提高电子设备的控制精度。另外,本申请实施例中,可以在用户握持触控笔绘制笔迹,当触控笔接触到触摸屏时,触控笔开始出水,即电子设备执行绘制笔迹的操作,可以更好地模拟用户采用真实的笔进行书写,可以提高用户体验。In the embodiment of the present application, because the pressure-sensitive signal or the acceleration signal collected by the touch screen is not used as the judgment condition of whether the electronic device executes the operation of drawing handwriting, but as a trigger for the electronic device to judge whether to execute the drawing of handwriting based on the capacitance variation of the TP sensor The trigger condition of the operation does not require Bluetooth to transmit the pressure-sensitive signal from the stylus, which can improve the response speed of the electronic device to draw handwriting. In the embodiment of the present application, the pressure threshold and the triaxial acceleration threshold can be set to very small values, such as less than the pressure threshold in the current prior art, and the electronic device can respond when it detects a small pressure, which can improve the control of the electronic device precision. In addition, in the embodiment of the present application, the user can hold the stylus to draw handwriting. When the stylus touches the touch screen, the stylus starts to emit water, that is, the electronic device performs the operation of drawing handwriting, which can better simulate the user's use of Writing with a real pen can improve user experience.
在一种可能的实现方式中,为了避免外界因素干扰,提高检测准确性,电子设备可以响应于检测到所述第一传感器采集到信号,且所述信号表征的信号值满足预设条件,检测所述触控笔接触所述触摸屏的位置。In a possible implementation manner, in order to avoid interference from external factors and improve detection accuracy, the electronic device may respond to detecting that the first sensor has collected a signal, and the signal value represented by the signal satisfies a preset condition, and detects The position where the stylus touches the touch screen.
其中,所述第一传感器为压力传感器或加速度传感器,当所述第一传感器为所述压力传感器时,所述信号为压感信号,当所述第一传感器为所述加速度传感器时,所述信号为加速度信号;所述预设条件为:所述压感信号表征的压力值大于或等于压力值阈值,或者,所述加速度信号表征的加速度大于或等于加速度阈值。Wherein, the first sensor is a pressure sensor or an acceleration sensor, when the first sensor is the pressure sensor, the signal is a pressure-sensitive signal, and when the first sensor is the acceleration sensor, the The signal is an acceleration signal; the preset condition is: the pressure value represented by the pressure-sensitive signal is greater than or equal to a pressure value threshold, or the acceleration represented by the acceleration signal is greater than or equal to an acceleration threshold.
也就是说,电子设备响应于检测到所述第一传感器采集到信号,且第一传感器采集的压力值大于压力值阈值,或者第一传感器采集的加速度大于或等于加速度阈值,则可以检测所述触控笔接触所述触摸屏的位置,进而获取第一位置的TP sensor的电容变化量阈值,可以参照上述的相关描述。That is to say, in response to detecting that the first sensor has collected a signal, and the pressure value collected by the first sensor is greater than the pressure value threshold, or the acceleration collected by the first sensor is greater than or equal to the acceleration threshold, the electronic device may detect the For the position where the stylus touches the touch screen, and then obtain the capacitance change threshold of the TP sensor at the first position, you can refer to the relevant description above.
在一种可能的实现方式中,所述电子设备还包括显示屏和中框,所述显示屏位于所述触摸屏和所述中框之间,所述压力传感器设置在所述显示屏上靠近所述中框的一侧,或者,所述压力传感器设置在所述中框上靠近所述显示屏的一侧。In a possible implementation manner, the electronic device further includes a display screen and a middle frame, the display screen is located between the touch screen and the middle frame, and the pressure sensor is arranged on the display screen close to the One side of the middle frame, or, the pressure sensor is arranged on the side of the middle frame close to the display screen.
当第一传感器为加速度传感器时,加速度传感器可以设置在所述显示屏上靠近所述中框的一侧,或者,所述压力传感器设置在所述中框上靠近所述显示屏的一侧,或者电子设备中的其他位置,如电子设备的主板上。When the first sensor is an acceleration sensor, the acceleration sensor can be arranged on the side of the display screen close to the middle frame, or the pressure sensor is arranged on the side of the middle frame close to the display screen, Or other locations in the electronic device, such as on the motherboard of the electronic device.
下面对电子设备获取第一位置的TP sensor的电容变化量阈值的方式进行说明:The following describes how the electronic device obtains the capacitance change threshold of the TP sensor at the first position:
其一,电子设备响应于检测到第一传感器采集到信号,或者信号表征的信号值大于或等于信号值阈值时,可以检测触控笔接触所述触摸屏的第一位置和第一位置的TPsensor的电容变化量。电子设备可以基于所述第一位置的TP sensor的电容变化量和预设比例,获取所述第一位置的TP sensor的电容变化量阈值。示例性的,电子设备可以将第一位置的TP sensor的电容变化量和预设比例的乘积,作为第一位置的TP sensor的电容变化量阈值。应理解,预设比例可以为大于0小于1的值。First, when the electronic device detects that the first sensor has collected a signal, or when the signal value represented by the signal is greater than or equal to the signal value threshold, it can detect the first position where the stylus touches the touch screen and the first position of the TPsensor. capacitance change. The electronic device may acquire the capacitance change threshold of the TP sensor at the first position based on the capacitance change of the TP sensor at the first position and a preset ratio. Exemplarily, the electronic device may use the product of the capacitance change amount of the TP sensor at the first position and a preset ratio as the threshold value of the capacitance change amount of the TP sensor at the first position. It should be understood that the preset ratio may be a value greater than 0 and less than 1.
其二,电子设备中存储有所述触摸屏的至少一个位置的TP sensor的电容变化量阈值。应理解,在一种实施例中,电子设备可以预先下载该至少一个位置的TP sensor的电容变化量阈值,或者在用户历史操作触控笔绘制笔迹的过程中,电子设备可以获取且存储至少一个位置的TP sensor的电容变化量阈值。Second, the electronic device stores the capacitance variation threshold of the TP sensor in at least one position of the touch screen. It should be understood that, in an embodiment, the electronic device may pre-download the capacitance change threshold value of the TP sensor at the at least one position, or the electronic device may obtain and store at least one threshold during the user's historical operation of the stylus to draw handwriting. The capacitance change threshold of the TP sensor at the position.
示例性的,如电子设备响应于检测到所述触控笔接触所述触摸屏的第一位置,记录所述第一位置的TP sensor的电容变化量阈值;响应于检测到所述触控笔接触所述触摸屏第二位置,记录所述第二位置的TP sensor的电容变化量阈值,以得到所述至少一个位置的TP sensor的电容变化量阈值。Exemplarily, if the electronic device responds to detecting that the stylus touches the first position of the touch screen, it records the capacitance change threshold of the TP sensor at the first position; in response to detecting that the stylus touches The second position of the touch screen records the capacitance change threshold of the TP sensor at the second position, so as to obtain the capacitance change threshold of the TP sensor at the at least one position.
其中,电子设备可以响应于检测到所述触控笔接触所述触摸屏的第一位置,获取所述第一位置的TP sensor的电容变化量;基于所述第一位置的TP sensor的电容变化量和预设比例,获取所述第一位置的TP sensor的电容变化量阈值。同理的,电子设备可以响应于检测到所述触控笔接触所述触摸屏的第二位置,获取所述第二位置的TP sensor的电容变化量;基于所述第二位置的TP sensor的电容变化量和预设比例,获取所述第二位置的TPsensor的电容变化量阈值。如此,电子设备可以获取并存储至少一个位置的TP sensor的电容变化量阈值。Wherein, the electronic device may, in response to detecting that the stylus touches the first position of the touch screen, obtain the capacitance change amount of the TP sensor at the first position; based on the capacitance change amount of the TP sensor at the first position and a preset ratio, and obtain the capacitance change threshold of the TP sensor at the first position. Similarly, the electronic device can obtain the capacitance variation of the TP sensor at the second position in response to detecting that the stylus touches the second position of the touch screen; based on the capacitance of the TP sensor at the second position The change amount and the preset ratio are used to obtain the threshold value of the capacitance change amount of the TPsensor at the second position. In this way, the electronic device can obtain and store the capacitance variation threshold of the TP sensor in at least one location.
在该种实现方式中,电子设备可以响应于触控笔接触第一位置,查询所述至少一个位置的TP sensor的电容变化量阈值中是否包含所述第一位置的TP sensor的电容变化量;若是,在所述至少一个位置的TP sensor的电容变化量阈值中,获取所述第一位置的TPsensor的电容变化量阈值。据此,可以减少电子设备的计算量。In this implementation, the electronic device may query whether the capacitance change threshold of the TP sensor at the at least one position includes the capacitance change of the TP sensor at the first position in response to the stylus touching the first position; If yes, from the capacitance change threshold of the TP sensor at the at least one position, obtain the capacitance change threshold of the TP sensor at the first position. According to this, the calculation amount of the electronic device can be reduced.
若至少一个位置的TP sensor的电容变化量阈值中未包含所述第一位置的TPsensor的电容变化量,电子设备可以基于第一位置的TP sensor的电容变化量和预设比例,获取第一位置的TP sensor的电容变化量阈值。If the capacitance change threshold of the TP sensor in at least one position does not include the capacitance change of the TP sensor in the first position, the electronic device may obtain the first position based on the capacitance change of the TP sensor in the first position and a preset ratio. The capacitance change threshold of the TP sensor.
在一种可能的实现方式中,若用户握持触控笔接触触摸屏绘制笔迹后,将触控笔放置在电子设备的触摸屏上,电子设备若检测到触控笔所处的位置的TP sensor的电容变化量大于或等于该位置处的TP sensor的电容变化量阈值,电子设备仍可以执行绘制笔迹的操作,但此处用户并未操作触控笔绘制笔迹,因此造成漏墨现象。In a possible implementation, if the user holds the stylus and touches the touch screen to draw handwriting, then places the stylus on the touch screen of the electronic device, if the electronic device detects that the TP sensor at the position of the stylus If the capacitance change is greater than or equal to the capacitance change threshold of the TP sensor at this position, the electronic device can still perform the operation of drawing handwriting, but here the user does not operate the stylus to draw handwriting, thus causing ink leakage.
因此,本申请实施例中,电子设备可以响应于检测到所述第一位置的TP sensor的电容变化量大于或等于所述第一位置的TP sensor的电容变化量阈值,检测用户是否握持所述触控笔;响应于所述用户握持所述触控笔,执行绘制笔迹的操作。若检测到用户未握持触控笔,则可以不执行绘制笔迹的操作。Therefore, in the embodiment of the present application, the electronic device may detect whether the user is holding the the stylus; in response to the user holding the stylus, perform an operation of drawing handwriting. If it is detected that the user is not holding the stylus, the operation of drawing handwriting may not be performed.
在一种实施例中,触控笔可以检测用户是否握持触控笔,进而向电子设备发送触控笔的握持信息。应理解,触控笔可以在触控笔的握持状态发生改变时,向电子设备发送触控笔的握持信息。应理解,握持信息可以指示触控笔握持状态,握持状态可以为握持或非握持。In one embodiment, the stylus can detect whether the user is holding the stylus, and then send the holding information of the stylus to the electronic device. It should be understood that the stylus can send the hold information of the stylus to the electronic device when the hold state of the stylus changes. It should be understood that the holding information may indicate the holding state of the stylus pen, and the holding state may be holding or not holding.
如此,电子设备可以接收来自所述触控笔的握持信息,进而基于所述握持信息,检测所述用户是否握持所述触控笔。其中,若握持信息表征触控笔为握持,电子设备可以确定用户握持触控笔,若握持信息表征触控笔为非握持,电子设备可以确定用户未握持触控笔。In this way, the electronic device can receive the holding information from the stylus, and then based on the holding information, detect whether the user is holding the stylus. Wherein, if the holding information indicates that the stylus is being held, the electronic device may determine that the user is holding the stylus, and if the holding information indicates that the stylus is not being held, the electronic device may determine that the user is not holding the stylus.
本申请实施例中,当触控笔接触触摸屏的第一位置,且电子设备检测到第一位置的TP sensor的电容变化量大于或等于阈值时,电子设备还需要检测用户是否握持触控笔,在用户握持触控笔时,可以执行绘制笔迹的操作,进而可以提高电子设备的控制准确性,避免漏墨现象,提高用户体验。In the embodiment of the present application, when the stylus touches the first position of the touch screen, and the electronic device detects that the capacitance change of the TP sensor at the first position is greater than or equal to the threshold, the electronic device also needs to detect whether the user is holding the stylus When the user holds the stylus, the operation of drawing handwriting can be performed, thereby improving the control accuracy of the electronic device, avoiding ink leakage, and improving user experience.
第二方面,本申请实施例提供一种笔迹绘制装置,该笔迹绘制装置可以为如上第一方面中所述的电子设备,或者电子设备中的芯片。电子设备包括触摸传感器TP sensor和第一传感器,所述第一传感器用于检测触控笔是否接触所述电子设备的触摸屏,所述TPsensor包含于所述触摸屏中。其中,In the second aspect, the embodiment of the present application provides a handwriting drawing device, and the handwriting drawing device may be the electronic device as described in the first aspect above, or a chip in the electronic device. The electronic device includes a touch sensor TP sensor and a first sensor, the first sensor is used to detect whether the stylus touches the touch screen of the electronic device, and the TP sensor is included in the touch screen. in,
处理模块,用于:响应于检测到所述第一传感器采集到信号,检测所述触控笔接触所述触摸屏的位置;基于所述触控笔接触所述触摸屏的第一位置,获取所述第一位置的TPsensor的电容变化量阈值;响应于检测到所述第一位置的TP sensor的电容变化量大于或等于所述第一位置的TP sensor的电容变化量阈值,执行绘制笔迹的操作;响应于检测到所述第一位置的TP sensor的电容变化量小于所述第一位置的TP sensor的电容变化量阈值,停止执行绘制笔迹的操作。A processing module, configured to: detect the position where the stylus touches the touch screen in response to detecting the signal collected by the first sensor; obtain the position based on the first position where the stylus touches the touch screen The capacitance variation threshold of the TP sensor of the first position; in response to detecting that the capacitance variation of the TP sensor of the first position is greater than or equal to the capacitance variation threshold of the TP sensor of the first position, perform the operation of drawing handwriting; In response to detecting that the capacitance change of the TP sensor at the first position is less than the capacitance change threshold of the TP sensor at the first position, stop performing the operation of drawing handwriting.
在一种可能的实现方式中,处理模块,具体用于响应于检测到所述第一传感器采集到信号,且所述信号表征的信号值满足预设条件,检测所述触控笔接触所述触摸屏的位置。In a possible implementation manner, the processing module is specifically configured to detect that the stylus touches the The location of the touchscreen.
在一种可能的实现方式中,所述第一传感器为压力传感器或加速度传感器,当所述第一传感器为所述压力传感器时,所述信号为压感信号,当所述第一传感器为所述加速度传感器时,所述信号为加速度信号;所述预设条件为:所述压感信号表征的压力值大于或等于压力值阈值,或者,所述加速度信号表征的加速度大于或等于加速度阈值。In a possible implementation manner, the first sensor is a pressure sensor or an acceleration sensor. When the first sensor is the pressure sensor, the signal is a pressure-sensitive signal. When the first sensor is the In the case of the acceleration sensor, the signal is an acceleration signal; the preset condition is: the pressure value represented by the pressure-sensitive signal is greater than or equal to the pressure value threshold, or the acceleration represented by the acceleration signal is greater than or equal to the acceleration threshold.
在一种可能的实现方式中,所述电子设备还包括显示屏和中框,所述显示屏位于所述触摸屏和所述中框之间,所述压力传感器设置在所述显示屏上靠近所述中框的一侧,或者,所述压力传感器设置在所述中框上靠近所述显示屏的一侧。In a possible implementation manner, the electronic device further includes a display screen and a middle frame, the display screen is located between the touch screen and the middle frame, and the pressure sensor is arranged on the display screen close to the One side of the middle frame, or, the pressure sensor is arranged on the side of the middle frame close to the display screen.
在一种可能的实现方式中,处理模块,具体用于响应于检测到所述第一位置的TPsensor的电容变化量大于或等于所述第一位置的TP sensor的电容变化量阈值,检测用户是否握持所述触控笔;响应于所述用户握持所述触控笔,执行绘制笔迹的操作。In a possible implementation manner, the processing module is specifically configured to detect whether the user holding the stylus; in response to the user holding the stylus, performing an operation of drawing handwriting.
在一种可能的实现方式中,收发模块,用于接收来自所述触控笔的握持信息,所述握持信息指示所述触控笔为握持或非握持。In a possible implementation manner, the transceiver module is configured to receive holding information from the stylus, where the holding information indicates whether the stylus is being held or not.
处理模块,具体用于基于所述握持信息,检测所述用户是否握持所述触控笔。The processing module is specifically configured to detect whether the user is holding the stylus based on the holding information.
在一种可能的实现方式中,处理模块,具体用于当所述触控笔接触所述触摸屏的第一位置时,获取所述第一位置的TP sensor的电容变化量;基于所述第一位置的TPsensor的电容变化量和预设比例,获取所述第一位置的TP sensor的电容变化量阈值。In a possible implementation manner, the processing module is specifically configured to, when the stylus touches the first position of the touch screen, acquire the capacitance variation of the TP sensor at the first position; based on the first The capacitance change amount and the preset ratio of the TP sensor at the position, and obtain the capacitance change threshold value of the TP sensor at the first position.
在一种可能的实现方式中,所述电子设备中存储有所述触摸屏的至少一个位置的TP sensor的电容变化量阈值,处理模块,具体用于查询所述至少一个位置的TP sensor的电容变化量阈值中是否包含所述第一位置的TP sensor的电容变化量;若是,在所述至少一个位置的TP sensor的电容变化量阈值中,获取所述第一位置的TP sensor的电容变化量阈值。In a possible implementation manner, the electronic device stores the capacitance change threshold of the TP sensor at least one position of the touch screen, and the processing module is specifically used to query the capacitance change of the TP sensor at the at least one position whether the capacitance variation threshold of the TP sensor of the first position is included in the quantity threshold; if so, in the capacitance variation threshold of the TP sensor of the at least one position, obtain the capacitance variation threshold of the TP sensor of the first position .
在一种可能的实现方式中,存储模块,用于响应于检测到所述触控笔接触所述触摸屏的第一位置,记录所述第一位置的TP sensor的电容变化量阈值;响应于检测到所述触控笔接触所述触摸屏第二位置,记录所述第二位置的TP sensor的电容变化量阈值,以得到所述至少一个位置的TP sensor的电容变化量阈值。In a possible implementation manner, the storage module is configured to, in response to detecting that the stylus touches the first position of the touch screen, record the capacitance change threshold of the TP sensor at the first position; When the stylus touches the second position of the touch screen, record the capacitance change threshold of the TP sensor at the second position, so as to obtain the capacitance change threshold of the TP sensor at the at least one position.
在一种可能的实现方式中,处理模块,还用于响应于检测到所述触控笔接触所述触摸屏的第一位置,获取所述第一位置的TP sensor的电容变化量;基于所述第一位置的TPsensor的电容变化量和预设比例,获取所述第一位置的TP sensor的电容变化量阈值,以用于存储模块记录第一位置的TP sensor的电容变化量阈值。In a possible implementation manner, the processing module is further configured to, in response to detecting that the stylus touches the first position of the touch screen, obtain the capacitance variation of the TP sensor at the first position; based on the The capacitance variation and the preset ratio of the TP sensor in the first position are obtained, and the capacitance variation threshold of the TP sensor in the first position is obtained for the storage module to record the capacitance variation threshold of the TP sensor in the first position.
第三方面,本申请实施例提供一种电子设备,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,使得电子设备以执行如第一方面或第一方面的任一种实现方式中的方法。In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run code instructions, so that the electronic device can perform any one of the first aspect or the first aspect. method in an implementation.
其中,电子设备中还包括触摸传感器TP sensor和第一传感器,所述第一传感器用于检测触控笔是否接触所述电子设备的触摸屏,所述TP sensor包含于所述触摸屏中。Wherein, the electronic device also includes a touch sensor TP sensor and a first sensor, the first sensor is used to detect whether the stylus touches the touch screen of the electronic device, and the TP sensor is included in the touch screen.
第四方面,本申请实施例提供一种笔迹绘制系统,包括如上第三方面所述的电子设备,以及触控笔。In a fourth aspect, an embodiment of the present application provides a handwriting drawing system, including the electronic device described in the third aspect above, and a stylus.
第五方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中的方法。In the fifth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the computer according to the first aspect or any implementation manner of the first aspect. Methods.
第六方面,本申请实施例提供一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is run, the computer executes the method in the first aspect or any implementation manner of the first aspect.
应当理解的是,本申请的第二方面至第六方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that, the second aspect to the sixth aspect of the present application correspond to the technical solution of the first aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar, so details are not repeated here.
附图说明Description of drawings
图1为本申请实施例适用的一种场景示意图;FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present application;
图2A为本申请实施例提供的触控笔的结构示意图;FIG. 2A is a schematic structural diagram of a stylus provided in an embodiment of the present application;
图2B为本申请实施例提供的触控笔的部分拆分结构示意图;FIG. 2B is a schematic diagram of a partially disassembled structure of the stylus provided in the embodiment of the present application;
图3为本申请实施例提供的触控笔与电子设备交互的示意图;FIG. 3 is a schematic diagram of the interaction between the stylus and the electronic device provided by the embodiment of the present application;
图4为本申请实施例提供的触控笔与无线键盘的装配示意图;FIG. 4 is a schematic diagram of the assembly of the stylus and the wireless keyboard provided by the embodiment of the present application;
图5A为本申请实施例提供的触控笔收纳在无线键盘的收纳部中的示意图;FIG. 5A is a schematic diagram of a stylus provided in an embodiment of the present application stored in a storage portion of a wireless keyboard;
图5B为本申请实施例提供的触控笔收纳在无线键盘的收纳部时的侧面示意图;FIG. 5B is a schematic side view of the stylus provided by the embodiment of the present application when it is stored in the storage part of the wireless keyboard;
图6为本申请实施例提供的一种触控笔的硬件结构示意图;FIG. 6 is a schematic diagram of a hardware structure of a stylus provided in an embodiment of the present application;
图7为本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
图8为本申请实施例提供的一种无线键盘的硬件结构示意图;FIG. 8 is a schematic diagram of a hardware structure of a wireless keyboard provided by an embodiment of the present application;
图9为本申请实施例提供的触控笔和电子设备交互的一种示意图;FIG. 9 is a schematic diagram of the interaction between the stylus and the electronic device provided by the embodiment of the present application;
图10为本申请实施例适用的另一种场景示意图;FIG. 10 is a schematic diagram of another scenario applicable to the embodiment of the present application;
图11A为触摸屏的电容值变化的一示意图;FIG. 11A is a schematic diagram of changes in the capacitance value of the touch screen;
图11B为触摸屏的电容值变化的另一示意图;FIG. 11B is another schematic diagram of changes in the capacitance value of the touch screen;
图12为已有的电子设备绘制触控笔的笔迹的一种示意图;FIG. 12 is a schematic diagram of drawing handwriting of a stylus by an existing electronic device;
图13A为本申请实施例提供的电子设备的一种结构示意图;FIG. 13A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图13B为本申请实施例提供的电子设备的另一种结构示意图;FIG. 13B is another schematic structural diagram of the electronic device provided by the embodiment of the present application;
图14为本申请实施例提供的笔迹绘制方法的一种实施例的流程示意图;Fig. 14 is a schematic flow chart of an embodiment of the handwriting drawing method provided by the embodiment of the present application;
图15为本申请实施例提供的笔迹绘制的一种示意图;Fig. 15 is a schematic diagram of handwriting drawing provided by the embodiment of the present application;
图16为本申请实施例提供的笔迹绘制方法的另一种实施例的流程示意图;Fig. 16 is a schematic flowchart of another embodiment of the handwriting drawing method provided by the embodiment of the present application;
图17为本申请实施例提供的触控笔上设置触摸膜的一种示意图;FIG. 17 is a schematic diagram of setting a touch film on a stylus provided in an embodiment of the present application;
图18为本申请实施例提供的笔迹绘制的另一种示意图;Fig. 18 is another schematic diagram of handwriting drawing provided by the embodiment of the present application;
图19为本申请实施例提供的笔迹绘制装置的一种结构示意图。FIG. 19 is a schematic structural diagram of a handwriting drawing device provided by an embodiment of the present application.
具体实施方式Detailed ways
图1为本申请实施例适用的一种场景示意图。参照图1,该场景中包括触控笔(stylus)100、电子设备200和无线键盘300。图1中以电子设备200为平板电脑(tablet)为例进行说明。触控笔100和无线键盘300可以向电子设备200提供输入,电子设备200基于触控笔100或无线键盘300的输入,执行响应于该输入的操作。无线键盘300上可以设置触控区域,触控笔100可以操作无线键盘300的触控区域,向无线键盘300提供输入,无线键盘300可以基于触控笔100的输入执行响应于该输入的操作。在一种实施例中,触控笔100和电子设备200之间、触控笔100和无线键盘300之间,以及电子设备200和无线键盘300之间,可以通过通信网络进行互联,以实现无线信号的交互。该通信网络可以但不限于为:WI-FI热点网络、WI-FI点对点(peer-to-peer,P2P)网络、蓝牙网络、zigbee网络或近场通信(near fieldcommunication,NFC)网络等近距离通信网络。FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present application. Referring to FIG. 1 , the scene includes a stylus (stylus) 100 , an
触控笔100可以但不限于为:电感笔和电容笔。电子设备200具有触控屏201,触控笔100为电感笔时,与触控笔100交互的电子设备200的触控屏201上需要集成电磁感应板。电磁感应板上的分布有线圈,电感笔中也集成有线圈。基于电磁感应原理,在电磁感应板所产生的磁场范围内,随着电感笔的移动,电感笔能够积蓄电能。电感笔可以将积蓄的电能通过自由震荡,经电感笔中的线圈传输至电磁感应板。电磁感应板可以基于来自电感笔的电能,对电磁感应板上的线圈进行扫描,计算出电感笔在触控屏201上的位置。电子设备200中的触控屏也可以称为触摸屏,触控笔可以称为手写笔。The
电容笔可以包括:无源电容笔和有源电容笔。无源电容笔可以称为被动式电容笔,有源电容笔可以称为主动式电容笔。Capacitive pens can include: passive capacitive pens and active capacitive pens. A passive capacitive pen can be called a passive capacitive pen, and an active capacitive pen can be called an active capacitive pen.
主动式电容笔中(例如笔尖内)可以设置一个或多个电极,主动式电容笔可以通过电极发射信号。触控笔100为主动式电容笔时,与触控笔100交互的电子设备200的触控屏201上需要集成电极阵列。在一种实施例中,电极阵列可以为电容式电极阵列。电子设备200通过电极阵列可以接收来自主动式电容笔的信号,进而在接收到该信号时,基于触控屏201上的电容值的变化识别主动式电容笔在触控屏上的位置,以及主动式电容笔的倾角。应理解,本申请实施例中采用的触控笔为主动式电容笔,可以简称为主动笔。One or more electrodes can be set in the active capacitive pen (for example, inside the tip of the pen), and the active capacitive pen can transmit signals through the electrodes. When the
图2A为本申请实施例提供的触控笔的结构示意图。参照图2A所示,触控笔100可以包括笔尖10、笔杆20和后盖30。笔杆20的内部为中空结构,笔尖10和后盖30分别位于笔杆20的两端,后盖30与笔杆20之间可以通过插接或者卡合方式,笔尖10与笔杆20之间的配合关系详见图2B的描述。FIG. 2A is a schematic structural diagram of a stylus provided by an embodiment of the present application. Referring to FIG. 2A , the
图2B为本申请实施例提供的触控笔的部分拆分结构示意图。参照图2B所示,触控笔100还包括主轴组件50,主轴组件50位于笔杆20内,且主轴组件50在笔杆20内可滑动设置。主轴组件50上具有外螺纹51,笔尖10包括书写端11和连接端12,其中,笔尖10的连接端12具有与外螺纹51配合的内螺纹(未示出)。FIG. 2B is a schematic diagram of a partially disassembled structure of the stylus provided by the embodiment of the present application. Referring to FIG. 2B , the
当主轴组件50装配到笔杆20内时,笔尖10的连接端12伸入笔杆20内且与主轴组件50的外螺纹51螺纹连接。在一些其他示例中,笔尖10的连接端12与主轴组件50之间还可以通过卡合等可拆卸方式实现连接。通过笔尖10的连接端12与主轴组件50之间可拆卸相连,这样实现了对笔尖10的更换。When the
其中,为了对笔尖10的书写端11受到的压力进行检测,参照图2A所示,笔尖10与笔杆20之间具有间隙10a,这样可以确保笔尖10的书写端11受到外力时,笔尖10可以朝向笔杆20移动,笔尖10的移动会带动主轴组件50在笔杆20内移动。而对外力的检测,参照图2B所示,在主轴组件50上设有压感组件60,压感组件60的部分与笔杆20内的固定结构固定相连,压感组件60的部分与主轴组件50固定相连。这样,主轴组件50随着笔尖10移动时,由于压感组件60的部分与笔杆20内的固定结构固定相连,所以主轴组件50的移动会驱动压感组件60形变,压感组件60的形变传递给电路板70(例如,压感组件60与电路板70之间可以通过导线或者柔性电路板实现电连接),电路板70根据压感组件60形变检测出笔尖10的书写端11的压力,从而根据笔尖10书写端11的压力控制书写端11的线条粗细。Wherein, in order to detect the pressure on the writing end 11 of the
需要说明的是,笔尖10的压力检测包括但不限于上述方法。例如,还可以通过在笔尖10的书写端11内设置压力传感器,由压力传感器检测笔尖10的压力。It should be noted that the pressure detection of the
本实施例中,参照图2B所示,触控笔100还包括多个电极,多个电极例如可以为第一发射电极41、接地电极43和第二发射电极42。第一发射电极41、接地电极43和第二发射电极42均与电路板70电连接。第一发射电极41可以位于笔尖10内且靠近书写端11,电路板70可以被配置为可以分别向第一发射电极41和第二发射电极42提供信号的控制板,第一发射电极41用于发射第一信号,当第一发射电极41靠近电子设备200的触控屏201时,第一发射电极41与电子设备200的触控屏201之间可以形成耦合电容,这样电子设备200可以接收到第一信号。其中,第二发射电极42用于发射第二信号,电子设备200根据接收到的第二信号可以判断触控笔100的倾斜角度。本申请实施例中,第二发射电极42可以位于笔杆20的内壁上。在一种示例中,第二发射电极42也可以位于主轴组件50上。In this embodiment, referring to FIG. 2B , the
接地电极43可以位于第一发射电极41和第二发射电极42之间,或者,接地电极43可以位于第一发射电极41和第二发射电极42的外周围,接地电极43用于降低第一发射电极41和第二发射电极42相互之间的耦合。The
当电子设备200接收来自触控笔100的第一信号时,触控屏201对应位置处的电容值会发生变化。据此,电子设备200可以基于触控屏201上的电容值的变化,确定触控笔100(或触控笔100的笔尖)在触控屏201上的位置。另外,电子设备200可以采用倾角检测算法中的双笔尖投影方法获取触控笔100的倾斜角度。其中,第一发射电极41和第二发射电极42在触控笔100中的位置不同,因此当电子设备200接收来自触控笔100的第一信号和第二信号时,触控屏201上两个位置处的电容值会发生变化。电子设备200可以根据第一发射电极41和第二发射电极42之间的距离,以及触控屏201上电容值发生变化的两个位置处之间的距离,获取触控笔100的倾斜角度,更为详细的获取触控笔100的倾斜角度可以参照现有技术中双笔尖投影方法的相关描述。When the
本申请实施例中,参照图2B所示,触控笔100还包括:电池组件80,电池组件80用于向电路板70提供电源。其中,电池组件80可以包括锂离子电池,或者,电池组件80可以包括镍铬电池、碱性电池或镍氢电池等。在一种实施例中,电池组件80包括的电池可以为可充电电池或一次性电池,其中,当电池组件80包括的电池为可充电电池时,触控笔100可以通过无线充电方式对电池组件80中的电池进行充电。In the embodiment of the present application, as shown in FIG. 2B , the
其中,触控笔100为主动式电容笔时,参照图3,电子设备200和触控笔100无线连接后,电子设备200可以通过触控屏201上集成的电极阵列向触控笔100发送上行信号。触控笔100可以通过接收电极接收该上行信号,且触控笔100通过发射电极(例如第一发射电极41和第二发射电极42)发射下行信号。下行信号包括上述的第一信号和第二信号。当触控笔100的笔尖10接触触控屏201时,触控屏201对应位置处的电容值会发生变化,电子设备200可以基于触控屏201上的电容值,确定触控笔100的笔尖10在触控屏201上的位置。在一种实施例中,上行信号和下行信号可以为方波信号。Wherein, when the
在一种实施例中,参照图4所示,无线键盘300可以包括第一部分301和第二部分302。示例性的,如无线键盘300可以包括:键盘主体和键盘套。第一部分301可以为键盘套,第二部分302为键盘主体。第一部分301用于放置电子设备200,第二部分302上可以设置有用于用户操作的按键、触控板等。In one embodiment, as shown in FIG. 4 , the
其中,无线键盘300使用时,需要将无线键盘300的第一部分301和第二部分302打开,而无线键盘300不使用时,无线键盘300的第一部分301和第二部分302能够合上。在一种实施例中,无线键盘300的第一部分301与第二部分302之间可以转动相连。例如,第一部分301与第二部分302之间可以通过转轴或者铰链相连,或者,在一些示例中,第一部分301与第二部分302之间通过柔性材料(例如皮质材料或布材料)实现转动相连。或者,在一些示例中,第一部分301与第二部分302可以一体成型,且第一部分301与第二部分302之间的连接处通过减薄处理,使得第一部分301与第二部分302之间的连接处可以弯折。其中,第一部分301和第二部分302之间的连接方式可以包括但不限于上述的几种转动连接方式。Wherein, when the
其中,第一部分301可以包括至少两个转动相连的支架。例如,参照图4所示,第一部分301包括第一支架301a和第二支架301b,第一支架301a和第二支架301b之间转动相连,在使用时,可以采用第一支架301a和第二支架301b共同对电子设备200进行支撑(参照图1)。或者,第一支架301a对第二支架301b提供支撑,第二支架301b对电子设备200进行支撑。参照图4所示,第二支架301b与第二部分302之间转动相连。Wherein, the
其中,参照图4所示,为了便于对触控笔100进行收纳,无线键盘300上可以设置有收纳触控笔100的收纳部303。参照图4所示,收纳部303为筒状的腔体,收纳时,触控笔100沿着图4中的箭头方向插入收纳腔体中。本实施例中,参照图4所示,第二部分302和第二支架301b之间通过连接部304转动连接,连接部304中设置有收纳部303。其中,连接部304可以为转轴。Wherein, as shown in FIG. 4 , in order to store the
图5A为本申请实施例提供的触控笔收纳在无线键盘的收纳部中的示意图,图5B为本申请实施例提供的触控笔收纳在无线键盘的收纳部时的侧面示意图。参照图5B所示,收纳部303为圆形腔体,且收纳部303的内径大于触控笔100的外径。FIG. 5A is a schematic diagram of the stylus provided by the embodiment of the present application stored in the storage part of the wireless keyboard, and FIG. 5B is a schematic side view of the stylus provided by the embodiment of the present application stored in the storage part of the wireless keyboard. Referring to FIG. 5B , the receiving
其中,为了避免触控笔100放置于收纳部303中掉落,在一种实施例中,收纳部303的内壁上可以设置有磁性材料,触控笔100中可以设置磁性材料。触控笔100通过磁性材料之间的磁性吸附作用吸附在收纳部303内。当然,在一些示例中,触控笔100与收纳部303之间固定时,包括但不限于采用磁力吸附实现固定,例如,触控笔100与收纳部303之间还可以通过卡合方式实现固定。Wherein, in order to prevent the
其中,为了方便触控笔100从收纳部303中取出,收纳部303内可以设置弹出结构,例如,按压触控笔100的一端,弹出机构可以驱动触控笔100的一端从收纳部303向外弹出。Wherein, in order to facilitate the
图6为本申请实施例提供的一种触控笔的硬件结构示意图。参照图6所示,触控笔100可以具有处理器110。处理器110可以包括用于支持触控笔100的操作的存储和处理电路。存储和处理电路可以包括诸如非易失性存储器的存储装置(例如,闪存存储器或构造为固态驱动器的其它电可编程只读存储器)、易失性存储器(例如,静态或动态随机存取存储器)等。处理器110中的处理电路可以用来控制触控笔100的操作。处理电路可以基于一个或多个微处理器、微控制器、数字信号处理器、基带处理器、电源管理单元、音频芯片、专用集成电路等。FIG. 6 is a schematic diagram of a hardware structure of a stylus provided by an embodiment of the present application. Referring to FIG. 6 , the
触控笔100中可以包括一个或多个传感器。例如,传感器可以包括压力传感器120。压力传感器120可以设置在触控笔100的书写端11(如图2B所示)。当然,压力传感器120还可以设在触控笔100的笔杆20内,这样,触控笔100的笔尖10一端受力后,笔尖10的另一端移动将力作用到压力传感器120。在一种实施例中,处理器110根据压力传感器120检测到的压力大小可以调整触控笔100的笔尖10书写时的线条粗细。One or more sensors may be included in the
传感器也可以包括惯性传感器130。惯性传感器130可以包括三轴加速计和三轴陀螺仪,和/或,用于测量触控笔100的运动的其它部件,例如,加速度传感器,或者三-轴磁力计可以以九-轴惯性传感器的构造被包括在传感器中。传感器也可以包括附加的传感器,诸如温度传感器、环境光传感器、基于光的接近传感器、接触传感器、磁传感器、压力传感器和/或其它传感器。The sensors may also include inertial sensors 130 . Inertial sensor 130 may include a three-axis accelerometer and a three-axis gyroscope, and/or other components for measuring the motion of
触控笔100中可以包括如发光二极管的状态指示器140和按钮150。状态指示器140用于向用户提示触控笔100的状态。按钮150可以包括机械按钮和非机械按钮,按钮150可以用于从用户收集按钮按压信息。A status indicator 140 such as a light emitting diode and a button 150 may be included in the
本申请实施例中,触控笔100中可以包括一个或多个电极160(具体可以参照图2B中的描述),其中一个电极160可以位于触控笔100的书写端处,其中一个电极160可以位于笔尖10内,可以参照上述的相关描述。In the embodiment of the present application, the
触控笔100中可以包括感测电路170。感测电路170可感测位于电极160和与触控笔100交互的电容触摸传感器面板的驱动线之间的电容耦合。感测电路170可以包括用以接收来自电容触摸传感器面板的电容读数的放大器、用以生成解调信号的时钟、用以生成相移的解调信号的相移器、用以使用同相解调频率分量来解调电容读数的混频器、以及用以使用正交解调频率分量来解调电容读数的混频器等。混频器解调的结果可用于确定与电容成比例的振幅,使得触控笔100可以感测到与电容触摸传感器面板的接触。The
可以理解的是,根据实际需求,在触控笔100可以包括麦克风、扬声器、音频发生器、振动器、相机、数据端口以及其它设备。用户可以通过利用这些设备提供命令来控制触控笔100和与触控笔100交互的电子设备200的操作,并且接收状态信息和其它输出。It can be understood that, according to actual requirements, the
处理器110可以用于运行触控笔100上的控制触控笔100的操作的软件。触控笔100的操作过程中,运行在处理器110上的软件可以处理传感器输入、按钮输入和来自其它装置的输入以监视触控笔100的移动和其它用户输入。在处理器110上运行的软件可以检测用户命令并且可以与电子设备200通信。The processor 110 may be used to run software on the
为了支持触控笔100与电子设备200的无线通信,触控笔100可以包括无线模块。图6中以无线模块为蓝牙模块180为例进行说明。无线模块还可以为WI-FI热点模块、WI-FI点对点模块等。蓝牙模块180可以包括射频收发器,例如收发器。蓝牙模块180也可以包括一个或多个天线。收发器可以利用天线发射和/或接收无线信号,无线信号基于无线模块的类型,可以是蓝牙信号、无线局域网信号、诸如蜂窝电话信号的远程信号、近场通信信号或其它无线信号。In order to support wireless communication between the
触控笔100还可以包括充电模块190,充电模块190可以支持触控笔100的充电,为触控笔100提供电力。The
应理解,本申请实施例中的电子设备200可以称为用户设备(user equipment,UE)、终端(terminal)等,例如,电子设备200可以为平板电脑(portable android device,PAD)、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备、车载设备或可穿戴设备,虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等具有触控屏的移动终端或固定终端。本申请实施例中对终端设备的形态不做具体限定。It should be understood that the
图7为本申请实施例提供的一种电子设备的硬件结构示意图。参照图7,电子设备200可以包括多个子系统,这些子系统协作以执行、协调或监控电子设备202的一个或多个操作或功能。电子设备200包括处理器210、输入表面220、协调引擎230、电源子系统240、电源连接器250、无线接口260和显示器270。FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application. Referring to FIG. 7 ,
示例性的,协调引擎230可以用于与电子设备200的其他子系统进行通信和/或处理数据;与触控笔100通信和/或交易数据;测量和/或获得一个或多个模拟或数字传感器(诸如触摸传感器)的输出;测量和/或获得传感器节点阵列(诸如电容感测节点的阵列)的一个或多个传感器节点的输出;接收和定位来自触控笔100的尖端信号和环信号;基于尖端信号交叉区域和环形信号交叉区域的位置来定位触控笔100等。Exemplarily, the coordination engine 230 can be used to communicate and/or process data with other subsystems of the
电子设备200的协调引擎230包括或以其他方式可通信地耦接至位于输入表面220下方或与该输入表面集成一体的传感器层。协调引擎230利用传感器层对输入表面220上的触控笔100进行定位,并使用本文所述的技术来估计触控笔100相对于输入表面220的平面的角位置。在一种实施例中,输入表面220可以称为触控屏201。The coordination engine 230 of the
例如,电子设备200的协调引擎230的传感器层是布置为列和行的电容感测节点网格。更具体地说,列迹线阵列被设置成垂直于行迹线阵列。传感器层可以与电子设备的其他层分开,或者传感器层可以直接设置在另一个层上,其他层诸如但不限于:显示器叠堆层、力传感器层、数字转换器层、偏光器层、电池层、结构性或装饰性外壳层等。For example, the sensor layer of the coordination engine 230 of the
传感器层能够以多种模式操作。如果以互电容模式操作,则列迹线和行迹线在每个重叠点(例如,“垂直”互电容)处形成单个电容感测节点。如果以自电容模式操作,则列迹线和行迹线在每个重叠点处形成两个(垂直对齐的)电容感测节点。在另一个实施方案中,如果以互电容模式操作,则相邻的列迹线和/或相邻的行迹线可各自形成单个电容感测节点(例如,“水平”互电容)。如上所述,传感器层可以通过监测在每个电容感测节点处呈现的电容(例如,互电容或自电容)变化来检测触控笔100的笔尖10的存在和/或用户手指的触摸。在许多情况下,协调引擎230可被配置为经由电容耦合来检测通过传感器层从触控笔100接收的尖端信号及环信号。The sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sensing node at each point of overlap (eg, "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sensing nodes at each point of overlap. In another embodiment, adjacent column traces and/or adjacent row traces may each form a single capacitive sensing node (eg, a "horizontal" mutual capacitance) if operating in mutual capacitance mode. As described above, the sensor layer may detect the presence of the
其中,尖端信号和/或环信号可以包括可被配置为令电子设备200识别触控笔100的特定信息和/或数据。此类信息在本文通常被称为“触笔身份”信息。该信息和/或数据可以由传感器层接收,并由协调引擎230解译、解码和/或解调。Wherein, the tip signal and/or the ring signal may include specific information and/or data that may be configured to enable the
处理器210可以使用触笔身份信息来同时接收来自一支以上的触笔的输入。具体地,协调引擎230可被配置为将由协调引擎230检测到的若干触笔中的每个触笔的位置和/或角位置传输给处理器210。在其他情况下,协调引擎230还可以向处理器210传输与由协调引擎230检测到的多个触笔的相对位置和/或相对角位置有关的信息。例如,协调引擎230可以通知处理器210所检测的第一触控笔位于距离所检测的第二触控笔的位置。The processor 210 may use the stylus identity information to receive input from more than one stylus at the same time. In particular, coordination engine 230 may be configured to transmit the position and/or angular position of each of the number of stylus detected by coordination engine 230 to processor 210 . In other cases, the coordination engine 230 may also transmit to the processor 210 information related to the relative positions and/or relative angular positions of the plurality of stylus detected by the coordination engine 230 . For example, the coordination engine 230 may notify the processor 210 that the detected first stylus is located at a distance from the detected second stylus.
在其他情况下,端信号和/或环信号还可以包括用于令电子设备200识别特定用户的特定信息和/或数据。此类信息在本文通常被称为“用户身份”信息。In other cases, the end signal and/or the ring signal may also include specific information and/or data for enabling the
协调引擎230可以将用户身份信息(如果检测到和/或可复原的话)转发到处理器210。如果用户身份信息不能从尖端信号和/或环信号中复原,则协调引擎230可以可选地向处理器210指示用户身份信息不可用。处理器210能够以任何合适的方式利用用户身份信息(或不存在该信息的情况),包括但不限于:接受或拒绝来自特定用户的输入,允许或拒绝访问电子设备的特定功能等。处理器210可以使用用户身份信息来同时接收来自一个以上的用户的输入。Coordination engine 230 may forward user identity information (if detected and/or recoverable) to processor 210 . If the user identity information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the user identity information is not available. Processor 210 can utilize user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or denying input from a specific user, allowing or denying access to specific functions of the electronic device, and the like. Processor 210 may use user identity information to receive input from more than one user at a time.
在另外的其他情况下,尖端信号和/或环信号可以包括可被配置为令电子设备200识别用户或触控笔100的设置或偏好的特定信息和/或数据。此类信息在本文通常被称为“触笔设置”信息。In still other cases, the tip signal and/or ring signal may include specific information and/or data that may be configured to cause the
协调引擎230可以将触笔设置信息(如果检测到和/或可复原的话)转发到处理器210。如果触笔设置信息不能从尖端信号和/或环信号中复原,则协调引擎230可以可选地向处理器210指示触笔设置信息不可用。电子设备200能够以任何合适的方式利用触笔设置信息(或不存在该信息的情况),包括但不限于:将设置应用于电子设备,将设置应用于在电子设备上运行的程序,改变由电子设备的图形程序所呈现的线条粗细、颜色、图案,改变在电子设备上操作的视频游戏的设置等。Coordination engine 230 may forward stylus setting information (if detected and/or recoverable) to processor 210 . If the stylus setting information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the stylus setting information is not available. The
一般而言,处理器210可被配置为执行、协调和/或管理电子设备200的功能。此类功能可以包括但不限于:与电子设备200的其他子系统通信和/或交易数据,与触控笔100通信和/或交易数据,通过无线接口进行数据通信和/或交易数据,通过有线接口进行数据通信和/或交易数据,促进通过无线(例如,电感式、谐振式等)或有线接口进行电力交换,接收一个或多个触笔的位置和角位置等。In general, the processor 210 may be configured to perform, coordinate and/or manage the functions of the
处理器210可被实现为能够处理、接收或发送数据或指令的任何电子设备。例如,处理器可以是微处理器、中央处理单元、专用集成电路、现场可编程门阵列、数字信号处理器、模拟电路、数字电路或这些设备的组合。处理器可以是单线程或多线程处理器。处理器可以是单核或多核处理器。Processor 210 may be implemented as any electronic device capable of processing, receiving or sending data or instructions. For example, a processor may be a microprocessor, central processing unit, application specific integrated circuit, field programmable gate array, digital signal processor, analog circuit, digital circuit, or a combination of these devices. Processors can be single-threaded or multi-threaded. Processors can be single-core or multi-core processors.
在使用期间,处理器210可被配置为访问存储有指令的存储器。该指令可被配置为使处理器执行、协调或监视电子设备200的一个或多个操作或功能。During use, processor 210 may be configured to access memory storing instructions. The instructions may be configured to cause the processor to perform, coordinate or monitor one or more operations or functions of the
存储在存储器中的指令可被配置为控制或协调电子设备200的其他部件的操作,该部件诸如但不限于:另一处理器、模拟或数字电路、易失性或非易失性存储器模块、显示器、扬声器、麦克风、旋转输入设备、按钮或其他物理输入设备、生物认证传感器和/或系统、力或触摸输入/输出部件、通信模块(诸如无线接口和/或电源连接器),和/或触觉或触觉反馈设备。The instructions stored in memory may be configured to control or coordinate the operation of other components of
存储器还可存储可由触笔或处理器使用的电子数据。例如,存储器可以存储电子数据或内容(诸如媒体文件、文档和应用程序)、设备设置和偏好、定时信号和控制信号或者用于各种模块的数据、数据结构或者数据库,与检测尖端信号和/或环信号相关的文件或者配置等等。存储器可被配置为任何类型的存储器。例如,存储器可被实现作为随机存取存储器、只读存储器、闪存存储器、可移动存储器、其他类型的存储元件或此类设备的组合。The memory can also store electronic data that can be used by the stylus or the processor. For example, memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data, data structures, or databases for various modules, and detect tip signals and/or Or ring signal-related files or configurations, etc. The memory can be configured as any type of memory. For example, memory may be implemented as random access memory, read only memory, flash memory, removable memory, other types of storage elements, or a combination of such devices.
电子设备200还包括电源子系统240。电源子系统240可包括电池或其它电源。电源子系统240可被配置为向电子设备200提供电力。电源子系统240还可耦接到电源连接器250。电源连接器250可以是任何合适的连接器或端口,其可被配置为从外部电源接收电力并且/或者被配置为向外部负载提供电力。例如,在一些实施方案中,电源连接器250可以用于对电源子系统240内的电池进行再充电。在另一个实施方案中,电源连接器250可以用于将存储在(或可用于)电源子系统240内的电力传输到触控笔100。The
电子设备200还包括无线接口260,以促进电子设备200与触控笔100之间的电子通信。在一个实施方案中,电子设备200可被配置为经由低能量蓝牙通信接口或近场通信接口与触控笔100通信。在其他示例中,通信接口有利于电子设备200与外部通信网络、设备或平台之间的电子通信。The
无线接口260(无论是电子设备200与触控笔100之间的通信接口还是另外的通信接口)可被实现为一个或多个无线接口、蓝牙接口、近场通信接口、磁性接口、通用串行总线接口、电感接口、谐振接口,电容耦合接口、Wi-Fi接口、TCP/IP接口、网络通信接口、光学接口、声学接口或任何传统的通信接口。Wireless interface 260 (whether a communication interface between
电子设备200还包括显示器270。显示器270可以位于输入表面220后方,或者可以与其集成一体。显示器270可以通信地耦接至处理器210。处理器210可以使用显示器270向用户呈现信息。在很多情况下,处理器210使用显示器270来呈现用户可以与之交互的界面。在许多情况下,用户操纵触控笔100与界面进行交互。The
对于本领域的技术人员而言将显而易见的是,上文关于电子设备200所呈现的具体细节中的一些细节可为实践特定的所述实施方案或其等同物所不需要的。类似地,其他电子设备可以包括更多数量的子系统、模块、部件等。在适当的情况下,一些子模块可以被实现为软件或硬件。因此,应当理解,上述描述并非旨在穷举或将本公开限制于本文所述的精确形式。相反,对于本领域的普通技术人员而言将显而易见的是,根据上述教导内容,许多修改和变型是可能的。It will be apparent to those skilled in the art that some of the specific details presented above with respect to
图8为本申请实施例提供的一种无线键盘的硬件结构示意图。参照图8,该无线键盘300可以包括处理器310,存储器320,充电接口330,充电管理模块340,无线充电线圈350,电池360,无线通信模块370,触控板380,键盘390。FIG. 8 is a schematic diagram of a hardware structure of a wireless keyboard provided by an embodiment of the present application. Referring to FIG. 8 , the
其中,上述处理器310,存储器320,充电接口330,充电管理模块340,电池360,无线通信模块370,触控板380,键盘390等均可以设置在无线键盘300的键盘主体(即如图4所示的第二部分302)上。上述无线充电线圈350可以设置在用于活动连接键盘主体和支架的连接部304(如图4所示)中。可以理解的是,本实施例示意的结构并不构成对无线键盘300的具体限定。在另一些实施例中,无线键盘300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。Wherein, the processor 310, the memory 320, the charging interface 330, the charging management module 340, the battery 360, the wireless communication module 370, the touch panel 380, the keyboard 390, etc. can all be arranged on the keyboard body of the wireless keyboard 300 (that is, as shown in FIG. 4 shown on the second portion 302). The above-mentioned wireless charging coil 350 can be arranged in the connection part 304 (as shown in FIG. 4 ) for movably connecting the keyboard body and the bracket. It can be understood that the structure shown in this embodiment does not constitute a specific limitation on the
其中,存储器320可以用于存储程序代码,如用于为触控笔100无线充电的程序代码等。存储器320中还可以存储有用于唯一标识无线键盘300的蓝牙地址。另外,该存储器320中还可以存储有与无线键盘300之前成功配对过的电子设备的连接数据。例如,该连接数据可以为与该无线键盘300成功配对过的电子设备的蓝牙地址。基于该连接数据,无线键盘300能够与该电子设备自动配对,而不必配置与其之间的连接,如进行合法性验证等。上述蓝牙地址可以为媒体访问控制(media access control,MAC)地址。Wherein, the memory 320 can be used to store program codes, such as program codes for wirelessly charging the
处理器310可以用于执行上述应用程序代码,调用相关模块以实现本申请实施例中无线键盘300的功能。例如,实现无线键盘300有线充电功能,反向无线充电功能,无线通信功能等。处理器310可以包括一个或多个处理单元,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器310中。处理器310具体可以是集成的控制芯片,也可以由包括各种有源和/或无源部件的电路组成,且该电路被配置为执行本申请实施例描述的属于处理器310的功能。其中,无线键盘300的处理器可以是微处理器。The processor 310 can be used to execute the above application program codes, and call related modules to realize the functions of the
无线通信模块370可以用于支持无线键盘300与其他电子设备之间包括蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),调频(frequency modulation,FM),近距离无线通信技术(near fieldcommunication,NFC),红外技术(infrared,IR)等无线通信的数据交换。The wireless communication module 370 can be used to support the connection between the
在一些实施例中,该无线通信模块370可以为蓝牙芯片。该无线键盘300可以是蓝牙键盘。无线键盘300可以通过该蓝牙芯片与其他电子设备的蓝牙芯片之间进行配对并建立无线连接,以通过该无线连接实现无线键盘300和其他电子设备之间的无线通信。In some embodiments, the wireless communication module 370 may be a Bluetooth chip. The
另外,无线通信模块370还可以包括天线,无线通信模块370经由天线接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块370还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。In addition, the wireless communication module 370 may further include an antenna. The wireless communication module 370 receives electromagnetic waves via the antenna, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310 . The wireless communication module 370 can also receive the signal to be transmitted from the processor 310, frequency-modulate it, amplify it, and convert it into electromagnetic wave to radiate through the antenna.
在一些实施例中,无线键盘300可以支持有线充电。具体的,充电管理模块340可以通过充电接口330接收有线充电器的充电输入。In some embodiments,
在另一些实施例中,无线键盘300可以支持正向无线充电。充电管理模块340可以通过无线键盘300的无线充电线圈350接收无线充电输入。具体的,充电管理模块340与无线充电线圈350通过匹配电路连接。无线充电线圈350可以与上述无线充电器的无线充电线圈耦合,感应无线充电器的无线充电线圈350发出的交变电磁场,产生交变电信号。无线充电线圈350产生的交变电信号经过匹配电路传输至充电管理模块340,以便为电池360无线充电。In other embodiments, the
其中,充电管理模块340为电池360充电的同时,还可以为无线键盘300供电。充电管理模块340接收电池360的输入,为处理器310,存储器320,外部存储器和无线通信模块370等供电。充电管理模块340还可以用于监测电池360的电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,充电管理模块340也可以设置于处理器310中。Wherein, the charging management module 340 can also provide power for the
在另一些实施例中,无线键盘300可以支持反向无线充电。具体的,充电管理模块340还可以接收充电接口330或者电池360的输入,将充电接口330或者电池360输入的直流电信号转换为交流电信号。该交流电信号经过匹配电路传输至无线充电线圈350。无线充电线圈350接收到该交流电信号可以产生交变电磁场。其他移动终端的无线充电线圈感应该交变电磁场,可以进行无线充电。即无线键盘300还可以为其他移动终端无线充电。在一种实施例中,无线充电线圈350可以设置在无线键盘300的收纳部303中,触控笔100的笔杆20内设置有无线充电线圈,当触控笔100放置在收纳部303中时,无线键盘300可以通过无线充电线圈350,为触控笔100进行充电。In other embodiments, the
需要说明的是,上述匹配电路可以集成在充电管理模块340中,该匹配电路也可以独立于充电管理模块340,本申请实施例对此不作限制。图8以匹配电路可以集成在充电管理模块340中为例,示出无线键盘300的硬件结构示意图。It should be noted that the above matching circuit may be integrated in the charging management module 340, or the matching circuit may be independent of the charging management module 340, which is not limited in this embodiment of the present application. FIG. 8 shows a schematic diagram of the hardware structure of the
充电接口330,可以用于提供无线键盘300与其他电子设备(如该无线键盘300的有线充电器)之间进行充电或通信的有线连接。The charging interface 330 can be used to provide a wired connection for charging or communication between the
上述触控板380中集成有触摸传感器。笔记本电脑可以通过触控板380和键盘390接收用户对笔记本电脑的控制命令。A touch sensor is integrated in the above-mentioned touch panel 380 . The notebook computer can receive user's control commands on the notebook computer through the touch panel 380 and the keyboard 390 .
可以理解的是,本申请实施例示意的结构并不构成对无线键盘300的具体限定。其可以具有比图8示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。例如,上述无线键盘300的壳体上还可以设置有用于收纳触控笔100的收纳腔。上述无线充电线圈350设置于上述收纳腔内,用于当触控笔100收纳于上述收纳腔内后,为该触控笔100无线充电。It can be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the
又例如,在无线键盘300的外表面还可以包括按键、指示灯(可以指示电量、呼入/呼出、配对模式等状态)、显示屏(可以提示用户相关信息)等部件。其中,该按键可以是物理按键或触摸按键(与触摸传感器配合使用)等,用于触发开机、关机、开始充电、停止充电等操作。For another example, the outer surface of the
应理解,本申请实施例提供的方法也可以适用于包含有触控笔100和电子设备200的场景中。It should be understood that the method provided in the embodiment of the present application may also be applicable to a scene including the
图9为本申请实施例适用的触控笔和电子设备交互的一种示意图。参照图9,触控笔100中包括:微处理单元(micro controller unit,MCU)、第一通信模块、充电模块、压力传感器模块、发送模块(transport,TX)和接收模块(receive,RX)。电子设备200中包括:触摸传感器(TP sensor)、触摸处理模块和第二通信模块。应理解,下述实施例以第一通信模块和第二通信模块均为蓝牙模块为例进行说明,第一通信模块和第二通信模块还可以为无线局域网模块、WI-FI模块等,本申请实施例对此不作限制。应理解,触控笔和电子设备,可以通过第一通信模块和第二通信模块建立无线通路,以交互无线信号。FIG. 9 is a schematic diagram of interaction between a stylus applicable to an embodiment of the present application and an electronic device. Referring to FIG. 9 , the
电子设备中,触摸处理模块分别与触摸传感器、第二通信模块连接。触摸传感器中可以包括电极阵列。触摸传感器,用于采集触摸数据,触摸数据可以包括:触控笔触摸触摸屏的数据。触摸处理模块,用于基于触摸传感器采集的触摸数据,确定触控笔的笔尖的位置,以及触控笔与触摸屏的夹角(下述简称为夹角),参照图11A和图11B的相关描述。其中,当电子设备和触控笔无线建立无线通路,即电子设备和触控笔无线连接后,触摸处理模块可以通过电极阵列向触控笔发送上行信号,上行信号用于指示触控笔反馈下行信号。触摸处理模块可以基于来自触控笔的下行信号,确定触控笔的笔尖的位置,以及夹角。在一种实施例中,上行信号和下行信号均可以为方波信号。在一种实施例中,触摸处理模块可以为触摸IC芯片(integrated circuit chip)。In the electronic device, the touch processing module is connected to the touch sensor and the second communication module respectively. An array of electrodes may be included in the touch sensor. The touch sensor is used to collect touch data, and the touch data may include: data of a stylus touching the touch screen. The touch processing module is used to determine the position of the tip of the stylus and the angle between the stylus and the touch screen (hereinafter referred to as the angle) based on the touch data collected by the touch sensor, referring to the relevant descriptions in FIG. 11A and FIG. 11B . Among them, when the electronic device and the stylus establish a wireless path, that is, after the electronic device and the stylus are connected wirelessly, the touch processing module can send an uplink signal to the stylus through the electrode array, and the uplink signal is used to instruct the stylus to feedback the downlink signal. Signal. The touch processing module can determine the position and included angle of the tip of the stylus based on the downlink signal from the stylus. In an embodiment, both the uplink signal and the downlink signal may be square wave signals. In one embodiment, the touch processing module may be a touch IC chip (integrated circuit chip).
触控笔中,MCU分别与第一通信模块、充电模块、压力传感器模块、发送模块,以及接收模块连接。应理解,MCU可以理解为图6所示的处理器。充电模块,用于为触控笔进行充电。压力传感器模块中包括:压力传感器和压力数据处理模块。压力传感器与压力数据处理模块连接,压力数据处理模块与MCU连接。压力传感器可以设置在触控笔的笔尖,压力传感器,用于采集笔尖的压力。示例性的,当触控笔的笔尖接触电子设备的触摸屏时,压力传感器可以采集笔尖的压力。数据处理模块,用于将笔尖的压力发送给MCU。在一种实施例中,MCU可以基于第一通信模块,向电子设备发送笔尖的压力。电子设备可以基于第二通信模块接收到来自触控笔中笔尖的压力,调节触控笔在触摸屏上书写的线条的粗细。In the stylus, the MCU is respectively connected with the first communication module, the charging module, the pressure sensor module, the sending module, and the receiving module. It should be understood that the MCU may be understood as the processor shown in FIG. 6 . The charging module is used for charging the stylus. The pressure sensor module includes: a pressure sensor and a pressure data processing module. The pressure sensor is connected with the pressure data processing module, and the pressure data processing module is connected with the MCU. The pressure sensor can be arranged at the nib of the stylus, and the pressure sensor is used to collect the pressure of the nib. Exemplarily, when the tip of the stylus touches the touch screen of the electronic device, the pressure sensor can collect the pressure of the tip. The data processing module is used to send the pressure of the pen tip to the MCU. In an embodiment, the MCU may send the pressure of the pen tip to the electronic device based on the first communication module. The electronic device can adjust the thickness of the lines written by the stylus on the touch screen based on the pressure received from the tip of the stylus by the second communication module.
发送模块中可以包括:第一电极、第二电极和发送驱动电路。第一电极、第二电极均与发送驱动电路连接,发送驱动电路与MCU连接。MCU,用于生成第一脉冲宽度调制(pulsewidth modulation,PWM)信号和第二PWM信号,且向发送驱动电路发送第一PWM信号和第二PWM信号。发送驱动电路可以基于第一PWM信号,驱动第一电极发送第一信号,以及,基于第二PWM信号,驱动第二电极发送第二信号。其中,第一电极可以称为TX1,第二电极可以称为TX2。在一种实施例中,第一信号和第二信号可以称为下行信号或者打码信号。在一种实施例中,下行信号可以为40V的方波信号。应理解,本申请实施例中的上行信号和下行信号是基于触控笔来说的,可以想到的是,基于电子设备来说,电子设备可以向触控笔发送下行信号,触控笔可以基于下行信号向电子设备发送上行信号。下述实施例中,以触控笔发送下行信号,以及电子设备发送上行信号为例进行说明。The sending module may include: a first electrode, a second electrode and a sending driving circuit. Both the first electrode and the second electrode are connected to the sending driving circuit, and the sending driving circuit is connected to the MCU. The MCU is configured to generate a first pulse width modulation (pulsewidth modulation, PWM) signal and a second PWM signal, and send the first PWM signal and the second PWM signal to the sending drive circuit. The sending drive circuit may drive the first electrode to send the first signal based on the first PWM signal, and drive the second electrode to send the second signal based on the second PWM signal. Wherein, the first electrode may be called TX1, and the second electrode may be called TX2. In an embodiment, the first signal and the second signal may be called downlink signals or coding signals. In an embodiment, the downlink signal may be a 40V square wave signal. It should be understood that the uplink signal and downlink signal in the embodiments of the present application are based on the stylus. The downlink signal sends an uplink signal to the electronic device. In the following embodiments, the stylus sends a downlink signal and the electronic device sends an uplink signal as an example for illustration.
参照图9,在一种实施例中,发送驱动电路中可以包括:高压驱动信号模块和开关管。MCU分别与高压驱动信号模块,以及开关管连接。开关管与第二电极连接,高压驱动信号模块分别与第一电极,以及第二电极连接。高压驱动信号模块,用于提供高压驱动信号,并基于来自MCU的第一PWM信号驱动第一电极发送第一信号,以及基于来自MCU的第二PWM信号驱动第二电极发送第二信号。Referring to FIG. 9 , in an embodiment, the sending driving circuit may include: a high voltage driving signal module and a switch tube. The MCU is respectively connected with the high-voltage driving signal module and the switching tube. The switch tube is connected to the second electrode, and the high-voltage driving signal module is respectively connected to the first electrode and the second electrode. The high-voltage driving signal module is used to provide a high-voltage driving signal, drive the first electrode to send the first signal based on the first PWM signal from the MCU, and drive the second electrode to send the second signal based on the second PWM signal from the MCU.
在一种实施例中,MCU,还用于控制开关管,实现第二电极在发送信号和接收信号之间进行切换,即实现第二电极在TX2和RX之间的切换。本申请实施例中对开关管的具体电路,以及MCU的控制方式不做赘述。换句话说,MCU可以控制开关管,使得第二电极可以作为TX2,作为TX2的第二电极与发送驱动电路连接,进而在发送驱动电路的作用下使得第二电极发送第二信号。MCU也可以控制开关管,使得第二电极作为RX,作为RX的第二电极与接收模块连接,进而使得第二电极可以接收来自电子设备的上行信号。也就是说,第二电极可以在MCU的控制下,在TX2和RX之间进行切换。In one embodiment, the MCU is also used to control the switch tube to switch the second electrode between sending signals and receiving signals, that is, switching the second electrode between TX2 and RX. In the embodiment of the present application, the specific circuit of the switch tube and the control mode of the MCU are not described in detail. In other words, the MCU can control the switch tube so that the second electrode can be used as TX2, and the second electrode as TX2 is connected to the sending driving circuit, and then the second electrode can send the second signal under the action of the sending driving circuit. The MCU can also control the switch tube so that the second electrode is used as RX, and the second electrode used as RX is connected to the receiving module, so that the second electrode can receive the uplink signal from the electronic device. That is to say, the second electrode can be switched between TX2 and RX under the control of the MCU.
接收模块中包括解码电路。解码电路可以与开关管连接,解码电路还与MCU连接。第二电极,用于接收来自电子设备的上行信号,且向解码电路发送上行信号。解码电路,用于解码上行信号,并向MCU发送解码后的上行信号。The receiving module includes a decoding circuit. The decoding circuit can be connected with the switch tube, and the decoding circuit is also connected with the MCU. The second electrode is used for receiving the uplink signal from the electronic device and sending the uplink signal to the decoding circuit. The decoding circuit is used to decode the uplink signal and send the decoded uplink signal to the MCU.
应理解,图9所示的触控笔的结构为一种示例,在一种实施例中,触控笔中可以设置一个发射电极TX,一个接收电极RX,本申请实施例对此不作限制。It should be understood that the structure of the stylus shown in FIG. 9 is an example. In one embodiment, one transmitting electrode TX and one receiving electrode RX may be set in the stylus, which is not limited in this embodiment of the present application.
基于图9所示的结构,下述结合图10对电子设备和触控笔交互的过程进行说明。参照图10,示例性的,触控笔和电子设备可以建立无线通路,如触控笔和电子设备之间可以建立蓝牙通路。因为触控笔的笔尖设置有电极,电子设备中的触摸传感器中包括电极阵列。触控笔的笔尖和触摸传感器的电极之间,存在绝缘物质(如空气、触摸屏上的玻璃),因此触控笔的笔尖和触摸传感器的电极之间形成电容,触控笔的笔尖与电子设备中的触摸传感器可以通过电容建立电路连接,下述实施例将触控笔的笔尖与电子设备中的触摸传感器之间的通路称为电路通路。Based on the structure shown in FIG. 9 , the process of interaction between the electronic device and the stylus will be described below in conjunction with FIG. 10 . Referring to FIG. 10 , for example, a wireless path can be established between the stylus and the electronic device, for example, a Bluetooth path can be established between the stylus and the electronic device. Because the tip of the stylus is provided with electrodes, the touch sensor in the electronic device includes an electrode array. Between the tip of the stylus and the electrodes of the touch sensor, there is an insulating substance (such as air, glass on the touch screen), so a capacitance is formed between the tip of the stylus and the electrodes of the touch sensor, and the tip of the stylus and the electronic device The touch sensor in the electronic device can establish a circuit connection through a capacitor. In the following embodiments, the path between the tip of the stylus and the touch sensor in the electronic device is called a circuit path.
在一种实施例中,当电子设备与触控笔蓝牙连接成功时,触摸处理模块可以控制触摸传感器通过电路通路发送上行信号。在一种实施例中,当电子设备与触控笔蓝牙连接成功,且电子设备检测到触控笔未充电时,触摸处理模块可以控制触摸传感器通过电路通路发送上行信号。在一种实施例中,当电子设备与触控笔蓝牙连接成功,且电子设备检测到触控笔处于移动状态时,触摸处理模块可以控制触摸传感器通过电路通路发送上行信号。应理解,不同的电子设备发送上行信号的触发条件可以不同,下述实施例中以“当电子设备与触控笔蓝牙连接成功时,触摸处理模块控制触摸传感器通过电路通路发送上行信号”为例进行说明。In one embodiment, when the Bluetooth connection between the electronic device and the stylus is successful, the touch processing module may control the touch sensor to send an uplink signal through the circuit path. In one embodiment, when the Bluetooth connection between the electronic device and the stylus is successful and the electronic device detects that the stylus is not charged, the touch processing module may control the touch sensor to send an uplink signal through the circuit path. In one embodiment, when the Bluetooth connection between the electronic device and the stylus is successful, and the electronic device detects that the stylus is in a moving state, the touch processing module may control the touch sensor to send an uplink signal through the circuit path. It should be understood that different electronic devices may have different trigger conditions for sending uplink signals. In the following embodiments, "when the electronic device is successfully connected to the stylus via Bluetooth, the touch processing module controls the touch sensor to send uplink signals through the circuit path" as an example Be explained.
第二电极,可以基于电路通路,接收来自电子设备的上行信号,且向解码电路发送上行信号。解码电路可以向MCU传输解码后的上行信号。MCU基于输解码后的上行信号,控制发送驱动电路驱动第一电极发送第一信号,以及驱动第二电极发送第二信号。也就是说,触控笔可以通过电路通路发送下行信号。电子设备中的触摸传感器可以基于电路通路,接收下行信号。触摸处理模块可以基于触摸传感器采集的下行信号,获取触控笔的笔尖的位置以及夹角。The second electrode can receive the uplink signal from the electronic device based on the circuit path, and send the uplink signal to the decoding circuit. The decoding circuit can transmit the decoded uplink signal to the MCU. Based on the input and decoded uplink signal, the MCU controls the sending driving circuit to drive the first electrode to send the first signal, and drive the second electrode to send the second signal. That is to say, the stylus can send downlink signals through the circuit path. A touch sensor in an electronic device can receive downlink signals based on a circuit path. The touch processing module can acquire the position and included angle of the tip of the stylus based on the downlink signal collected by the touch sensor.
图11A为触摸屏的电容值变化一示意图。当触摸传感器接收来自触控笔的第一电极的第一信号时,触摸屏对应位置处的电容变化量会发生变化。且当触控笔的笔尖越靠近触摸屏,触摸屏对应位置处的电容变化量越大。参照图11A,图11A中以波峰表征触摸屏对应位置处的电容变化量发生变化,电子设备可以基于触摸屏上的电容变化量,确定触控笔的笔尖的位置。另外,电子设备可以采用倾角检测算法中的双笔尖投影方法获取夹角。参照图11B,在一种实施例中,触控笔中的第一电极和第二电极可以设置在触控笔的笔尖,第一电极设置靠近笔尖的尖端,第二电极相对于第一电极远离笔尖的尖端设置。当触摸传感器接收来自触控笔的第一电极的第一信号,以及第二电极的第二信号时,触摸屏两个位置处(如位置B和位置C)的电容变化量会发生变化,电子设备可以基于第一电极和第二电极之间的距离,以及触摸屏两个位置处之间的距离,获取夹角,更为具体的双笔尖投影方法可以参照现有技术的相关描述。图11A以黑色圆点表征触控笔接触触摸屏的位置,图11B中以黑色圆点表征位置B和位置C。FIG. 11A is a schematic diagram of changes in the capacitance value of the touch screen. When the touch sensor receives the first signal from the first electrode of the stylus, the capacitance variation at the corresponding position of the touch screen will change. And when the tip of the stylus is closer to the touch screen, the capacitance change at the corresponding position of the touch screen is larger. Referring to FIG. 11A , in FIG. 11A , peaks are used to represent changes in capacitance variation at corresponding positions on the touch screen, and the electronic device can determine the position of the tip of the stylus based on the capacitance variation on the touch screen. In addition, the electronic device can obtain the included angle by using the double-tip projection method in the inclination detection algorithm. Referring to FIG. 11B , in one embodiment, the first electrode and the second electrode in the stylus can be arranged at the tip of the stylus, the first electrode is arranged near the tip of the stylus, and the second electrode is far away from the first electrode. The tip setting for the nib. When the touch sensor receives the first signal from the first electrode of the stylus and the second signal from the second electrode, the capacitance variation at two positions (such as position B and position C) on the touch screen will change, and the electronic device The included angle can be obtained based on the distance between the first electrode and the second electrode, and the distance between two positions on the touch screen. For a more specific dual-tip projection method, reference can be made to relevant descriptions in the prior art. In FIG. 11A , black dots represent positions where the stylus touches the touch screen, and in FIG. 11B black dots represent positions B and C.
图12为已有的电子设备绘制触控笔的笔迹的一种示意图。参照上述图2B的相关描述,触控笔的笔尖中可以设置压力传感器。参照图12,触控笔的笔尖接触电子设备的触摸屏时,压力传感器可以采集笔尖的压感数据,且将该压感数据通过蓝牙发送给电子设备。其中,压感数据可以包括压力值。另外,基于图10中的相关描述,当电子设备与触控笔蓝牙连接成功时,触控笔可以向电子设备发送下行信号,电子设备通过该下行信号可以获取触控笔在触摸屏上的位置,以及触控笔与触摸屏之间的夹角。在一种实施例中,下行信号可以称为触摸(touch panel,TP)信号,下述以TP信号为例进行说明。FIG. 12 is a schematic diagram of an existing electronic device drawing handwriting of a stylus. Referring to the relevant description of FIG. 2B above, a pressure sensor may be provided in the tip of the stylus. Referring to FIG. 12 , when the tip of the stylus touches the touch screen of the electronic device, the pressure sensor can collect the pressure-sensitivity data of the pen tip and send the pressure-sensitivity data to the electronic device via Bluetooth. Wherein, the pressure-sensitive data may include a pressure value. In addition, based on the related description in FIG. 10 , when the electronic device and the stylus are successfully connected via Bluetooth, the stylus can send a downlink signal to the electronic device, and the electronic device can obtain the position of the stylus on the touch screen through the downlink signal. and the angle between the stylus and the touchscreen. In an embodiment, the downlink signal may be referred to as a touch panel (TP) signal, and the TP signal is used as an example for illustration below.
现有技术中,电子设备可以基于触控笔的压感信号,以及触控笔的TP信号,在触摸屏上显示触控笔的笔迹。具体的,因为TP信号会导致电子设备中TP sensor的电容变化量发生变化,且电子设备基于压感信号可以获取压力值,若电子设备检测到TP sensor的电容变化量大于或等于电容变化量阈值,且压力值大于或等于压力阈值,则电子设备可以基于触控笔在触摸屏上的位置,在触摸屏的对应位置显示笔迹。In the prior art, the electronic device can display the handwriting of the stylus on the touch screen based on the pressure-sensitive signal of the stylus and the TP signal of the stylus. Specifically, because the TP signal will cause the capacitance change of the TP sensor in the electronic device to change, and the electronic device can obtain the pressure value based on the pressure-sensitive signal, if the electronic device detects that the capacitance change of the TP sensor is greater than or equal to the capacitance change threshold , and the pressure value is greater than or equal to the pressure threshold, the electronic device can display handwriting at a corresponding position on the touch screen based on the position of the stylus on the touch screen.
如果“压感信号”和“TP信号”中有一个条件不满足(如TP sensor的电容变化量小于电容变化量阈值,或者压力值小于压力阈值),触控笔无法出水,即电子设备在触摸屏上不显示触控笔的笔迹。目前电子设备依据“压感信号”和“TP信号”显示触控笔的笔迹的方式,响应速度慢,控制精度低。具体原因分析如下:If one of the conditions in the "pressure-sensitive signal" and "TP signal" is not satisfied (such as the capacitance change of the TP sensor is less than the capacitance change threshold, or the pressure value is less than the pressure threshold), the stylus cannot discharge water, that is, the electronic device is on the touch screen. The handwriting of the stylus does not appear on the screen. At present, electronic devices display the handwriting of the stylus according to the "pressure-sensitive signal" and "TP signal", which has a slow response speed and low control precision. The specific reasons are analyzed as follows:
压感信号通过蓝牙传输,蓝牙传输有10-20ms的传输时延。若当触控笔刚刚离开触摸屏时,由于传输时延的原因,触控笔还在向电子设备发送压感信号,同时TP sensor的电容变化量仍大于电容变化量阈值,则电子设备还会继续显示触控笔的笔迹,这样会导致出现漏墨的情况,用户体验差。应理解,漏墨指的是:触控笔离开触摸屏后仍然出水,即电子设备仍显示触控笔的笔迹。The pressure-sensitive signal is transmitted through Bluetooth, and Bluetooth transmission has a transmission delay of 10-20ms. If the stylus is still sending pressure-sensitive signals to the electronic device due to the transmission delay when the stylus just leaves the touch screen, and the capacitance change of the TP sensor is still greater than the capacitance change threshold, the electronic device will continue to Display the handwriting of the stylus, which will lead to ink leakage and poor user experience. It should be understood that ink leakage refers to: the stylus still leaks water after it leaves the touch screen, that is, the electronic device still displays the handwriting of the stylus.
另外,触控笔笔尖的压力传感器可以为弹簧管压力传感器,应变片式压力传感器等。因为压力传感器本身固有的缺陷,容易受到温漂、变形等影响,即使在压力传感器未接触触摸屏时,压力传感器也可以采集到小的压力值,如1g。其中,g表征9.8N/kg。如此,若将压力阈值设置为很小的值,如1g,容易造成误触发。因此目前往往将压力阈值设置为较大的值,如5g、8g。如此,用户采用触控笔倾斜书写或者轻触触摸屏时,因为压力值小于压力阈值,触控笔不出水,电子设备不会显示触控笔的笔迹,导致电子设备的控制精度低。In addition, the pressure sensor at the tip of the stylus may be a spring tube pressure sensor, a strain gauge pressure sensor, or the like. Because of the inherent defects of the pressure sensor itself, it is easily affected by temperature drift, deformation, etc. Even when the pressure sensor is not in contact with the touch screen, the pressure sensor can also collect small pressure values, such as 1g. Wherein, g stands for 9.8N/kg. In this way, if the pressure threshold is set to a small value, such as 1g, it is easy to cause false triggering. Therefore, the pressure threshold is often set to a larger value at present, such as 5g, 8g. In this way, when the user uses the stylus to write obliquely or touch the touch screen lightly, because the pressure value is less than the pressure threshold, the stylus will not emit water, and the electronic device will not display the handwriting of the stylus, resulting in low control accuracy of the electronic device.
基于如上问题,因为现有技术中在触控笔的笔尖设置压力传感器,来自触控笔的压感信号通过蓝牙传输给电子设备会带来时延问题,本申请实施例中可以在电子设备的触摸屏中新增设置传感器,用于检测触控笔是否接触触摸屏,进而避免因为蓝牙传输造成的时延问题。另外,因为电子设备接收来自触控笔的TP信号时,TP sensor的电容变化量会发生改变,因此为了提高电子设备的控制精度,本申请实施例中采用TP sensor的电容变化量判断是否执行绘制笔迹的操作,因为本申请实施例中不将触摸屏采集的压感信号或加速度信号作为电子设备是否执行绘制笔迹的操作的判断条件,而是作为触发电子设备基于TPsensor的电容变化量判断是否执行绘制笔迹的操作的触发条件,因此本申请实施例中可以将压力阈值和三轴加速度的阈值设置为很小的值,可以提高电子设备的控制精度。应理解,三轴加速度可以包括:X轴加速度、Y轴加速度以及Z轴加速度。Based on the above problems, because the pressure sensor is installed on the tip of the stylus in the prior art, the pressure-sensitive signal from the stylus is transmitted to the electronic device through Bluetooth, which will cause delay problems. A new sensor is added to the touch screen to detect whether the stylus touches the touch screen, thereby avoiding the delay caused by Bluetooth transmission. In addition, because when the electronic device receives the TP signal from the stylus, the capacitance change of the TP sensor will change, so in order to improve the control accuracy of the electronic device, the capacitance change of the TP sensor is used in the embodiment of the present application to determine whether to perform drawing. The operation of handwriting, because in the embodiment of the present application, the pressure-sensitive signal or acceleration signal collected by the touch screen is not used as the judgment condition for whether the electronic device executes the operation of drawing handwriting, but as a trigger for the electronic device to judge whether to perform drawing based on the capacitance change of the TPsensor The trigger condition for the operation of the handwriting, so in the embodiment of the present application, the pressure threshold and the threshold of the three-axis acceleration can be set to very small values, which can improve the control accuracy of the electronic device. It should be understood that the three-axis acceleration may include: X-axis acceleration, Y-axis acceleration, and Z-axis acceleration.
据此,本申请实施例中提供一种笔迹绘制方法,可以通过电子设备中新增设置的传感器,判断触控笔是否接触触摸屏(检测有压力值,无需检测一定的压力值如5g),响应于检测到触控笔接触触摸屏,可以基于TP sensor的电容变化量判断是否执行绘制笔迹的操作。如此,不仅解决了因为蓝牙传输造成的时延问题,还可以在用户采用触控笔倾斜书写或者轻触触摸屏时,电子设备均能够绘制笔迹,电子设备绘制笔迹的响应速度快,控制精度高,可以提高用户体验。Accordingly, the embodiment of the present application provides a handwriting drawing method, which can judge whether the stylus touches the touch screen through the newly added sensor in the electronic device (detection has a pressure value, and does not need to detect a certain pressure value such as 5g), and responds After detecting that the stylus touches the touch screen, it can be judged based on the capacitance change of the TP sensor whether to perform the operation of drawing handwriting. In this way, it not only solves the delay problem caused by Bluetooth transmission, but also allows the electronic device to draw handwriting when the user tilts the stylus or touches the touch screen. The electronic device has a fast response speed and high control accuracy. Can improve user experience.
在介绍本申请实施例提供的笔迹绘制方法之前,先介绍本申请实施例提供的电子设备的结构。参照图13A,在一种实施例中,电子设备可以包括:盖板玻璃(cover glass,CG)、触控功能层、显示屏、中框,以及传感器等。触控功能层可以包括如上实施例所述的触摸传感器,显示屏可以包括但不限于为:液晶显示屏(liquid crystal display,LCD)、发光二极管显示屏(light emitting diode display,LED display)等。中框可以理解为电子设备的框架,可以用于安装电子设备中的各元件,如CPU、卡槽等。在一种实施例中,为了区分电子设备中的新增的传感器和TP sensor,可以将传感器称为第一传感器。Before introducing the handwriting drawing method provided in the embodiment of the present application, the structure of the electronic device provided in the embodiment of the present application will be introduced first. Referring to FIG. 13A , in an embodiment, an electronic device may include: a cover glass (CG), a touch function layer, a display screen, a middle frame, and a sensor. The touch function layer may include the touch sensor as described in the above embodiment, and the display screen may include but not limited to: a liquid crystal display (liquid crystal display, LCD), a light emitting diode display (light emitting diode display, LED display) and the like. The middle frame can be understood as a frame of an electronic device, and can be used to install various components in the electronic device, such as a CPU, a card slot, and the like. In an embodiment, in order to distinguish the newly added sensor and the TP sensor in the electronic device, the sensor may be called the first sensor.
传感器用于检测是否存在对象与电子设备的CG接触,对象可以为触控笔、用户的手指、关节等。在一种实施例中,传感器可以为压力传感器,压力传感器用于采集因对象接触CG,造成CG表面形变产生的压感信号。在一种实施例中,传感器可以为加速度传感器,传感器可以采集因对象触碰CG,造成电子设备震动产生的加速度信号。应理解,以压力传感器为例,若压力传感器能够采集到压感信号,则电子设备可以确定存在对象接触电子设备的CG,接触CG可以理解为:接触电子设备的触摸屏。The sensor is used to detect whether there is a CG contact between an object and the electronic device, and the object may be a stylus, a user's finger, a joint, and the like. In one embodiment, the sensor may be a pressure sensor, and the pressure sensor is used to collect pressure-sensitive signals generated by deformation of the CG surface caused by the object contacting the CG. In an embodiment, the sensor may be an acceleration sensor, and the sensor may collect an acceleration signal generated by vibration of the electronic device caused by the object touching the CG. It should be understood that, taking the pressure sensor as an example, if the pressure sensor can collect pressure-sensitive signals, the electronic device can determine that there is an object touching the CG of the electronic device, and contacting the CG can be understood as: touching the touch screen of the electronic device.
参照图13A,传感器可以设置在显示屏上,且设置在显示屏上远离CG的一侧。在一种实施例中,传感器可以粘贴设置在显示屏上,也可以与显示屏卡扣连接,本申请实施例中对传感器的设置方式不做限制。参照图13B,传感器可以设置在中框上,且设置在中框上靠近显示屏的一侧。在一种实施例中,传感器可以粘贴设置在中框上,也可以与中框卡扣连接,本申请实施例中对传感器的设置方式不做限制。Referring to FIG. 13A , the sensor may be disposed on the display screen, and disposed on the side of the display screen away from the CG. In an embodiment, the sensor can be pasted on the display screen, or can be connected with the display screen by buckling. In this embodiment of the present application, there is no limitation on the arrangement method of the sensor. Referring to FIG. 13B , the sensor may be disposed on the middle frame, and disposed on the side of the middle frame close to the display screen. In one embodiment, the sensor can be pasted on the middle frame, or can be connected with the middle frame by buckling. In the embodiment of the present application, there is no limitation on the arrangement of the sensor.
在一种实施例中,为了保证压力传感器可以采集因CG表面的微小形变产生的压感信号,或者保证加速度传感器可以采集因微小震动产生的加速度信号,本申请实施例中可以采用高精度的压力传感器或加速度传感器。或者,可以在显示屏远离CG的一侧设置多个压力传感器,在中框靠近显示屏的一侧设置多个加速度传感器,以提高传感器采集信号的精度。应理解,图13A中以在显示屏上远离CG的一侧设置2个压力传感器进行示例,图13B中以在中框上靠近显示屏的一侧设置2个加速度传感器进行示例。In one embodiment, in order to ensure that the pressure sensor can collect the pressure-sensing signal generated by the small deformation of the CG surface, or to ensure that the acceleration sensor can collect the acceleration signal generated by the small vibration, the embodiment of this application can use high-precision pressure sensors or accelerometers. Alternatively, multiple pressure sensors can be set on the side of the display screen away from the CG, and multiple acceleration sensors can be set on the side of the middle frame close to the display screen, so as to improve the accuracy of the signals collected by the sensors. It should be understood that in FIG. 13A , two pressure sensors are set on the side of the display screen away from the CG as an example, and in FIG. 13B two acceleration sensors are set on the side of the middle frame close to the display screen.
应理解,当传感器为加速度传感器时,加速度传感器不限于设置在图13A和图13B所示的位置,如加速度传感器还可以设置在电子设备的主板上等其他位置。It should be understood that when the sensor is an acceleration sensor, the acceleration sensor is not limited to be disposed at the position shown in FIG. 13A and FIG. 13B , for example, the acceleration sensor may also be disposed at other positions such as the main board of the electronic device.
在图13A和图13B所示的电子设备的基础上,下面结合具体的实施例对本申请实施例提供的笔迹绘制方法进行说明。下面这几个实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。On the basis of the electronic device shown in FIG. 13A and FIG. 13B , the handwriting drawing method provided by the embodiment of the present application will be described below in conjunction with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
图14为本申请实施例提供的笔迹绘制方法的一种实施例的流程示意图。参照图14,本申请实施例提供的笔迹绘制方法可以包括:Fig. 14 is a schematic flow chart of an embodiment of a handwriting drawing method provided by the embodiment of the present application. Referring to Figure 14, the handwriting drawing method provided by the embodiment of the present application may include:
S1401,响应于检测到触控笔接触电子设备的触摸屏的第一位置,获取第一位置的TP sensor的电容变化量阈值。S1401. In response to detecting a first position where the stylus touches the touch screen of the electronic device, acquire a capacitance change threshold of the TP sensor at the first position.
本申请实施例中,电子设备可以检测触控笔接触电子设备的触摸屏。其中,电子设备可以基于压力传感器采集的压感信号,或加速度传感器采集的加速度信号,检测触控笔接触触摸屏。应理解,压感信号包括压力值,加速度信号包括三轴加速度。In the embodiment of the present application, the electronic device may detect that the stylus touches the touch screen of the electronic device. Wherein, the electronic device may detect that the stylus touches the touch screen based on the pressure-sensitive signal collected by the pressure sensor, or the acceleration signal collected by the acceleration sensor. It should be understood that the pressure-sensing signal includes a pressure value, and the acceleration signal includes triaxial acceleration.
在一种实施例中,若电子设备检测到压力传感器采集的压力值或加速度传感器采集的三轴加速度,则确定触控笔接触触摸屏。In one embodiment, if the electronic device detects the pressure value collected by the pressure sensor or the triaxial acceleration collected by the acceleration sensor, it determines that the stylus touches the touch screen.
在一种实施例中,为了避免外界因素干扰,提高检测准确性,可以设置压力阈值和三轴加速度的阈值。应理解的是,与现有技术相比较,本申请实施例中的压力阈值和三轴加速度的阈值可以设置为较小的值。示例性的,现有技术中压力阈值设置为5-10g,本申请实施例中的压力阈值可以设置为2g,进而电子设备能够实现更高精度的控制。其中,若电子设备检测到压力传感器采集的压力值大于压力阈值,或者加速度传感器采集的三轴加速度大于三轴加速度的阈值,可以确定触控笔接触触摸屏。In an embodiment, in order to avoid interference from external factors and improve detection accuracy, a pressure threshold and a triaxial acceleration threshold may be set. It should be understood that, compared with the prior art, the pressure threshold and the triaxial acceleration threshold in the embodiment of the present application may be set to smaller values. Exemplarily, the pressure threshold is set to 5-10g in the prior art, and the pressure threshold in the embodiment of the present application can be set to 2g, so that the electronic device can achieve higher precision control. Wherein, if the electronic device detects that the pressure value collected by the pressure sensor is greater than the pressure threshold, or the triaxial acceleration collected by the acceleration sensor is greater than the threshold of the triaxial acceleration, it can be determined that the stylus touches the touch screen.
本申请实施例中,电子设备检测到触控笔接触触摸屏时,可以基于来自触控笔的TP信号,检测触控笔接触触摸屏上的位置,本申请实施例以触控笔接触电子设备的触摸屏的位置为第一位置进行说明,电子设备检测触控笔接触触摸屏的位置可以参照上述图11A中的相关描述。In the embodiment of the present application, when the electronic device detects that the stylus touches the touch screen, it can detect the position on the touch screen where the stylus touches the touch screen based on the TP signal from the stylus. In the embodiment of the present application, the stylus touches the touch screen of the electronic device The position of the stylus is the first position for description, and the position where the electronic device detects that the stylus touches the touch screen can refer to the related description in FIG. 11A above.
应理解,TP sensor的电容变化量阈值可以理解为:触发电子设备执行绘制笔迹的操作的参数。第一位置的TP sensor的电容变化量阈值可以理解为:触发电子设备在第一位置执行绘制笔迹的操作的参数。应理解,下述可以将TP sensor的电容变化量阈值简称为阈值。It should be understood that the capacitance change threshold of the TP sensor can be understood as: a parameter that triggers the electronic device to perform the operation of drawing handwriting. The capacitance change threshold of the TP sensor at the first position can be understood as: a parameter that triggers the electronic device to perform an operation of drawing handwriting at the first position. It should be understood that the capacitance change threshold of the TP sensor may be referred to as the threshold for short below.
在一种实施例中,第一位置的TP sensor的电容变化量阈值与“触控笔接触触摸屏的第一位置时的TP sensor的电容变化量”相关。在一种实施例中,第一位置的TP sensor的电容变化量阈值A1可以由如下公式一获取:In one embodiment, the capacitance change threshold of the TP sensor at the first position is related to "the capacitance change of the TP sensor when the stylus touches the first position of the touch screen". In one embodiment, the capacitance change threshold A1 of the TP sensor at the first position can be obtained by the following formula 1:
A1=c×A 公式一A1=c×A Formula 1
A表征触控笔接触触摸屏的第一位置时的TP sensor的电容变化量,c为定值。其中,c为大于0小于1的值。在一种实施例中,c可以称为预设比例,即表征第一位置的TPsensor的电容变化量阈值与第一位置的TP sensor的电容变化量的比值。A represents the capacitance change of the TP sensor when the stylus touches the first position of the touch screen, and c is a constant value. Wherein, c is a value greater than 0 and less than 1. In an embodiment, c may be referred to as a preset ratio, that is, a ratio representing the capacitance change threshold of the TP sensor at the first position and the capacitance change of the TP sensor at the first position.
示例性的,如触控笔接触触摸屏的第一位置时的TP sensor的电容变化量为4500,c为0.5,则第一位置的TP sensor的电容变化量阈值A1为2250。Exemplarily, if the capacitance change of the TP sensor when the stylus touches the first position of the touch screen is 4500, and c is 0.5, then the capacitance change threshold A1 of the TP sensor at the first position is 2250.
电子设备的TP sensor可以看做电极阵列,电极阵列由多个电极构成。因为电极制造原因,TP sensor中的电极不一致,进而造成TP sensor的TP信号不一致。TP信号不一致可以理解为:当触控笔接触触摸屏的不同位置时,TP sensor的电容变化量不同。因此,本申请实施例中,电子设备可以基于触控笔接触触摸屏的第一位置时的TP sensor的电容变化量,获取第一位置时的TP sensor的电容变化量阈值。应理解,触摸屏上的位置不同,对应不同的TP sensor的电容变化量阈值。The TP sensor of electronic equipment can be regarded as an electrode array, and the electrode array is composed of multiple electrodes. Due to electrode manufacturing reasons, the electrodes in the TP sensor are inconsistent, which in turn causes the TP signal of the TP sensor to be inconsistent. The inconsistent TP signal can be understood as: when the stylus touches different positions of the touch screen, the capacitance of the TP sensor changes differently. Therefore, in the embodiment of the present application, the electronic device may acquire the capacitance change threshold of the TP sensor at the first position based on the capacitance change of the TP sensor when the stylus touches the first position of the touch screen. It should be understood that different positions on the touch screen correspond to different capacitance change thresholds of the TP sensor.
在一种实施例中,电子设备获取第一位置的TP sensor的电容变化量阈值的方式可以为:电子设备检测到触控笔接触第一位置,可以基于触控笔接触触摸屏的第一位置时的TP sensor的电容变化量以及如上公式一,得到该第一位置的TP sensor的电容变化量阈值。In one embodiment, the manner in which the electronic device obtains the capacitance change threshold of the TP sensor at the first position may be as follows: the electronic device detects that the stylus touches the first position, which may be based on when the stylus touches the first position of the touch screen The capacitance variation of the TP sensor and the above formula 1 are used to obtain the capacitance variation threshold of the TP sensor at the first position.
其中,电子设备在获取第一位置的TP sensor的电容变化量阈值后,可以存储第一位置的TP sensor的电容变化量阈值。换句话说,电子设备中存储有映射关系,该映射关系用于表征触摸屏的各位置的TP sensor的电容变化量阈值。Wherein, after the electronic device obtains the capacitance change threshold of the TP sensor at the first position, it may store the capacitance change threshold of the TP sensor at the first position. In other words, a mapping relationship is stored in the electronic device, and the mapping relationship is used to characterize the capacitance change threshold of the TP sensor at each position of the touch screen.
在一种实施例中,电子设备检测到控笔接触电子设备的触摸屏的第一位置时,可以在映射关系中查询是否存储有第一位置的TP sensor的电容变化量阈值。若存在,则将映射关系中第一位置对应的TP sensor的电容变化量阈值,作为第一位置的TP sensor的电容变化量阈值。若不存在,则可以基于触控笔接触触摸屏的第一位置时的TP sensor的电容变化量,以及上述公式一获取第一位置的TP sensor的电容变化量阈值。In one embodiment, when the electronic device detects that the pen touches the first position of the touch screen of the electronic device, it may inquire whether the capacitance change threshold of the TP sensor at the first position is stored in the mapping relationship. If it exists, the capacitance change threshold of the TP sensor corresponding to the first position in the mapping relationship is used as the capacitance change threshold of the TP sensor at the first position. If it does not exist, the capacitance change threshold of the TP sensor at the first position can be obtained based on the capacitance change of the TP sensor when the stylus touches the first position of the touch screen, and the above formula 1.
S1402,响应于检测到第一位置的TP sensor的电容变化量大于或等于第一位置的TP sensor的电容变化量阈值,执行绘制笔迹的操作。S1402. In response to detecting that the capacitance change of the TP sensor at the first position is greater than or equal to the capacitance change threshold of the TP sensor at the first position, perform an operation of drawing handwriting.
因为触控笔距离触摸屏的距离越近,TP sensor的电容变化量越大,当用户握持触控笔逐渐靠近触摸屏时,TP sensor的电容变化量逐渐增大。当用户握持触控笔接触触摸屏的第一位置时,因为第一位置的TP sensor的电容变化量大于或等于第一位置的TP sensor的电容变化量阈值,因此电子设备可以在第一位置执行绘制笔迹的操作。当用户握持触控笔远离触摸屏时,若检测到触控笔位于触摸屏的第一位置,且第一位置的TP sensor的电容变化量大于或等于第一位置的TP sensor的电容变化量阈值,电子设备仍可以执行绘制笔迹的操作。其中,电子设备在第一位置执行绘制笔迹的操作,可以理解为:触控笔出水。Because the closer the stylus is to the touch screen, the greater the capacitance change of the TP sensor will be. When the user holds the stylus closer to the touch screen, the capacitance change of the TP sensor will gradually increase. When the user holds the stylus and touches the first position of the touch screen, because the capacitance change of the TP sensor at the first position is greater than or equal to the capacitance change threshold of the TP sensor at the first position, the electronic device can execute at the first position The operation of drawing strokes. When the user holds the stylus away from the touch screen, if it is detected that the stylus is located at the first position of the touch screen, and the capacitance change of the TP sensor at the first position is greater than or equal to the capacitance change threshold of the TP sensor at the first position, Electronic devices can still perform the operation of drawing handwriting. Wherein, the electronic device executes the operation of drawing handwriting at the first position, which can be understood as: the touch pen emits water.
在一种实施例中,上述S1402可以替换为:响应于检测到第一位置的TP sensor的电容变化量与第一位置的TP sensor的电容变化量阈值满足第一预设关系时,执行绘制笔迹的操作。其中,第一预设关系可以为:第一位置的TP sensor的电容变化量大于或等于第一位置的TP sensor的电容变化量阈值,或者第一位置的TP sensor的电容变化量大于第一位置的TP sensor的电容变化量阈值。In one embodiment, the above S1402 can be replaced by: in response to detecting that the capacitance change of the TP sensor at the first position and the capacitance change threshold of the TP sensor at the first position meet the first preset relationship, execute drawing handwriting operation. Wherein, the first preset relationship may be: the capacitance change of the TP sensor at the first position is greater than or equal to the capacitance change threshold of the TP sensor at the first position, or the capacitance change of the TP sensor at the first position is greater than the first position The capacitance change threshold of the TP sensor.
S1403,响应于检测到第一位置的TP sensor的电容变化量小于第一位置的TPsensor的电容变化量阈值,停止执行绘制笔迹的操作。S1403, in response to detecting that the capacitance change of the TP sensor at the first position is less than the capacitance change threshold of the TP sensor at the first position, stop executing the handwriting drawing operation.
触控笔距离触摸屏的距离越远,TP sensor的电容变化量越小,当用户使用完触控笔后,用户握持触控笔逐渐远离触摸屏,TP sensor的电容变化量逐渐减小。其中,当用户握持触控笔远离触摸屏时,若电子设备检测到触控笔位于触摸屏的第一位置,且该第一位置的TP sensor的电容变化量小于第一位置的TP sensor的电容变化量阈值,电子设备可以停止执行绘制笔迹的操作。其中,电子设备停止执行绘制笔迹的操作可以理解为:电子设备在第一位置停止执行绘制笔迹的操作,即触控笔不出水。The farther the distance between the stylus and the touch screen, the smaller the capacitance change of the TP sensor. After the user finishes using the stylus, the user holds the stylus away from the touch screen gradually, and the capacitance change of the TP sensor gradually decreases. Wherein, when the user holds the stylus away from the touch screen, if the electronic device detects that the stylus is located at the first position of the touch screen, and the capacitance change of the TP sensor at the first position is smaller than the capacitance change of the TP sensor at the first position If the volume threshold is exceeded, the electronic device can stop performing the operation of drawing handwriting. Wherein, the electronic device stops performing the operation of drawing handwriting may be understood as: the electronic device stops performing the operation of drawing handwriting at the first position, that is, the stylus does not come out of water.
在一种实施例中,上述S1403可以替换为:响应于检测到第一位置的TP sensor的电容变化量与第一位置的TP sensor的电容变化量阈值满足第二预设关系时,执行绘制笔迹的操作。其中,第一预设关系为“第一位置的TP sensor的电容变化量大于第一位置的TPsensor的电容变化量阈值”时,第二预设关系可以为“第一位置的TP sensor的电容变化量小于或等于第一位置的TP sensor的电容变化量阈值”。In one embodiment, the above S1403 may be replaced by: in response to detecting that the capacitance change of the TP sensor at the first position and the capacitance change threshold of the TP sensor at the first position meet the second preset relationship, execute drawing handwriting operation. Wherein, when the first preset relationship is "the capacitance change of the TP sensor at the first position is greater than the capacitance change threshold of the TP sensor at the first position", the second preset relationship may be "the capacitance change of the TP sensor at the first position The amount is less than or equal to the capacitance change threshold of the TP sensor at the first position".
示例性的,参照图15中的a,如触摸屏的位置A的TP sensor的电容变化量为4500,位置A的TP sensor的电容变化量阈值为2250。如此,当触控笔接触电子设备的触摸屏的位置A时,电子设备可以获取该位置A的TP sensor的电容变化量阈值为2250,此时位置A的TPsensor的电容变化量为4500,因此电子设备可以开始执行绘制笔迹的操作。如图15中的a中以在触摸屏上显示黑色圆点表征电子设备在位置A处绘制的笔迹。参照图15中的b,当用户握持触控笔提笔时,若触控笔仍位于位置A,且位置A的TP sensor的电容变化量仍大于或等于位置A的TP sensor的电容变化量阈值,则触控笔仍可以执行绘制笔迹的操作。如图15中的b中采用相较于图15中的a中以在触摸屏上显示更大的黑色圆点表征电子设备在位置A处绘制的笔迹。参照图15中的c,当用户握持触控笔继续提笔时,若触控笔仍位于位置A,但位置A的TP sensor的电容变化量小于位置A的TP sensor的电容变化量阈值,则触控笔仍可以停止执行绘制笔迹的操作。如图15中的c中以在触摸屏上不显示黑色圆点表征电子设备停止执行绘制笔迹的操作。应理解,图15中并未示出位置A,但可以理解的是,触控笔与触摸屏接触的位置为位置A。Exemplarily, referring to a in FIG. 15 , for example, the capacitance change of the TP sensor at position A of the touch screen is 4500, and the capacitance change threshold of the TP sensor at position A is 2250. In this way, when the stylus touches position A of the touch screen of the electronic device, the electronic device can obtain the capacitance change threshold of the TP sensor at position A as 2250, and at this time the capacitance change of the TP sensor at position A is 4500, so the electronic device You can start to perform the operation of drawing handwriting. As shown in a of FIG. 15 , black dots are displayed on the touch screen to represent the handwriting drawn by the electronic device at position A. Referring to b in Figure 15, when the user holds the stylus to lift the pen, if the stylus is still at position A, and the capacitance change of the TP sensor at position A is still greater than or equal to the capacitance change of the TP sensor at position A threshold, the stylus can still perform the operation of drawing handwriting. As shown in b in FIG. 15 , a larger black dot is displayed on the touch screen than in a in FIG. 15 to represent the handwriting drawn by the electronic device at position A. Referring to c in Figure 15, when the user holds the stylus and continues to lift the pen, if the stylus is still at position A, but the capacitance change of the TP sensor at position A is smaller than the capacitance change threshold of the TP sensor at position A, Then the stylus can still stop performing the operation of drawing handwriting. As shown in c of FIG. 15 , no black dots are displayed on the touch screen to indicate that the electronic device stops performing the operation of drawing handwriting. It should be understood that the position A is not shown in FIG. 15 , but it can be understood that the position where the stylus touches the touch screen is the position A.
本申请实施例,可以通过电子设备中新增设置的传感器,判断触控笔是否接触触摸屏,响应于检测到触控笔接触触摸屏,可以基于TP sensor的电容变化量判断是否执行绘制笔迹的操作,如此,不仅解决了因为蓝牙传输造成的时延问题,还可以在用户采用触控笔倾斜书写或者轻触触摸屏时,电子设备均能够绘制笔迹,电子设备绘制笔迹的响应速度快,控制精度高,可以提高用户体验。本申请实施例中,因为未将触摸屏采集的压感信号或加速度信号作为电子设备是否执行绘制笔迹的操作的判断条件,而是作为触发电子设备基于TPsensor的电容变化量判断是否执行绘制笔迹的操作的触发条件,无需蓝牙传输来自触控笔的压感信号,可以提高电子设备绘制笔迹的响应速度。本申请实施例中可以将压力阈值和三轴加速度的阈值设置为很小的值,如小于目前现有技术中的压力阈值,电子设备检测到微小的压力即可以响应,可以提高电子设备的控制精度。另外,本申请实施例中,可以在用户握持触控笔绘制笔迹,当触控笔接触到触摸屏时,触控笔开始出水,即电子设备执行绘制笔迹的操作,可以更好地模拟用户采用真实的笔进行书写,可以提高用户体验。In the embodiment of the present application, it is possible to determine whether the stylus is in contact with the touch screen through a newly added sensor in the electronic device, and in response to detecting that the stylus is in contact with the touch screen, it is possible to determine whether to execute the operation of drawing handwriting based on the capacitance change of the TP sensor. In this way, it not only solves the delay problem caused by Bluetooth transmission, but also allows the electronic device to draw handwriting when the user tilts the stylus or touches the touch screen. The electronic device has a fast response speed and high control accuracy. Can improve user experience. In the embodiment of the present application, because the pressure-sensitive signal or acceleration signal collected by the touch screen is not used as the judgment condition for whether the electronic device executes the operation of drawing handwriting, but as a trigger for the electronic device to judge whether to execute the operation of drawing handwriting based on the capacitance change of the TPsensor The trigger condition does not require Bluetooth to transmit the pressure-sensitive signal from the stylus, which can improve the response speed of the electronic device to draw handwriting. In the embodiment of the present application, the pressure threshold and the triaxial acceleration threshold can be set to very small values, such as less than the pressure threshold in the current prior art, and the electronic device can respond when it detects a small pressure, which can improve the control of the electronic device precision. In addition, in the embodiment of the present application, the user can hold the stylus to draw handwriting. When the stylus touches the touch screen, the stylus starts to emit water, that is, the electronic device performs the operation of drawing handwriting, which can better simulate the user's use of Writing with a real pen can improve user experience.
如上实施例中,若用户握持触控笔接触触摸屏绘制笔迹后,将触控笔放置在电子设备的触摸屏上,电子设备若检测到触控笔所处的位置的TP sensor的电容变化量大于或等于该位置处的TP sensor的电容变化量阈值,电子设备仍可以执行绘制笔迹的操作,但此处用户并未操作触控笔绘制笔迹,因此造成漏墨现象。据此,本申请实施例提供的一种笔迹绘制方法,电子设备可以判断用户是否握持触控笔,若用户握持触控笔,则确定用户正在使用触控笔绘制笔迹,则可以基于触控笔所处的位置的TP sensor的电容变化量,判断是否执行绘制笔迹的操作,提高电子设备的控制准确性,避免漏墨现象,提高用户体验。In the above embodiment, if the user holds the stylus and touches the touch screen to draw handwriting, then places the stylus on the touch screen of the electronic device, if the electronic device detects that the capacitance change of the TP sensor at the position of the stylus is greater than Or equal to the capacitance change threshold of the TP sensor at this position, the electronic device can still perform the operation of drawing handwriting, but here the user does not operate the stylus to draw handwriting, thus causing ink leakage. According to this, in the handwriting drawing method provided by the embodiment of the present application, the electronic device can determine whether the user is holding the stylus, if the user is holding the stylus, it can be determined that the user is using the stylus to draw handwriting, and then it can be based on the touch pen. The capacitance change of the TP sensor at the position of the control pen is used to judge whether to execute the operation of drawing handwriting, improve the control accuracy of electronic equipment, avoid ink leakage, and improve user experience.
图16为本申请实施例提供的笔迹绘制方法的另一实施例的流程示意图。参照图16,本申请实施例提供的笔迹绘制方法可以包括:Fig. 16 is a schematic flowchart of another embodiment of the handwriting drawing method provided by the embodiment of the present application. Referring to Figure 16, the handwriting drawing method provided by the embodiment of the present application may include:
S1601,响应于检测到触控笔接触电子设备的触摸屏的第一位置,获取第一位置的TP sensor的电容变化量阈值。S1601. In response to detecting a first position where the stylus touches the touch screen of the electronic device, acquire a capacitance change threshold of the TP sensor at the first position.
S1602,响应于检测到第一位置的TP sensor的电容变化量大于或等于第一位置的TP sensor的电容变化量阈值,检测用户是否握持触控笔;若是,执行S1603,若否,执行S1604。S1602, in response to detecting that the capacitance change of the TP sensor at the first position is greater than or equal to the capacitance change threshold of the TP sensor at the first position, detect whether the user is holding the stylus; if so, execute S1603, if not, execute S1604 .
电子设备检测到第一位置的TP sensor的电容变化量大于或等于阈值可以参照上述S1402中的相关描述。For the electronic device detecting that the capacitance variation of the TP sensor at the first position is greater than or equal to the threshold, reference may be made to the relevant description in S1402 above.
在一种实施例中,触控笔可以检测用户是否握持触控笔,进而通过蓝牙向电子设备发送握持信息,该握持信息用于指示触控笔为握持状态,握持状态包括握持或非握持。如此,电子设备可以基于握持信息,确定用户是否握持触控笔。在一种实施例中,为了减少触控笔和电子设备的信令交互,触控笔响应于检测到触控笔的握持状态变化时,向电子设备发送握持信息。In one embodiment, the stylus can detect whether the user is holding the stylus, and then send holding information to the electronic device through Bluetooth. The holding information is used to indicate that the stylus is in a holding state, and the holding state includes To hold or not to hold. In this way, the electronic device can determine whether the user is holding the stylus based on the holding information. In one embodiment, in order to reduce the signaling interaction between the stylus and the electronic device, the stylus sends holding information to the electronic device in response to detecting a change in the holding state of the stylus.
在一种实施例中,参照图17所示,触控笔的笔身上设置有触摸膜(touch film),触摸膜类似与触摸传感器,可以用于检测采用用户触摸触控笔的笔身的触摸信号。其中,若触控笔检测到触摸膜采集到触摸信号,则确定用户握持触控笔。若触控笔未检测到触摸膜采集到触摸信号,则确定用户未握持触控笔。应理解,图17为触控笔的笔身拆解示意图。In one embodiment, as shown in FIG. 17 , the pen body of the stylus is provided with a touch film (touch film). The touch film is similar to a touch sensor and can be used to detect the touch by the user touching the pen body of the stylus. Signal. Wherein, if the stylus detects that the touch film collects a touch signal, it is determined that the user is holding the stylus. If the stylus does not detect that the touch film has collected a touch signal, it is determined that the user is not holding the stylus. It should be understood that FIG. 17 is a disassembled schematic view of the pen body of the stylus.
在一种实施例中,参照上述图6中的相关描述,触控笔中设置有惯性传感器,惯性传感器可以用于采集触控笔的运动数据,据此,触控笔可以基于惯性传感器采集的运动数据,获取触控笔的运行状态。其中,运动状态可以包括:静止或非静止。若触控笔检测到触控笔为静止,则用户未握持触控笔。若触控笔检测到触控笔处于非静止,则用户握持触控笔。In one embodiment, referring to the relevant description in FIG. 6 above, the stylus is provided with an inertial sensor, and the inertial sensor can be used to collect motion data of the stylus. Accordingly, the stylus can Motion data, to obtain the running status of the stylus. Wherein, the motion state may include: stationary or non-stationary. If the stylus detects that the stylus is still, the user is not holding the stylus. If the stylus detects that the stylus is not stationary, the user holds the stylus.
在一种实施例中,触控笔中设置有陀螺仪和/或加速度传感器,触控笔通过陀螺仪和/或加速度传感器采集的数据,可以获取触控笔的倾角,具体的方式可以参照目前已有的相关技术描述。本申请实施例中,可以预先设置用户使用触控笔时的倾角范围,触控笔中可以存储该倾角范围。触控笔响应于检测到触控笔的倾角位于倾角范围内,可以确定用户握持触控笔,若触控笔的倾角位于倾角范围之外,可以确定用户未握持触控笔。示例性的,倾角范围可以为30°-65°。In one embodiment, the stylus is provided with a gyroscope and/or an acceleration sensor, and the stylus can obtain the inclination angle of the stylus through the data collected by the gyroscope and/or the acceleration sensor. The specific method can refer to the current Existing related technical descriptions. In the embodiment of the present application, the inclination angle range when the user uses the stylus can be preset, and the inclination angle range can be stored in the stylus. In response to detecting that the inclination angle of the stylus is within the inclination range, the stylus may determine that the user is holding the stylus, and if the inclination of the stylus is outside the inclination range, it may be determined that the user is not holding the stylus. Exemplarily, the inclination angle range may be 30°-65°.
在一种实施例中,与电子设备触摸屏中的TP sensor类似的,触控笔的笔身上可以设置TP sensor。当用户握持触控笔时,TP sensor的电容变化量发生变化,当用户未握持触控笔时,TP sensor的电容变化量为初始值(如0)。据此,触控笔可以基于TP sensor的电容变化量,确定用户是否握持触控笔。其中,触控笔响应于检测到触控笔的TP sensor的电容变化量发生变化,确定用户握持触控笔,触控笔响应于触控笔的TP sensor的电容变化量为初始值,确定用户未握持触控笔。In one embodiment, similar to the TP sensor in the touch screen of the electronic device, the TP sensor can be set on the body of the stylus. When the user holds the stylus, the capacitance change of the TP sensor changes, and when the user does not hold the stylus, the capacitance change of the TP sensor is the initial value (such as 0). Accordingly, the stylus can determine whether the user is holding the stylus based on the capacitance change of the TP sensor. Wherein, the stylus responds to detecting that the capacitance change of the TP sensor of the stylus changes, and it is determined that the user holds the stylus, and the stylus responds to the capacitance change of the TP sensor of the stylus as an initial value, and determines The user is not holding the stylus.
其中,当触控笔确定用户握持触控笔时,可以向电子设备发送握持信息,该握持信息用于指示触控笔的握持状态为握持。同理的,当触控笔确定用户未握持触控笔时,可以向电子设备发送握持信息,该握持信息用于指示触控笔的握持状态为非握持。Wherein, when the stylus determines that the user is holding the stylus, it may send holding information to the electronic device, where the holding information is used to indicate that the holding state of the stylus is holding. Similarly, when the stylus determines that the user is not holding the stylus, it can send holding information to the electronic device, where the holding information is used to indicate that the holding state of the stylus is not holding.
如上电子设备或触控笔检测用户是否握持触控笔的方式为示例说明,如上电子设备或触控笔检测用户是否握持触控笔的方式可以结合或者单独使用。应理解,本申请实施例还可以采用其他方式检测用户是否握持触控笔,本申请实施例对此不作限制。The above method of detecting whether the user holds the stylus by the electronic device or the stylus is an example, and the above methods of detecting whether the user holds the stylus by the electronic device or the stylus can be used in combination or alone. It should be understood that the embodiment of the present application may also use other methods to detect whether the user holds the stylus, which is not limited in the embodiment of the present application.
S1603,执行绘制笔迹的操作。S1603, perform an operation of drawing handwriting.
S1604,停止。S1604, stop.
S1605,响应于检测到第一位置的TP sensor的电容变化量小于第一位置的TPsensor的电容变化量阈值,停止执行绘制笔迹的操作。S1605. In response to detecting that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position, stop performing the operation of drawing handwriting.
本申请实施例中,S1601、S1603、S1605可以参照上述S1401、S1402、S1403中的相关描述,在此不做赘述。In the embodiment of the present application, for S1601, S1603, and S1605, reference may be made to relevant descriptions in S1401, S1402, and S1403 above, and details are not repeated here.
示例性的,参照图18中的a所示,触控笔放置在电子设备的触摸屏上,且触控笔所处的位置的TP sensor的电容变化量大于或等于该位置处的TP sensor的电容变化量阈值,电子设备不执行绘制笔迹的操作,如图18中的a以触摸屏上不显示黑色圆点表征电子设备停止执行绘制笔迹的操作。参照图18中的b所示,当用户握持触控笔接触触摸屏后,且触控笔所处的位置的TP sensor的电容变化量大于或等于该位置处的TP sensor的电容变化量阈值,电子设备执行绘制笔迹的操作,如图18中的b以触摸屏上的黑色圆点表征电子设备绘制的笔迹。应理解,图18中为了更好地比较用户未握持触控笔和用户握持触控笔,以触控笔位于触摸屏的同一位置,且与触摸屏具有相同的距离(即该位置处的TP sensor的电容变化量相同)为例进行说明。Exemplarily, as shown in a in FIG. 18 , the stylus is placed on the touch screen of the electronic device, and the capacitance variation of the TP sensor at the position of the stylus is greater than or equal to the capacitance of the TP sensor at the position Change threshold, the electronic device does not perform the operation of drawing handwriting, as shown in Figure 18 a, the black dot is not displayed on the touch screen to indicate that the electronic device stops performing the operation of drawing handwriting. Referring to b in Figure 18, when the user holds the stylus to touch the touch screen, and the capacitance change of the TP sensor at the position of the stylus is greater than or equal to the capacitance change threshold of the TP sensor at the position, The electronic device executes the operation of drawing handwriting, as shown in b in FIG. 18 , the black dots on the touch screen represent the handwriting drawn by the electronic device. It should be understood that, in order to better compare the user not holding the stylus with the user holding the stylus in FIG. The capacitance change of the sensor is the same) as an example.
本申请实施例中,当触控笔接触触摸屏的第一位置,且电子设备检测到第一位置的TP sensor的电容变化量大于或等于阈值时,电子设备还需要检测用户是否握持触控笔,在用户握持触控笔时,可以执行绘制笔迹的操作,进而可以提高电子设备的控制准确性,避免漏墨现象,提高用户体验。In the embodiment of the present application, when the stylus touches the first position of the touch screen, and the electronic device detects that the capacitance change of the TP sensor at the first position is greater than or equal to the threshold, the electronic device also needs to detect whether the user is holding the stylus When the user holds the stylus, the operation of drawing handwriting can be performed, thereby improving the control accuracy of the electronic device, avoiding ink leakage, and improving user experience.
本申请实施例提供一种笔迹绘制装置,参照图19,该笔迹绘制装置可以如如上实施例中的电子设备或者电子设备中的芯片。该笔迹绘制装置1900可以包括:处理模块1901、存储模块1902,以及收发模块1903。其中,电子设备包括触摸传感器TP sensor和第一传感器,所述第一传感器用于检测触控笔是否接触所述电子设备的触摸屏,所述TP sensor包含于所述触摸屏中。An embodiment of the present application provides a handwriting drawing device. Referring to FIG. 19 , the handwriting drawing device may be the electronic device or the chip in the electronic device in the above embodiments. The
处理模块1901,用于:响应于检测到所述第一传感器采集到信号,检测所述触控笔接触所述触摸屏的位置;基于所述触控笔接触所述触摸屏的第一位置,获取所述第一位置的TP sensor的电容变化量阈值;响应于检测到所述第一位置的TP sensor的电容变化量大于或等于所述第一位置的TP sensor的电容变化量阈值,执行绘制笔迹的操作;响应于检测到所述第一位置的TP sensor的电容变化量小于所述第一位置的TP sensor的电容变化量阈值,停止执行绘制笔迹的操作。The
在一种可能的实现方式中,处理模块1901,具体用于响应于检测到所述第一传感器采集到信号,且所述信号表征的信号值满足预设条件,检测所述触控笔接触所述触摸屏的位置。In a possible implementation manner, the
在一种可能的实现方式中,所述第一传感器为压力传感器或加速度传感器,当所述第一传感器为所述压力传感器时,所述信号为压感信号,当所述第一传感器为所述加速度传感器时,所述信号为加速度信号;所述预设条件为:所述压感信号表征的压力值大于或等于压力值阈值,或者,所述加速度信号表征的加速度大于或等于加速度阈值。In a possible implementation manner, the first sensor is a pressure sensor or an acceleration sensor. When the first sensor is the pressure sensor, the signal is a pressure-sensitive signal. When the first sensor is the In the case of the acceleration sensor, the signal is an acceleration signal; the preset condition is: the pressure value represented by the pressure-sensitive signal is greater than or equal to the pressure value threshold, or the acceleration represented by the acceleration signal is greater than or equal to the acceleration threshold.
在一种可能的实现方式中,所述电子设备还包括显示屏和中框,所述显示屏位于所述触摸屏和所述中框之间,所述压力传感器设置在所述显示屏上靠近所述中框的一侧,或者,所述压力传感器设置在所述中框上靠近所述显示屏的一侧。In a possible implementation manner, the electronic device further includes a display screen and a middle frame, the display screen is located between the touch screen and the middle frame, and the pressure sensor is arranged on the display screen close to the One side of the middle frame, or, the pressure sensor is arranged on the side of the middle frame close to the display screen.
在一种可能的实现方式中,处理模块1901,具体用于响应于检测到所述第一位置的TP sensor的电容变化量大于或等于所述第一位置的TP sensor的电容变化量阈值,检测用户是否握持所述触控笔;响应于所述用户握持所述触控笔,执行绘制笔迹的操作。In a possible implementation manner, the
在一种可能的实现方式中,收发模块1903,用于接收来自所述触控笔的握持信息,所述握持信息指示所述触控笔为握持或非握持。In a possible implementation manner, the
处理模块1901,具体用于基于所述握持信息,检测所述用户是否握持所述触控笔。The
在一种可能的实现方式中,处理模块1901,具体用于当所述触控笔接触所述触摸屏的第一位置时,获取所述第一位置的TP sensor的电容变化量;基于所述第一位置的TPsensor的电容变化量和预设比例,获取所述第一位置的TP sensor的电容变化量阈值。In a possible implementation manner, the
在一种可能的实现方式中,所述电子设备中存储有所述触摸屏的至少一个位置的TP sensor的电容变化量阈值,处理模块1901,具体用于查询所述至少一个位置的TPsensor的电容变化量阈值中是否包含所述第一位置的TP sensor的电容变化量;若是,在所述至少一个位置的TP sensor的电容变化量阈值中,获取所述第一位置的TP sensor的电容变化量阈值。In a possible implementation manner, the electronic device stores the capacitance change threshold of the TP sensor at least one position of the touch screen, and the
在一种可能的实现方式中,存储模块1902,用于响应于检测到所述触控笔接触所述触摸屏的第一位置,记录所述第一位置的TP sensor的电容变化量阈值;响应于检测到所述触控笔接触所述触摸屏第二位置,记录所述第二位置的TP sensor的电容变化量阈值,以得到所述至少一个位置的TP sensor的电容变化量阈值。In a possible implementation manner, the
在一种可能的实现方式中,处理模块1901,还用于响应于检测到所述触控笔接触所述触摸屏的第一位置,获取所述第一位置的TP sensor的电容变化量;基于所述第一位置的TP sensor的电容变化量和预设比例,获取所述第一位置的TP sensor的电容变化量阈值,以用于存储模块1902记录第一位置的TP sensor的电容变化量阈值。In a possible implementation manner, the
如上图7所示的电子设备的硬件结构图,本申请实施例中,图7中的处理器210可以用于执行上述处理模块1901执行的动作,无线接口260用于执行上述收发模块1903执行的动作。在一种实施例中,电子中可以包括存储器(图7中未示出),存储器用于执行上述存储模块1902执行的动作。如此,电子设备可以执行如上实施例中提供的笔迹绘制方法。The hardware structure diagram of the electronic device shown in FIG. 7 above, in the embodiment of the present application, the processor 210 in FIG. 7 can be used to execute the actions performed by the
本申请实施例还提供一种笔迹绘制系统,该系统中包括电子设备和触控笔。电子设备可以执行上述图14、图16中所示的步骤,以实现如上实施例中提供的笔迹绘制方法。The embodiment of the present application also provides a handwriting drawing system, which includes an electronic device and a stylus. The electronic device may execute the above steps shown in FIG. 14 and FIG. 16 to implement the handwriting drawing method provided in the above embodiment.
需要说明的是,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(centralprocessing unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。It should be noted that the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or one or more microprocessors device (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, computer instructions may be transmitted from a website site, computer, server or data center by wire (such as Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)).
本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。The term "plurality" herein means two or more. The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the character "/" in this paper generally indicates that the contextual objects are an "or" relationship; in the formula, the character "/" indicates that the contextual objects are a "division" relationship.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or imply order.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. In the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not constitute a component of the implementation process of the embodiments of the present application. Any restrictions.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310358218.3ACN116466867B (en) | 2021-07-02 | 2021-07-02 | Handwriting drawing method and device, electronic equipment and readable storage medium |
| CN202110753711.6ACN114461129B (en) | 2021-07-02 | 2021-07-02 | Handwriting drawing method and device, electronic equipment and readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110753711.6ACN114461129B (en) | 2021-07-02 | 2021-07-02 | Handwriting drawing method and device, electronic equipment and readable storage medium |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310358218.3ADivisionCN116466867B (en) | 2021-07-02 | 2021-07-02 | Handwriting drawing method and device, electronic equipment and readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN114461129A CN114461129A (en) | 2022-05-10 |
| CN114461129Btrue CN114461129B (en) | 2023-04-11 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310358218.3AActiveCN116466867B (en) | 2021-07-02 | 2021-07-02 | Handwriting drawing method and device, electronic equipment and readable storage medium |
| CN202110753711.6AActiveCN114461129B (en) | 2021-07-02 | 2021-07-02 | Handwriting drawing method and device, electronic equipment and readable storage medium |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310358218.3AActiveCN116466867B (en) | 2021-07-02 | 2021-07-02 | Handwriting drawing method and device, electronic equipment and readable storage medium |
| Country | Link |
|---|---|
| CN (2) | CN116466867B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115291754B (en)* | 2022-08-05 | 2023-04-04 | 深圳市华南英才科技有限公司 | Communication control method and system for a flat capacitive pen |
| CN116088698B (en)* | 2022-08-09 | 2024-07-02 | 荣耀终端有限公司 | Touch pen-based use method and device |
| CN116048289B (en)* | 2022-08-25 | 2024-08-06 | 荣耀终端有限公司 | Water discharge control method of stylus pen and electronic device |
| CN117991913B (en)* | 2022-11-04 | 2025-01-10 | 荣耀终端有限公司 | Handwriting processing method, terminal equipment and chip system |
| CN118210390B (en)* | 2024-04-03 | 2024-10-18 | 东莞市意志强塑胶五金有限公司 | Touch monitoring method and system of capacitive stylus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110780755A (en)* | 2019-10-25 | 2020-02-11 | 京东方科技集团股份有限公司 | Touch pen and control method thereof, touch device and readable storage medium |
| CN111124159A (en)* | 2019-12-20 | 2020-05-08 | 上海传英信息技术有限公司 | Touch reminding method based on stylus, terminal and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101473490B1 (en)* | 2008-05-20 | 2014-12-24 | 주식회사 케이티 | Method For Guiding Touch Input And Apparatus For Performing The Same |
| CN202142045U (en)* | 2011-06-27 | 2012-02-08 | 比亚迪股份有限公司 | Touch device and mobile terminal with same |
| KR101401271B1 (en)* | 2012-05-02 | 2014-05-29 | 주식회사 켐트로닉스 | Display apparatus with touch pen |
| KR20140073827A (en)* | 2012-12-07 | 2014-06-17 | 엘지디스플레이 주식회사 | Touch sensing system and driving method thereof |
| WO2014094283A1 (en)* | 2012-12-20 | 2014-06-26 | Intel Corporation | Touchscreen including force sensors |
| WO2014174771A1 (en)* | 2013-04-25 | 2014-10-30 | シャープ株式会社 | Touch panel system and electronic device |
| CN106095174A (en)* | 2016-06-12 | 2016-11-09 | 苏州芯沃科电子科技有限公司 | Electronic whiteboard actively pen and touch input system and driving method |
| CN109416604A (en)* | 2016-07-13 | 2019-03-01 | 夏普株式会社 | Write input unit |
| US11340716B2 (en)* | 2018-07-06 | 2022-05-24 | Apple Inc. | Touch-based input for stylus |
| CN112905035B (en)* | 2019-12-04 | 2024-09-17 | 北京小米移动软件有限公司 | Touch screen control method and device and computer storage medium |
| CN111124521A (en)* | 2019-12-30 | 2020-05-08 | 深圳市千分一智能技术有限公司 | Active capacitive stylus early awakening method and device, terminal and storage medium |
| CN112987976B (en)* | 2021-04-13 | 2023-02-03 | 深圳市千分一智能技术有限公司 | Display method, device and terminal equipment of touch pen and handwriting thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110780755A (en)* | 2019-10-25 | 2020-02-11 | 京东方科技集团股份有限公司 | Touch pen and control method thereof, touch device and readable storage medium |
| CN111124159A (en)* | 2019-12-20 | 2020-05-08 | 上海传英信息技术有限公司 | Touch reminding method based on stylus, terminal and computer readable storage medium |
| Publication number | Publication date |
|---|---|
| CN116466867A (en) | 2023-07-21 |
| CN114461129A (en) | 2022-05-10 |
| CN116466867B (en) | 2024-04-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN113220154B (en) | Control method and system of refresh rate and electronic equipment | |
| CN114461129B (en) | Handwriting drawing method and device, electronic equipment and readable storage medium | |
| CN113885716B (en) | Stylus and Electronic Device Components | |
| CN113821113B (en) | Interaction method, system and electronic device of electronic device and stylus | |
| US12277313B2 (en) | Handwriting drawing method and apparatus, electronic device, and readable storage medium | |
| US20240411390A1 (en) | Function Mode Switching Method, Electronic Device, and System | |
| CN116088695B (en) | System upgrading method and related device | |
| CN115599229B (en) | Control method of touch pen and touch pen equipment | |
| CN115543105B (en) | Information transmission method and device | |
| HK40078467A (en) | Stylus pen and electronic device assembly comprising the stylus pen | |
| HK40078467B (en) | Stylus pen and electronic device assembly comprising the stylus pen | |
| CN116736988A (en) | Stylus tip detection method, electronic device and system |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address | Address after:Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after:Honor Terminal Co.,Ltd. Country or region after:China Address before:3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before:Honor Device Co.,Ltd. Country or region before:China |