Method, device, terminal and storage medium for controlling electronic writing device

By dynamically adjusting the point rate of the electronic writing device and adjusting the transmission frequency according to the movement rate of the stylus, the problems of poor writing and high power consumption caused by poor network conditions in the prior art are solved, and more stable writing is achieved Experience and lower power consumption.

CN112860136BActive Publication Date: 2024-12-31DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110023560.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-08
Publication Date
2024-12-31
Estimated Expiration
2041-01-08

AI Technical Summary

Technical Problem

When the network conditions of existing electronic writing devices are not good, the higher point-report rate leads to poor writing restoration and high power consumption, which makes it easy to cause errors such as stroke loss.

Method used

The movement rate is calculated through the stylus sensor data, the point rate of the writing board is dynamically adjusted, and the point rate is adjusted according to the needs of the handwriting presentation, reducing network requirements and power consumption.

Benefits of technology

It can still transmit words smoothly when network conditions are poor, reduce dependence on the network and power consumption of the handwriting board, and improve the writing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112860136B_ABST
    Figure CN112860136B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and device, a terminal and a storage medium for controlling an electronic writing device. The electronic writing device includes a handwriting board and a stylus, and the method includes: obtaining sensor data in the stylus; calculating the movement rate of the stylus within a preset time from the sensor data; when the movement rate is less than a first threshold, reducing the reporting rate of the handwriting board by a preset value; when the movement rate is greater than or equal to the first threshold and less than a second threshold, keeping the reporting rate of the handwriting board unchanged; when the movement rate is greater than or equal to the second threshold, determining whether the reporting rate of the handwriting board is less than the first reporting rate threshold, if so, increasing the reporting rate of the handwriting board by a preset value, if not, keeping the reporting rate of the handwriting board unchanged. The embodiment of the present disclosure adjusts the reporting rate according to the need for handwriting presentation, so that the handwriting can be transmitted smoothly, the requirements for the network can be reduced, and the power consumption of the handwriting board can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information technology, and in particular to a method and device for controlling an electronic writing device, a terminal, and a storage medium. Background Art

[0002] At present, electronic writing devices including handwriting tablets and electromagnetic pens are gradually becoming popular in teaching. The handwriting tablet includes a processor, an electromagnetic signal receiving module and a wireless communication module. The processor is connected to the electromagnetic signal receiving module and the wireless communication module. The processor transmits the handwriting trajectory, pressure data, etc. output by the electromagnetic signal receiving module to the mobile terminal device (for example, the teacher's handwriting tablet) through the wireless communication module. After the mobile terminal device receives the data, it can restore the handwriting. However, a lower reporting rate often results in a poor restoration of the handwriting, and a higher reporting rate will increase the data throughput of the wireless network. When the network condition is poor, smooth writing cannot be maintained, and serious errors such as missing strokes are prone to occur. Summary of the invention

[0003] In order to solve the existing problems, the present disclosure provides a method and device for controlling an electronic writing device, a terminal and a storage medium.

[0004] The present disclosure adopts the following technical solutions.

[0005] In some embodiments, an embodiment of the present disclosure provides a method for controlling an electronic writing device, wherein the electronic writing device includes a handwriting board and a stylus, and the method includes: acquiring sensor data in the stylus; calculating the movement rate of the stylus within a preset time based on the sensor data; when the movement rate is less than a first threshold, reducing the reporting rate of the handwriting board by a preset value; when the movement rate is greater than or equal to the first threshold and less than a second threshold, keeping the reporting rate of the handwriting board unchanged; when the movement rate is greater than or equal to the second threshold, determining whether the reporting rate of the handwriting board is less than the first reporting rate threshold, and if so, increasing the reporting rate of the handwriting board by a preset value, and if not, keeping the reporting rate of the handwriting board unchanged.

[0006] In some embodiments, another embodiment of the present disclosure provides a device for controlling an electronic writing device, wherein the electronic writing device includes a handwriting board and a stylus, and the device includes: an acquisition module, configured to acquire sensor data in the stylus; a calculation module, configured to calculate the movement rate of the stylus within a preset time based on the sensor data; a control module, configured to reduce the reporting rate of the handwriting board by a preset value when the movement rate is less than a first threshold; keep the reporting rate of the handwriting board unchanged when the movement rate is greater than or equal to the first threshold and less than a second threshold; when the movement rate is greater than or equal to the second threshold, determine whether the reporting rate of the handwriting board is less than the first reporting rate threshold, and if so, increase the reporting rate of the handwriting board by a preset value, and if not, keep the reporting rate of the handwriting board unchanged.

[0007] In some embodiments, the present disclosure provides a terminal, comprising: at least one memory and at least one processor; wherein the memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.

[0008] In some embodiments, the present disclosure provides a storage medium for storing program code, and the program code is used to execute the above method.

[0009] The embodiments of the present disclosure calculate the movement rate of the stylus within a preset time through sensor data in the stylus, and then adjust the reporting rate of the handwriting board to minimize the impact of factors such as the network on the handwriting. The reporting rate is adjusted according to the needs of handwriting presentation, so that the handwriting can be transmitted smoothly, the requirements for the network can be reduced, and the power consumption of the handwriting board can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0011] Figure 1 is a flowchart of a method for controlling an electronic writing device according to an embodiment of the present disclosure.

[0012] Figure 2 These are steps of a method for controlling an electronic writing device according to another embodiment of the present disclosure.

[0013] Figure 3 These are steps of a method for controlling an electronic writing device according to another embodiment of the present disclosure.

[0014] Figure 4 It is a partial module of the electronic writing device of an embodiment of the present disclosure.

[0015] Figure 5 FIG. 4 is a schematic diagram of a device for controlling an electronic writing device according to another embodiment of the present disclosure.

[0016] Figure 6 It is a schematic diagram of the structure of the electronic writing device of an embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in sequence and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0019] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that it should be understood as “one or more” unless otherwise clearly indicated in the context.

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] Figure 1A flow chart of a method for controlling an electronic writing device according to an embodiment of the present disclosure is provided. The electronic writing device includes a handwriting board and a stylus. The method of the present disclosure includes step S101, obtaining sensor data in the stylus. In some embodiments, the stylus may include a touch pen, an electromagnetic pen, etc. It should be understood that this is only exemplary and the present disclosure is not limited thereto.

[0024] The method disclosed herein also includes step S102, calculating the moving speed of the stylus within a preset time from the sensor data. In some embodiments, the moving speed of the stylus within a preset time can be calculated by the stylus. In some embodiments, the moving speed of the stylus within a preset time can be calculated by a handwriting board. In some embodiments, the data can also be uploaded to the cloud for calculation, and the calculated data is then returned by the cloud.

[0025] The method disclosed in the present invention also includes step S103, when the moving speed is less than the first threshold, the reporting rate of the handwriting board is reduced by a preset value; when the moving speed is greater than or equal to the first threshold and less than the second threshold, the reporting rate of the handwriting board is kept unchanged; when the moving speed is greater than or equal to the second threshold, it is determined whether the reporting rate of the handwriting board is less than the first reporting rate threshold, if so, the reporting rate of the handwriting board is increased by a preset value, if not, the reporting rate of the handwriting board is kept unchanged. The reporting rate of the handwriting board refers to the number of times the handwriting board detects writing data per unit time. In some embodiments, when the moving speed is less than the first threshold, it means that the writing of the stylus is slow, the speed of handwriting generation is relatively small, and the reporting rate can also be appropriately reduced by a preset value. In this way, it can ensure that the handwriting is transmitted, and it can also reduce the requirements for the network. Even if the network is not very good, it may be possible to sequentially transmit the handwriting with a small reporting rate. In addition, due to the reduction of the reporting rate, the power consumption of the handwriting board will also be reduced. In some embodiments, the preset value can be set according to the main, for example, 10, 20 or 30. In some embodiments, the first threshold may also be preset and adjustable by the user.

[0026] In some embodiments, when the moving speed is greater than or equal to the first threshold and less than the second threshold, the reporting rate of the handwriting board is kept unchanged. When the moving speed is moderate, the reporting rate of the handwriting board may also be in an appropriate range, so that the handwriting can be smoothly transmitted, and the dependence on the network or the power consumption will not be increased due to the high reporting rate. In some embodiments, when the moving speed is greater than or equal to the second threshold, the speed of handwriting generation is faster. At this time, it is first determined whether the reporting rate of the handwriting board is less than the first reporting rate threshold to avoid adjusting the reporting rate too high. If it is less than the first reporting rate threshold, it indicates that the reporting rate at this time still has room for improvement, and the reporting rate of the handwriting board can be increased by a preset value. If it is not less than the first reporting rate threshold, it indicates that the reporting rate at this time is already high. If it is adjusted upward, it may be too dependent on the network quality, and it is easy to cause strokes to be lost when the network is not good. At this time, the reporting rate of the handwriting board can be kept unchanged, which can also avoid excessive power consumption of the handwriting board due to the high reporting rate. In some embodiments, the second threshold can be preset and the user can adjust it. In some embodiments, the first reporting rate threshold may also be appropriately adjusted according to the network in which the electronic writing device is located and the power consumption of the handwriting tablet, for example, being set to 200 or the like.

[0027] Therefore, the sensor data in the stylus is used to calculate the movement rate of the stylus within a preset time, and then the reporting rate of the handwriting board is adjusted to minimize the impact of factors such as the network on the handwriting. The reporting rate is adjusted according to the needs of handwriting presentation, so that the handwriting can be transmitted smoothly, the requirements for the network can be reduced, and the power consumption of the handwriting board can be reduced.

[0028] like Figure 2 As shown, in some embodiments, the method of the present disclosure further includes step 201, when the reporting rate of the handwriting board is less than the second reporting rate threshold and the moving speed is less than the first threshold, the reporting rate of the handwriting board is kept unchanged, wherein the second reporting rate threshold is less than the first reporting rate threshold. In some embodiments, when the reporting rate of the handwriting board is less than the second reporting rate threshold, although the moving speed is less than the first threshold at this time, that is, the speed of handwriting generation is relatively small, sometimes maintaining a certain reporting rate can more smoothly transmit the handwriting, and avoid the reporting rate being adjusted too low to be unfavorable for timely interaction with an external electronic writing device. In some embodiments, the second reporting rate threshold can be set to the minimum reporting rate allowed for handwriting board interaction.

[0029] like Figure 3As shown, in some embodiments, the method of the present disclosure further includes step 301, determining the network quality, and when the network quality is lower than a preset threshold and the mobile speed is greater than or equal to a first threshold, keeping the reporting rate of the handwriting board unchanged. In some embodiments, when the network quality is not very good, it is sometimes necessary to balance the transmission rate of the handwriting. Although the mobile speed is greater than or equal to the first threshold at this time, the reporting rate of the handwriting board can still be kept unchanged to avoid adjusting the reporting rate too high when the network quality does not meet the high reporting rate.

[0030] In some embodiments, the network quality includes network bandwidth, packet loss rate or delay, etc. In some embodiments, the preset threshold can be pre-set and can be adjusted by the user.

[0031] In some embodiments, Figure 4 As shown, an electronic writing device 400 is shown, and the electronic writing device 400 includes a handwriting board 401 and a stylus 402. In some embodiments, the sensor in the stylus 402 includes an acceleration sensor 4022 and a gyroscope 4023, wherein the acceleration sensor 4022 is used to obtain the acceleration of the stylus 402, and the gyroscope 4023 is used to obtain the angular velocity of the stylus 402. By adopting the combination of the acceleration sensor 4022 and the gyroscope 4023, it is not only conducive to realizing air handwriting recognition, but also can calculate the moving speed of the stylus within a preset time.

[0032] In some embodiments, the stylus pen 402 further includes a microcontroller 4021 and a first communication module 4024 in communication connection with the microcontroller 4021. In some embodiments, the microcontroller 4021 is used to calculate the moving speed of the stylus pen 402 within a preset time, and send the calculated moving speed to the handwriting board 401 through the first communication module 4024. In some embodiments, the stylus pen includes the first communication module 4024, the handwriting board 401 includes a processor 4011 and a second communication module 4012 in communication connection with the processor 4011, the sensor data in the stylus pen 402 is sent through the first communication module 4024 and received by the second communication module 4012 of the handwriting board 401, and the processor 4011 calculates the moving speed of the stylus pen 402 within the preset time. In some embodiments, the handwriting board 401 further includes a signal receiving module 4013. In some embodiments, the signal receiving module 4013 is an electromagnetic induction touch module. In some embodiments, the reporting rate of the handwriting board 401 can be adjusted by the processor 4011 or the signal receiving module 4013.

[0033] In some embodiments, the sensor in the stylus 402 is installed in an area adjacent to the tip of the stylus 402, and the moving speed is the moving speed of the stylus 402 in the horizontal direction. In some embodiments, the tip of the stylus is usually the most suitable part for the user to express the handwriting that the user wants to write, so installing the sensor in the area adjacent to the tip of the stylus can better sense the handwriting that the user wants to write.

[0034] The embodiment of the present disclosure also provides a device 500 for controlling an electronic writing device, wherein the electronic writing device includes a handwriting board and a stylus, and the device 500 includes an acquisition module 501, a calculation module 302, and a control module 303. The acquisition module 501 is configured to acquire sensor data in the stylus. The calculation module 502 is configured to calculate the movement rate of the stylus within a preset time from the sensor data. The control module 503 is configured to reduce the reporting rate of the handwriting board by a preset value when the movement rate is less than a first threshold; when the movement rate is greater than or equal to the first threshold and less than a second threshold, keep the reporting rate of the handwriting board unchanged; when the movement rate is greater than or equal to the second threshold, determine whether the reporting rate of the handwriting board is less than the first reporting rate threshold, if so, increase the reporting rate of the handwriting board by a preset value, if not, keep the reporting rate of the handwriting board unchanged.

[0035] In some embodiments, the control module 503 is further configured to keep the reporting rate of the handwriting board unchanged when the reporting rate of the handwriting board is less than the second reporting rate threshold and the moving speed is less than the first threshold, wherein the second reporting rate threshold is less than the first reporting rate threshold. In some embodiments, the control module 503 is further configured to determine the network quality, and when the network quality is lower than a preset threshold and the moving speed is greater than or equal to the first threshold, keep the reporting rate of the handwriting board unchanged.

[0036] It should be understood that the contents described about the method for controlling an electronic writing device are also applicable to the device 500 for controlling an electronic writing device herein, and for the sake of simplicity, they are not described in detail here.

[0037] In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; wherein the memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above-mentioned method of controlling the electronic writing device.

[0038] In addition, the present disclosure also provides a computer storage medium, which stores program codes, and the program codes are used to execute the above-mentioned method of controlling the electronic writing device.

[0039] The above describes the method and device for controlling an electronic writing device disclosed in the present invention based on the embodiments and application examples. In addition, the present invention also provides a terminal and a storage medium, which are described below.

[0040] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic writing device (such as a terminal device or a server) 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic writing device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0041] like Figure 6 As shown, the electronic writing device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic writing device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0042] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication devices 609 may allow the electronic writing device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic writing device 600 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.

[0043] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0044] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0045] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0046] The computer-readable medium may be included in the electronic writing device; or may exist independently without being incorporated into the electronic writing device.

[0047] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic writing device, the electronic writing device executes the method of the present disclosure.

[0048] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0049] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0050] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0051] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0052] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0053] According to one or more embodiments of the present disclosure, a method for controlling an electronic writing device is provided, wherein the electronic writing device includes a handwriting board and a stylus, and the method includes: acquiring sensor data in the stylus; calculating the movement rate of the stylus within a preset time based on the sensor data; when the movement rate is less than a first threshold, reducing the reporting rate of the handwriting board by a preset value; when the movement rate is greater than or equal to the first threshold and less than a second threshold, maintaining the reporting rate of the handwriting board unchanged; when the movement rate is greater than or equal to the second threshold, determining whether the reporting rate of the handwriting board is less than the first reporting rate threshold, and if so, increasing the reporting rate of the handwriting board by a preset value, and if not, maintaining the reporting rate of the handwriting board unchanged.

[0054] According to one or more embodiments of the present disclosure, it also includes: when the reporting rate of the handwriting board is less than a second reporting rate threshold and the moving speed is less than the first threshold, keeping the reporting rate of the handwriting board unchanged, wherein the second reporting rate threshold is less than the first reporting rate threshold.

[0055] According to one or more embodiments of the present disclosure, the method further includes: determining network quality, and when the network quality is lower than a preset threshold and the moving speed is greater than or equal to the first threshold, maintaining the reporting rate of the handwriting board unchanged.

[0056] According to one or more embodiments of the present disclosure, the sensor in the stylus includes an acceleration sensor and a gyroscope, wherein the acceleration sensor is used to obtain the acceleration of the stylus, and the gyroscope is used to obtain the angular velocity of the stylus.

[0057] According to one or more embodiments of the present disclosure, the stylus pen further includes a microcontroller and a first communication module communicatively connected to the microcontroller, and the microcontroller is used to calculate the movement rate of the stylus pen within a preset time, and send the calculated movement rate to the handwriting board through the first communication module.

[0058] According to one or more embodiments of the present disclosure, the stylus includes a first communication module, the handwriting board includes a processor and a second communication module communicatively connected to the processor, sensor data in the stylus is sent through the first communication module and received by the second communication module of the handwriting board, and the processor calculates the movement rate of the stylus within a preset time.

[0059] According to one or more embodiments of the present disclosure, the sensor in the stylus is installed in an area adjacent to a tip of the stylus, and the movement rate is a movement rate of the stylus in a horizontal direction.

[0060] According to one or more embodiments of the present disclosure, there is also provided a device for controlling an electronic writing device, wherein the electronic writing device includes a handwriting board and a stylus, and the device includes: an acquisition module, configured to acquire sensor data in the stylus; a calculation module, configured to calculate the movement rate of the stylus within a preset time based on the sensor data; a control module, configured to reduce the reporting rate of the handwriting board by a preset value when the movement rate is less than a first threshold; keep the reporting rate of the handwriting board unchanged when the movement rate is greater than or equal to the first threshold and less than a second threshold; and determine whether the reporting rate of the handwriting board is less than the first reporting rate threshold when the movement rate is greater than or equal to the second threshold, and if so, increase the reporting rate of the handwriting board by a preset value, and if not, keep the reporting rate of the handwriting board unchanged.

[0061] According to one or more embodiments of the present disclosure, a terminal is provided, comprising: at least one memory and at least one processor; wherein the at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute any one of the methods described above.

[0062] According to one or more embodiments of the present disclosure, a storage medium is provided, wherein the storage medium is used to store program code, and the program code is used to execute the above method.

[0063] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0064] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0065] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for controlling an electronic writing device, the electronic writing device comprising a handwriting board and a handwriting pen, characterized in that: The method comprises: Acquiring sensor data in the stylus; Calculating the moving speed of the stylus within a preset time from the sensor data; When the moving speed is less than a first threshold, the reporting rate of the handwriting board is reduced by a preset value; when the moving speed is greater than or equal to the first threshold and less than a second threshold, the reporting rate of the handwriting board is kept unchanged; when the moving speed is greater than or equal to the second threshold, it is determined whether the reporting rate of the handwriting board is less than the first reporting rate threshold, if so, the reporting rate of the handwriting board is increased by a preset value, if not, the reporting rate of the handwriting board is kept unchanged.

2. The method according to claim 1, characterized in that Also includes: When the reporting rate of the handwriting board is less than a second reporting rate threshold and the moving speed is less than the first threshold, the reporting rate of the handwriting board is kept unchanged, wherein the second reporting rate threshold is less than the first reporting rate threshold.

3. The method according to claim 1, characterized in that Also includes: The network quality is determined, and when the network quality is lower than a preset threshold and the moving speed is greater than or equal to the first threshold, the reporting rate of the handwriting board is kept unchanged.

4. The method according to claim 1, characterized in that: The sensor in the stylus pen includes an acceleration sensor and a gyroscope, wherein the acceleration sensor is used to obtain the acceleration of the stylus pen, and the gyroscope is used to obtain the angular velocity of the stylus pen.

5. The method according to claim 4, characterized in that The stylus pen further includes a microcontroller and a first communication module communicatively connected to the microcontroller, and the microcontroller is used to calculate the moving speed of the stylus pen within a preset time, and send the calculated moving speed to the handwriting board through the first communication module.

6. The method according to claim 4, characterized in that The stylus pen includes a first communication module, the handwriting board includes a processor and a second communication module communicatively connected to the processor, sensor data in the stylus pen is sent through the first communication module and received by the second communication module of the handwriting board, and the processor calculates the movement rate of the stylus pen within a preset time.

7. The method according to claim 1, characterized in that The sensor in the stylus is installed in an area adjacent to a tip of the stylus, and the moving speed is a moving speed of the stylus in a horizontal direction.

8. A device for controlling an electronic writing device, the electronic writing device comprising a handwriting board and a handwriting pen, characterized in that: The device comprises: An acquisition module configured to acquire sensor data in the stylus; a calculation module, configured to calculate the moving speed of the stylus within a preset time from the sensor data; The control module is configured to reduce the reporting rate of the handwriting board by a preset value when the moving speed is less than a first threshold; keep the reporting rate of the handwriting board unchanged when the moving speed is greater than or equal to the first threshold and less than a second threshold; and determine whether the reporting rate of the handwriting board is less than the first reporting rate threshold when the moving speed is greater than or equal to the second threshold, and if so, increase the reporting rate of the handwriting board by a preset value; if not, keep the reporting rate of the handwriting board unchanged.

9. A terminal, comprising: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 7.

10. A storage medium, the storage medium being used to store program code, the program code being used to execute the method according to any one of claims 1 to 7.