CN112860136A - Method, device, terminal and storage medium for controlling electronic writing device - Google Patents

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

Info

Publication number
CN112860136A
CN112860136A CN202110023560.9A CN202110023560A CN112860136A CN 112860136 A CN112860136 A CN 112860136A CN 202110023560 A CN202110023560 A CN 202110023560A CN 112860136 A CN112860136 A CN 112860136A
Authority
CN
China
Prior art keywords
rate
stylus
threshold
point reporting
handwriting board
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.)
Pending
Application number
CN202110023560.9A
Other languages
Chinese (zh)
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110023560.9A priority Critical patent/CN112860136A/en
Publication of CN112860136A publication Critical patent/CN112860136A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/046Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The present disclosure provides a method and apparatus for controlling an electronic writing apparatus, a terminal, and a storage medium. The electronic writing device comprises a writing pad and a writing pen, and the method comprises the following steps: acquiring sensor data in a stylus; calculating the moving speed of the stylus within a preset time according to the sensor data; when the moving speed is smaller than a first threshold value, reducing the point reporting rate of the handwriting board by a preset value; when the moving speed is greater than or equal to a first threshold and smaller than a second threshold, keeping the point reporting rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than the first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged. The embodiment of the disclosure adjusts the point reporting rate according to the requirement of handwriting presentation, so that the handwriting can be smoothly transmitted, the requirement on a network can be reduced, and the power consumption of a handwriting board is reduced.

Description

Method, device, terminal and storage medium for controlling electronic writing device
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a method and an apparatus for controlling an electronic writing apparatus, a terminal, and a storage medium.
Background
Electronic writing devices including writing pads and electromagnetic pens are becoming increasingly popular in teaching. The handwriting board comprises a processor, an electromagnetic signal receiving module and a wireless communication module. The processor is in communication connection with the electromagnetic signal receiving module and the wireless communication module. The processor transmits the handwriting track, the pressure-sensitive data and the like output by the electromagnetic signal receiving module to the mobile terminal device (for example, a teacher-side handwriting board) through the wireless communication module, and the handwriting can be restored after the mobile terminal device receives the data. However, the lower report rate is usually poor in the recovery degree of the handwriting, and the higher report rate is adopted to work, so that the data throughput of the wireless network is increased, and when the network is in a poor condition, smooth writing cannot be maintained, and serious errors such as stroke loss and the like are easy to occur.
Disclosure of Invention
To solve the existing problems, the present disclosure provides a method and apparatus for controlling an electronic writing apparatus, a terminal, and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, embodiments of the present disclosure provide a method of controlling an electronic writing device including a writing pad and a stylus, the method comprising: acquiring sensor data in the stylus; calculating the moving speed of the stylus pen in a preset time by the sensor data; when the moving speed is smaller than a first threshold value, reducing the point reporting rate of the handwriting board by a preset value; when the moving speed is greater than or equal to the first threshold and smaller than a second threshold, keeping the report rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than a first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged.
In some embodiments, another embodiment of the present disclosure provides an apparatus for controlling an electronic writing apparatus including a writing pad and a stylus, the apparatus including: an acquisition module configured to acquire sensor data in the stylus; a calculation module configured to calculate a movement rate of the stylus pen within a preset time from the sensor data; the control module is configured to reduce the report rate of the handwriting board by a preset value when the moving speed is smaller than a first threshold value; when the moving speed is greater than or equal to the first threshold and smaller than a second threshold, keeping the report rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than a first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described method.
According to the embodiment of the disclosure, the moving speed of the handwriting pen in the preset time is calculated through the sensor data in the handwriting pen, so that the point reporting rate of the handwriting board is adjusted, the influence of factors such as a network on handwriting is minimized, the point reporting rate is adjusted according to the requirement of handwriting presentation, the handwriting can be smoothly transmitted, the requirement on the network can be reduced, and the power consumption of the handwriting board is reduced.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a method of controlling an electronic writing device of an embodiment of the present disclosure.
Fig. 2 is a step of a method of controlling an electronic writing device of another embodiment of the present disclosure.
Fig. 3 is a step of a method of controlling an electronic writing device of another embodiment of the present disclosure.
Fig. 4 is a partial module of an electronic writing device of an embodiment of the present disclosure.
Fig. 5 is a schematic view of an apparatus for controlling an electronic writing apparatus according to another embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an electronic writing device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 provides a flowchart of a method of controlling an electronic writing device of an embodiment of the present disclosure. The electronic writing device comprises a writing pad and a writing pen. The method of the present disclosure includes a step S101 of acquiring sensor data in a stylus pen. In some embodiments, the stylus may include a stylus, an electromagnetic pen, and the like, it being understood that this is merely exemplary and the disclosure is not limited thereto.
The method of the present disclosure further includes a step S102 of calculating a moving rate of the stylus pen within a preset time from the sensor data. In some embodiments, calculating the rate of movement of the stylus over a preset time may be performed by the stylus. In some embodiments, calculating the rate of movement of the stylus over a preset time may be performed by a tablet. In some embodiments, the data may also be uploaded to the cloud for computation, and the computed data is then returned by the cloud.
The method of the present disclosure further includes step S103, when the moving rate is smaller than the first threshold, decreasing the report rate of the handwriting board by a preset value; when the moving speed is greater than or equal to a first threshold and smaller than a second threshold, keeping the point reporting rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than the first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged. The point reporting rate of the handwriting board refers to the number of times of detecting written data in unit time of the handwriting board. In some embodiments, when the moving speed is less than the first threshold, it indicates that the writing speed of the stylus is slow, the speed of the handwriting generation is relatively low, and the pointing rate can be reduced by a preset value. This ensures that the writing is transmitted, reduces the requirements on the network, and allows writing with a low hit rate to be transmitted sequentially even when the network is not optimal. In addition, since the report rate is reduced, the power consumption of the handwriting pad is also reduced. In some embodiments, the preset value may be set according to the main, for example, 10, 20, or 30, etc. In some embodiments, the first threshold may also be preset and user adjustable.
In some embodiments, when the moving speed is greater than or equal to the first threshold and less than the second threshold, the hit rate of the handwriting pad is kept unchanged, and when the moving speed is moderate, the hit rate of the handwriting pad may also be in an appropriate range, so that the handwriting can be smoothly transmitted, and the dependence on the network or the increase of power consumption due to the high hit rate is avoided. In some embodiments, when the moving rate is greater than or equal to the second threshold, the speed of generating the handwriting is faster, and at this time, it is determined whether the point reporting rate of the handwriting board is less than the first point reporting rate threshold, so as to avoid adjusting the point reporting rate too high, and if the point reporting rate is less than the first point reporting rate threshold, it indicates that there is room for improving the point reporting rate at this time, the point reporting rate of the handwriting board may be increased by a preset value. If the current time is not less than the first time threshold, the time is indicated to be higher, if the up-regulation is performed again, the dependence on the network quality is too high, strokes are easy to drop when the network is not good, and the time can be kept unchanged, so that the power consumption of the handwriting board is prevented from being too high due to the too high time. In some embodiments, the second threshold may be preset and user adjustable. In some embodiments, the first reporting rate threshold may also be adjusted appropriately, for example, set to 200, according to the network where the electronic writing device is located and the power consumption of the tablet.
Therefore, the moving speed of the handwriting pen in the preset time is calculated through the sensor data in the handwriting pen, the point reporting rate of the handwriting board is further adjusted, the influence of factors such as a network on the handwriting is minimized, the point reporting rate is adjusted according to the requirement of the handwriting presentation, the handwriting can be smoothly transmitted, the requirement on the network can be lowered, and the power consumption of the handwriting board is reduced.
As shown in FIG. 2, in some embodiments, the method of the present disclosure further includes step 201, when the hit rate of the handwriting board is less than a second hit rate threshold and the moving rate is less than the first threshold, keeping the hit rate of the handwriting board unchanged, wherein the second hit rate threshold is less than the first hit rate threshold. In some embodiments, when the hit rate of the handwriting pad is less than the second hit rate threshold, although the moving speed is less than the first threshold, i.e. the speed of the handwriting is relatively low, sometimes the handwriting can be transmitted more smoothly by maintaining a certain hit rate, and the problem that the hit rate is too low to facilitate timely interaction with the external electronic writing device is avoided. In some embodiments, the second reporting rate threshold may be set to a minimum reporting rate allowed for the handwriting pad interaction.
As shown in fig. 3, in some embodiments, the method of the present disclosure further includes step 301 of determining a network quality, and when the network quality is lower than a preset threshold and the moving speed is greater than or equal to a first threshold, keeping the hit rate of the handwriting pad unchanged. In some embodiments, it is sometimes desirable to balance the transmission rate of the handwriting when the network quality is not good. Although the moving speed is larger than or equal to the first threshold value at this time, the point reporting rate of the handwriting board can still be kept unchanged, so as to avoid that the point reporting rate is adjusted too high under the condition that the network quality does not meet the high point reporting rate.
In some embodiments, the network quality includes network bandwidth, packet loss rate or delay, and the like. In some embodiments, the preset threshold may be preset and user adjustable.
In some embodiments, as shown in FIG. 4, an electronic writing device 400 is shown, the electronic writing device 400 including a tablet 401 and a stylus 402. In some embodiments, the sensors in the stylus 402 include an acceleration sensor 4022 and a gyroscope 4023, wherein the acceleration sensor 40 is used to obtain an acceleration of the stylus 402 and the gyroscope 4023 is used to obtain an angular velocity of the stylus 402. By adopting the combination of the acceleration sensor 4022 and the gyroscope 4023, not only can the in-air handwriting recognition be realized, but also the moving rate of the stylus within the preset time can be calculated.
In some embodiments, stylus 402 also includes a microcontroller 4021 and a first communication module 4024 communicatively coupled to microcontroller 4021. In some embodiments, the microcontroller 4021 is configured to calculate a moving rate of the stylus pen 402 within a preset time, and transmit the calculated moving rate to the tablet 401 through the first communication module 4024. In some embodiments, the stylus includes a first communication module 4024, the tablet 401 includes a processor 4011 and a second communication module 4012 communicatively connected to the processor 4011, the sensor data in the stylus 402 is transmitted through the first communication module 4024 and received by the second communication module 4012 of the tablet 401, and the rate of movement of the stylus 402 over a preset time is calculated by the processor 4011. In some embodiments, handwriting pad 401 also includes signal receiving module 4013. In some embodiments, the signal receiving module 4013 is an electromagnetic induction touch module. In some embodiments, the hit rate of handwriting pad 401 may be adjusted by processor 4011 or signal receiving module 4013.
In some embodiments, the sensor in stylus 402 is mounted in an area adjacent to the tip of stylus 402, and the rate of movement is the rate of movement of stylus 402 in the horizontal direction. In some embodiments, the stylus is typically the portion that is most suitable for the user to express the intended writing, and therefore mounting the sensor adjacent to the stylus allows a better sense of the intended writing.
Embodiments of the present disclosure also provide an apparatus 500 for controlling an electronic writing device, the electronic writing device including a writing pad and a writing pen, the apparatus 500 including an obtaining module 501, a calculating 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 rate of movement of the stylus over a preset time from the sensor data. The control module 503 is configured to reduce the hit rate of the handwriting board by a preset value when the moving rate is smaller than a first threshold; when the moving speed is greater than or equal to a first threshold and smaller than a second threshold, keeping the point reporting rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than the first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged.
In some embodiments, control module 503 is further configured to keep the point rate of the handwriting pad unchanged when the point rate of the handwriting pad is less than a second point rate threshold and the movement rate is less than the first threshold, wherein the second point rate threshold is less than the first point 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 hit rate of the handwriting pad unchanged.
It should be understood that what is described with respect to a method of controlling an electronic writing device is also applicable to the device 500 for controlling an electronic writing device herein, and for the sake of simplicity, will not be described in detail herein.
In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for controlling the electronic writing device.
In addition, the present disclosure also provides a computer storage medium storing program code for executing the above-described method of controlling an electronic writing device.
In the above, the method and apparatus for controlling an electronic writing apparatus of the present disclosure have been described based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
Referring now to fig. 6, a schematic diagram of an electronic writing apparatus (e.g., a terminal device or server) 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic writing device shown in fig. 6 is only an example, and should not bring any limitation to the function and the range of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic writing device 600 may include a processing device (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage device 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic writing device 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic writing device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic writing device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be contained in the electronic writing device; or may exist separately without being assembled into the electronic book writing device.
The computer readable medium carries one or more programs which, when executed by the electronic writing device, cause the electronic writing device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above 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 a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method of controlling an electronic writing apparatus including a tablet and a stylus, the method including: acquiring sensor data in the stylus; calculating the moving speed of the stylus pen in a preset time by the sensor data; when the moving speed is smaller than a first threshold value, reducing the point reporting rate of the handwriting board by a preset value; when the moving speed is greater than or equal to the first threshold and smaller than a second threshold, keeping the report rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than a first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged.
According to one or more embodiments of the present disclosure, further comprising: when the point reporting rate of the handwriting board is smaller than a second point reporting rate threshold value and the moving speed is smaller than the first threshold value, keeping the point reporting rate of the handwriting board unchanged, wherein the second point reporting rate threshold value is smaller than the first point reporting rate threshold value.
According to one or more embodiments of the present disclosure, further comprising: and determining the network quality, and keeping the report rate of the handwriting board unchanged when the network quality is lower than a preset threshold and the moving speed is greater than or equal to the first threshold.
According to one or more embodiments of the present disclosure, the sensor in the stylus includes an acceleration sensor for obtaining an acceleration of the stylus and a gyroscope for obtaining an angular velocity of the stylus.
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 configured to calculate a movement rate of the stylus pen within a preset time, and transmit the calculated movement rate to the tablet through the first communication module.
According to one or more embodiments of the present disclosure, the stylus pen includes a first communication module, the tablet includes a processor and a second communication module communicatively connected to the processor, the sensor data in the stylus pen is transmitted through the first communication module and received by the second communication module of the tablet, and the processor calculates a movement rate of the stylus pen within a preset time.
According to one or more embodiments of the present disclosure, the sensor in the stylus pen is installed at a region adjacent to a tip of the stylus pen, and the moving rate is a moving rate of the stylus pen in a horizontal direction.
There is also provided, in accordance with one or more embodiments of the present disclosure, apparatus for controlling an electronic writing apparatus including a tablet and a stylus, the apparatus including: an acquisition module configured to acquire sensor data in the stylus; a calculation module configured to calculate a movement rate of the stylus pen within a preset time from the sensor data; the control module is configured to reduce the report rate of the handwriting board by a preset value when the moving speed is smaller than a first threshold value; when the moving speed is greater than or equal to the first threshold and smaller than a second threshold, keeping the report rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than a first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method of controlling an electronic writing device comprising a writing pad and a stylus, the method comprising:
acquiring sensor data in the stylus;
calculating the moving speed of the stylus pen in a preset time by the sensor data;
when the moving speed is smaller than a first threshold value, reducing the point reporting rate of the handwriting board by a preset value; when the moving speed is greater than or equal to the first threshold and smaller than a second threshold, keeping the report rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than a first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged.
2. The method of claim 1, further comprising:
when the point reporting rate of the handwriting board is smaller than a second point reporting rate threshold value and the moving speed is smaller than the first threshold value, keeping the point reporting rate of the handwriting board unchanged, wherein the second point reporting rate threshold value is smaller than the first point reporting rate threshold value.
3. The method of claim 1, further comprising:
and determining the network quality, and keeping the report rate of the handwriting board unchanged when the network quality is lower than a preset threshold and the moving speed is greater than or equal to the first threshold.
4. The method of claim 1, wherein the sensors in the stylus comprise an acceleration sensor and a gyroscope, wherein the acceleration sensor is used to obtain an acceleration of the stylus and the gyroscope is used to obtain an angular velocity of the stylus.
5. The method of claim 4, wherein the stylus pen further comprises a microcontroller and a first communication module communicatively connected to the microcontroller, and wherein the microcontroller is configured to calculate a rate of movement of the stylus pen within a preset time, and to transmit the calculated rate of movement to the tablet via the first communication module.
6. The method of claim 4, wherein the stylus includes a first communication module, wherein the tablet includes a processor and a second communication module communicatively coupled to the processor, wherein the sensor data in the stylus is transmitted through the first communication module and received by the second communication module of the tablet, and wherein the rate of movement of the stylus over a preset time is calculated by the processor.
7. The method of claim 1, wherein the sensor in the stylus is mounted in a region adjacent to a tip of the stylus, and the rate of movement is a rate of movement of the stylus in a horizontal direction.
8. An apparatus for controlling an electronic writing device including a writing pad and a stylus, the apparatus comprising:
an acquisition module configured to acquire sensor data in the stylus;
a calculation module configured to calculate a movement rate of the stylus pen within a preset time from the sensor data;
the control module is configured to reduce the report rate of the handwriting board by a preset value when the moving speed is smaller than a first threshold value; when the moving speed is greater than or equal to the first threshold and smaller than a second threshold, keeping the report rate of the handwriting board unchanged; and when the moving speed is larger than or equal to the second threshold, determining whether the point reporting rate of the handwriting board is smaller than a first point reporting rate threshold, if so, increasing the point reporting rate of the handwriting board by a preset value, and if not, keeping the point reporting rate of the handwriting board unchanged.
9. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 7.
10. A storage medium for storing program code for performing the method of any one of claims 1 to 7.
CN202110023560.9A 2021-01-08 2021-01-08 Method, device, terminal and storage medium for controlling electronic writing device Pending CN112860136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110023560.9A CN112860136A (en) 2021-01-08 2021-01-08 Method, device, terminal and storage medium for controlling electronic writing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110023560.9A CN112860136A (en) 2021-01-08 2021-01-08 Method, device, terminal and storage medium for controlling electronic writing device

Publications (1)

Publication Number Publication Date
CN112860136A true CN112860136A (en) 2021-05-28

Family

ID=76005476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110023560.9A Pending CN112860136A (en) 2021-01-08 2021-01-08 Method, device, terminal and storage medium for controlling electronic writing device

Country Status (1)

Country Link
CN (1) CN112860136A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262460A (en) * 2011-08-29 2011-11-30 江苏惠通集团有限责任公司 Air mouse and method and device for controlling movement of mouse pointer
CN108874200A (en) * 2018-04-16 2018-11-23 广州视源电子科技股份有限公司 The control method and device of writing speed
CN109117019A (en) * 2018-07-13 2019-01-01 青岛罗博数码科技有限公司 Variable report point rate handwriting pad and its report point rate adjusting method
CN110832447A (en) * 2019-09-30 2020-02-21 深圳市汇顶科技股份有限公司 Signal transmitting and receiving method, processor chip, active pen and touch screen
CN111950445A (en) * 2020-08-11 2020-11-17 北京字节跳动网络技术有限公司 Writing device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262460A (en) * 2011-08-29 2011-11-30 江苏惠通集团有限责任公司 Air mouse and method and device for controlling movement of mouse pointer
CN108874200A (en) * 2018-04-16 2018-11-23 广州视源电子科技股份有限公司 The control method and device of writing speed
CN109117019A (en) * 2018-07-13 2019-01-01 青岛罗博数码科技有限公司 Variable report point rate handwriting pad and its report point rate adjusting method
CN110832447A (en) * 2019-09-30 2020-02-21 深圳市汇顶科技股份有限公司 Signal transmitting and receiving method, processor chip, active pen and touch screen
CN111950445A (en) * 2020-08-11 2020-11-17 北京字节跳动网络技术有限公司 Writing device and terminal

Similar Documents

Publication Publication Date Title
CN110765354B (en) Information pushing method and device, electronic equipment and storage medium
CN112256231B (en) Volume control method, device, terminal and storage medium
CN112954354B (en) Video transcoding method, device, equipment and medium
CN112256223A (en) Display fluency adjusting method and device and electronic equipment
CN110768861B (en) Method, device, medium and electronic equipment for obtaining overtime threshold
CN112379982A (en) Task processing method and device, electronic equipment and computer readable storage medium
CN113766303B (en) Multi-screen interaction method, device, equipment and storage medium
CN110910469A (en) Method, device, medium and electronic equipment for drawing handwriting
CN110806834A (en) Information processing method and device based on input method, electronic equipment and medium
CN112711341A (en) Writing device control method, writing device control device, terminal and storage medium
CN112380883A (en) Model training method, machine translation method, device, equipment and storage medium
CN111930228A (en) Method, device, equipment and storage medium for detecting user gesture
CN113163483B (en) Timestamp updating method and device and electronic equipment
CN116248991A (en) Camera position adjustment method, camera position adjustment device, electronic equipment and computer readable medium
CN112860136A (en) Method, device, terminal and storage medium for controlling electronic writing device
CN110705536A (en) Chinese character recognition error correction method and device, computer readable medium and electronic equipment
CN114038465B (en) Voice processing method and device and electronic equipment
CN113766293B (en) Information display method, device, terminal and storage medium
CN113191257B (en) Order of strokes detection method and device and electronic equipment
CN113971876B (en) Terminal communication method, terminal device, terminal, and storage medium
CN114077372A (en) Information display method, device and storage medium
CN112636971A (en) Service degradation method and device, electronic equipment and storage medium
CN113076053A (en) Cursor remote control method and device, electronic equipment and storage medium
CN113242397B (en) Frame rate adjusting method, device and equipment
CN111338827A (en) Method and device for pasting table data and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination