CN116414238A - Handwriting pen control method, handwriting pen control device and storage medium - Google Patents
Handwriting pen control method, handwriting pen control device and storage medium Download PDFInfo
- Publication number
- CN116414238A CN116414238A CN202111646957.XA CN202111646957A CN116414238A CN 116414238 A CN116414238 A CN 116414238A CN 202111646957 A CN202111646957 A CN 202111646957A CN 116414238 A CN116414238 A CN 116414238A
- Authority
- CN
- China
- Prior art keywords
- handwriting pen
- equipment
- copy
- stylus
- content
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 241001422033 Thestylus Species 0.000 claims abstract description 102
- 230000004044 response Effects 0.000 claims abstract description 8
- 230000001960 triggered effect Effects 0.000 claims description 49
- 238000004891 communication Methods 0.000 claims description 20
- 238000001514 detection method Methods 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing 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/03545—Pens or stylus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Position Input By Displaying (AREA)
Abstract
The disclosure relates to a handwriting pen control method, a handwriting pen control device and a storage medium. The handwriting pen control method is applied to the handwriting pen, a network connection module is arranged in the handwriting pen, the handwriting pen is connected with the first equipment and/or the second equipment through the network connection module, and the method comprises the following steps: responding to connection of the handwriting pen and the first equipment, triggering copy operation of the content on the first equipment, and storing copy information, wherein the copy information is used for acquiring the content of which the handwriting pen triggers copy on the first equipment; and in response to determining that the stylus is connected with a second device, triggering a paste operation on the second device, and sending the copy information to the second device. The method and the device can realize pasting of copy contents of the handwriting pen among different devices.
Description
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a handwriting pen control method, a handwriting pen control device and a storage medium.
Background
With the development of terminal technology, the functions available by the terminal are more and more diversified, for example, handwriting pens which can be used in association with the terminals such as smart phones, tablet computers and the like are provided in the related technology.
In the related art, after a stylus is associated with a terminal, related operations such as writing, drawing, screenshot, copying, pasting, etc. may be performed on the terminal. However, at present, the stylus is limited to operate on the currently associated terminals, and does not support interactive operation between terminals, such as pasting of copy content between terminals.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a stylus control method, apparatus, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a stylus control method, applied to a stylus, where a network connection module is provided in the stylus, and the stylus is connected to a first device and/or a second device through the network connection module, the method includes:
responding to connection of the handwriting pen and the first equipment, triggering copy operation of the content on the first equipment, and storing copy information, wherein the copy information is used for acquiring the content of which the handwriting pen triggers copy on the first equipment; and in response to determining that the stylus is connected with a second device, triggering a paste operation on the second device, and sending the copy information to the second device.
In one embodiment, the storing copy information includes: and saving the address information of the first equipment.
In one embodiment, the stylus includes a storage module, and the storing copy information includes: and storing the copied content in the storage module.
In one embodiment, determining that the stylus is connected to a second device comprises: and responding to the detection that the address of the equipment connected with the network connection module is changed into the address of the second equipment, and detecting that the handwriting pen operates on the second equipment, and determining to be connected with the second equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided a stylus control method applied to a second device, where a stylus is connected to the second device, the method including:
responding to triggering and pasting operation of the handwriting pen on the second device, and acquiring copy information from the handwriting pen, wherein the copy information is used for acquiring content which is triggered and copied by the handwriting pen on the first device; and based on the copy information, obtaining copy content triggered by the handwriting pen on the first device.
In one embodiment, the copy information includes address information of the first device; based on the copy information, obtaining copy content triggered by the handwriting pen on the first device, including: establishing connection with the first device based on the address information of the first device; and if the connection with the first equipment is successfully established, acquiring copy content triggered by the handwriting pen on the first equipment from the first equipment.
In one embodiment, the method further comprises: if the connection with the first equipment fails, periodically reestablishing the connection with the first equipment until the connection with the first equipment is established successfully, and acquiring copy content triggered by the handwriting pen on the first equipment from the first equipment.
In one embodiment, the copy information includes copy content stored in a stylus storage module; based on the copy information, obtaining copy content triggered by the handwriting pen on the first device, including: and obtaining copy content triggered by the handwriting pen on the first device from the handwriting pen.
According to a third aspect of embodiments of the present disclosure, there is provided a stylus control method applied to a first device, on which a stylus is connected, the method including: responding to the triggering of the copying operation of the content by the handwriting pen on the first equipment, caching the copied content, and sending the address information of the first equipment to the handwriting pen; responding to a connection request sent by a second device based on the address information, and establishing connection with the second device; and if the connection with the second equipment is established successfully, the stored copy content is sent to the second equipment.
In one embodiment, the method further comprises: if the connection with the second equipment fails, the copy content is continuously occupied and cached, the connection with the second equipment is periodically re-established until the connection with the second equipment is successfully established, and the stored copy content is sent to the second equipment.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a stylus control apparatus, the apparatus including:
the storage unit is used for storing copy information under the condition that the handwriting pen is connected with the first equipment and the copy operation of the content is triggered on the first equipment, and the copy information is used for acquiring the content which is triggered by the handwriting pen on the first equipment; and the sending unit is used for sending the copy information to the second device under the condition that the handwriting pen is determined to be connected with the second device and the pasting operation is triggered on the second device.
In one embodiment, the storing unit is configured to store copy information and store address information of the first device in the following manner.
In one embodiment, the storage unit is configured to store the copy information and store the copied content in the following manner.
In one embodiment, the sending unit is configured to determine that the stylus is connected to the second device, and determine that the stylus is connected to the second device in response to detecting that an address of the device connected to the network connection module is changed to an address of the second device, and detecting that the stylus is operated on the second device.
According to a fifth aspect of embodiments of the present disclosure, there is provided a stylus control apparatus, the apparatus comprising:
the device comprises an acquisition unit, a copying unit and a copying unit, wherein the acquisition unit is used for acquiring copy information from a handwriting pen when the handwriting pen triggers a pasting operation on a second device, the copy information is used for acquiring content of triggering copying of the handwriting pen on a first device, and based on the copy information, the copy content of triggering of the handwriting pen on the first device is acquired.
In one embodiment, the copy information includes address information of the first device; the acquisition unit acquires copy content triggered by the handwriting pen on the first device based on the copy information in the following manner: establishing connection with the first device based on the address information of the first device; and if the connection with the first equipment is successfully established, acquiring copy content triggered by the handwriting pen on the first equipment from the first equipment.
In one embodiment, the acquisition unit is further configured to: and when the connection with the first equipment fails, periodically reestablishing the connection with the first equipment until the connection with the first equipment is established successfully, and acquiring copy content triggered by the handwriting pen on the first equipment from the first equipment.
In one embodiment, the copy information includes copy content stored in a stylus storage module; the acquisition unit acquires copy content triggered by the handwriting pen on the first device based on the copy information in the following manner: and obtaining copy content triggered by the handwriting pen on the first device from the handwriting pen.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a stylus control apparatus, the apparatus further comprising:
the storage unit is used for triggering the copying operation of the content on the first device by the handwriting pen and caching the copied content; the communication unit is used for sending the address information of the first device to the handwriting pen, establishing connection with the second device after receiving a connection request sent by the second device based on the address information, and sending the saved copy content to the second device when the connection with the second device is successfully established.
In one embodiment, the memory unit is further configured to: when the connection with the second equipment fails to be established, continuously occupying the position to cache the copied content; the communication unit is further configured to: periodically re-establishing connection with the second device until the connection with the second device is successfully established, and sending the saved copy content to the second device.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a stylus control apparatus including:
a processor; a memory for storing processor-executable instructions;
wherein the processor is configured to: the stylus control method of the first aspect or any implementation manner of the first aspect is performed.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a stylus control apparatus including:
a processor; a memory for storing processor-executable instructions;
wherein the processor is configured to: the stylus control method according to the second aspect or any one of the embodiments of the second aspect is performed.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a stylus control apparatus including:
a processor; a memory for storing processor-executable instructions;
Wherein the processor is configured to: the stylus control method described in the third aspect or any one of implementation manners of the third aspect is performed.
According to a tenth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions stored therein, which when executed by a processor of a stylus, enable the stylus to perform the stylus control method of the first aspect or any one of the first aspects.
According to an eleventh aspect of embodiments of the present disclosure, there is provided a storage medium having stored therein instructions which, when executed by a processor of a stylus, enable the stylus to perform the second aspect or any one of the methods of controlling a stylus of the second aspect.
According to a twelfth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions stored therein, which when executed by a processor of a stylus, enable the stylus to perform the stylus control method of the third aspect or any one of the third aspects.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: when the handwriting pen triggers the content copying operation on the first equipment, copy information is stored, and when the handwriting pen is connected with the second equipment and triggers the pasting operation, the copied content is pasted on the second equipment based on the stored copy information, so that the pasting operation between the first equipment and the second equipment is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a stylus control method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a stylus control method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a stylus control method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a stylus control method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a stylus control method according to an exemplary embodiment.
Fig. 6 is a block diagram of a stylus control apparatus, according to an example embodiment.
Fig. 7 is a block diagram of a stylus control apparatus, according to an example embodiment.
Fig. 8 is a block diagram of a stylus control apparatus, according to an example embodiment.
Fig. 9 is a block diagram illustrating an apparatus for stylus control according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure.
The stylus control method provided by the embodiment of the disclosure is applied to the technical field of interaction between a stylus and equipment, for example, the stylus control method provided by the embodiment of the disclosure can be applied to a scene that the stylus performs related operations such as writing, drawing, screenshot, copying, pasting and the like on the equipment. However, the corresponding operations performed by the handwriting pen on the devices are limited to the operations performed on the devices which are associated at present, and do not support the interaction operation between the devices, such as the pasting of copy contents between the devices. For example, when a user switches to a mobile phone for use after connecting and writing a stylus on a tablet, the stylus does not support related operations such as copying and pasting.
The embodiment of the disclosure provides a handwriting pen control method for realizing cross-device interaction operation of handwriting pen among different devices.
For convenience of description in the embodiments of the present disclosure, different devices associated with a stylus are referred to as a first device and a second device.
The first device may be a device that triggers a copy operation of the content with a handwriting pen, and the second device may be a device that performs paste of the copy content across devices.
In one implementation manner, in the embodiment of the disclosure, when the handwriting pen triggers a content copying operation on the first device, copy information is stored, and when the handwriting pen is connected with the second device and triggers a pasting operation, based on the stored copy information, the copied content is pasted on the second device, so that a cross-device pasting operation between the first device and the second device is realized.
Fig. 1 is a flowchart illustrating a stylus control method applied to a stylus connected to a first device and/or a second device through a network connection module according to an exemplary embodiment. As shown in fig. 1, the stylus control method includes the steps of:
in step S11, the stylus is connected to the first device, and a copy operation of the content is triggered on the first device, and copy information is stored, where the copy information is used to obtain the content that the stylus triggers copying on the first device.
In step S12, the stylus is connected to the second device, and a paste operation is triggered on the second device to send the copy information to the second device.
In an embodiment of the disclosure, the network connection module provided in the stylus may be a module that supports association of the stylus with the first device and/or the second device based on an existing communication protocol. In one example, a bluetooth module may be added to the stylus. Of course, in the embodiment of the present disclosure, the network connection module may also be a wireless fidelity (Wireless Fidelity, wifi) module, an Ultra Wide Band (UWB) module, and so on.
In one implementation of the disclosed embodiments, a network connection module supports connecting a stylus to multiple devices simultaneously. For example, the network connection module in the embodiments of the present disclosure may be a bluetooth module supporting connection of two or more devices.
In one example, a bluetooth module is added to the stylus and data reception and data processing of the bluetooth module is maintained. The handwriting pen is connected with the first equipment and the second equipment through the Bluetooth module, and the communication state is kept. After the handwriting pen triggers the copying operation of the content on the first device, the handwriting pen stores copying information, and the copying information is used for acquiring the content which is triggered to be copied by the handwriting pen on the first device. When the handwriting pen operates on the second device and the pasting operation is triggered, the content of the handwriting pen, which is triggered to be copied on the first device, can be obtained based on the stored copy information, and the content of the handwriting pen, which is triggered to be copied on the first device, can be pasted on the second device.
In the embodiment of the disclosure, the content of the copy referred to above may be, for example, text, a picture, a document, a website, or the like.
The handwriting pen control method provided by the embodiment of the disclosure can enable the handwriting pen to complete data circulation between the first device and the second device, such as texts, pictures, documents, websites and the like, helps a user to solve the problem of data conversion between the devices, and provides more possibilities for using the handwriting pen.
The following describes a process of copying and pasting cross-device content by a stylus.
In one embodiment, the copy information stored by the stylus may be address information of the first device. The first device is determined by the address information and the copied content is retrieved from the first device.
Fig. 2 is a flowchart illustrating a stylus control method applied to a stylus connected to a first device and/or a second device through a network connection module according to an exemplary embodiment. As shown in fig. 2, the stylus control method includes the steps of:
in step S21, the stylus is connected to the first device, and a copy operation of the content is triggered on the first device, and address information of the first device is saved.
In step S22, the stylus is connected to the second device, and a paste operation is triggered on the second device, and the address information of the first device is sent to the second device.
In the embodiment of the disclosure, when the handwriting pen triggers a content copying operation on a first device, address information of the first device is stored, and when the handwriting pen is connected with a second device and triggers a pasting operation, the address information of the first device is sent to the second device, so that the second device obtains copied content from the first device based on the address information of the first device and pastes the copied content, and a trans-device copying content pasting operation between the first device and the second device is realized.
In an example, the network connection module is a bluetooth module. The address information of the first device stored in the stylus may be a bluetooth address of the first device.
In one implementation of the disclosed embodiments, when the stylus writes on the second device and triggers the paste operation, the stylus sends the stored bluetooth address of the first device to the second device. The second device is connected with the second device through the Bluetooth address of the first device, and applies for obtaining the copy content stored on the first device.
It can be understood that, in the embodiment of the present disclosure, by storing the bluetooth address information of the first device, the handwriting pen may be stored based on the original cache of the handwriting pen because the storage space occupied by the bluetooth address information is smaller.
In another embodiment, the copy information stored by the stylus may be content that the stylus copied on the first device. And sending the copied content to the second device, so that the second device obtains the copied content and pastes the copied content.
In this embodiment of the present disclosure, a storage module may be newly added to the handwriting pen, for example, may be a newly added storage chip, and the content copied by the handwriting pen on the first device is stored in the newly added storage module.
Fig. 3 is a flowchart illustrating a stylus control method applied to a stylus including a memory module therein according to an exemplary embodiment. As shown in fig. 3, the stylus control method includes the steps of:
in step S31, the stylus is connected to the first device, and triggers a content copying operation on the first device, where the stylus stores the copied content in the storage module.
In step S32, the stylus is connected to the second device, and a paste operation is triggered on the second device, so as to send the copy information stored in the storage module to the second device.
In the embodiment of the disclosure, the storage module is newly added in the handwriting pen, and the copied content is stored in the storage module, so that the handwriting pen can be directly used for sending the copied content to the second device for pasting, and the content pasting operation of the cross-device can be completed without interaction between the second device and the first device.
In an implementation manner of the embodiment of the present disclosure, after the handwriting pen sends the copy content to the second device, the copy content stored in the storage module may be released, so as to save storage space.
In one implementation manner of the embodiment of the disclosure, if the stylus is connected with the first device and the second device is not connected within a set period of time, the stylus may release the copy content stored in the storage module, so as to save storage space.
In one implementation of the disclosed embodiments, if the stylus is associated with a first device and not associated with a second device, the stylus may not store the copy content in the storage module.
In the embodiment of the disclosure, when the handwriting pen performs copy operation or paste operation on the same device, the storage module in the handwriting pen pauses use, and when the handwriting pen is used on different devices, the storage module stores copy contents such as texts, pictures, documents, websites and the like, so that the use duration of the handwriting pen can be prolonged, and the use power consumption can be reduced.
In the embodiment of the disclosure, the handwriting pen is connected with the first device through the network connection module, and the communication state is kept. When the handwriting pen writes on the first device, the network connection module of the handwriting pen can conduct bidirectional checking. In one aspect, it is detected whether a stylus is writing on a first device. On the other hand, it is detected whether or not the device address of the device connected to the stylus has been changed.
In one implementation of the disclosed embodiment, when the handwriting pen detects that the address of the device connected to the network connection module is changed to the address of the second device, and detects that writing operation is performed on the second device, it may be determined that the writing device of the handwriting pen is changed. That is, it is determined that the stylus has established a connection with the second device.
Based on the same conception, the embodiment of the disclosure also provides a stylus control method executed by the second device.
Fig. 4 is a flowchart illustrating a stylus control method according to an exemplary embodiment, which is applied to a second device, which may be, for example, a device for stylus touch sticky operation. As shown in fig. 4, the stylus control method includes the steps of:
in step S41, in response to the stylus triggering a paste operation on the second device, copy information is obtained from the stylus, the copy information being used to obtain content that the stylus triggers copying on the first device.
In step S42, copy content triggered by the stylus on the first device is acquired based on the copy information.
In one embodiment, the copy information includes address information of a first device, the stylus triggers a paste operation on a second device, the second device obtains address information of the first device stored in the stylus, the second device is connected with the second device through the address information of the first device, and if connection with the first device is successfully established, copy content triggered by the stylus on the first device is obtained from the first device.
In another embodiment, if the second device fails to establish a connection with the first device, the second device may periodically reestablish a connection with the first device until the connection with the first device is established successfully, and obtain, from the first device, the copy content triggered by the handwriting pen on the first device.
It may be appreciated that in the embodiment of the present disclosure, the number of times that the second device reestablishes the connection with the first device exceeds the number threshold, and the connection with the first device may be stopped, so as to discard the pasting operation.
In the embodiment of the present disclosure, the copy information includes bluetooth address information of the first device, because the bluetooth transmission mode delay is low. The second device may establish a connection with the first device via bluetooth based on the bluetooth address of the first device.
In another embodiment, the copy information includes copy content stored in a storage module in the stylus. The handwriting pen triggers a paste operation on the second device, the second device obtains copy content from a storage module of the handwriting pen to paste, and the content paste operation of the cross-device can be completed without interaction between the second device and the first device.
In the embodiment of the disclosure, when the second device does not receive the paste instruction, the second device will not acquire the bluetooth address information of the first device stored in the stylus.
In the embodiment of the disclosure, if the second device completes the pasting operation and does not execute the pasting operation within the set time period, the second device disconnects the bluetooth connection with the first device, so as to improve the service time period of the second device and reduce the power consumption.
According to the handwriting pen control method, the second device can complete the pasting operation of the handwriting pen triggering the copied content on the first device, data flow among the devices, such as text, pictures, documents, websites and the like, is completed, the problem of data conversion among the devices is solved by a user, and more possibilities are provided for using the handwriting pen.
Based on the same conception, the embodiment of the disclosure also provides a handwriting pen control method executed by the first device.
Fig. 5 is a flow chart illustrating a stylus control method according to an exemplary embodiment, which is applied to a first device, which may be, for example, a device for a stylus trigger copy operation. As shown in fig. 5, the stylus control method includes the steps of:
in step S51, in response to the stylus triggering a copy operation of the content on the first device, the copied content is cached, and address information of the first device is sent to the stylus.
In step S52, in response to receiving a connection request transmitted by the second device based on the address information, a connection is established with the second device.
In step S53, if the connection with the second device is successfully established, the saved copy content is transmitted to the second device.
In one implementation of the disclosed embodiments, a handwriting pen triggers a copy operation of content on a first device, and the first device caches the copy content triggered by the handwriting pen and sends address information of the first device to the handwriting pen. And transmitted to the second device by the stylus. The second device sends a connection request to the first device based on the address information of the first device.
In one implementation manner of the embodiment of the disclosure, a first device receives a connection request sent by a second device based on address information, establishes connection with the second device successfully, and sends copy content triggered by a handwriting pen at the first device to the second device.
In another implementation manner of the embodiment of the present disclosure, if the first device fails to establish a connection with the second device, the first device continuously occupies a space to buffer the copied content, and periodically reestablishes connection with the second device until the connection with the second device is established successfully, and sends the saved copied content to the second device.
In one implementation manner of the embodiment of the disclosure, if the first device completes the transmission of the copy content triggered by the stylus on the first device and no copy operation is performed within a set period of time, the first device disconnects the bluetooth connection with the second device, so that the service life of the first device can be prolonged and the power consumption of the first device can be reduced.
In one implementation, because the bluetooth transmission mode delay is low, in an embodiment of the disclosure, the address information of the first device may be bluetooth address information. The first device may establish a connection with the second device via bluetooth.
According to the handwriting pen control method, the handwriting pen triggering copying operation can be completed by the first device, the data circulation between the first device and the handwriting pen and the data circulation between the first device and the second device are completed, the problem of data conversion between the devices can be solved by a user, and more possibilities are provided for using the handwriting pen.
The embodiment of the disclosure is described below with reference to practical application to provide a stylus control method.
In one example, the stylus, the first device, and the second device communicate via a bluetooth connection. The communication state is maintained when the stylus and the first device are connected to the second device. After the stylus triggers an instruction to copy text or pictures, the stylus saves the Bluetooth address of the device and records. When writing is performed on the first device, the stylus pen performs a bidirectional check to detect whether writing is performed on the current device, and to detect whether the writing device of the stylus pen has been changed. When it is determined that the writing device has changed and the stylus triggers the paste step on the second device. The stylus communicates the bluetooth address of the first device previously recorded to the second device via bluetooth. The second device is selected according to the situation, and if the file recorded in the first device is selected, the second device is connected with the first device through the Bluetooth address in the handwriting pen, and applies for the transmission of the file. And performing a paste operation on the second device. If the Bluetooth address of the first device cannot be connected, connection attempt is performed at intervals, and if the connection is successful, transmission is performed. If the second device is still not connected to the first device, the first device will retain the placeholder for the cached copy content. Alternatively, after the stylus triggers an instruction to copy text or pictures, the stylus saves the copied content. When it is determined that a change has occurred to the writing device and the stylus triggers a paste step on the second device. The handwriting pen sends the stored copy content to the second device through Bluetooth, and pasting operation is carried out on the second device.
The handwriting pen control method provided by the embodiment of the disclosure can enable the handwriting pen to complete data circulation between the first device and the second device, such as texts, pictures, documents, websites and the like, helps a user to solve the problem of data conversion between the devices, and provides more possibilities for using the handwriting pen.
Based on the same conception, the embodiment of the disclosure also provides a handwriting pen control device.
It can be appreciated that, in order to implement the above-mentioned functions, the stylus control apparatus provided in the embodiments of the present disclosure includes corresponding hardware structures and/or software modules that perform the respective functions. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 6 is a block diagram of a stylus control apparatus, according to an example embodiment. Referring to fig. 6, the stylus control apparatus 100 includes a storage unit 101 and a transmission unit 102.
The storage unit 101 is configured to store copy information when the stylus pen is connected to the first device and a copy operation of the content is triggered on the first device, where the copy information is used to obtain the content that the stylus pen triggers to copy on the first device. The sending unit 102 is configured to send the copy information to the second device if it is determined that the stylus is connected to the second device and a paste operation is triggered on the second device.
In one embodiment, the storing unit 101 is configured to store the copy information and store the address information of the first device in the following manner.
In one embodiment, the storage unit 101 is configured to store copy information and copy content in the following manner.
In one embodiment, the sending unit 102 is configured to determine that the handwriting pen is connected to the second device, and determine that the handwriting pen is connected to the second device in response to detecting that the address of the device connected to the network connection module is changed to the address of the second device, and detecting that the handwriting pen is operated on the second device.
Fig. 7 is a block diagram of a stylus control apparatus, according to an example embodiment. Referring to fig. 7, the stylus control apparatus 200 includes an acquisition unit 201.
The obtaining unit 201 is configured to obtain copy information from the stylus when the stylus triggers a paste operation on the second device, where the copy information is used to obtain content triggered by the stylus on the first device, and obtain, based on the copy information, copy content triggered by the stylus on the first device.
In one embodiment, the copy information includes address information of the first device. The acquisition unit 201 acquires copy content triggered by the stylus on the first device based on the copy information in the following manner: a connection is established with the first device based on the address information of the first device. And if the connection with the first device is successfully established, acquiring copy content triggered by the handwriting pen on the first device from the first device.
In one embodiment, the obtaining unit 201 is further configured to: when the connection with the first equipment fails, periodically reestablishing the connection with the first equipment until the connection with the first equipment is established successfully, and acquiring copy content triggered by the handwriting pen on the first equipment from the first equipment.
In one embodiment, the copy information includes copy content stored in a stylus storage module. The acquisition unit 201 acquires copy content triggered by the stylus on the first device based on the copy information in the following manner: copy content triggered by the stylus on the first device is obtained from the stylus.
Fig. 8 is a block diagram of a stylus control apparatus, according to an example embodiment. Referring to fig. 8, the stylus control apparatus 300 includes a storage unit 301 and a communication unit 302.
The storage unit 301 is configured to trigger a copy operation of the content on the first device by using the stylus pen, and cache the copied content. The communication unit 302 is configured to send address information of the first device to the stylus pen, and when receiving a connection request sent by the second device based on the address information, establish a connection with the second device, and send the saved copy content to the second device when the connection with the second device is successfully established.
In one embodiment, the storage unit 301 is further configured to continuously occupy the cached content when the connection with the second device fails. The communication unit 302 is further configured to periodically reestablish a connection with the second device until the connection with the second device is established successfully, and send the saved copy content to the second device.
Fig. 9 is a block diagram illustrating a stylus controlled apparatus 400 according to an exemplary embodiment. For example, apparatus 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 9, apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls the overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The power component 406 provides power to the various components of the device 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen between the device 400 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 further includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of the apparatus 400. For example, the sensor assembly 414 may detect the on/off state of the device 400, the relative positioning of the components, such as the display and keypad of the device 400, the sensor assembly 414 may also detect the change in position of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration/deceleration of the device 400, and the change in temperature of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communication between the apparatus 400 and other devices in a wired or wireless manner. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 404, including instructions executable by processor 420 of apparatus 400 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that although operations are depicted in the drawings 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, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims (19)
1. The utility model provides a handwriting pen control method, is characterized in that is applied to the handwriting pen, be provided with network connection module in the handwriting pen, the handwriting pen passes through network connection module and is connected with first equipment and/or second equipment, the method includes:
responding to connection of the handwriting pen and the first equipment, triggering copy operation of the content on the first equipment, and storing copy information, wherein the copy information is used for acquiring the content of which the handwriting pen triggers copy on the first equipment;
and in response to determining that the stylus is connected with a second device, triggering a paste operation on the second device, and sending the copy information to the second device.
2. The method of claim 1, wherein the storing copy information comprises:
and saving the address information of the first equipment.
3. The method of claim 1, wherein the stylus includes a memory module therein, and wherein the storing copy information includes:
and storing the copied content in the storage module.
4. A method according to any one of claims 1 to 3, wherein determining that the stylus is connected to a second device comprises:
and responding to the detection that the address of the equipment connected with the network connection module is changed into the address of the second equipment, and detecting that the handwriting pen operates on the second equipment, and determining to be connected with the second equipment.
5. A stylus control method, applied to a second device, to which a stylus is connected, the method comprising:
responding to triggering and pasting operation of the handwriting pen on the second device, and acquiring copy information from the handwriting pen, wherein the copy information is used for acquiring content which is triggered and copied by the handwriting pen on the first device;
and based on the copy information, obtaining copy content triggered by the handwriting pen on the first device.
6. The method of claim 5, wherein the copy information includes address information of the first device;
based on the copy information, obtaining copy content triggered by the handwriting pen on the first device, including:
establishing connection with the first device based on the address information of the first device;
and if the connection with the first equipment is successfully established, acquiring copy content triggered by the handwriting pen on the first equipment from the first equipment.
7. The method of claim 6, wherein the method further comprises:
if the connection with the first equipment fails, periodically reestablishing the connection with the first equipment until the connection with the first equipment is established successfully, and acquiring copy content triggered by the handwriting pen on the first equipment from the first equipment.
8. The method of claim 5, wherein the copy information includes copy content stored in a stylus storage module;
based on the copy information, obtaining copy content triggered by the handwriting pen on the first device, including:
and obtaining copy content triggered by the handwriting pen on the first device from the handwriting pen.
9. A stylus control method, applied to a first device, to which a stylus is connected, the method comprising:
responding to the triggering of the copying operation of the content by the handwriting pen on the first equipment, caching the copied content, and sending the address information of the first equipment to the handwriting pen;
responding to a connection request sent by a second device based on the address information, and establishing connection with the second device;
and if the connection with the second equipment is established successfully, the stored copy content is sent to the second equipment.
10. The method according to claim 9, wherein the method further comprises:
if the connection with the second equipment fails, the copy content is continuously occupied and cached, the connection with the second equipment is periodically re-established until the connection with the second equipment is successfully established, and the stored copy content is sent to the second equipment.
11. A stylus control apparatus, the apparatus comprising:
the storage unit is used for storing copy information under the condition that the handwriting pen is connected with the first equipment and the copy operation of the content is triggered on the first equipment, and the copy information is used for acquiring the content which is triggered by the handwriting pen on the first equipment;
And the sending unit is used for sending the copy information to the second device under the condition that the handwriting pen is determined to be connected with the second device and the pasting operation is triggered on the second device.
12. A stylus control apparatus, the apparatus comprising:
the device comprises an acquisition unit, a copying unit and a copying unit, wherein the acquisition unit is used for acquiring copy information from a handwriting pen when the handwriting pen triggers a pasting operation on a second device, the copy information is used for acquiring content of triggering copying of the handwriting pen on a first device, and based on the copy information, the copy content of triggering of the handwriting pen on the first device is acquired.
13. A stylus control apparatus, the apparatus further comprising:
the storage unit is used for triggering the copying operation of the content on the first device by the handwriting pen and caching the copied content;
the communication unit is used for sending the address information of the first device to the handwriting pen, establishing connection with the second device after receiving a connection request sent by the second device based on the address information, and sending the saved copy content to the second device when the connection with the second device is successfully established.
14. A stylus control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the stylus control method of any one of claims 1 to 4.
15. A stylus control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the stylus control method according to any one of claims 5 to 8 is performed.
16. A stylus control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the stylus control method according to any one of claims 9 to 10 is performed.
17. A storage medium having instructions stored therein that, when executed by a processor of a stylus, enable the stylus to perform the stylus control method of any one of claims 1 to 4.
18. A storage medium having instructions stored therein that, when executed by a processor of a second device, enable the second device to perform the stylus control method of any one of claims 5 to 8.
19. A storage medium having instructions stored therein that, when executed by a processor of a first device, enable the first device to perform the stylus control method of any one of claims 9 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111646957.XA CN116414238A (en) | 2021-12-29 | 2021-12-29 | Handwriting pen control method, handwriting pen control device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111646957.XA CN116414238A (en) | 2021-12-29 | 2021-12-29 | Handwriting pen control method, handwriting pen control device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116414238A true CN116414238A (en) | 2023-07-11 |
Family
ID=87049783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111646957.XA Pending CN116414238A (en) | 2021-12-29 | 2021-12-29 | Handwriting pen control method, handwriting pen control device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116414238A (en) |
-
2021
- 2021-12-29 CN CN202111646957.XA patent/CN116414238A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11457479B2 (en) | Method and apparatus for configuring random access occasion, method and apparatus for random access | |
CN114430920B (en) | Capability reporting method and device, and capability determining method and device | |
CN108702763B (en) | Method and device for sending lead code and scheduling request | |
US11596018B2 (en) | Region configuration method and device | |
CN110262692B (en) | Touch screen scanning method, device and medium | |
CN111259289B (en) | Picture loading method and device, electronic equipment and storage medium | |
CN111261081B (en) | Screen display method and device | |
US20220256497A1 (en) | Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling | |
CN110875769A (en) | Wireless communication device and antenna switching method | |
JP2018503150A (en) | Method, apparatus, program and recording medium for processing touch screen point reports | |
CN109711830B (en) | Quick display method and device for two-dimension code payment, mobile terminal and storage medium | |
CN105808304B (en) | Code deployment method, device and system | |
CN107371222B (en) | Virtual card disabling method and device | |
CN105376318A (en) | File transmission method, device and system | |
CN106535147B (en) | Communication signal processing method and device | |
CN109491655B (en) | Input event processing method and device | |
CN107704489B (en) | Processing method and device for read-write timeout and computer readable storage medium | |
CN113692067B (en) | Device connection method and device and readable storage medium | |
EP3185515B1 (en) | Method and device for inputting information | |
CN113259995B (en) | Information processing method, device and storage medium | |
CN109981729B (en) | File processing method and device, electronic equipment and computer readable storage medium | |
CN116414238A (en) | Handwriting pen control method, handwriting pen control device and storage medium | |
CN111724398A (en) | Image display method and device | |
CN111753235B (en) | Page loading method, device and storage medium | |
CN115866129B (en) | Application scene identification method, device, terminal and storage medium |
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 |