Movatterモバイル変換


[0]ホーム

URL:


CN106775385B - Intelligent writing method and system - Google Patents

Intelligent writing method and system
Download PDF

Info

Publication number
CN106775385B
CN106775385BCN201611078023.XACN201611078023ACN106775385BCN 106775385 BCN106775385 BCN 106775385BCN 201611078023 ACN201611078023 ACN 201611078023ACN 106775385 BCN106775385 BCN 106775385B
Authority
CN
China
Prior art keywords
attribute data
smart
data packet
writing pen
intelligent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611078023.XA
Other languages
Chinese (zh)
Other versions
CN106775385A (en
Inventor
王俊凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co LtdfiledCriticalGuangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201611078023.XApriorityCriticalpatent/CN106775385B/en
Publication of CN106775385ApublicationCriticalpatent/CN106775385A/en
Application grantedgrantedCritical
Publication of CN106775385BpublicationCriticalpatent/CN106775385B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种智能书写方法及系统,通过智能书写笔接收切换信号,并根据所述切换信号生成属性数据包,以及将所述属性数据包发送至节点配置装置;所述节点配置装置接收所述智能书写笔发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板;所述智能平板根据所述属性数据包中的属性数据以及检测到的所述智能书写笔的触摸轨迹输出对应的轨迹线条。由此可见,本发明能够实现不同属性轨迹线条的快捷方便的输出,有效地提高了书写效率及用户体验。

The invention discloses an intelligent writing method and system. A switching signal is received through an intelligent writing pen, an attribute data packet is generated according to the switching signal, and the attribute data packet is sent to a node configuration device; the node configuration device receives The attribute data packet sent by the smart writing pen, and the attribute data packet is sent to the smart tablet through the communication network; the smart tablet is based on the attribute data in the attribute data packet and the detected The touch track of the smart writing pen outputs the corresponding track line. It can be seen that the present invention can realize fast and convenient output of locus lines with different attributes, and effectively improve writing efficiency and user experience.

Description

Translated fromChinese
智能书写方法及系统Intelligent writing method and system

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种智能书写方法及系统。The present invention relates to the field of electronic technology, and in particular, to an intelligent writing method and system.

背景技术Background technique

智能平板是一种新型的电子输入设备,由电子感应板硬件和平板系统软件集成,利用电子书写笔在电子感应板上形成触摸轨迹,以实现笔迹输入,如书写文字或绘制图形,由平板系统软件进行数据的分析与处理,以支撑使用者与平板的信息交互,被广泛应用于教育教学、企业会议、商业展示等领域。Smart tablet is a new type of electronic input device, which is integrated by electronic sensor board hardware and tablet system software. It uses electronic writing pen to form a touch track on the electronic sensor board to realize handwriting input, such as writing text or drawing graphics. The software analyzes and processes data to support the information interaction between users and the tablet, and is widely used in education and teaching, corporate meetings, business presentations and other fields.

目前,大多数的智能书写笔功能单一,每支笔只具备一种输入属性,当需要输出不同属性的轨迹线条(例如颜色、笔尖类型及笔画粗细等)时,通常会更换另外一支智能书写笔或利用智能平板内部的软件进行切换。At present, most smart writing pens have a single function, and each pen has only one input attribute. When it is necessary to output trajectory lines with different attributes (such as color, nib type and stroke thickness, etc.), another smart writing pen is usually replaced. Pen or use the software inside the smart tablet to switch.

本发明人在实施本发明的过程中,发现现有技术存在以下不足,若采用智能平板内部的软件改变输入属性,首先需要利用智能书写笔点击程序中的按钮,调出属性选择工具,然后选中所需要的属性以实现输入属性的切换,这种改变输入属性的方式需要在输入过程中频繁地转换程序,使用起来非常不方便;另外,若采用更换另一支笔的方式来改变输入属性,则会带来较高的成本,且在使用过程中需要频繁更换笔,用户体验不佳。In the process of implementing the present invention, the inventor found that the prior art has the following deficiencies. If the software inside the smart tablet is used to change the input properties, it is first necessary to use the smart writing pen to click the button in the program, call up the property selection tool, and then select The required attributes are used to switch the input attributes. This method of changing the input attributes requires frequent switching of programs during the input process, which is very inconvenient to use. In addition, if the input attributes are changed by replacing another pen, It will bring higher cost, and the pen needs to be replaced frequently during use, resulting in poor user experience.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题在于,提供一种智能书写方法及系统,能够快捷方便的输出不同属性的轨迹线条。The technical problem to be solved by the present invention is to provide an intelligent writing method and system, which can quickly and conveniently output trajectory lines with different attributes.

为了解决上述技术问题,本发明实施例的提供一种智能书写方法,包括:In order to solve the above-mentioned technical problems, an embodiment of the present invention provides an intelligent writing method, including:

S11、智能书写笔接收切换信号,并根据所述切换信号生成属性数据包;S11, the intelligent writing pen receives the switching signal, and generates an attribute data packet according to the switching signal;

S12、所述智能书写笔将所述属性数据包发送至节点配置装置;S12, the smart writing pen sends the attribute data packet to the node configuration device;

S13、所述节点配置装置在连接到智能平板后,安装驱动程序,建立与所述智能平板之间的通信网络;S13. After the node configuration device is connected to the smart tablet, a driver is installed to establish a communication network with the smart tablet;

S14、所述节点配置装置接收所述智能书写笔发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板;S14. The node configuration device receives the attribute data packet sent by the smart writing pen, and sends the attribute data packet to the smart tablet through the communication network;

S15、所述智能平板根据所述属性数据包中的属性数据以及检测到的所述智能书写笔的触摸轨迹输出对应的轨迹线条。S15. The smart tablet outputs a corresponding trajectory line according to the attribute data in the attribute data package and the detected touch trajectory of the smart writing pen.

优选地,所述步骤S12具体为:Preferably, the step S12 is specifically:

所述智能书写笔在触摸智能平板时,形成触摸轨迹,并在触摸过程中按照预设的时间间隔生成触发信号,以及根据所述触发信号将所述属性数据包发送至节点配置装置。When the smart writing pen touches the smart tablet, a touch track is formed, a trigger signal is generated according to a preset time interval during the touch process, and the attribute data packet is sent to the node configuration device according to the trigger signal.

优选地,所述属性数据包还包括区别编号;Preferably, the attribute data package further includes a distinction number;

所述步骤S15具体包括:The step S15 specifically includes:

S151、所述智能平板检测所述区别编号是否分配有对应的显示内容存储区;若否,则为所述区别编号分配对应的显示内容存储区;S151. The smart tablet detects whether the difference number is allocated with a corresponding display content storage area; if not, allocates a corresponding display content storage area for the difference number;

S152、所述智能平板根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并根据所述轨迹线条修改所述显示内容存储区中的数据。S152. The smart tablet displays a corresponding trajectory line according to the attribute data in the attribute data package and the detected touch trajectory of the smart writing pen, and modifies the data in the display content storage area according to the trajectory line .

优选地,所述属性数据包还包括数据包类型标识;Preferably, the attribute data packet further includes a data packet type identifier;

所述步骤S152具体为:The step S152 is specifically:

所述智能平板根据所述数据包类型标识对所述属性数据包的类型进行识别;并且,The smart tablet identifies the type of the attribute data packet according to the data packet type identifier; and,

在识别出所述属性数据包为书写类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据存储至所述显示内容存储区;When it is identified that the attribute data packet is a writing type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, and the corresponding trace line is displayed. data is stored in the display content storage area;

在识别出所述属性数据包为笔擦类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据从所述显示内容存储区中删除。When it is identified that the attribute data package is a pen eraser type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, and the corresponding trace line is displayed. The data is deleted from the display content storage area.

优选地,所述属性数据包中的属性数据包括颜色属性数据、笔尖类型属性数据和笔画粗细属性数据中的至少一个。Preferably, the attribute data in the attribute data package includes at least one of color attribute data, pen tip type attribute data and stroke thickness attribute data.

相应的,本发明实施例还提供一种智能书写系统,包括智能书写笔、节点配置装置和智能平板;Correspondingly, an embodiment of the present invention also provides an intelligent writing system, including an intelligent writing pen, a node configuration device, and an intelligent tablet;

智能书写笔用于接收切换信号,并根据所述切换信号生成属性数据包;The intelligent writing pen is used to receive the switching signal, and generate an attribute data packet according to the switching signal;

所述智能书写笔还用于将所述属性数据包发送至节点配置装置;The smart writing pen is also used to send the attribute data packet to the node configuration device;

所述节点配置装置用于在连接到智能平板后,安装驱动程序,建立与所述智能平板之间的通信网络;The node configuration device is used to install a driver after being connected to the smart tablet, and establish a communication network with the smart tablet;

所述节点配置装置还用于接收智能书写笔发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板;The node configuration device is further configured to receive an attribute data packet sent by the smart writing pen, and send the attribute data packet to the smart tablet through the communication network;

所述智能平板用于根据所述属性数据包中的属性数据以及检测到的所述智能书写笔的触摸轨迹输出对应的轨迹线条。The smart tablet is configured to output a corresponding trajectory line according to the attribute data in the attribute data package and the detected touch trajectory of the smart writing pen.

优选地,所述智能书写笔具体用于:Preferably, the smart writing pen is specifically used for:

在触摸智能平板时,形成触摸轨迹,并在触摸过程中按照预设的时间间隔生成触发信号,以及根据所述触发信号将所述属性数据包发送至节点配置装置。When the smart tablet is touched, a touch track is formed, a trigger signal is generated according to a preset time interval during the touch process, and the attribute data packet is sent to the node configuration device according to the trigger signal.

优选地,所述属性数据包还包括区别编号;Preferably, the attribute data package further includes a distinction number;

所述智能平板具体用于:The smart tablet is specifically used for:

检测所述区别编号是否分配有对应的显示内容存储区;若否,则为所述区别编号分配对应的显示内容存储区;以及,Detecting whether the difference number is assigned a corresponding display content storage area; if not, assigning a corresponding display content storage area to the difference number; and,

根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并根据所述轨迹线条修改所述显示内容存储区中的数据。A corresponding trajectory line is displayed according to the attribute data in the attribute data package and the detected touch trajectory of the smart writing pen, and the data in the display content storage area is modified according to the trajectory line.

优选地,所述属性数据包还包括数据包类型标识;Preferably, the attribute data packet further includes a data packet type identifier;

所述智能平板具体用于:The smart tablet is specifically used for:

根据所述数据包类型标识对所述属性数据包的类型进行识别;并且,Identify the type of the attribute data packet according to the data packet type identifier; and,

在识别出所述属性数据包为书写类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据存储至所述显示内容存储区;When it is identified that the attribute data packet is a writing type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, and the corresponding trace line is displayed. data is stored in the display content storage area;

在识别出所述属性数据包为笔擦类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据从所述显示内容存储区中删除。When it is identified that the attribute data package is a pen eraser type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, and the corresponding trace line is displayed. The data is deleted from the display content storage area.

优选地,所述属性数据包中的属性数据包括颜色属性数据、笔尖类型属性数据和笔画粗细属性数据中的至少一个。Preferably, the attribute data in the attribute data package includes at least one of color attribute data, pen tip type attribute data and stroke thickness attribute data.

实施本发明,具有如下有益效果:Implement the present invention, have the following beneficial effects:

本发明实施例提供的智能书写方法及系统,通过智能书写笔接收切换信号,并根据所述切换信号生成属性数据包,以及将所述属性数据包发送至节点配置装置;所述节点配置装置接收所述智能书写笔发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板;所述智能平板根据所述属性数据包中的属性数据以及检测到的所述智能书写笔的触摸轨迹输出对应的轨迹线条。由此可见,本发明能够实现不同属性轨迹线条的快捷方便的输出,有效地提高了书写效率及用户体验。In the smart writing method and system provided by the embodiments of the present invention, a switching signal is received through a smart writing pen, an attribute data packet is generated according to the switching signal, and the attribute data packet is sent to a node configuration device; the node configuration device receives The attribute data packet sent by the smart writing pen, and the attribute data packet is sent to the smart tablet through the communication network; the smart tablet is based on the attribute data in the attribute data packet and the detected The touch track of the smart writing pen outputs the corresponding track line. It can be seen that the present invention can realize fast and convenient output of locus lines with different attributes, and effectively improve writing efficiency and user experience.

附图说明Description of drawings

图1是本发明提供的智能书写方法的一个实施例的流程示意图;1 is a schematic flowchart of an embodiment of an intelligent writing method provided by the present invention;

图2是本发明提供的智能书写系统的一个实施例的结构示意图;2 is a schematic structural diagram of an embodiment of an intelligent writing system provided by the present invention;

图3是本发明实施例提供的智能书写系统的一个优选的实施方式的结构示意图。FIG. 3 is a schematic structural diagram of a preferred embodiment of the smart writing system provided by the embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参阅图1,是本发明提供的智能书写方法的一个实施例的流程示意图,所述智能书写方法至少包括如下步骤:Please refer to FIG. 1 , which is a schematic flowchart of an embodiment of an intelligent writing method provided by the present invention. The intelligent writing method at least includes the following steps:

S11、智能书写笔接收切换信号,并根据所述切换信号生成属性数据包;S11, the intelligent writing pen receives the switching signal, and generates an attribute data packet according to the switching signal;

在本发明实施例中,智能书写笔上设置有按键,以供用户输入切换信号,按键通过I/O接口与智能书写笔的控制模块进行信息交换。响应于相应按键被按下,控制模块进行数据处理,将智能书写笔的相关参数(如属性数据、区别编号和数据包类型标识等)配置为目标参数(用户需要的参数),并对处理结果按照指定协议进行编码,以生成属性数据包。其中,按键还可以用触摸屏或者旋钮来替代。In the embodiment of the present invention, buttons are provided on the smart writing pen for the user to input switching signals, and the buttons exchange information with the control module of the smart writing pen through the I/O interface. In response to the corresponding button being pressed, the control module performs data processing, configures the relevant parameters of the smart writing pen (such as attribute data, difference number and data packet type identification, etc.) as target parameters (parameters required by the user), and processes the results. Encode according to the specified protocol to generate attribute packets. Among them, the keys can also be replaced by a touch screen or a knob.

在本发明实施例中,在智能书写笔和智能平板的通信协议中,专门分配有用来表征智能书写笔的不同属性特征的数据位,例如,定义1个字节为笔迹颜色数据位,1个字节为笔尖类型数据位,1个字节为笔画粗细数据位、1个字节为数据包类型数据位以及1个字节为区别编号数据位等等,具体实施中,根据智能书写笔需求属性的多少来选用不同字节的数据长度,以订立智能书写笔和智能平板之间的通信协议。例如,对于设置有书写颜色切换功能、笔尖类型切换功能、笔画粗细切换功能、书写/笔擦模式切换功能以及区别编号切换功能的多功能智能书写笔,当用户输入书写颜色切换信号时,智能书写笔则修改书写颜色对应的数据位的数据,即智能书写笔内的控制器会根据用户输入的书写颜色切换信号查找到书写颜色对应的寄存器,并修改该寄存器内的属性数据,其他属性设置的原理相同,此处不再赘述。In the embodiment of the present invention, in the communication protocol between the smart writing pen and the smart tablet, data bits used to represent different attributes of the smart writing pen are specially allocated. For example, one byte is defined as the handwriting color data bit, and one Byte is the pen tip type data bit, 1 byte is the stroke thickness data bit, 1 byte is the data packet type data bit, and 1 byte is the distinguishing number data bit, etc. In the specific implementation, according to the requirements of the smart writing pen The number of attributes is used to select data lengths of different bytes to establish a communication protocol between the smart writing pen and the smart tablet. For example, for a multi-functional smart writing pen that is provided with a writing color switching function, a pen tip type switching function, a stroke thickness switching function, a writing/erasing mode switching function, and a distinguishing number switching function, when the user inputs a writing color switching signal, the smart writing The pen modifies the data of the data bit corresponding to the writing color, that is, the controller in the smart writing pen will find the register corresponding to the writing color according to the writing color switching signal input by the user, and modify the attribute data in the register. The principle is the same and will not be repeated here.

S12、所述智能书写笔将所述属性数据包发送至节点配置装置;S12, the smart writing pen sends the attribute data packet to the node configuration device;

在本发明实施例中,智能书写笔上还设置有通信模块,用于跟节点配置装置进行数据通信,其中,通信模块可以有多种选择,如WIFI通信模块、蓝牙通信模块或者2.4G无线通信模块等等。In the embodiment of the present invention, the smart writing pen is further provided with a communication module, which is used for data communication with the node configuration device, wherein the communication module can have various options, such as a WIFI communication module, a Bluetooth communication module or a 2.4G wireless communication modules, etc.

需要说明的是,智能书写笔将属性数据包发送至节点配置装置,可以是在智能书写笔生成属性数据包后直接发送给节点配置装置,也可以在智能书写笔生成属性数据包后等待智能书写笔触摸智能平板,进而由智能书写笔的触摸动作触发智能书写笔将属性数据包发送给节点配置装置。It should be noted that the intelligent writing pen sends the attribute data packet to the node configuration device, which may be directly sent to the node configuration device after the intelligent writing pen generates the attribute data packet, or can wait for intelligent writing after the intelligent writing pen generates the attribute data packet. The pen touches the smart tablet, and the touch action of the smart writing pen triggers the smart writing pen to send the attribute data packet to the node configuration device.

S13、所述节点配置装置在连接到智能平板后,安装驱动程序,建立与所述智能平板之间的通信网络;S13. After the node configuration device is connected to the smart tablet, a driver is installed to establish a communication network with the smart tablet;

在本发明实施例中,节点配置装置集成硬件和软件,硬件上配置有控制模块、存储模块、无线通信模块和USB接口模块。其中,控制模块运行软件程序,用于实现数据的处理;存储单元用于存储可执行的软件程序;无线通信模块用于与智能书写笔进行无线数据通信,以接收智能平板发送的属性数据包;USB接口模块用于与智能平板进行USB数据通信,以将来自智能书写笔的属性数据包发送给智能平板。软件上,可执行软件程序包括无线通信程序和USB通信程序。具体地,节点配置装置按指定协议通过无线通信模块与智能书写笔进行无线数据通信,以接收来自智能书写笔的属性数据包,再通过智能平板的预装驱动(如USB HID设备驱动),建立与智能平板之间的通信链路,进而将接收到属性数据包发送至智能平板。In the embodiment of the present invention, the node configuration device integrates hardware and software, and the hardware is configured with a control module, a storage module, a wireless communication module and a USB interface module. Wherein, the control module runs a software program for realizing data processing; the storage unit is used for storing executable software programs; the wireless communication module is used for wireless data communication with the smart writing pen to receive the attribute data packet sent by the smart tablet; The USB interface module is used for USB data communication with the smart tablet, so as to send the attribute data packet from the smart writing pen to the smart tablet. In software, executable software programs include wireless communication programs and USB communication programs. Specifically, the node configuration device performs wireless data communication with the smart writing pen through the wireless communication module according to the specified protocol, so as to receive the attribute data packet from the smart writing pen, and then establishes a pre-installed driver (such as a USB HID device driver) of the smart tablet. The communication link with the smart tablet, and then send the received attribute data packet to the smart tablet.

S14、所述节点配置装置接收所述智能书写笔发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板;S14. The node configuration device receives the attribute data packet sent by the smart writing pen, and sends the attribute data packet to the smart tablet through the communication network;

需要说明的是,智能书写笔的属性数据包最终是要发送给智能平板,在本发明实施例中,节点配置装置用作智能书写笔和智能平板之间的数据传输媒介,用于实现数据转发。It should be noted that the attribute data packet of the smart writing pen is ultimately to be sent to the smart tablet. In this embodiment of the present invention, the node configuration device is used as a data transmission medium between the smart writing pen and the smart tablet to realize data forwarding .

需要说明的是,在硬件形式上,节点配置装置可以是独立于智能书写笔和智能平板的独立装置,也可以集成在智能书写笔内或智能平板内。It should be noted that, in terms of hardware, the node configuration device may be an independent device independent of the smart writing pen and the smart tablet, or may be integrated in the smart writing pen or the smart tablet.

S15、所述智能平板根据所述属性数据包中的属性数据以及检测到的所述智能书写笔的触摸轨迹输出对应的轨迹线条。S15. The smart tablet outputs a corresponding trajectory line according to the attribute data in the attribute data package and the detected touch trajectory of the smart writing pen.

在本发明实施例中,智能书写笔的书写部位(如笔尖)接触智能平板的触控部位(如触控外屏),并在其上移动,智能书写笔通过节点配置装置将属性数据包发送至智能平板,智能平板收到属性数据包后,对属性数据包进行解析,并根据属性数据包内的属性数据设置其输出属性,同时在智能书写笔的触摸过程中,检测智能书写笔的触点位置,将若干个触点位置结合起来以获取智能书写笔的触摸轨迹,并根据该触摸轨迹输出相应属性的轨迹线条;其中,智能平板检测智能书写笔的触点位置的方式可以选用红外感应检测、电容感应检测或电磁感应检测等。In the embodiment of the present invention, the writing part (such as the pen tip) of the smart writing pen contacts the touch part (such as the touch screen) of the smart tablet, and moves on it, and the smart writing pen sends the attribute data packet through the node configuration device To the smart tablet, after the smart tablet receives the attribute data packet, it parses the attribute data packet, and sets its output attributes according to the attribute data in the attribute data packet. Point position, combine several contact positions to obtain the touch track of the smart writing pen, and output the track lines of the corresponding attributes according to the touch track; among them, the smart tablet can detect the contact position of the smart writing pen by using infrared sensing detection, capacitive induction detection or electromagnetic induction detection, etc.

本发明实施例提供的智能书写方法,通过智能书写笔接收切换信号,并根据所述切换信号生成属性数据包,以及将所述属性数据包发送至节点配置装置;所述节点配置装置接收所述智能书写笔发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板;所述智能平板根据所述属性数据包中的属性数据以及检测到的所述智能书写笔的触摸轨迹输出对应的轨迹线条。由此可见,本发明能够实现不同属性轨迹线条的快捷方便的输出,有效地提高了书写效率及用户体验。In the smart writing method provided by the embodiment of the present invention, a switching signal is received by a smart writing pen, an attribute data packet is generated according to the switching signal, and the attribute data packet is sent to a node configuration device; the node configuration device receives the The attribute data packet sent by the smart writing pen, and the attribute data packet is sent to the smart tablet through the communication network; the smart tablet is based on the attribute data in the attribute data packet and the detected smart writing The touch track of the pen outputs the corresponding track line. It can be seen that the present invention can realize fast and convenient output of locus lines with different attributes, and effectively improve writing efficiency and user experience.

在一个优选的实施方式中,所述步骤S12具体为:In a preferred embodiment, the step S12 is specifically:

所述智能书写笔在触摸智能平板时,形成触摸轨迹,并在触摸过程中按照预设的时间间隔生成触发信号,以及根据所述触发信号将所述属性数据包发送至节点配置装置。When the smart writing pen touches the smart tablet, a touch track is formed, a trigger signal is generated according to a preset time interval during the touch process, and the attribute data packet is sent to the node configuration device according to the trigger signal.

在本实施方式中,智能书写笔的书写部位(如笔尖)设置有触发开关,当智能书写笔书写部位的触发开关被挤压时,触发开关为触发状态,并按照预设的时间间隔生成触发信号,以触发智能书写笔将属性数据包发送给节点配置装置;例如,在智能书写笔接触智能平板的触控部位并在其上移动的过程中,触发开关一直维持触发状态,并按照预设的时间间隔生成触发信号,使得智能书写笔按照预设的时间间隔自动地将当前属性数据包发送给节点配置装置,当智能书写笔的书写部位离开智能平板的触控部位时,触发开关变为关断状态,则智能书写笔停止发送当前属性数据包。In this embodiment, a trigger switch is provided on the writing part of the smart writing pen (such as the tip), when the trigger switch on the writing part of the smart writing pen is squeezed, the trigger switch is in a trigger state, and a trigger switch is generated according to a preset time interval signal to trigger the smart writing pen to send the attribute data packet to the node configuration device; for example, during the process that the smart writing pen contacts the touch part of the smart tablet and moves on it, the trigger switch is always in the trigger state, and according to the preset The trigger signal is generated at the time interval of the smart writing pen, so that the smart writing pen automatically sends the current attribute data packet to the node configuration device according to the preset time interval. When the writing part of the smart writing pen leaves the touch part of the smart tablet, the trigger switch becomes Off state, the smart writing pen stops sending the current attribute data packet.

需要说明的是,针对智能书写笔一次性地发送属性数据给智能平板的技术方案,若在使用过程中,智能平板中途掉电,重新上电后将无法继续识别智能书写笔的属性,因而无法输出正确的轨迹线条,需要人为控制智能书写笔重发属性数据后方可恢复正常,用户体验不佳;而采用根据智能书写笔书写部位的挤压状态来触发智能书写笔按照预设的时间间隔自动地向智能平板发送属性数据包的方式,只要智能书写笔在智能平板上进行书写,其书写部位就会被挤压并按照预设时间间隔自动地向智能平板发送实时属性数据包,相应地,只要智能平板重新上电就能接收到属性数据包,并输出正确的轨迹线条,无需额外操作,操作方便,提高了用户体验。It should be noted that, for the technical solution of the smart writing pen sending attribute data to the smart tablet at one time, if the smart tablet is powered off halfway during use, it will not be able to continue to recognize the properties of the smart writing pen after it is powered on again. To output the correct trajectory line, it is necessary to manually control the smart writing pen to re-send the attribute data before returning to normal, and the user experience is not good; instead, the smart writing pen is triggered automatically according to the squeezing state of the writing part of the smart writing pen according to the preset time interval. In the method of sending attribute data packets to the smart tablet, as long as the smart writing pen writes on the smart tablet, its writing part will be squeezed and automatically send real-time attribute data packets to the smart tablet according to preset time intervals. Correspondingly, As long as the smart tablet is powered on again, it can receive the attribute data packet and output the correct trajectory line, no additional operation is required, the operation is convenient, and the user experience is improved.

在另一个优选的实施方式中,所述步骤S12具体为:In another preferred embodiment, the step S12 is specifically:

所述智能书写笔将所述属性数据包发送至节点配置装置,以及所述智能书写笔触摸所述智能平板,形成触摸轨迹。The smart writing pen sends the attribute data packet to the node configuration device, and the smart writing pen touches the smart tablet to form a touch track.

在本实施方式中,智能书写笔跟节点配置装置建立连接伊始,智能书写笔将生成的属性数据包发送给节点配置装置,在使用过程中,若智能书写笔有对属性数据包进行更新(用户重新输入切换信号,智能书写笔根据切换信号重新生成了属性数据包),则在每次更新完成后向节点配置装置发送更新后的属性数据包。In this embodiment, when the smart writing pen establishes a connection with the node configuration device, the smart writing pen sends the generated attribute data packet to the node configuration device. During use, if the intelligent writing pen updates the attribute data packet (user The switching signal is input again, and the smart writing pen regenerates the attribute data packet according to the switching signal), and the updated attribute data packet is sent to the node configuration device after each update is completed.

另外,在本实施方式中,在智能书写笔生成属性数据包后直接发送给节点配置装置,即使得智能书写笔触摸智能平板的动作与智能书写笔向节点配置装置发送属性数据包的动作没有触发关系。In addition, in this embodiment, after the smart writing pen generates the attribute data packet, it is directly sent to the node configuration device, that is, the action of the smart writing pen touching the smart tablet and the action of the smart writing pen sending the attribute data packet to the node configuration device are not triggered relation.

在一个优选的实施方式中,所述属性数据包还包括区别编号;In a preferred embodiment, the attribute data package further includes a distinction number;

所述步骤S15具体包括:The step S15 specifically includes:

S151、所述智能平板检测所述区别编号是否分配有对应的显示内容存储区;若否,则为所述区别编号分配对应的显示内容存储区;S151. The smart tablet detects whether the difference number is allocated with a corresponding display content storage area; if not, allocates a corresponding display content storage area for the difference number;

S152、所述智能平板根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并根据所述轨迹线条修改所述显示内容存储区中的数据。S152. The smart tablet displays a corresponding trajectory line according to the attribute data in the attribute data package and the detected touch trajectory of the smart writing pen, and modifies the data in the display content storage area according to the trajectory line .

其中,区别编号可以理解为,用户根据实际需求赋予智能书写笔的一个身份标识,用以区分多支智能书写笔。当有多支智能书写笔在一块智能平板上输入笔迹时,只要将每支智能书写笔的区别编号设置得各不相同,智能平板即可根据接收到的各不相同的区别编号将多支智能书写笔一一区分开来,进而将每支智能书写笔与其输入的内容一一对应进行记录。Wherein, the distinguishing number can be understood as an identity identifier given by the user to the smart writing pen according to actual needs, so as to distinguish multiple smart writing pens. When there are multiple smart writing pens to input handwriting on a smart tablet, as long as the distinguishing numbers of each smart writing pens are set to be different, the smart tablet can assign the multiple smart writing pens according to the received different distinguishing numbers. The writing pens are distinguished one by one, and then each smart writing pen is recorded in a one-to-one correspondence with its input content.

在本实施方式中,智能书写笔内可预设有多个区别编号,使得同一支智能书写笔可以在多个预设的区别编号间进行切换。In this embodiment, a plurality of distinct numbers can be preset in the smart writing pen, so that the same smart writing pen can be switched among the plurality of preset distinct numbers.

在本实施方式中,一方面,智能平板根据检测到的所述智能书写笔的触摸轨迹更新所述智能平板的显示内容,在具体实施中,智能书写笔触摸智能平板,智能平板检测智能书写笔的触点位置,并根据触点位置在智能平板的显示模块上对应地显示智能书写笔输入的笔迹内容,以供用户查看。In this embodiment, on the one hand, the smart tablet updates the display content of the smart tablet according to the detected touch track of the smart writing pen. In a specific implementation, the smart writing pen touches the smart tablet, and the smart tablet detects the smart writing pen According to the contact position, the handwriting content input by the smart writing pen is correspondingly displayed on the display module of the smart tablet for the user to view.

在本发明实施例中,另一方面,智能平板根据检测到的所述智能书写笔的触摸轨迹更新与所述区别编号所对应的显示内容存储区的数据,在具体实施中,智能平板接收并解析来自智能书写笔的属性数据包,检测属性数据包中的区别编号是否已分配显示内容存储区,若该区别编号尚未分配显示内容存储区,则为该区别编号分配相应的显示内容存储区,而后,根据智能书写笔的触摸轨迹在智能平板的存储模块(即为智能书写笔分配的显示内容存储区)中记录对应的数据;其中,智能平板为区别编号分配显示内容存储区,可以理解为智能平板为该区别编号所代表的智能书写笔分配显示内容存储区,对于一支智能书写笔来说,其对应的显示内容存储区中存储的数据为智能平板上显示的该智能书写笔输入的笔迹内容所对应的数据,例如一支智能书写笔在智能平板的左上角输入了一个黑色的字母“A”,则该智能书写笔在其对应的显示内容存储区中存储的数据,即为该黑色的字母“A”所对应的数据(包括触点位置数据和相应属性数据)。In the embodiment of the present invention, on the other hand, the smart tablet updates the data of the display content storage area corresponding to the difference number according to the detected touch track of the smart writing pen. In a specific implementation, the smart tablet receives and Parse the attribute data packet from the smart writing pen, and detect whether the difference number in the attribute data packet has been allocated a display content storage area. Then, according to the touch track of the smart writing pen, the corresponding data is recorded in the storage module of the smart tablet (that is, the display content storage area allocated for the smart writing pen); wherein, the smart tablet allocates the display content storage area for the distinguishing number, which can be understood as The smart tablet allocates a display content storage area for the smart writing pen represented by the distinguishing number. For a smart writing pen, the data stored in the corresponding display content storage area is the data input by the smart writing pen displayed on the smart tablet. The data corresponding to the handwriting content, for example, a smart writing pen inputs a black letter "A" in the upper left corner of the smart tablet, then the data stored by the smart writing pen in its corresponding display content storage area is the Data corresponding to the black letter "A" (including contact position data and corresponding attribute data).

需要说明的是,智能平板给区别编号分配显示内容存储区时,还可以根据输入笔迹的时间进一步将显示内容存储区细分。例如,智能书写笔01在2016年8月7日是用户1使用,2016年8月8日是用户2使用,为了区分用户1和用户2输入的笔迹内容,2016年8月7日时,智能平板为智能书写笔01分配一个显示内容存储区,2016年8月8日时,智能平板为智能书写笔01分配另一个显示内容存储区。It should be noted that, when the smart tablet assigns the display content storage area to the distinguishing number, the display content storage area may be further subdivided according to the time of inputting handwriting. For example, smart writing pen 01 was used by user 1 on August 7, 2016, and used by user 2 on August 8, 2016. In order to distinguish the handwriting content input by user 1 and user 2, on August 7, 2016, the smart writing pen was used by user 2. The tablet allocates a display content storage area for the smart writing pen 01. On August 8, 2016, the smart tablet allocates another display content storage area for the smart writing pen 01.

本实施方式通过智能书写笔向节点配置装置发送包含有区别编号的属性数据包,且节点配置装置将属性数据包转发至智能平板,智能平板能够根据检测到的智能书写笔的触摸轨迹更新所述智能平板的显示内容以及与所述区别编号所对应的显示内容存储区的数据。可见,当有多支智能书写笔在一块智能平板上输入笔迹时,智能平板能够将每支智能书写笔与其输入的内容一一对应进行记录,进而降低了对活动记录进行整理的难度,提高了后期整理的效率,且有利于后期阅读者清晰地把握活动过程中不同使用者提供的讯息;并且,区别编号可在智能书写笔端进行切换,由此,若在活动过程中需要N支智能书写笔同时进行笔迹输入,只要现场有N支可用的智能书写笔,则可根据用户的实际需求将每支智能书写笔的区别编号设置得各不相同,以确保在输入过程中智能平板能将这N支智能书写笔一一区分开来,从而将每支智能书写笔与其输入的内容一一对应进行记录。In this embodiment, an attribute data packet containing a distinct number is sent to the node configuration device through the smart writing pen, and the node configuration device forwards the attribute data packet to the smart tablet, and the smart tablet can update the described The display content of the smart tablet and the data of the display content storage area corresponding to the difference number. It can be seen that when multiple smart writing pens input handwriting on a smart tablet, the smart tablet can record each smart writing pen in a one-to-one correspondence with its input content, thereby reducing the difficulty of sorting out activity records and improving The efficiency of post-organization is helpful for post-readers to clearly grasp the information provided by different users during the activity; and the different numbers can be switched on the smart writing pen. Therefore, if N smart writing pens are required during the activity For handwriting input at the same time, as long as there are N available smart writing pens on site, the distinguishing number of each smart writing pen can be set to be different according to the actual needs of the user, so as to ensure that the smart tablet can use the N intelligent writing pen during the input process. The intelligent writing pens are distinguished one by one, so that each intelligent writing pen is recorded in a one-to-one correspondence with its input content.

在一个优选的实施方式中,所述属性数据包还包括数据包类型标识;In a preferred embodiment, the attribute data packet further includes a data packet type identifier;

所述步骤S152具体为:The step S152 is specifically:

所述智能平板根据所述数据包类型标识对所述属性数据包的类型进行识别;并且,The smart tablet identifies the type of the attribute data packet according to the data packet type identifier; and,

在识别出所述属性数据包为书写类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据存储至所述显示内容存储区;When it is identified that the attribute data packet is a writing type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, and the corresponding trace line is displayed. data is stored in the display content storage area;

在识别出所述属性数据包为笔擦类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据从所述显示内容存储区中删除。When it is identified that the attribute data package is a pen eraser type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, and the corresponding trace line is displayed. The data is deleted from the display content storage area.

需要说明的是,智能书写笔触摸智能平板的操作可能是书写操作,也有可能是擦除操作,因此,针对上述两种情况,需采用不同的更新方式,来更新智能平板的显示内容以及与所述区别编号所对应的显示内容存储区的数据。It should be noted that the operation of the smart writing pen touching the smart tablet may be a writing operation or an erasing operation. Therefore, for the above two situations, different update methods are required to update the display content of the smart tablet and the The data in the display content storage area corresponding to the distinction number.

在本实施方式中,智能书写笔发出的属性数据包中还包括数据包类型标识,智能平板接收并解析目标数包。当根据数据包标识识别出属性数据包为书写类型时,即按照“书写规则”更新显示内容以及与区别编号所对的显示内容存储区中的数据,当识别出属性数据包为笔擦类型时,则按照“笔擦规则”更新显示内容以及与区别编号所对应的显示内容存储区中的数据。在本实施方式中,通过智能书写笔和智能平板的数据交互,使得智能书写笔可具备“书写”和“笔擦”两个功能,从而,在笔迹输入过程中,无需额外配备专用的笔擦工具或调用智能平板中的软件进行擦除,能方便快捷地实现书写及擦除,提高了用户体验,且降低了用户的使用成本。In this embodiment, the attribute data packet sent by the smart writing pen further includes a data packet type identifier, and the smart tablet receives and parses the target data packet. When the attribute data packet is identified as the writing type according to the data packet identifier, the display content and the data in the display content storage area corresponding to the difference number are updated according to the "writing rules". When the attribute data packet is identified as the pen erasing type , the display content and the data in the display content storage area corresponding to the difference number are updated according to the "pen erase rule". In this embodiment, through the data interaction between the smart writing pen and the smart tablet, the smart writing pen can have two functions of "writing" and "wiping", so that in the process of handwriting input, there is no need to equip a special pen and wiper. The tool or the software in the smart tablet can be called for erasing, which can realize writing and erasing conveniently and quickly, which improves the user experience and reduces the use cost of the user.

需要说明的是,在识别出所述属性数据包为书写类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据存储至所述显示内容存储区,指的是,所述智能平板在识别出所述属性数据包为书写类型时,根据检测到的所述智能书写笔的触摸轨迹获取新增内容,并根据所述新增内容更新显示内容以及与所述区别编号所对应的显示内容存储区的数据。It should be noted that when it is identified that the attribute data packet is a writing type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, and the The data corresponding to the track line is stored in the display content storage area, which means that when the smart tablet recognizes that the attribute data packet is a writing type, it acquires a new value according to the detected touch track of the smart writing pen. The content is added, and the display content and the data in the display content storage area corresponding to the difference number are updated according to the newly added content.

需要说明的是,在识别出所述属性数据包为笔擦类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔的触摸轨迹显示对应的轨迹线条,指的是,根据检测到的智能书写笔的触摸轨迹获取擦除内容,并根据擦除内容更新显示内容,具体地,智能平板根据智能书写笔的触摸轨迹显示某种属性的笔迹内容(如显示背景色的笔迹内容),用以覆盖需要被擦除的已有笔迹内容,即经更新后智能平板显示的内容为经擦除后剩下的内容。另外,将所述轨迹线条所对应的数据从所述显示内容存储区中删除,指的是,根据擦除内容更新与区别编号所对应的显示内容存储区的数据,具体地,将需要被擦除的已有笔迹内容所对应的数据从相应显示内容存储区中删除,使得显示内容存储区中存储的数据为更新后智能平板显示的内容所对应的数据。其中,将需要被擦除的已有笔迹内容所对应的数据从相应显示内容存储区中删除,具体为,获取检测到的触摸轨迹的触点位置数据,进而删除相应显示内容存储区中与触摸轨迹的触点位置相同的笔迹内容对应的数据。It should be noted that when it is identified that the attribute data packet is a pen eraser type, the corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of the smart writing pen, referring to the , obtain the erasing content according to the detected touch track of the smart writing pen, and update the display content according to the erasing content. Specifically, the smart tablet displays the handwriting content of a certain attribute (such as displaying background color handwriting content) to cover the existing handwriting content that needs to be erased, that is, the content displayed on the smart tablet after the update is the content remaining after erasing. In addition, deleting the data corresponding to the track line from the display content storage area refers to updating the data in the display content storage area corresponding to the difference number according to the erased content. Specifically, it needs to be erased. The data corresponding to the removed existing handwriting content is deleted from the corresponding display content storage area, so that the data stored in the display content storage area is the data corresponding to the content displayed by the updated smart tablet. The data corresponding to the existing handwriting content that needs to be erased is deleted from the corresponding display content storage area. Specifically, the contact position data of the detected touch track is obtained, and then the corresponding display content storage area is deleted with touch The data corresponding to the handwriting content with the same contact position of the track.

需要说明的是,智能平板根据数据包类型标识对属性数据包的类型进行识别,具体为,当检测到数据包类型标识为第一预设值时,判定属性数据包为笔擦类型,即智能书写笔的当前工作模式为笔擦模式;当检测到数据包类型标识为第二预设值时,判断属性数据包为书写类型,即智能书写笔的当前工作模式为书写模式。It should be noted that the smart tablet identifies the type of the attribute data packet according to the data packet type identifier. Specifically, when it is detected that the data packet type identifier is the first preset value, it is determined that the attribute data packet is of the pen erase type, that is, the smart tablet. The current working mode of the writing pen is the pen erasing mode; when it is detected that the data packet type identifier is the second preset value, it is determined that the attribute data packet is the writing type, that is, the current working mode of the intelligent writing pen is the writing mode.

需要说明的是,当有多支智能书写笔在一块智能平板上输入笔迹时,每支智能书写笔分别通过节点配置装置向智能平板发送其各自的属性数据包,相应地,智能平板收到多个属性数据包后,分别对每个属性数据包进行解析,分别检测每个区别编号是否分配有对应的显示内容存储区,对于没有分配有显示内容存储区的区别编号,则为其分配对应的显示内容存储区。此后,在智能书写笔的触摸过程中,智能平板分别检测每支智能书写笔的触点位置,并根据每支智能书写笔的触点位置更新智能平板所显示的每支智能书写笔输入的笔迹内容,以及根据每支智能书写笔的触点位置对应更新其区别编号所对应的显示内容存储区中的数据;其中,智能平板检测智能书写笔的触点位置的方式可以选用红外感应检测、电容感应检测或电磁感应检测等,且在多支智能书写笔触摸智能平板的过程中,智能平板可根据每支智能书写笔当前输入笔迹所在的区域来辅助区分多支智能书写笔分别输入的笔迹内容,例如当有三支智能书写笔在智能平板上输入笔迹时,三支笔的区别编号分别为01、11和10,则可将一块智能平板分为左边区域、中间区域和右边区域,当智能书写笔01首次落笔时,智能平板会记录下该支笔的区别编号和该支笔落笔的触点位置,若智能书写笔01首次落笔的位置在左边区域,此后,若检测到触点位置在左边区域的输入笔迹即认为是智能书写笔01的输入笔迹;对智能书写笔为11和10的处理方法类似,此处不加赘述。It should be noted that when multiple smart writing pens input handwriting on a smart tablet, each smart writing pen sends its own attribute data packet to the smart tablet through the node configuration device. After each attribute data packet is allocated, each attribute data packet is parsed separately to detect whether each distinguishing number is allocated with a corresponding display content storage area. Displays the content store. After that, during the touch process of the smart writing pen, the smart tablet detects the contact position of each smart writing pen respectively, and updates the handwriting input by each smart writing pen displayed on the smart tablet according to the contact position of each smart writing pen content, and correspondingly update the data in the display content storage area corresponding to the distinguishing number according to the contact position of each smart writing pen; among them, the smart tablet can detect the contact position of the smart writing pen by using infrared induction detection, capacitive Induction detection or electromagnetic induction detection, etc., and in the process of multiple smart writing pens touching the smart tablet, the smart tablet can assist in distinguishing the handwriting content input by multiple smart writing pens according to the area where each smart writing pen is currently inputting handwriting. For example, when there are three smart writing pens to input handwriting on the smart tablet, and the different numbers of the three pens are 01, 11 and 10 respectively, then a smart tablet can be divided into a left area, a middle area and a right area. When the pen 01 drops the pen for the first time, the smart tablet will record the unique number of the pen and the contact position of the pen. The input handwriting in the area is considered to be the input handwriting of the smart writing pen 01; the processing methods for the smart writing pen 11 and 10 are similar, and will not be repeated here.

优选地,所述属性数据包中的属性数据包括颜色属性数据、笔尖类型属性数据和笔画粗细属性数据中的至少一个。Preferably, the attribute data in the attribute data package includes at least one of color attribute data, pen tip type attribute data and stroke thickness attribute data.

相应的,本发明还提供一种智能书写系统,能够实现上述实施例所提供的智能书写方法的所有流程。Correspondingly, the present invention also provides an intelligent writing system, which can realize all the processes of the intelligent writing method provided by the above embodiments.

请参阅图2,是本发明提供的智能书写系统的一个实施例的结构示意图,包括:智能书写笔40、节点配置装置50和智能平板60;Please refer to FIG. 2 , which is a schematic structural diagram of an embodiment of a smart writing system provided by the present invention, including: asmart writing pen 40 , anode configuration device 50 and asmart tablet 60 ;

智能书写笔40用于接收切换信号,并根据所述切换信号生成属性数据包;Thesmart writing pen 40 is used for receiving the switching signal, and generating an attribute data packet according to the switching signal;

所述智能书写笔40还用于将所述属性数据包发送至节点配置装置50;Thesmart writing pen 40 is further configured to send the attribute data packet to thenode configuration device 50;

所述节点配置装置50用于在连接到智能平板60后,安装驱动程序,建立与所述智能平板60之间的通信网络;Thenode configuration device 50 is configured to install a driver after being connected to thesmart tablet 60, and establish a communication network with thesmart tablet 60;

所述节点配置装置50还用于接收智能书写笔40发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板60;Thenode configuration device 50 is further configured to receive an attribute data packet sent by thesmart writing pen 40, and send the attribute data packet to thesmart tablet 60 through the communication network;

所述智能平板60用于根据所述属性数据包中的属性数据以及检测到的所述智能书写笔40的触摸轨迹输出对应的轨迹线条。Thesmart tablet 60 is configured to output a corresponding trajectory line according to the attribute data in the attribute data package and the detected touch trajectory of thesmart writing pen 40 .

具体地,在本发明实施例中,所述智能书写笔40包括属性数据包生成模块和属性数据包发送模块;所述属性数据包生成模块用于接收切换信号,并根据所述切换信号生成属性数据包;所述属性数据包发送模块用于将所述属性数据包发送至节点配置装置50。Specifically, in this embodiment of the present invention, thesmart writing pen 40 includes an attribute data packet generation module and an attribute data packet transmission module; the attribute data packet generation module is configured to receive a switching signal, and generate an attribute according to the switching signal data packet; the attribute data packet sending module is configured to send the attribute data packet to thenode configuration device 50 .

具体地,在本发明实施例中,所述节点配置装置50包括通信建立模块和数据包转发模块;所述通信建立模块用于在连接到智能平板60后,安装驱动程序,建立与所述智能平板60之间的通信网络;所述数据包转发模块用于接收智能书写笔40发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板60。Specifically, in the embodiment of the present invention, thenode configuration device 50 includes a communication establishment module and a data packet forwarding module; the communication establishment module is used to install a driver after connecting to thesmart tablet 60, and establish a connection with thesmart tablet 60. A communication network betweentablets 60; the data packet forwarding module is configured to receive the attribute data packet sent by thesmart writing pen 40, and send the attribute data packet to thesmart tablet 60 through the communication network.

具体地,在本发明实施例中,所述智能平板60包括轨迹线条输出模块;所述轨迹线条输出模块用于根据所述属性数据包中的属性数据以及检测到的所述智能书写笔40的触摸轨迹输出对应的轨迹线条。Specifically, in this embodiment of the present invention, thesmart tablet 60 includes a trajectory line output module; the trajectory line output module is configured to output a module according to the attribute data in the attribute data package and the detected data of thesmart writing pen 40 Touch the trace to output the corresponding trace line.

在本发明实施例中,智能书写笔40上设置有按键,以供用户输入切换信号,按键通过I/O接口与智能书写笔40的控制模块进行信息交换。响应于相应按键被按下,控制模块进行数据处理,将智能书写笔40的相关参数(如属性数据、区别编号和数据包类型标识等)配置为目标参数,并对处理结果按照指定协议进行编码,以生成属性数据包。其中,按键还可以用触摸屏或者旋钮来替代。In the embodiment of the present invention, thesmart writing pen 40 is provided with buttons for the user to input switching signals, and the buttons exchange information with the control module of thesmart writing pen 40 through the I/O interface. In response to the corresponding button being pressed, the control module performs data processing, configures the relevant parameters of the smart writing pen 40 (such as attribute data, distinction number and data packet type identification, etc.) as target parameters, and encodes the processing result according to the specified protocol. , to generate an attribute data package. Among them, the keys can also be replaced by a touch screen or a knob.

在本发明实施例中,在智能书写笔40和智能平板60的通信协议中,专门分配有用来表征智能书写笔40的不同属性特征的数据位,例如,定义1个字节为笔迹颜色数据位,1个字节为笔尖类型数据位,1个字节为笔画粗细数据位、1个字节为数据包类型数据位以及1个字节为区别编号数据位等等,具体实施中,根据智能书写笔40需求属性的多少来选用不同字节的数据长度,以订立智能书写笔40和智能平板60之间的通信协议。例如,对于设置有书写颜色切换功能、笔尖类型切换功能、笔画粗细切换功能、书写/笔擦模式切换功能以及区别编号切换功能的多功能智能书写笔40,当用户输入书写颜色切换信号时,智能书写笔40则修改书写颜色对应的数据位的数据,即智能书写笔40内的控制器会根据用户输入的书写颜色切换信号查找到书写颜色对应的寄存器,并修改该寄存器内的属性数据,其他属性设置的原理相同,此处不再赘述。In the embodiment of the present invention, in the communication protocol between thesmart writing pen 40 and thesmart tablet 60, data bits used to represent different attributes of thesmart writing pen 40 are specially allocated, for example, 1 byte is defined as the handwriting color data bit , 1 byte is the pen tip type data bit, 1 byte is the stroke thickness data bit, 1 byte is the data packet type data bit, and 1 byte is the distinguishing number data bit, etc. In the specific implementation, according to the intelligent The number of attributes required by the writingpen 40 is used to select data lengths of different bytes to establish a communication protocol between thesmart writing pen 40 and thesmart tablet 60 . For example, for a multifunctionalsmart writing pen 40 provided with a writing color switching function, a pen tip type switching function, a stroke thickness switching function, a writing/erasing mode switching function, and a distinguishing number switching function, when the user inputs a writing color switching signal, the intelligent The writingpen 40 modifies the data of the data bit corresponding to the writing color, that is, the controller in thesmart writing pen 40 will find the register corresponding to the writing color according to the writing color switching signal input by the user, and modify the attribute data in the register, and other The principle of property setting is the same, and will not be repeated here.

在本发明实施例中,智能书写笔40上还设置有通信模块,用于跟节点配置装置50进行数据通信,其中,通信模块可以有多种选择,如WIFI通信模块、蓝牙通信模块或者2.4G无线通信模块等等。In the embodiment of the present invention, thesmart writing pen 40 is further provided with a communication module for performing data communication with thenode configuration device 50, wherein the communication module can be selected from various options, such as a WIFI communication module, a Bluetooth communication module or a 2.4G communication module. Wireless communication module, etc.

需要说明的是,智能书写笔40将属性数据包发送至节点配置装置50,可以是在智能书写笔40生成属性数据包后直接发送给节点配置装置50,也可以在智能书写笔40生成属性数据包后等待智能书写笔40触摸智能平板60,进而由智能书写笔40的触摸动作触发智能书写笔40将属性数据包发送给节点配置装置50。It should be noted that, thesmart writing pen 40 sends the attribute data packet to thenode configuration device 50, which can be directly sent to thenode configuration device 50 after thesmart writing pen 40 generates the attribute data packet, or thesmart writing pen 40 can generate the attribute data After the package, wait for thesmart writing pen 40 to touch thesmart tablet 60 , and then the touch action of thesmart writing pen 40 triggers thesmart writing pen 40 to send the attribute data packet to thenode configuration device 50 .

需要说明的是,智能书写笔40的属性数据包最终是要发送给智能平板60,在本发明实施例中,节点配置装置50用作智能书写笔40和智能平板60之间的数据传输媒介,用于实现数据转发。It should be noted that the attribute data packet of thesmart writing pen 40 is ultimately sent to thesmart tablet 60. In this embodiment of the present invention, thenode configuration device 50 is used as a data transmission medium between thesmart writing pen 40 and thesmart tablet 60. Used to implement data forwarding.

在一种优选的实施方式中,节点配置装置50集成硬件和软件,硬件上配置有控制模块、存储模块、无线通信模块和USB接口模块。其中,控制模块运行软件程序,用于实现数据的处理;存储单元用于存储可执行的软件程序;无线通信模块用于与智能书写笔40进行无线数据通信,以接收智能平板60发送的属性数据包;USB接口模块用于与智能平板60进行USB数据通信,以将来自智能书写笔40的属性数据包发送给智能平板60。软件上,可执行软件程序包括无线通信程序和USB通信程序。具体地,节点配置装置50按指定协议通过无线通信模块与智能书写笔40进行无线数据通信,以接收来自智能书写笔40的属性数据包,再通过智能平板60的预装驱动(如USB HID设备驱动),建立与智能平板60之间的通信链路,进而将接收到属性数据包发送至智能平板60。In a preferred embodiment, thenode configuration device 50 integrates hardware and software, and the hardware is configured with a control module, a storage module, a wireless communication module and a USB interface module. The control module runs a software program for data processing; the storage unit is used for storing executable software programs; the wireless communication module is used for wireless data communication with thesmart writing pen 40 to receive attribute data sent by thesmart tablet 60 package; the USB interface module is used for performing USB data communication with thesmart tablet 60 to send the attribute data package from thesmart writing pen 40 to thesmart tablet 60 . In software, executable software programs include wireless communication programs and USB communication programs. Specifically, thenode configuration device 50 performs wireless data communication with thesmart writing pen 40 through the wireless communication module according to the specified protocol, so as to receive the attribute data packet from thesmart writing pen 40, and then use the pre-installed driver of the smart tablet 60 (such as a USB HID device drive), establish a communication link with thesmart tablet 60, and then send the received attribute data packet to thesmart tablet 60.

需要说明的是,在硬件形式上,节点配置装置50可以是独立于智能书写笔40和智能平板60的独立装置,也可以集成在智能书写笔40内或智能平板60内。It should be noted that, in terms of hardware, thenode configuration device 50 may be an independent device independent of thesmart writing pen 40 and thesmart tablet 60 , or may be integrated in thesmart writing pen 40 or thesmart tablet 60 .

在本发明实施例中,智能书写笔40的书写部位(如笔尖)接触智能平板60的触控部位(如触控外屏),并在其上移动,智能书写笔40通过节点配置装置50将属性数据包发送至智能平板60,智能平板60收到属性数据包后,对属性数据包进行解析,并根据属性数据包内的属性数据设置其输出属性,同时在智能书写笔40的触摸过程中,检测智能书写笔40的触点位置,将若干个触点位置结合起来以获取智能书写笔40的触摸轨迹,并根据该触摸轨迹输出相应属性的轨迹线条;其中,智能平板60检测智能书写笔40的触点位置的方式可以选用红外感应检测、电容感应检测或电磁感应检测等。In the embodiment of the present invention, the writing part (such as the tip) of thesmart writing pen 40 contacts the touch part (such as the touch screen) of thesmart tablet 60 and moves thereon, and thesmart writing pen 40 uses thenode configuration device 50 to set the The attribute data packet is sent to thesmart tablet 60. After receiving the attribute data packet, thesmart tablet 60 parses the attribute data packet, and sets its output attribute according to the attribute data in the attribute data packet. , detect the contact position of thesmart writing pen 40, combine several contact positions to obtain the touch track of thesmart writing pen 40, and output the track line of the corresponding attribute according to the touch track; wherein, thesmart tablet 60 detects the smart writing pen The method of the contact position of 40 can be selected from infrared induction detection, capacitive induction detection or electromagnetic induction detection.

需要说明的是,智能书写系统中智能书写笔40的数量可以为大于或等于1的任意正整数,另外,智能书写笔40和节点配置装置50可以一一对应,或者,多支智能书写笔40对应一个节点配置装置50。例如,智能书写系统具有两支智能书写笔40和一个智能平板60,且两支智能书写笔40对应一个节点配置装置50。It should be noted that the number of the smart writing pens 40 in the smart writing system can be any positive integer greater than or equal to 1. In addition, the smart writing pens 40 and thenode configuration device 50 can be in one-to-one correspondence, or multiple smart writing pens 40 Thedevice 50 is configured corresponding to one node. For example, the smart writing system has two smart writing pens 40 and onesmart tablet 60 , and the two smart writing pens 40 correspond to onenode configuration device 50 .

本发明实施例提供的智能书写系统,通过智能书写笔40接收切换信号,并根据所述切换信号生成属性数据包,以及将所述属性数据包发送至节点配置装置50;所述节点配置装置50接收所述智能书写笔40发送的属性数据包,并经过所述通信网络将所述属性数据包发送给所述智能平板60;所述智能平板60根据所述属性数据包中的属性数据以及检测到的所述智能书写笔40的触摸轨迹输出对应的轨迹线条。由此可见,本发明能够实现不同属性轨迹线条的快捷方便的输出,有效地提高了书写效率及用户体验。In the smart writing system provided by the embodiment of the present invention, a switching signal is received by thesmart writing pen 40, an attribute data packet is generated according to the switching signal, and the attribute data packet is sent to thenode configuration device 50; thenode configuration device 50 Receive the attribute data packet sent by thesmart writing pen 40, and send the attribute data packet to thesmart tablet 60 through the communication network; thesmart tablet 60 detects the attribute data according to the attribute data in the attribute data packet and The obtained touch track of thesmart writing pen 40 outputs a corresponding track line. It can be seen that the present invention can realize fast and convenient output of locus lines with different attributes, and effectively improve writing efficiency and user experience.

在一个优选的实施方式中,所述智能书写笔40具体用于:In a preferred embodiment, thesmart writing pen 40 is specifically used for:

在触摸智能平板60时,形成触摸轨迹,并在触摸过程中按照预设的时间间隔生成触发信号,以及根据所述触发信号将所述属性数据包发送至节点配置装置50。When thesmart tablet 60 is touched, a touch track is formed, a trigger signal is generated at preset time intervals during the touch process, and the attribute data packet is sent to thenode configuration device 50 according to the trigger signal.

具体地,在本实施方式中,所述智能书写笔40的属性数据包发送模块具体用于:在触摸智能平板60时,形成触摸轨迹,并在触摸过程中按照预设的时间间隔生成触发信号,以及根据所述触发信号将所述属性数据包发送至节点配置装置50。Specifically, in this embodiment, the attribute data packet sending module of thesmart writing pen 40 is specifically used to: form a touch track when touching thesmart tablet 60, and generate a trigger signal according to a preset time interval during the touching process , and send the attribute data packet to thenode configuration device 50 according to the trigger signal.

在本实施方式中,智能书写笔40的书写部位(如笔尖)设置有触发开关,当智能书写笔40书写部位的触发开关被挤压时,触发开关为触发状态,并按照预设的时间间隔生成触发信号,以触发智能书写笔40将属性数据包发送给节点配置装置50;例如,在智能书写笔40接触智能平板60的触控部位并在其上移动的过程中,触发开关一直维持触发状态,并按照预设的时间间隔生成触发信号,使得智能书写笔40按照预设的时间间隔自动地将当前属性数据包发送给节点配置装置50,当智能书写笔40的书写部位离开智能平板60的触控部位时,触发开关变为关断状态,则智能书写笔40停止发送当前属性数据包。In this embodiment, a trigger switch is provided on the writing part (such as the pen tip) of thesmart writing pen 40. When the trigger switch on the writing part of thesmart writing pen 40 is squeezed, the trigger switch is in a trigger state, and the trigger switch is activated at a preset time interval. Generate a trigger signal to trigger thesmart writing pen 40 to send the attribute data packet to thenode configuration device 50; for example, in the process that thesmart writing pen 40 contacts the touch part of thesmart tablet 60 and moves on it, the trigger switch is always triggered state, and generate a trigger signal according to the preset time interval, so that thesmart writing pen 40 automatically sends the current attribute data packet to thenode configuration device 50 according to the preset time interval. When the writing part of thesmart writing pen 40 leaves thesmart tablet 60 When the touch part is touched, the trigger switch is turned off, and thesmart writing pen 40 stops sending the current attribute data packet.

需要说明的是,针对智能书写笔40一次性地发送属性数据给智能平板60的技术方案,若在使用过程中,智能平板60中途掉电,重新上电后将无法继续识别智能书写笔40的属性,因而无法输出正确的轨迹线条,需要人为控制智能书写笔40重发属性数据后方可恢复正常,用户体验不佳;而采用根据智能书写笔40书写部位的挤压状态来触发智能书写笔40按照预设的时间间隔自动地向智能平板60发送属性数据包的方式,只要智能书写笔40在智能平板60上进行书写,其书写部位就会被挤压并按照预设时间间隔自动地向智能平板60发送实时属性数据包,相应地,只要智能平板60重新上电就能接收到属性数据包,并输出正确的轨迹线条,无需额外操作,操作方便,提高了用户体验。It should be noted that, for the technical solution that thesmart writing pen 40 sends attribute data to thesmart tablet 60 at one time, if thesmart tablet 60 is powered off in the middle of use, it will not be able to continue to recognize the status of thesmart writing pen 40 after it is powered on again. Therefore, the correct trajectory line cannot be output, and it is necessary to manually control theintelligent writing pen 40 to re-send the attribute data before returning to normal, and the user experience is not good; and theintelligent writing pen 40 is triggered according to the squeezing state of the writing part of theintelligent writing pen 40. In a way of automatically sending attribute data packets to thesmart tablet 60 at preset time intervals, as long as thesmart writing pen 40 writes on thesmart tablet 60, the writing part of the writingpen 40 will be squeezed and automatically sent to thesmart tablet 60 at preset time intervals. Thetablet 60 sends real-time attribute data packets. Accordingly, as long as thesmart tablet 60 is powered on again, it can receive the attribute data packets and output correct trajectory lines without additional operation, which is convenient to operate and improves user experience.

在另一个优选的实施方式中,所述智能书写笔40具体用于:将所述属性数据包发送至节点配置装置50,以及触摸所述智能平板60,形成触摸轨迹。In another preferred embodiment, thesmart writing pen 40 is specifically used for: sending the attribute data packet to thenode configuration device 50 and touching thesmart tablet 60 to form a touch track.

具体地,在本实施方式中,所述智能书写笔40的属性数据包发送模块具体用于:将所述属性数据包发送至节点配置装置50,以及触摸所述智能平板60,形成触摸轨迹。Specifically, in this embodiment, the attribute data packet sending module of thesmart writing pen 40 is specifically configured to: send the attribute data packet to thenode configuration device 50 and touch thesmart tablet 60 to form a touch track.

在本实施方式中,智能书写笔40跟节点配置装置50建立连接伊始,智能书写笔40将生成的属性数据包发送给节点配置装置50,在使用过程中,若智能书写笔40有对属性数据包进行更新(用户重新输入切换信号,智能书写笔40根据切换信号重新生成了属性数据包),则在每次更新完成后向节点配置装置50发送更新后的属性数据包。In this embodiment, when thesmart writing pen 40 establishes a connection with thenode configuration device 50, thesmart writing pen 40 sends the generated attribute data packet to thenode configuration device 50. During the use process, if thesmart writing pen 40 has a pair of attribute data When the package is updated (the user re-inputs the switching signal, and thesmart writing pen 40 regenerates the attribute data package according to the switching signal), the updated attribute data package is sent to thenode configuration device 50 after each update is completed.

另外,在本实施方式中,在智能书写笔40生成属性数据包后直接发送给节点配置装置50,即使得智能书写笔40触摸智能平板60的动作与智能书写笔40向节点配置装置50发送属性数据包的动作没有触发关系。In addition, in this embodiment, after thesmart writing pen 40 generates the attribute data packet, it is directly sent to thenode configuration device 50 , that is, the action of thesmart writing pen 40 touching thesmart tablet 60 and thesmart writing pen 40 send the attribute to thenode configuration device 50 . The action of the packet has no trigger relationship.

在一个优选的实施方式中,所述属性数据包还包括区别编号;In a preferred embodiment, the attribute data package further includes a distinction number;

所述智能平板60具体用于:Thesmart tablet 60 is specifically used for:

检测所述区别编号是否分配有对应的显示内容存储区;若否,则为所述区别编号分配对应的显示内容存储区;以及,Detecting whether the difference number is assigned a corresponding display content storage area; if not, assigning a corresponding display content storage area to the difference number; and,

根据所述属性数据包中的属性数据及检测到的所述智能书写笔40的触摸轨迹显示对应的轨迹线条,并根据所述轨迹线条修改所述显示内容存储区中的数据。A corresponding trajectory line is displayed according to the attribute data in the attribute data package and the detected touch trajectory of thesmart writing pen 40, and the data in the display content storage area is modified according to the trajectory line.

具体地,在本实施方式中,所述智能平板60的轨迹线条输出模块具体包括存储区检测单元和轨迹线条输出单元;所述存储区检测单元用于检测所述区别编号是否分配有对应的显示内容存储区,并在检测到所述区别编号未分配有显示内容存储区时,为所述区别编号分配对应的显示内容存储区;所述轨迹线条输出单元根据所述属性数据包中的属性数据及检测到的所述智能书写笔40的触摸轨迹显示对应的轨迹线条,并根据所述轨迹线条修改所述显示内容存储区中的数据。Specifically, in this embodiment, the track line output module of thesmart tablet 60 specifically includes a storage area detection unit and a track line output unit; the storage area detection unit is used to detect whether the difference number is assigned a corresponding display content storage area, and when it is detected that the difference number is not allocated with a display content storage area, a corresponding display content storage area is allocated for the difference number; the track line output unit is based on the attribute data in the attribute data package. and the detected touch track of thesmart writing pen 40 to display a corresponding track line, and modify the data in the display content storage area according to the track line.

其中,区别编号可以理解为,用户根据实际需求赋予智能书写笔40的一个身份标识,用以区分多支智能书写笔40。当有多支智能书写笔40在一块智能平板60上输入笔迹时,只要将每支智能书写笔40的区别编号设置得各不相同,智能平板60即可根据接收到的各不相同的区别编号将多支智能书写笔40一一区分开来,进而将每支智能书写笔40与其输入的内容一一对应进行记录。Wherein, the distinguishing number can be understood as an identity identifier given to thesmart writing pen 40 by the user according to actual needs, so as to distinguish multiple smart writing pens 40 . When there are multiple smart writing pens 40 to input handwriting on onesmart tablet 60, as long as the distinguishing numbers of each smart writing pens 40 are set to be different, thesmart tablet 60 can receive the different distinguishing numbers according to the different numbers. The multiple smart writing pens 40 are distinguished one by one, and then eachsmart writing pen 40 is recorded in a one-to-one correspondence with its input content.

在本实施方式中,智能书写笔40内可预设有多个区别编号,使得同一支智能书写笔40可以在多个预设的区别编号间进行切换。In this embodiment, thesmart writing pen 40 can be preset with a plurality of distinct numbers, so that the samesmart writing pen 40 can be switched among the plurality of preset distinct numbers.

在本实施方式中,一方面,智能平板60根据检测到的所述智能书写笔40的触摸轨迹更新所述智能平板60的显示内容,在具体实施中,智能书写笔40触摸智能平板60,智能平板60检测智能书写笔40的触点位置,并根据触点位置在智能平板60的显示模块上对应地显示智能书写笔40输入的笔迹内容,以供用户查看。In this embodiment, on the one hand, thesmart tablet 60 updates the display content of thesmart tablet 60 according to the detected touch track of thesmart writing pen 40 . Thetablet 60 detects the contact position of thesmart writing pen 40, and accordingly displays the handwriting content input by thesmart writing pen 40 on the display module of thesmart tablet 60 according to the contact position for the user to view.

在本发明实施例中,另一方面,智能平板60根据检测到的所述智能书写笔40的触摸轨迹更新与所述区别编号所对应的显示内容存储区的数据,在具体实施中,智能平板60接收并解析来自智能书写笔40的属性数据包,检测属性数据包中的区别编号是否已分配显示内容存储区,若该区别编号尚未分配显示内容存储区,则为该区别编号分配相应的显示内容存储区,而后,根据智能书写笔40的触摸轨迹在智能平板60的存储模块(即为智能书写笔40分配的显示内容存储区)中记录对应的数据;其中,智能平板60为区别编号分配显示内容存储区,可以理解为智能平板60为该区别编号所代表的智能书写笔40分配显示内容存储区,对于一支智能书写笔40来说,其对应的显示内容存储区中存储的数据为智能平板60上显示的该智能书写笔40输入的笔迹内容所对应的数据,例如一支智能书写笔40在智能平板60的左上角输入了一个黑色的字母“A”,则该智能书写笔40在其对应的显示内容存储区中存储的数据,即为该黑色的字母“A”所对应的数据(包括触点位置数据和相应属性数据)。In the embodiment of the present invention, on the other hand, thesmart tablet 60 updates the data of the display content storage area corresponding to the difference number according to the detected touch track of thesmart writing pen 40. In a specific implementation, thesmart tablet 60 receives and parses the attribute data packet from theintelligent writing pen 40, and detects whether the difference number in the attribute data packet has been allocated a display content storage area, and if the difference number has not been allocated a display content storage area, assign the corresponding display to the difference number content storage area, and then, according to the touch track of thesmart writing pen 40, the corresponding data is recorded in the storage module of the smart tablet 60 (that is, the display content storage area allocated for the smart writing pen 40); wherein, thesmart tablet 60 is assigned a different number. Display content storage area, it can be understood that thesmart tablet 60 allocates a display content storage area for thesmart writing pen 40 represented by the difference number. For asmart writing pen 40, the data stored in the corresponding display content storage area is: The data corresponding to the handwriting content input by thesmart writing pen 40 displayed on thesmart tablet 60. For example, if asmart writing pen 40 inputs a black letter “A” in the upper left corner of thesmart tablet 60, thesmart writing pen 40 The data stored in its corresponding display content storage area is the data corresponding to the black letter "A" (including contact position data and corresponding attribute data).

需要说明的是,智能平板60给区别编号分配显示内容存储区时,还可以根据输入笔迹的时间进一步将显示内容存储区细分。例如,智能书写笔40在2016年8月7日是用户1使用,2016年8月8日是用户2使用,为了区分用户1和用户2输入的笔迹内容,2016年8月7日时,智能平板60为智能书写笔40分配一个显示内容存储区,2016年8月8日时,智能平板60为智能书写笔40分配另一个显示内容存储区。It should be noted that, when thesmart tablet 60 allocates the display content storage area to the distinguishing number, the display content storage area may be further subdivided according to the time of inputting handwriting. For example, thesmart writing pen 40 was used by user 1 on August 7, 2016, and used by user 2 on August 8, 2016. In order to distinguish the handwriting content input by user 1 and user 2, on August 7, 2016, thesmart writing pen 40 was used by user 2. Thetablet 60 allocates one display content storage area for thesmart writing pen 40 , and on August 8, 2016, thesmart tablet 60 allocates another display content storage area for thesmart writing pen 40 .

接下来,请参阅图3,以智能书写系统具有两支智能书写笔40和一个智能平板60,且两支智能书写笔40对应一个节点配置装置50的实施方式进行详细说明:Next, referring to FIG. 3 , a detailed description will be given of the embodiment in which the smart writing system has two smart writing pens 40 and onesmart tablet 60 , and the two smart writing pens 40 correspond to one node configuration device 50 :

第一智能书写笔40和第二智能书写笔40分别接收用户输入的第一切换信号和第二切换信号,第一智能书写笔40根据第一切换信号生成第一属性数据包,且第二智能书写笔40根据第二切换信号生成第二属性数据包;其中,第一属性数据包包括第一区别编号,第二属性数据包中包括第二区别编号,且第一区别编号与第二区别编号不相同。第一智能书写笔40和第二智能书写笔40分别通过节点配置装置50与智能平板60进行无线通信,以实现数据传输。智能平板60接收并解析第一智能书写笔40发送的第一属性数据包和第二智能书写笔40发送的第二属性数据包,分别检测第一属性数据包和第二属性数据包中的第一区别编号和第二区别编号是否已分配显示内容存储区,给尚未分配显示内容存储区的区别编号分配相应的显示内容存储区,并且,第一智能书写笔40和第二智能书写笔40分别触摸智能平板60,智能平板60分别检测第一智能书写笔40和第二智能书写笔40的触摸轨迹,以及根据两支笔的触摸轨迹更新显示内容,以及根据第一智能书写笔40和第二智能书写笔40的触摸轨迹分别更新对应的显示内容存储区中的数据。由此,在输入过程中智能平板60即可根据这两支智能书写笔40彼此不同的区别编号将这两支智能书写笔40区分开来,从而将每支智能书写笔40与其输入的内容一一对应进行记录。The firstintelligent writing pen 40 and the secondintelligent writing pen 40 respectively receive the first switching signal and the second switching signal input by the user, the firstintelligent writing pen 40 generates the first attribute data packet according to the first switching signal, and the secondintelligent writing pen 40 The writingpen 40 generates a second attribute data packet according to the second switching signal; wherein, the first attribute data packet includes a first difference number, the second attribute data packet includes a second difference number, and the first difference number and the second difference number Are not the same. The firstsmart writing pen 40 and the second smart writingpen 40 respectively perform wireless communication with thesmart tablet 60 through thenode configuration device 50 to realize data transmission. Thesmart tablet 60 receives and parses the first attribute data packet sent by the firstintelligent writing pen 40 and the second attribute data packet sent by the secondintelligent writing pen 40, and detects the first attribute data packet in the first attribute data packet and the second attribute data packet respectively. Whether a display content storage area has been allocated to a distinction number and a second distinction number, the corresponding display content storage area is allocated to the distinction number that has not been allocated a display content storage area, and the firstsmart writing pen 40 and the second smart writingpen 40 are respectively Touching thesmart tablet 60, thesmart tablet 60 detects the touch trajectories of the firstsmart writing pen 40 and the second smart writingpen 40 respectively, and updates the display content according to the touch trajectories of the two pens, and according to the firstsmart writing pen 40 and the second smart writingpen 40. The touch track of thesmart writing pen 40 respectively updates the data in the corresponding display content storage area. Therefore, during the input process, thesmart tablet 60 can distinguish the two smart writing pens 40 according to the different numbers of the two smart writing pens 40, so that eachsmart writing pen 40 and the input content are identical to each other. Record one by one.

在另一个优选的实施方式中,所述属性数据包还包括数据包类型标识;In another preferred embodiment, the attribute data package further includes a data package type identifier;

所述智能平板60具体用于:Thesmart tablet 60 is specifically used for:

根据所述数据包类型标识对所述属性数据包的类型进行识别;并且,Identify the type of the attribute data packet according to the data packet type identifier; and,

在识别出所述属性数据包为书写类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔40的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据存储至所述显示内容存储区;When it is identified that the attribute data packet is a writing type, a corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of thesmart writing pen 40, and the corresponding trace line is displayed. The data stored in the display content storage area;

在识别出所述属性数据包为笔擦类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔40的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据从所述显示内容存储区中删除。When it is identified that the attribute data packet is a pen eraser type, a corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of thesmart writing pen 40, and the trace line is displayed. The corresponding data is deleted from the display content storage area.

具体地,在本实施方式中,所述轨迹线条输出单元具体用于:根据所述数据包类型标识对所述属性数据包的类型进行识别;并且,在识别出所述属性数据包为书写类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔40的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据存储至所述显示内容存储区;在识别出所述属性数据包为笔擦类型时,根据所述属性数据包中的属性数据及检测到的所述智能书写笔40的触摸轨迹显示对应的轨迹线条,并将所述轨迹线条所对应的数据从所述显示内容存储区中删除。Specifically, in this embodiment, the trajectory line output unit is specifically configured to: identify the type of the attribute data packet according to the data packet type identifier; and, after identifying that the attribute data packet is a writing type , display the corresponding trajectory line according to the attribute data in the attribute data packet and the detected touch trajectory of thesmart writing pen 40, and store the data corresponding to the trajectory line in the display content storage area; When it is identified that the attribute data packet is a pen eraser type, a corresponding trace line is displayed according to the attribute data in the attribute data packet and the detected touch trace of thesmart writing pen 40, and the trace line is displayed. The corresponding data is deleted from the display content storage area.

需要说明的是,智能书写笔40触摸智能平板60的操作可能是书写操作,也有可能是擦除操作,因此,针对上述两种情况,需采用不同的更新方式,来更新智能平板60的显示内容以及与所述区别编号所对应的显示内容存储区的数据。It should be noted that the operation of thesmart writing pen 40 touching thesmart tablet 60 may be a writing operation or an erasing operation. Therefore, for the above two situations, different update methods need to be adopted to update the display content of thesmart tablet 60 and the data of the display content storage area corresponding to the difference number.

在一个优选的实施方式中,智能书写笔40发出的属性数据包中还包括数据包类型标识,智能平板60接收并解析目标数包,当根据数据包标识识别出属性数据包为书写类型时,即按照“书写规则”更新显示内容以及与区别编号所对的显示内容存储区中的数据,当识别出属性数据包为笔擦类型时,则按照“笔擦规则”更新显示内容以及与区别编号所对应的显示内容存储区中的数据。在本实施方式中,通过智能书写笔40和智能平板60的数据交互,使得智能书写笔40可具备“书写”和“笔擦”两个功能,从而,在笔迹输入过程中,无需额外配备专用的笔擦工具或调用智能平板60中的软件进行擦除,能方便快捷地实现书写及擦除,提高了用户体验,且降低了用户的使用成本。In a preferred embodiment, the attribute data packet sent by thesmart writing pen 40 also includes a data packet type identifier, thesmart tablet 60 receives and parses the target data packet, and when the attribute data packet is identified as a writing type according to the data packet identifier, That is, according to the "writing rules", the display content and the data in the display content storage area corresponding to the difference number are updated. When the attribute data packet is identified as a pen eraser type, the display content and the difference number are updated according to the "pen eraser rule". The data in the corresponding display content storage area. In this embodiment, through the data interaction between thesmart writing pen 40 and thesmart tablet 60, thesmart writing pen 40 can have two functions of "writing" and "wiping", so that in the process of handwriting input, there is no need to additionally equip a special The pen erasing tool or calling the software in thesmart tablet 60 for erasing can realize writing and erasing conveniently and quickly, which improves the user experience and reduces the use cost of the user.

需要说明的是,根据检测到的智能书写笔40的触摸轨迹获取擦除内容,并根据擦除内容更新显示内容,在具体实施中指的是,智能平板60根据智能书写笔40的触摸轨迹显示某种属性的笔迹内容(如显示背景色的笔迹内容),用以覆盖需要被擦除的已有笔迹内容,即经更新后智能平板60显示的内容为经擦除后剩下的内容。另外,根据擦除内容更新与区别编号所对应的显示内容存储区的数据,在具体实施中指的是,将需要被擦除的已有笔迹内容所对应的数据从相应显示内容存储区中删除,使得显示内容存储区中存储的数据为更新后智能平板60显示的内容所对应的数据。其中,将需要被擦除的已有笔迹内容所对应的数据从相应显示内容存储区中删除,具体为,获取检测到的触摸轨迹的触点位置数据,进而删除相应显示内容存储区中与触摸轨迹的触点位置相同的笔迹内容对应的数据。It should be noted that the erasing content is acquired according to the detected touch track of thesmart writing pen 40, and the displayed content is updated according to the erasing content. The handwriting content of various attributes (such as the handwriting content displaying the background color) is used to cover the existing handwriting content that needs to be erased, that is, the content displayed on thesmart tablet 60 after the update is the content remaining after erasing. In addition, updating the data of the display content storage area corresponding to the erased content and the difference number, in the specific implementation, refers to deleting the data corresponding to the existing handwriting content that needs to be erased from the corresponding display content storage area, The data stored in the display content storage area is made to be the data corresponding to the content displayed by thesmart tablet 60 after the update. The data corresponding to the existing handwriting content that needs to be erased is deleted from the corresponding display content storage area. Specifically, the contact position data of the detected touch track is obtained, and then the corresponding display content storage area is deleted with touch The data corresponding to the handwriting content with the same contact position of the track.

需要说明的是,智能平板60根据数据包类型标识对属性数据包的类型进行识别,具体为,当检测到数据包类型标识为第一预设值时,判定属性数据包为笔擦类型,即智能书写笔40的当前工作模式为笔擦模式;当检测到数据包类型标识为第二预设值时,判断属性数据包为书写类型,即智能书写笔40的当前工作模式为书写模式。It should be noted that thesmart tablet 60 identifies the type of the attribute data packet according to the data packet type identifier. Specifically, when it is detected that the data packet type identifier is the first preset value, it is determined that the attribute data packet is the pen erase type, that is, The current working mode of thesmart writing pen 40 is the pen erasing mode; when it is detected that the data packet type identifier is the second preset value, it is determined that the attribute data packet is the writing type, that is, the current working mode of thesmart writing pen 40 is the writing mode.

需要说明的是,当有多支智能书写笔40在一块智能平板60上输入笔迹时,每支智能书写笔40分别通过节点配置装置50向智能平板60发送其各自的属性数据包,相应地,智能平板60收到多个属性数据包后,分别对每个属性数据包进行解析,分别检测每个区别编号是否分配有对应的显示内容存储区,对于没有分配有显示内容存储区的区别编号,则为其分配对应的显示内容存储区。此后,在智能书写笔40的触摸过程中,智能平板60分别检测每支智能书写笔40的触点位置,并根据每支智能书写笔40的触点位置更新智能平板60所显示的每支智能书写笔40输入的笔迹内容,以及根据每支智能书写笔40的触点位置对应更新其区别编号所对应的显示内容存储区中的数据;其中,智能平板60检测智能书写笔40的触点位置的方式可以选用红外感应检测、电容感应检测或电磁感应检测等,且在多支智能书写笔40触摸智能平板60的过程中,智能平板60可根据每支智能书写笔40当前输入笔迹所在的区域来辅助区分多支智能书写笔40分别输入的笔迹内容,例如当有三支智能书写笔40在智能平板60上输入笔迹时,三支笔的区别编号分别为01、11和10,则可将一块智能平板60分为左边区域、中间区域和右边区域,当智能书写笔01首次落笔时,智能平板60会记录下该支笔的区别编号和该支笔落笔的触点位置,若智能书写笔01首次落笔的位置在左边区域,此后,若检测到触点位置在左边区域的输入笔迹即认为是智能书写笔01的输入笔迹;对智能书写笔40为11和10的处理方法类似,此处不加赘述。It should be noted that when there are multiple smart writing pens 40 to input handwriting on onesmart tablet 60, eachsmart writing pen 40 sends its respective attribute data packet to thesmart tablet 60 through thenode configuration device 50, and accordingly, After receiving a plurality of attribute data packets, thesmart tablet 60 analyzes each attribute data packet respectively, and detects whether each distinguishing number is assigned a corresponding display content storage area. Then allocate the corresponding display content storage area to it. Thereafter, during the touching process of thesmart writing pen 40 , thesmart tablet 60 detects the contact position of eachsmart writing pen 40 respectively, and updates eachsmart tablet 60 according to the contact position of eachsmart writing pen 40 . The handwriting content input by the writingpen 40, and the data in the display content storage area corresponding to the difference number corresponding to update according to the contact position of eachsmart writing pen 40; wherein, thesmart tablet 60 detects the contact position of thesmart writing pen 40 Infrared induction detection, capacitive induction detection, or electromagnetic induction detection can be selected as the method of detection, and in the process of multiple smart writing pens 40 touching thesmart tablet 60, thesmart tablet 60 can select the area where the handwriting is currently input by eachsmart writing pen 40. To assist in distinguishing the handwriting content input by multiple smart writing pens 40, for example, when three smart writing pens 40 input handwriting on thesmart tablet 60, and the different numbers of the three pens are 01, 11 and 10 respectively, then one can be Thesmart tablet 60 is divided into a left area, a middle area and a right area. When the smart writing pen 01 drops the pen for the first time, thesmart tablet 60 will record the unique number of the pen and the contact position of the pen. The position of the first stroke is in the left area, after that, if the input handwriting with the contact position in the left area is detected, it is considered as the input handwriting of the smart writing pen 01; the processing methods for thesmart writing pen 40 are similar to 11 and 10, and no Add elaboration.

优选地,所述属性数据包中的属性数据包括颜色属性数据、笔尖类型属性数据和笔画粗细属性数据中的至少一个。Preferably, the attribute data in the attribute data package includes at least one of color attribute data, pen tip type attribute data and stroke thickness attribute data.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和变形,这些改进和变形也视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications are also considered as It is the protection scope of the present invention.

Claims (8)

CN201611078023.XA2016-11-292016-11-29 Intelligent writing method and systemActiveCN106775385B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201611078023.XACN106775385B (en)2016-11-292016-11-29 Intelligent writing method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611078023.XACN106775385B (en)2016-11-292016-11-29 Intelligent writing method and system

Publications (2)

Publication NumberPublication Date
CN106775385A CN106775385A (en)2017-05-31
CN106775385Btrue CN106775385B (en)2020-01-24

Family

ID=58898074

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611078023.XAActiveCN106775385B (en)2016-11-292016-11-29 Intelligent writing method and system

Country Status (1)

CountryLink
CN (1)CN106775385B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107515722A (en)*2017-08-302017-12-26广州视源电子科技股份有限公司Information storage method, information display method, information storage device, information display device, information storage equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201698347U (en)*2009-07-312011-01-05华为终端有限公司Electronic pen and host machine
CN103902066A (en)*2012-12-282014-07-02联想(北京)有限公司Input equipment, input method and electronic equipment
CN104793776A (en)*2014-01-222015-07-22国基电子(上海)有限公司Electronic drawing board, handwriting pen and method for inputting and displaying handwriting information through electronic drawing board
CN105320390A (en)*2014-06-202016-02-10鸿合科技有限公司Double handwriting recognition method and device based on electromagnetic white plate and electromagnetic pens

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8482545B2 (en)*2008-10-022013-07-09Wacom Co., Ltd.Combination touch and transducer input system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201698347U (en)*2009-07-312011-01-05华为终端有限公司Electronic pen and host machine
CN103902066A (en)*2012-12-282014-07-02联想(北京)有限公司Input equipment, input method and electronic equipment
CN104793776A (en)*2014-01-222015-07-22国基电子(上海)有限公司Electronic drawing board, handwriting pen and method for inputting and displaying handwriting information through electronic drawing board
CN105320390A (en)*2014-06-202016-02-10鸿合科技有限公司Double handwriting recognition method and device based on electromagnetic white plate and electromagnetic pens

Also Published As

Publication numberPublication date
CN106775385A (en)2017-05-31

Similar Documents

PublicationPublication DateTitle
CN109542008B (en)Multi-screen display control method and system for intelligent full-screen blackboard
JP6644200B2 (en) Active pen and sensor controller
CN101950211B (en) Pen type input device and input method using the same
CN103324348A (en)Windows desktop control method based on intelligent mobile terminals
CN104777996A (en) Image display device and operating method thereof
US20110050610A1 (en)Dynamic switching of interactive whiteboard data
CN109388321B (en) Electronic whiteboard operation method and device
WO2018086234A1 (en)Method for processing object, and terminal
CN103713767B (en) Method and device for operating a mobile terminal
US20150138082A1 (en)Image display apparatus and image display system
CN114003145B (en)Touch screen writing and erasing method and device, electronic whiteboard and storage medium
CN106990908A (en)Local touch shielding method, device, system, equipment and storage medium
JP2013186869A (en)Touch panel system, stylus and plotting function setting method
CN112947773B (en)Touch pen and touch system
CN106598291A (en)Intelligent writing method, infrared touch screen and intelligent writing system
CN108885517A (en) Touch screen device, input device, control method and method thereof
CN112256189B (en)Whiteboard note display method, whiteboard note display device, whiteboard note display equipment and storage medium
CN106598292B (en) Intelligent writing method, writing pen, node configuration device, tablet and system
CN106775385B (en) Intelligent writing method and system
CN201698347U (en)Electronic pen and host machine
CN108304040B (en)Interactive intelligent tablet and touch data processing method
CN204480229U (en)A kind of full touch all-in-one
CN208077056U (en)Interactive intelligent tablet
TWI638300B (en)Touch input method and computer system using the same
JP6388844B2 (en) Information processing apparatus, information processing program, information processing method, and information processing system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp