CN112527134A - Touch pen, control method thereof and electronic equipment - Google Patents
Touch pen, control method thereof and electronic equipment Download PDFInfo
- Publication number
- CN112527134A CN112527134A CN202011396076.2A CN202011396076A CN112527134A CN 112527134 A CN112527134 A CN 112527134A CN 202011396076 A CN202011396076 A CN 202011396076A CN 112527134 A CN112527134 A CN 112527134A
- Authority
- CN
- China
- Prior art keywords
- stylus
- electronic device
- distance
- module
- touch
- 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.)
- Granted
Links
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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
The disclosure provides a touch pen, a control method thereof and electronic equipment, and belongs to the field of communication equipment. The stylus cooperatees with first electronic equipment, and first electronic equipment is provided with the accommodation hole, and the stylus includes: the battery module is respectively and electrically connected with the touch module, the control module and the communication module, and the control module is respectively and electrically connected with the touch module and the communication module; under the condition that the stylus is accommodated in the accommodating hole, the touch module is exposed out of the first electronic equipment; the touch module includes at least one of a touch panel and a key. The touch pen can solve the problem that the existing touch pen cannot provide any function when being accommodated in electronic equipment, and design is wasted.
Description
Technical Field
The disclosure belongs to the technical field of communication equipment, and particularly relates to a touch pen, a control method of the touch pen and electronic equipment.
Background
At present, electronic equipment such as a plurality of mobile phones or tablet computers and the like are generally provided with a touch pen, a user can touch a touch display module of the electronic equipment by means of the touch pen to control and operate the electronic equipment, the function and the effect of the touch pen are single, and under the condition that the touch pen is accommodated on the electronic equipment, the touch pen cannot provide any function, so that the design is wasted.
Disclosure of Invention
The disclosed embodiment aims to provide a stylus, a control method thereof and an electronic device, which can solve the problem that the existing stylus cannot provide any function when being accommodated in the electronic device, and design waste exists.
In order to solve the technical problem, the present disclosure is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides a stylus, where the stylus is matched with a first electronic device, the first electronic device is provided with a receiving hole, and the stylus includes: the battery module is electrically connected with the touch module, the control module and the communication module respectively, and the control module is electrically connected with the touch module and the communication module respectively;
under the condition that the stylus is accommodated in the accommodating hole, the touch module is exposed to the first electronic device;
the touch module comprises at least one of a touch panel and a key.
Based on the stylus provided by the above embodiment, the first electronic device includes a device body, a device battery and a first contact are arranged in the device body, the first contact is electrically connected with the device battery, the stylus is provided with a second contact, the battery module is electrically connected with the second contact, the stylus is accommodated in the accommodating hole, the first contact is in contact with the second contact, and the battery module is electrically connected with the device battery.
Based on the touch control pen provided by any one of the above embodiments, the touch control pen further comprises a positioning module, the positioning module is arranged in the accommodating cavity, and the positioning module is electrically connected with the battery module.
In a second aspect, an embodiment of the present disclosure further provides a method for controlling a stylus, where the stylus is matched with a first electronic device, the first electronic device is provided with a receiving hole, and the stylus includes: the battery module is electrically connected with the touch module, the control module and the communication module respectively, and the control module is electrically connected with the touch module and the communication module respectively; under the condition that the stylus is accommodated in the accommodating hole, the touch module is exposed to the first electronic device; the touch module comprises at least one of a touch panel and a key;
the control method comprises the following steps:
the touch control pen receives a first operation from a user;
and under the condition that the distance between the touch pen and the target equipment is smaller than the preset distance, the control module sends first control information to the target equipment through the communication module according to the first operation.
Based on the control method provided by the above embodiment, the target device is the first electronic device, and the preset distance is a first preset distance;
the first preset distance is the distance between the stylus and the first electronic device under the condition that the stylus part is accommodated in the accommodating hole.
Based on the control method provided in any of the above embodiments, the control method further includes:
and under the condition that the distance between the stylus and the first electronic equipment is greater than the preset distance, the control module sends second control information to the first electronic equipment through the communication module according to the first operation.
Based on the control method provided in any of the above embodiments, the target device is a second electronic device, and the preset distance is a second preset distance;
the second preset distance is a distance between the stylus and the second electronic device.
Based on the control method provided in any of the above embodiments, when the distance between the stylus and the target device is smaller than a preset distance, the sending, by the control module, the first control information to the target device through the communication module according to the first operation includes:
when the distance between the stylus and the second electronic device is smaller than the second preset distance and the distance between the stylus and the first electronic device is equal to the first preset distance, the control module sends first control information to the second electronic device through the communication module according to the first operation;
the first preset distance is a distance between the stylus and the first electronic device under the condition that the stylus portion is accommodated in the accommodating hole of the first electronic device.
Based on the control method provided in any one of the above embodiments, the first operation includes:
and touching a preset area of the second electronic equipment.
Based on the control method provided in any one of the above embodiments, the first operation includes:
under the condition that the distance between the touch pen and the first electronic device is smaller than a first preset distance, pulling out part of the touch pen from the accommodating hole of the first electronic device;
under the condition that the distance between the touch pen and the first electronic device is equal to a first preset distance, pulling out a part of the touch pen from the accommodating hole of the first electronic device, or inserting a part of the touch pen back into the accommodating hole of the first electronic device;
and under the condition that the distance between the touch control pen and the first electronic equipment is greater than a first preset distance, controlling the touch control pen to move in a preset track.
Based on the control method provided in any of the above embodiments, the control method further includes:
and sending third control information to the second electronic equipment through the communication module under the condition that the distance between the stylus and the second electronic equipment is greater than or equal to the second preset distance.
Based on the control method provided by any one of the above embodiments, the second electronic device is an automobile, an electronic access control device, or an intelligent terminal.
Based on the control method provided in any one of the above embodiments, the first operation includes: touching and/or pressing a touch module of the stylus.
Based on the control method provided in any one of the above embodiments, the first control information includes at least one of authentication information, unlocking information, and adjustment information.
In a third aspect, an embodiment of the present disclosure further provides a controller, where the controller includes:
receiving means for receiving a first operation from a user;
and the sending device is used for sending the first control information to the target equipment under the condition that the distance between the touch pen and the target equipment is smaller than the preset distance.
Based on the controller provided in the above embodiment, the target device is a first electronic device, the preset distance is a first preset distance, and the first preset distance is a distance between the stylus and the first electronic device when the stylus portion is accommodated in the accommodating hole of the first electronic device;
the sending device is further configured to send second control information to the first electronic device when the distance between the stylus and the first electronic device is greater than the preset distance.
Based on the controller provided in any of the above embodiments, the target device is a second electronic device, the preset distance is a second preset distance, and the second preset distance is a distance between the stylus and the second electronic device;
the sending device is further configured to send first control information to the second electronic device when the distance between the stylus and the second electronic device is smaller than the second preset distance and the distance between the stylus and the first electronic device is equal to the first preset distance;
the first preset distance is a distance between the stylus and the first electronic device under the condition that the stylus portion is accommodated in the accommodating hole of the first electronic device.
Based on the controller provided in any of the above embodiments, the receiving device includes a first sub-receiving device for receiving a touch action, and the first sub-receiving device is mountable to the second electronic device.
Based on the controller provided in any of the above embodiments, the receiving device includes a second sub-receiving device for receiving a movement condition of the stylus, and the second sub-receiving device is connected to the housing of the stylus.
Based on the controller provided in any of the above embodiments, the target device is a second electronic device, the preset distance is a second preset distance, and the second preset distance is a distance between the stylus and the second electronic device;
the sending device is further configured to send third control information to the second electronic device when the distance between the stylus and the second electronic device is greater than or equal to the second preset distance.
Based on the controller provided in any of the above embodiments, the receiving device includes a third sub-receiving device for receiving a touch and/or press action, and the third sub-receiving device is mounted on the housing of the stylus pen.
In a fourth aspect, the disclosed embodiments also provide an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the control method according to the second aspect.
In a fifth aspect, the disclosed embodiments also provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the control method according to the second aspect.
In a sixth aspect, the disclosed embodiments also provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the second aspect.
In the embodiment of the disclosure, the communication interface includes an input/output interface, and the processor controls the interface to communicate with other devices or chips to acquire information or data sent by the other devices or chips or send information or data to the other devices or chips.
In a seventh aspect, the disclosed embodiments also provide a computer program product stored in a non-volatile storage medium, the program/program product configured to be executed by at least one processor to implement the steps of the method according to the second aspect.
In an eighth aspect, the embodiments of the present disclosure also provide a processing apparatus, which includes a processing apparatus configured to execute the method according to the second aspect.
In a ninth aspect, an embodiment of the present disclosure further provides a control method, including:
receiving a first operation from a user;
and sending first control information to the target equipment according to the first operation under the condition that the distance between the touch pen and the target equipment is smaller than a preset distance.
In the embodiment of the disclosure, the stylus may be matched with the first electronic device, the battery module of the stylus is electrically connected with the touch module, the control module and the communication module respectively, and the control module is electrically connected with the touch module and the communication module respectively. The stylus can be accommodated in the accommodating hole of the first electronic device, and when the stylus is accommodated in the accommodating hole, the touch module can still be exposed out of the first electronic device, so that in the using process of the stylus, even if the stylus is accommodated in the accommodating hole of the first electronic device, a user can at least send a control command to other devices by means of the touch module, the application range of the stylus can be expanded, and the use efficiency of the stylus is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a schematic structural diagram of a stylus provided in an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a stylus provided in the embodiment of the present disclosure in another direction;
FIG. 3 is an exploded view of a stylus provided by embodiments of the present disclosure;
fig. 4 is a schematic diagram of a stylus pen and a first electronic device according to an embodiment of the disclosure;
FIG. 5 is a schematic view of the structure shown in FIG. 4 in another orientation;
FIG. 6 is an enlarged view of detail I of FIG. 5;
fig. 7 is a flowchart of a control method of a stylus provided in an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure.
Description of reference numerals:
110-shell, 120-touch head, 130-cap body,
200-main board,
310-communication module, 330-touch module, 331-key,
510-a second contact,
600-battery module,
700-antenna,
900 — a first electronic device.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present disclosure are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that embodiments of the disclosure can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes the stylus provided in the embodiments of the present disclosure in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1-6, the present disclosure provides a stylus pen, where the stylus pen is matched with a first electronic device, and the first electronic device may be a terminal device such as a mobile phone or a tablet computer. The first electronic equipment is provided with the accommodating hole, the shape and the size of the accommodating hole can be matched with those of the touch pen, the touch pen can be accommodated in the accommodating hole, and the accommodating hole can provide an accommodating and placing effect for the touch pen. Under the condition that the stylus is accommodated in the accommodating hole, the stylus can move or be carried with the first electronic equipment. The stylus includes a housing 110, a battery module 600, a touch module 330, a control module, and a communication module 310.
Wherein, casing 110 has been seted up and has been held the chamber, and battery module 600, control module and communication module 310 all set up and hold the intracavity, and casing 110 still can provide guard action for battery module 600, control module and communication module 310. The touch module 330 may perform information interaction with a user, so that the user inputs a control instruction to the stylus through the touch module 330, the control module may form a corresponding control signal or instruction and the like according to the instruction of the user, a received corresponding signal or a preset instruction and the like, and send the control signal or instruction and the like to a target device such as a controlled object and the like through the communication module 310, so that the target device completes a corresponding operation according to the instruction and the like of the user. Of course, the situation of the user performing the first operation may also be received through the communication module 310 or other device in the stylus pen.
The battery module 600 is electrically connected to the touch module 330, the control module and the communication module 310, respectively, to supply power to the touch module 330, the control module and the communication module 310, so as to ensure that the above three modules can work normally. In the process of assembling the stylus pen, the touch module 330, the control module and the communication module 310 may form an electrical connection relationship with the battery module 600 through a connection member such as a wire; alternatively, the touch module 330, the control module and the communication module 310 may be further connected to the battery module 600 through a circuit board. The control module is electrically connected to the touch module 330 and the communication module 310, respectively, so that the command and the like received by the touch module 330 can be sent to the control module, and the control module can send the control command and the like to the target device through the communication module 310. Similarly, the touch module 330 and the communication module 310 may be connected to the control module through a connection structure such as a wire or a circuit board. The communication module 310 may be a wifi module, a bluetooth module, or the like, and the touch module 330 may be at least one of a touch panel and a button 510, as described above, a user may send a control command or the like to the control module through the touch module 330 by touching the touch panel and/or the button 510, or the like.
The touch module 330 is disposed in the housing 110, and when the stylus is received in the receiving hole, the touch module 330 is exposed to the first electronic device. That is, the touch module 330 in the stylus pen is exposed on the surface of the first electronic device. In addition, in order to facilitate inserting and pulling out the stylus, a part of the stylus may be exposed outside the first electronic device, so that a user may conveniently pull out the stylus through the exposed part of the stylus in the process of inserting and pulling out the stylus, especially in the accommodating hole. In the stylus provided by the present disclosure, at least the touch module 330 is exposed outside the first electronic device. Of course, in the foregoing embodiment, only the area of the touch panel in the touch module 330 and/or the position of the key 510 may be exposed outside the first electronic device, or the touch module 330 may be entirely exposed outside the first electronic device, including the edge of the touch module 330 and other portions that cannot provide the touch function. In addition, in the stylus provided in the present disclosure, in addition to the touch module 330 being exposed to the first electronic device, other portions of the stylus, such as a portion of the housing 110, may also be exposed to the first electronic device.
In the embodiment of the present disclosure, the stylus pen may be matched with the first electronic device, the battery module 600 of the stylus pen is electrically connected with the touch module 330, the control module and the communication module 310, respectively, and the control module is electrically connected with the touch module 330 and the communication module 310, respectively. The stylus can be accommodated in the accommodating hole of the first electronic device, and when the stylus is accommodated in the accommodating hole, the touch module 330 can still be exposed out of the first electronic device, so that in the using process of the stylus, even if the stylus is accommodated in the accommodating hole of the first electronic device, a user can at least send a control command to other devices by means of the touch module 330, which can enlarge the application range of the stylus and improve the use efficiency of the stylus.
As described above, the touch module 330 is exposed to the first electronic device when the stylus is received in the receiving hole, optionally, the touch module 330 is disposed at a tail of the stylus, and correspondingly, the touch module 330 at the tail of the stylus is exposed to the first electronic device when the stylus is received in the receiving hole.
In another embodiment of the disclosure, a notch may be formed in a side wall of the receiving hole of the first electronic device, that is, a preset included angle is formed between an axial direction of the notch and an axial direction of the receiving hole, and the notch is not disposed at a tail portion of the receiving hole. The size and the shape of the opening can be determined according to actual conditions, and in the process of designing and manufacturing the touch pen, the part corresponding to the opening in the touch pen, such as the shape of the touch module 330, is adapted to the overall shape of the first electronic device, so that the overall structure of the first electronic device is more regular.
In the above embodiment, when the stylus is accommodated in the accommodating hole, the touch module 330 may be exposed to the electronic device through the opening. When the technical scheme is adopted, the area of the part of the stylus exposed out of the first electronic device can be enlarged to a certain extent, and the difficulty of using the touch module 330 by a user is smaller under the condition that the stylus is accommodated in the accommodating hole; in addition, with the above technical solution, the probability of the user mistakenly operating the touch module 330 during the process of inserting and pulling the stylus can be reduced.
As described above, the stylus pen includes the battery module 600, the battery module 600 may supply power to other modules in the stylus pen, and the battery module 600 may be a storage lithium battery, and the battery module 600 may be charged by wireless charging or wired charging. Optionally, the first electronic device includes a device body, a device battery and a first contact are disposed in the device body, the first contact is electrically connected to the device battery, the stylus is provided with a second contact 530, the battery module 600 is electrically connected to the second contact 530, when the stylus is received in the receiving hole, the first contact is in contact with the second contact 530, and the battery module 600 is electrically connected to the device battery. By adopting the contact charging mode, the reliability of charging operation can be ensured, the charging efficiency can be higher, and in addition, the structure for providing the charging function is relatively simple.
The first contact 530 and the second contact 530 are adapted in shape and number, and both can be made of copper, so that the charging resistance is smaller, and the charging efficiency is further improved. Corresponding openings may be provided in both the device body and the housing 110 of the stylus to ensure that the first contacts connected to the device battery can extend from within the device body, and the second contacts 530 connected to the battery module 600 can extend from within the housing 110 and contact the first contacts. Between first contact and the equipment battery to and between second contact 530 and the battery module 600 all can be through connecting piece interconnect such as wire, guarantee to carry out normally for battery module 600 charging operation.
Optionally, the stylus further includes a positioning module, the positioning module is disposed in the accommodating cavity, the positioning module is electrically connected to the battery module 600, and the positioning module can determine a location of the stylus, so that a user can find the stylus conveniently, and the stylus can be used as a locator.
In addition, the stylus pen further includes a touch head 120 and a cap body 130, the touch head 120 is connected to one end of the casing 110, the touch head 120 can provide a touch function, and the cap body 130 is connected to the other end of the casing 110, so that the overall sealing performance of the stylus pen is better, and the touch head 120 and the cap body 130 can be detachably connected to the casing 110 in an inserting or clamping manner, or the touch head 120 and the cap body 130 can be fixed to the casing 110 in an adhering manner. As described above, the control module and the like may be connected to the battery module 600 through the circuit board, optionally, the stylus pen includes the main board 200, the main board 200 is installed in the housing 110, and the touch module 330, the control module, the communication module 310 and the battery module 600 are electrically connected to the main board 200. The stylus pen is provided with an antenna 700, and the antenna 700 is connected with the main board 200.
As described above, the touch module 330 may include the key 510, and optionally, in the case that the cap 130 is provided in the stylus pen, an opening may be provided in the cap 130, and the key 510 may protrude from the cap 130. The number of the keys 510 may be three, and of course, the specific number and distribution position of the keys 510 may also be selected according to actual requirements.
Based on the stylus provided above, as shown in fig. 7, the present disclosure further provides a control method of a stylus, where the control method includes:
s11, the stylus receives a first operation from the user. As described above, the stylus pen includes the touch module and the battery module connected to each other, and the battery module may supply power to the touch module. When the stylus is accommodated in the accommodating cavity, the touch module is exposed to the first electronic device, and when the stylus is accommodated in the accommodating cavity, a user can send a first operation to the touch module at least by touching the touch panel and/or pressing a key or the like, and correspondingly, the touch module can receive the first operation from the user. As described above, other devices such as the communication module in the stylus pen may also be used as the device for receiving the first operation performed by the user.
S12: and under the condition that the distance between the touch pen and the target equipment is smaller than the preset distance, the control module sends first control information to the target equipment through the communication module according to the first operation. As described above, the stylus includes the battery module, and the control module and the communication module connected to the battery module, both the communication module and the touch module are connected to the control module, and the battery module can supply power to the control module and the communication module, so that the control module can send the first control information to the target device through the communication module according to the first operation received by the touch module when the distance between the stylus and the target device is smaller than the preset distance. The first control information and the first operation have a preset corresponding relationship, and the preset corresponding relationship may be preset in the stylus pen or the target device, or may be flexibly set by the user according to the self requirement before and during using the stylus pen.
In the embodiment of the disclosure, the stylus can be accommodated in the accommodating hole of the first electronic device, and when the stylus is accommodated in the accommodating hole, the touch module can still be exposed out of the first electronic device, so that in the using process of the stylus, even if the stylus is accommodated in the accommodating hole of the first electronic device, the stylus can receive the first operation from the user, and the control module is used for sending the first control information to the target device through the communication module, which can expand the application range of the stylus and improve the use efficiency of the stylus.
The target device may be a first electronic device, and as described above, the first electronic device may provide an accommodating space for the stylus; alternatively, the target device may be another electronic device other than the first electronic device, such as a second electronic device. Accordingly, the first control information sent by the control module through the communication module may be the same or different according to the target device and the first operation.
In addition, the distance between the touch pen and the target device can be measured through the positioning module, or a distance measuring module can be arranged on the touch pen, and the battery module and the control module can be connected with the distance measuring module. The distance measurement module can be an infrared distance measurement module or an ultrasonic distance measurement module, and the distance between the touch pen and the target device can also be obtained by means of the distance measurement module. Of course, the preset distance may be preset, or set or modified by the user according to the user's own needs.
As described above, the stylus includes the touch module, and the touch module is exposed to the first electronic device when the stylus is accommodated in the accommodating hole, and the touch module includes at least one of the touch panel and the key. Based on the above situation, in the control method provided by the present disclosure, optionally, the first operation includes touching and/or pressing a touch module of a stylus. That is, the user may input control information to the stylus pen via the touch module to form the first operation, in which case the stylus pen may receive the first operation from the user through the touch module.
As described above, the first operation from the user may be received by the stylus pen not only through the touch module, but also through the communication module, the ranging module and the positioning module provided in the stylus pen, and the like. In the above case, it can be ensured that the stylus can receive the first operation from the user. It should be noted that the first operation of the user may directly act on the stylus pen, so that at least one of the components of the stylus pen, such as the touch module, the communication module, the ranging module, and the positioning module, receives the first operation from the user; alternatively, the first operation of the user may act on another device other than the stylus pen, and by connecting the other device with the stylus pen or the first electronic device, it may be ensured that the stylus pen can receive the information that the user performed the first operation.
Based on the control method provided in the foregoing embodiment, optionally, the target device is a first electronic device, and the preset distance is a first preset distance. When the stylus portion is accommodated in the accommodating hole, a distance between the stylus and the first electronic device is a first preset distance.
It should be noted that, because the stylus and the first electronic device are both of a three-dimensional structure and both have a plurality of position points with different positions, in order to determine the distance between the stylus and the first electronic device, the stylus may be replaced by a pen point of the stylus, and a portion of the hole wall of the accommodating hole in the first electronic device, which is opposite to the pen point of the stylus, may be used to replace the first electronic device.
In the above case, when the stylus is completely accommodated in the accommodating hole, the stylus cannot extend into the accommodating hole, and it is considered that a distance between the pen point of the stylus and a portion of the hole wall of the accommodating hole opposite to the pen point is 0, which is equivalent to a distance between the stylus and the first electronic device being 0.
Based on the above situation, as long as the stylus is pulled out from the accommodating hole, the distance between the stylus and the first electronic device is inevitably greater than 0 no matter the stylus is completely pulled out or only a part of the stylus is pulled out from the accommodating hole. Correspondingly, when the stylus is just completely pulled out of the accommodating hole and is completely positioned outside the accommodating hole, the distance between the stylus and the first electronic device is considered to be just larger than the first preset distance. Since the stylus has a certain length, the first predetermined distance may be a range value and does not include end values at both ends.
In this embodiment, the preset distance is a first preset distance, and when the distance between the stylus and the first electronic device is smaller than the first preset distance, that is, when the stylus is completely located in the accommodating hole, the control module may send the first control information to the first electronic device through the communication module according to a first operation from the user. It should be noted that, in the case that the stylus is completely located in the accommodating hole, the distance between the stylus and the first electronic device is 0, that is, the distance between the stylus and the first electronic device is smaller than the first preset distance, rather than conflicting with the case that the touch module is exposed to the first electronic device.
By adopting the technical scheme provided by the embodiment, the first electronic device can be controlled by means of the touch module of the touch pen. For example, the first electronic device may be a terminal device including a display module, such as a mobile phone or a tablet computer, and a user may control, through the touch module, the content played by the display module in the first electronic device to fast forward or fast backward, and control the first electronic device to replace the played content; as another example, the first electronic device may be controlled to change the size of a ring tone or media sound, etc. Or, the first electronic device may be an audio playing device, and correspondingly, when the touch module receives a first operation from a user, if the stylus is accommodated in the accommodating hole, the control module may send first control information to the first electronic device through the communication module according to the first operation, so as to control the first electronic device to start, stop, or switch playing of the audio, and also control the first electronic device to increase or decrease the volume. Of course, in the case that the first electronic device is another type of device, the first control information formed based on the first operation may also be different, and the text is not illustrated here in a single example in view of brevity.
Based on the foregoing embodiments, further embodiments include the foregoing steps S11 and S12, and further include:
and S13, when the distance between the touch pen and the first electronic device is greater than the preset distance, the control module sends second control information to the first electronic device through the communication module according to the first operation. That is, similar to the above embodiments, the first electronic device can still be controlled by the stylus. In addition, when the relative positions of the stylus and the first electronic device are different, the same control instruction can enable the control module to send out different control information. The relative position may be different distances between the stylus and the first electronic device, the same control instruction may be a first operation from the user, and the different control information may include first control information and second control information.
As described above, the second control information is different from the first control information, in a case where the user inputs the first operation to the stylus pen, if the distance between the stylus pen and the first electronic device is less than the first preset distance, the first control information sent by the control module to the first electronic device through the communication module may be to start or stop playing audio/video, and in a case where the distance between the stylus pen and the first electronic device is greater than the first preset distance, the second control information sent by the control module to the first electronic device through the communication module may be to turn on or turn off the display module of the first electronic device. Of course, the first control information and the second control information may be other types of control information, and the second control information is different from the first control information. In addition, the first electronic device may also be other terminal devices, and both the first control information and the second control information may be set according to an actual situation, or may be flexibly assigned according to an actual requirement of a user.
Based on the control method provided in the foregoing embodiment, optionally, the target device is a second electronic device, and the preset distance is a second preset distance. The second preset distance is a distance between the stylus and the second electronic device. The second electronic device may be the same as the first electronic device in kind, for example, both of them are smart terminals such as mobile phones. Or, the type of the second electronic device may also be different from that of the first electronic device, for example, the first electronic device may be an intelligent terminal such as a mobile phone, and the second electronic device may be an intelligent terminal such as a projector, a television, an air conditioner, and a fan, or the second electronic device may also be an intelligent door lock or an electronic access control, or the second electronic device may be a device such as an automobile, which is equipped with an electronic device.
In the above embodiment, when the stylus is located within the preset range of the second electronic device, that is, when the distance between the stylus and the second electronic device is smaller than the second preset distance, the stylus may receive the first operation from the user, so as to achieve the purpose of controlling the second electronic device other than the first electronic device.
For example, the second electronic device is an intelligent door lock, and when the stylus enters a preset range around the second electronic device, the user inputs a first operation to the touch module of the stylus, so that the control module can send first control information to the second electronic device through the communication module, where the first control information may be to close or open the door lock. When the second electronic device is an electrical appliance such as a projector or an air conditioner, the first control information may be brightness adjustment or temperature adjustment. When the second electronic device is an automobile or the like, the first control information may be to open or close a door lock, and open or close a trunk or the like.
In addition, in the above embodiments, only the distance between the stylus and the second electronic device is required, and the position relationship between the stylus and the first electronic device may not be limited. In the process of combining the above embodiments, in order to enable the control module to accurately determine the belongings of the controlled object, that is, whether the target device is the first electronic device or the second electronic device, an optional embodiment is that the priority of the second electronic device is set to be higher than the priority of the first electronic device, that is, when the stylus receives the first operation from the user, if the distance between the second electronic device and the stylus is smaller than the second preset distance, the control module may be enabled to send the first control information to the second electronic device through the communication module.
In order to solve the above technical problem, in other embodiments of the present disclosure, the target device may be selected by the user. For example, before, during, or after the user inputs the control instruction, the user may be enabled to input which of the first electronic device and the second electronic device the target device to be controlled is, and then, by detecting and determining a relationship between a preset distance and a distance between the target device selected by the user and the stylus pen, the control module may transmit the control information to the target device through the communication module if a preset condition is satisfied. For another example, a control switch may be provided, and when the control switch is located at the first position, the target device may be a first electronic device, and when the control switch is located at the second position, the target device may be a second electronic device.
As described above, there may be various ways how to determine the target device, and in this embodiment, the distance relationship between the first electronic device and the second electronic device and the stylus pen may be determined to determine the target device. In detail, if the target device is the second electronic device and the preset distance is the second preset distance, the step S12 may include:
and S121, when the distance between the touch pen and the second electronic device is smaller than a second preset distance and the distance between the touch pen and the first electronic device is equal to a first preset distance, the control module sends first control information to the second electronic device through the communication module according to the first operation. As in the above-mentioned embodiment, the first predetermined distance is a distance between the stylus and the first electronic device when the stylus portion is accommodated in the accommodating hole of the first electronic device.
That is, in the process of determining the target device, when the stylus portion is accommodated in the accommodating hole of the first electronic device and the distance between the stylus and the second electronic device is smaller than the second preset distance, the target device is the second electronic device. In other cases, if the stylus is completely accommodated in the accommodating hole or the stylus is completely located outside the accommodating hole, the target device is the first electronic device. By adopting the technical scheme, the design and production difficulty of the touch pen can be reduced to a certain extent, the operation of a user can be reduced, and the touch pen is convenient for the user to use.
Based on the control method provided in the foregoing embodiment, in a case where the target device is determined by the positional relationship between the first electronic device and the second electronic device and the stylus pen, further, the first operation may include:
and touching a preset area of the second electronic equipment. Of course, in this embodiment, a receiving device such as a touch button or a capacitive sensor needs to be disposed on the second electronic device, so that the second electronic device can detect that the user touches the preset area. In addition, the second electronic device may be provided with a communication module, so that when the user performs the first operation on the second electronic device, the second electronic device may transmit the above-mentioned information to the stylus pen or the first electronic device, so that the stylus pen can receive the first operation performed by the user. Furthermore, the control module may send the first control information to the second electronic device through the communication module when the distance between the stylus and the first electronic device is equal to a first preset distance and the distance between the stylus and the second electronic device is less than a second preset distance.
Optionally, the above embodiment may be applied to a scene of automatically opening an automobile or an intelligent door lock, taking the automobile as an example, the second electronic device may be an automobile, in a scene that a user needs to take up his or her hands, such as carrying an article, the user may pull out a part of the stylus from the accommodating hole of the first electronic device in advance, so that a distance between the stylus and the first electronic device satisfies a first preset distance, and then the user may move the article to a parking area of the automobile, and when the user reaches the place where the automobile is located or enters the preset area around the automobile, the user may touch the preset area of the automobile, such as a front door, a rear door, or a trunk, etc., through the back of his or her hands, so that the second electronic device of the automobile receives the first operation from the user, and then the second electronic device may send a corresponding signal to the stylus through the communication module, so that the stylus receives the first operation from the user, furthermore, the control module can send first control information to the second electronic device through the communication module, and the first control information can be correspondingly used for unlocking a front door lock, a rear door lock or a trunk lock.
In summary, in the above embodiments, the stylus can replace a car key of a car; in addition, in the process of controlling the automobile through the touch pen, the corresponding instruction can be sent to the automobile in modes of touching a touch panel of the touch pen and/or pressing a key and the like, the purpose of keyless entry of the automobile can be achieved by means of the touch pen, and therefore a user only needs to carry the first electronic device in the driving and going-out process without carrying a conventional entity automobile key. Meanwhile, as described above, the first electronic device may be a terminal device such as a mobile phone having a communication function, and therefore, when the user carries the tool of the first electronic device, the functions that can be provided by two conventional devices, namely the mobile phone and the car key, can be provided for the user at the same time.
Of course, when the function of keyless entry is provided by means of the stylus, the value of the second preset distance may be set according to actual conditions. In addition, when the user carries the first electronic device accommodating the stylus and touches the preset area of the second electronic device, the distance between the stylus and the second electronic device can be basically ensured to be smaller than the second preset distance only if the second preset distance is not too small, i.e. under the condition that the second preset distance takes the largest part of values. For example, the second preset distance may take a specific value of one meter, fifty centimeters, thirty centimeters, or twenty centimeters. The second preset distance can be preset, and can also be flexibly set by a user according to the requirement of the user. Meanwhile, similarly to the case where the second electronic device is an automobile, when the second electronic device is an intelligent door lock or an intelligent door guard, the embodiment can be correspondingly implemented.
Based on the control method provided in the foregoing embodiment, optionally, there may be multiple specific implementation forms of the first operation, such as lightly touching the preset area of the second electronic device, or heavily pressing the preset area of the second electronic device, or pressing the preset area of the second electronic device for a long time, or touching the preset area of the second electronic device with a preset track, and the like, where the specific implementation forms of the first operation are different, the formed first control information may be the same, or where the specific implementation forms of the first operation are different, the first control information may be different from each other, so that by selecting the specific implementation form of the first operation, the second electronic device is controlled to generate different operations, such as opening the vehicle door, adjusting the angle or the position of the seat, or controlling the vehicle to start in different driving modes.
In addition, in order to ensure that the stylus pen and the second electronic device have an accurate corresponding relationship, optionally, the stylus pen and the second electronic device as the target device may be paired before the stylus pen is used for controlling the second electronic device for the first time. Optionally, in the process of pairing the stylus with the second electronic device, the stylus and the second electronic device may be connected to each other through bluetooth for pairing.
Further, when the stylus is configured to control a corresponding function of the second electronic device, a certain key on the stylus, for example, the first key, may be pressed under the condition that the first function key is in a pressed state on a controller (for example, a remote controller or a car key) of the second electronic device, so that the first key of the stylus may serve as the first function key to control the second electronic device. Then, the second function key of the controller of the second electronic device is pressed, and the second key of the stylus pen is pressed, so that the second key duplicates the function of the second function key, and so on, the stylus pen can have the function of controlling the second electronic device to perform various different operations.
Similarly, in the case that the touch module of the stylus includes the touch panel, the corresponding control function on the second electronic device can be copied by touching the virtual key on the touch panel. In addition, if the number of control keys on the controller of the second electronic device is greater than the number of keys on the stylus (and/or virtual keys on the touch panel), the function of one control key in the second electronic device can be duplicated by pressing multiple keys on the stylus at the same time; or, the stylus can be made to copy only the functions of the more common and important function keys in the second electronic device.
Optionally, in the process of copying the control function of the controller, the communication module of the stylus may be used to receive a radio frequency signal sent when a control key of the controller is in a pressed state, and copy the received radio frequency signal, and when a corresponding key on the stylus is pressed (or touches a corresponding position on the touch panel), the control module may send the radio frequency signal through the communication module, so as to achieve the purpose of copying the function of the controller by the stylus.
In addition, as described above, the first electronic device may be a terminal device such as a mobile phone having a display function, and therefore, when the scheme for enabling the stylus to have a controller function is implemented by receiving the radio frequency signal, an auxiliary function may be provided for the copy operation by the first electronic device. In detail, the stylus may first form a communication connection relationship with the first electronic device, such as a bluetooth connection; then, the touch pen can enter a copy mode by means of the first electronic device; then, by pressing corresponding keys on the touch control pen and the controller, the communication module of the touch control pen receives the radio frequency signal sent by the controller, and under the condition that the communication module receives the complete radio frequency signal, the copying process can be considered to be finished; at this time, characters such as copy completion can be displayed on the display module of the first electronic device, so that the user can know that the copy work is completed. Certainly, without the aid of the first electronic device, an acousto-optic device may be provided for the stylus pen to display results of copy completion or copy failure and the like to the user in a manner of a sound signal or an optical signal and the like, so as to improve user experience of the stylus pen.
Optionally, when other second electronic devices need to be controlled by the stylus, the second electronic devices to be controlled may be switched by the control switch or the touch module. Alternatively, the stylus may be assisted by a first electronic device, which determines which a second electronic device is engaged with the stylus.
Optionally, when the controlled relationship between the stylus and the second electronic device needs to be released, the corresponding relationship between the stylus and one or some second electronic devices can also be deleted by the touch module. Alternatively, a corresponding release switch or the like may be provided on the stylus pen.
Still alternatively, the controlled relationship between the stylus contact and the second electronic device may also be assisted by the first electronic device. Under the condition that the first electronic device comprises the display module and the communication module, the touch pen and the first electronic device form a communication connection relationship, and the display module of the first electronic device can be used for enabling a user to clearly know information such as the number and the type of the second electronic devices forming a pairing relationship with the touch pen. The user can add and delete the second electronic equipment which can be controlled by the touch pen through the display module group of the first electronic equipment, so that the user can clearly and simply increase and decrease the second electronic equipment which is matched with the touch pen, and the user experience is improved.
As described above, when the target device is the second electronic device and the preset distance is the second preset distance, and when the first operation is received from the user, if the distance between the stylus and the second electronic device is smaller than the second preset distance, the control module may send the first control information to the second electronic device through the communication module according to the first operation. As described above, the first operation may specifically be an operation applied to the touch module by the user, such as pressing a key of the touch module, or touching a touch panel of the touch module. In another embodiment of the present disclosure, the first operation may also be an operation applied to other structural members on the stylus, such as a distance measuring module or a positioning module in the stylus.
Optionally, in a case that the distance between the stylus and the first electronic device is different, the first operation may also be changed accordingly. As described above, the distance between the stylus and the first electronic device may be smaller than, equal to, or larger than a first preset distance, where the first preset distance is a distance between the stylus and the first electronic device when the stylus portion is accommodated in the accommodating hole.
Illustratively, the first operation may include: under the condition that the distance between the touch pen and the first electronic device is smaller than a first preset distance, part of the touch pen is pulled out of the accommodating hole of the first electronic device. In other words, when the user performs the first operation, if the stylus pen is completely inserted into the receiving hole of the first electronic device, a portion of the stylus pen may be pulled out from the receiving hole, such that a portion of the stylus pen is located inside the receiving hole and another portion of the stylus pen is located outside the receiving hole, thereby completing the first operation. In the implementation process of the first operation, the real-time distance between the stylus and the first electronic device may be detected through the distance measurement module or the positioning module of the stylus, and when the distance between the stylus and the first electronic device changes, the condition that the relative position between the stylus and the first electronic device changes is transmitted to the control module, and then the control module sends the first control information to the second electronic device through the communication module under the condition that the distance between the stylus and the second target device meets the preset condition.
In another embodiment, the first operation may include: under the condition that the distance between the stylus and the first electronic device is equal to a first preset distance, pulling out a part of the stylus from the accommodating hole of the first electronic device, or inserting a part of the stylus back into the accommodating hole of the first electronic device. In other words, when the user performs the first operation, if a portion of the stylus is inserted into the receiving hole of the first electronic device and another portion of the stylus is located outside the receiving hole, the stylus can be controlled to move relative to the first electronic device, including enabling the stylus to continue to extend into the receiving hole and enabling the stylus to continue to be pulled out from the receiving hole, thereby completing the performing of the first operation. In the implementation process of the first operation, the real-time distance between the stylus and the first electronic device may be detected through the distance measurement module or the positioning module of the stylus, and when the distance between the stylus and the first electronic device changes, the condition that the relative position between the stylus and the first electronic device changes is transmitted to the control module, and then the control module sends the first control information to the second electronic device through the communication module under the condition that the distance between the stylus and the second target device meets the preset condition.
Still alternatively, the first operation may include: and under the condition that the distance between the touch pen and the first electronic equipment is greater than a first preset distance, controlling the touch pen to move along a preset track. Similarly, in the implementation process of the first operation, the movement condition of the stylus may be detected through a distance measurement module or a positioning module of the stylus, and of course, other devices may also be disposed in the stylus, such as a gyroscope, a gravity sensor, a displacement sensor, and the like, to provide a detection function for a movement track of the stylus, so that when the stylus is located outside the receiving hole of the first electronic device, the control module may send the first control information to the second electronic device through the communication module when the stylus completes a movement along a preset track, and when a distance between the stylus and the second electronic device satisfies a second preset distance.
In addition, when detecting whether the stylus moves along the preset track, the stylus may be regarded as a point, or a motion track of a component in the stylus for detecting the motion track of the stylus may represent the motion track of the stylus. Moreover, when judging whether the actual motion trajectory of the stylus accords with the preset motion trajectory, a certain error can be allowed to exist, and the value of the error can be selected according to the actual situation, which is not limited here. Alternatively, the preset track may be a straight line, a circle, an S-shape, or the like.
Based on the above, optionally, in a case that the stylus is located outside the receiving hole of the first electronic device, when the stylus moves along different preset tracks, the control module may send different control information to the second electronic device through the communication module, for example, when the preset track is a straight line, send first sub-control information, when the preset track is a circular shape, send second sub-control information, and the like, where the first sub-control information and the second sub-control information are both included in the first control information.
In the case that the second electronic device is controlled by the stylus, there is also a case that a distance between the stylus and the second electronic device is not less than a second preset distance, that is, the distance between the stylus and the second electronic device is greater than or equal to the second preset distance. Based on the above situation, optionally, the control method provided in the embodiment of the present disclosure further includes:
and S14, sending third control information to the second electronic device through the communication module under the condition that the distance between the touch pen and the second electronic device is greater than or equal to a second preset distance. Specifically, the distance between the touch pen and the second electronic device can be detected in real time by arranging the distance measuring module and/or the positioning module in the touch pen, and the communication module can send third control information to the second electronic device by a preset algorithm or a preset program under the condition that the distance between the touch pen and the second electronic device is equal to or greater than a second preset distance, so that the second electronic device generates corresponding operation according to the third control information.
For example, the second electronic device may be a car, the third control information may be a locking signal, and when the user leaves the car and is far away from the car, if the user forgets to lock the car, the stylus may send the third control information to the second electronic device through the communication module when the distance between the stylus and the second electronic device is equal to or greater than a second preset distance.
Of course, the third control information may also be other specific signals, such as an alarm signal, and the specific type of the third control information may be preset, or the user may flexibly give the third control information according to the needs of the user, which is not limited herein. Similarly, in the case that the second electronic device is an intelligent door lock or an electronic door lock, etc., it can be correspondingly understood from the above embodiments, and the description is not expanded here in view of the conciseness of the text.
Optionally, the first control information includes at least one of authentication information, unlocking information, and adjustment information, that is, whether the stylus has the right to interact information and control instructions with the target device may be verified through the first control information, so as to ensure that the control is performed safely. Correspondingly, the target equipment can be controlled to be unlocked through the first control information, so that the user or authorized others can normally use the target equipment; or, the corresponding parameters of the target device can be adjusted through the first control information, so that the target device meets the requirements of the user. Of course, when the first electronic device and the second electronic device are respectively controlled by the stylus, the specific type and content of the first control information may be the same, or may be changed according to the different types of the target devices.
Similarly, the types of the second control information and the third control information may include a plurality of types, and the second control information and the third control information may be lock information, close information, and the like, in addition to the control information included in the first control information.
The embodiment of the present disclosure further provides a control method, which includes:
s21, receiving a first operation from a user;
and S22, sending first control information to the target device according to the first operation under the condition that the distance between the touch pen and the target device is smaller than a preset distance.
The control method provided by the embodiment of the present disclosure can implement each process implemented by the method embodiment shown in fig. 7, and is not described here again to avoid repetition.
Based on the control method provided by each of the above embodiments, the present disclosure further provides a controller, where the controller includes a receiving device and a sending device, where the receiving device is configured to receive a first operation from a user, and the sending device is configured to send first control information to a target device when a distance between a stylus and the target device is smaller than a preset distance.
In the embodiment of the disclosure, the receiving device of the controller may receive the first operation from the user, and send the first control information to the target device through the sending device, so as to expand the application range of the stylus and improve the used efficiency of the stylus.
Optionally, the target device is a first electronic device, and the predetermined distance may be a first predetermined distance, where the first predetermined distance is a distance between the stylus and the first electronic device when the stylus portion is accommodated in the accommodating hole. In the above case, the sending device in the controller is further configured to send the second control information to the first electronic device when the distance between the stylus and the first electronic device is greater than the preset distance.
Optionally, the target device is a second electronic device, the preset distance is a second preset distance, and the second preset distance is a distance between the stylus and the second electronic device. In the above situation, the sending device in the controller is further configured to send the first control information to the second electronic device when the distance between the stylus and the second electronic device is smaller than a second preset distance and the distance between the stylus and the first electronic device is equal to the first preset distance. The first preset distance is a distance between the stylus and the first electronic device under the condition that the stylus portion is accommodated in the accommodating hole of the first electronic device.
Optionally, the receiving device includes a first sub-receiving device, the first sub-receiving device may receive a touch operation, and the first sub-receiving device may be installed in the second electronic device, so that when the user touches a preset area of the second electronic device where the first sub-receiving device is installed, the stylus pen may receive the first operation from the user.
Optionally, the receiving device may include a second sub-receiving device, the second sub-receiving device is capable of receiving the movement of the stylus, and the second sub-receiving device may be connected to, installed in or mounted on the housing of the stylus. Under the action of the second sub-receiving device, the stylus can determine whether the user inputs the first operation or not through the movement condition of the stylus. The moving condition may specifically include moving toward or away from the first electronic device, and the stylus moving outside the first electronic device along a preset track.
Optionally, the target device is a second electronic device, the preset distance is a second preset distance, and the second preset distance is a distance between the stylus and the second electronic device. In the above case, the sending device is further configured to send the second control information to the second electronic device when the distance between the stylus and the second electronic device is greater than or equal to a second preset distance.
Optionally, the receiving device includes a third sub-receiving device, the third sub-receiving device may receive a touch and/or press action, and the third sub-receiving device is connected to a housing of the stylus pen, and may be specifically installed on the housing, so as to ensure that a user may touch and/or press the third sub-receiving device to input the first operation to the stylus pen.
The controller provided in the embodiment of the present disclosure can implement each process implemented by the method embodiment shown in fig. 7, and is not described here again to avoid repetition.
Based on the control method disclosed in each of the above embodiments, as shown in fig. 8, the present disclosure further provides an electronic device 900, where the electronic device 900 includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and capable of being executed on the processor 901, and when the program or the instruction is executed by the processor 901, the steps of the control method embodiment are implemented, and the same technical effects can be achieved, and are not described herein again to avoid repetition.
It should be noted that the electronic device in the embodiment of the present disclosure includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present disclosure.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 1007 is used for receiving a first operation from a user.
The processor 1010 is configured to control the radio frequency unit 1001 to send first control information to the target device according to the first operation when a distance between the stylus and the target device is smaller than a preset distance.
In the embodiment of the disclosure, the stylus may be matched with the first electronic device, the battery module of the stylus is electrically connected with the touch module, the control module and the communication module respectively, and the control module is electrically connected with the touch module and the communication module respectively. The stylus can be accommodated in the accommodating hole of the first electronic device, and when the stylus is accommodated in the accommodating hole, the touch module can still be exposed out of the first electronic device, so that in the using process of the stylus, even if the stylus is accommodated in the accommodating hole of the first electronic device, a user can at least send a control command to other devices by means of the touch module, the application range of the stylus can be expanded, and the use efficiency of the stylus is improved.
Optionally, the target device is a first electronic device, the preset distance is a first preset distance, and the first preset distance is a distance between the stylus and the first electronic device when the stylus portion is accommodated in the accommodating hole. Based on the above situation, the processor 1010 is further configured to control the radio frequency unit 1001 to send second control information to the first electronic device according to the first operation when the distance between the stylus and the first electronic device is greater than the preset distance.
Optionally, the target device is a second electronic device, the preset distance is a second preset distance, and the second preset distance is a distance between the stylus and the second electronic device. Based on the above situation, the processor 1010 is further configured to control the radio frequency unit 1001 to send the first control information to the second electronic device according to the first operation when the distance between the stylus and the second electronic device is smaller than the second preset distance and the distance between the stylus and the first electronic device is equal to the first preset distance.
The first preset distance is a distance between the stylus and the first electronic device under the condition that the stylus portion is accommodated in the accommodating hole of the first electronic device.
Optionally, the target device is a second electronic device, the preset distance is a second preset distance, and the second preset distance is a distance between the stylus and the second electronic device. Based on the above situation, the processor 1010 is further configured to send third control information to the second electronic device through the communication module when the distance between the stylus and the second electronic device is greater than or equal to the second preset distance.
Alternatively, the user input unit 1007 can receive a touch action from a user, or the user input unit 1007 can receive a movement condition of a stylus, or the user input unit 1007 can receive a touch and/or press action.
It is understood that in the embodiment of the present disclosure, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The disclosed embodiment further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the above-mentioned embodiment of the control method for a stylus pen is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present disclosure further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned control method for a stylus, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present disclosure may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Optionally, the communication interface includes an input/output interface, and the processor controls the interface to communicate with other devices or chips to obtain information or data sent by the other devices or chips or send information or data to the other devices or chips.
The embodiments of the present disclosure further provide a computer program product, where the computer program product is stored in a non-volatile storage medium, and the computer program product is configured to be executed by at least one processor to implement the processes of the above-mentioned embodiment of the control method for a stylus, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here.
The embodiments of the present disclosure further provide a processing device, where the processing device is configured to execute each process of the above-mentioned control method for a stylus, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it is noted that the scope of the methods and apparatus in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.
Claims (23)
1. The utility model provides a touch-control pen, the touch-control pen cooperatees with first electronic equipment, first electronic equipment is provided with the accommodation hole, its characterized in that, the touch-control pen includes: the battery module is electrically connected with the touch module, the control module and the communication module respectively, and the control module is electrically connected with the touch module and the communication module respectively;
under the condition that the stylus is accommodated in the accommodating hole, the touch module is exposed to the first electronic device;
the touch module comprises at least one of a touch panel and a key.
2. The stylus according to claim 1, wherein the first electronic device includes a device body, a device battery and a first contact are disposed in the device body, the first contact is electrically connected to the device battery, the stylus is provided with a second contact, the battery module is electrically connected to the second contact, when the stylus is received in the receiving hole, the first contact is in contact with the second contact, and the battery module is electrically connected to the device battery.
3. The stylus of claim 1, further comprising a positioning module disposed within the receiving cavity, the positioning module electrically coupled to the battery module.
4. A control method of a touch pen is characterized in that the touch pen is matched with first electronic equipment, the first electronic equipment is provided with a containing hole, and the touch pen comprises the following components: the battery module is electrically connected with the touch module, the control module and the communication module respectively, and the control module is electrically connected with the touch module and the communication module respectively; under the condition that the stylus is accommodated in the accommodating hole, the touch module is exposed to the first electronic device; the touch module comprises at least one of a touch panel and a key;
the control method comprises the following steps:
the touch control pen receives a first operation from a user;
and under the condition that the distance between the touch pen and the target equipment is smaller than the preset distance, the control module sends first control information to the target equipment through the communication module according to the first operation.
5. The control method according to claim 4, wherein the target device is the first electronic device, and the preset distance is a first preset distance;
the first preset distance is the distance between the stylus and the first electronic device under the condition that the stylus part is accommodated in the accommodating hole.
6. The control method according to claim 5, characterized by further comprising:
and under the condition that the distance between the stylus and the first electronic equipment is greater than the preset distance, the control module sends second control information to the first electronic equipment through the communication module according to the first operation.
7. The control method according to claim 4, wherein the target device is a second electronic device, and the preset distance is a second preset distance;
the second preset distance is a distance between the stylus and the second electronic device.
8. The control method according to claim 7, wherein, in a case that the distance between the stylus and the target device is smaller than a preset distance, the sending, by the control module, the first control information to the target device through the communication module according to the first operation includes:
when the distance between the stylus and the second electronic device is smaller than the second preset distance and the distance between the stylus and the first electronic device is equal to the first preset distance, the control module sends first control information to the second electronic device through the communication module according to the first operation;
the first preset distance is a distance between the stylus and the first electronic device under the condition that the stylus portion is accommodated in the accommodating hole of the first electronic device.
9. The control method according to claim 8, characterized in that the first operation includes:
and touching a preset area of the second electronic equipment.
10. The control method according to claim 7, characterized in that the first operation includes:
under the condition that the distance between the touch pen and the first electronic device is smaller than a first preset distance, pulling out part of the touch pen from the accommodating hole of the first electronic device;
under the condition that the distance between the touch pen and the first electronic device is equal to a first preset distance, pulling out a part of the touch pen from the accommodating hole of the first electronic device, or inserting a part of the touch pen back into the accommodating hole of the first electronic device;
and under the condition that the distance between the touch control pen and the first electronic equipment is greater than a first preset distance, controlling the touch control pen to move in a preset track.
11. The control method according to claim 7, characterized by further comprising:
and sending third control information to the second electronic equipment through the communication module under the condition that the distance between the stylus and the second electronic equipment is greater than or equal to the second preset distance.
12. The control method according to claim 7, wherein the second electronic device is an automobile, an electronic door access or an intelligent terminal.
13. The control method according to claim 4, characterized in that the first operation includes: touching and/or pressing a touch module of the stylus.
14. The control method according to claim 4, wherein the first control information includes at least one of authentication information, unlocking information, and adjustment information.
15. A controller, characterized in that the controller comprises:
receiving means for receiving a first operation from a user;
and the sending device is used for sending the first control information to the target equipment under the condition that the distance between the touch pen and the target equipment is smaller than the preset distance.
16. The controller according to claim 15, wherein the target device is a first electronic device, and the predetermined distance is a first predetermined distance, the first predetermined distance being a distance between the stylus and the first electronic device when the stylus portion is received in the receiving hole of the first electronic device;
the sending device is further configured to send second control information to the first electronic device when the distance between the stylus and the first electronic device is greater than the preset distance.
17. The controller according to claim 15, wherein the target device is a second electronic device, and the preset distance is a second preset distance, which is a distance between the stylus and the second electronic device;
the sending device is further configured to send first control information to the second electronic device when the distance between the stylus and the second electronic device is smaller than the second preset distance and the distance between the stylus and the first electronic device is equal to the first preset distance;
the first preset distance is a distance between the stylus and the first electronic device under the condition that the stylus portion is accommodated in the accommodating hole of the first electronic device.
18. The controller according to claim 17, wherein the receiving means comprises a first sub-receiving means for receiving a touch action, the first sub-receiving means being mountable to the second electronic device.
19. The controller of claim 16, wherein the receiving means comprises a second sub-receiving means for receiving movement of a stylus, the second sub-receiving means being coupled to the housing of the stylus.
20. The controller according to claim 16, wherein the target device is a second electronic device, and the preset distance is a second preset distance, which is a distance between the stylus and the second electronic device;
the sending device is further configured to send third control information to the second electronic device when the distance between the stylus and the second electronic device is greater than or equal to the second preset distance.
21. The controller of claim 15, wherein the receiving means comprises a third sub-receiving means for receiving a touch and/or press action, the third sub-receiving means being mounted to the housing of the stylus.
22. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the control method of any one of claims 4-14.
23. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the control method according to any one of claims 4-14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011396076.2A CN112527134B (en) | 2020-12-03 | 2020-12-03 | Touch pen, control method thereof, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011396076.2A CN112527134B (en) | 2020-12-03 | 2020-12-03 | Touch pen, control method thereof, and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112527134A true CN112527134A (en) | 2021-03-19 |
CN112527134B CN112527134B (en) | 2025-01-07 |
Family
ID=74996631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011396076.2A Active CN112527134B (en) | 2020-12-03 | 2020-12-03 | Touch pen, control method thereof, and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112527134B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113115294A (en) * | 2021-04-22 | 2021-07-13 | 荣耀终端有限公司 | Stylus pen connection method and Bluetooth system |
CN113922513A (en) * | 2021-03-26 | 2022-01-11 | 荣耀终端有限公司 | A wireless charging device and electronic equipment |
WO2022121730A1 (en) * | 2020-12-07 | 2022-06-16 | 维沃移动通信有限公司 | Electronic device, electronic device control method, and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102014200287A1 (en) * | 2013-02-25 | 2014-08-28 | Htc Corporation | Electrical system, input device and charging method for input device |
CN106249921A (en) * | 2016-08-04 | 2016-12-21 | 捷开通讯科技(上海)有限公司 | The control system of pointer and method |
WO2017180125A1 (en) * | 2016-04-14 | 2017-10-19 | Hewlett-Packard Development Company, L.P. | Styli |
KR20180049629A (en) * | 2016-11-03 | 2018-05-11 | 엘지전자 주식회사 | Touch input apparatus using a stylus pen and method for detecting touch thereof |
CN111610869A (en) * | 2020-05-20 | 2020-09-01 | 维沃移动通信有限公司 | Stylus pen, electronic device and control method |
CN111879359A (en) * | 2020-07-15 | 2020-11-03 | 维沃移动通信有限公司 | Electronic equipment |
-
2020
- 2020-12-03 CN CN202011396076.2A patent/CN112527134B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102014200287A1 (en) * | 2013-02-25 | 2014-08-28 | Htc Corporation | Electrical system, input device and charging method for input device |
WO2017180125A1 (en) * | 2016-04-14 | 2017-10-19 | Hewlett-Packard Development Company, L.P. | Styli |
CN106249921A (en) * | 2016-08-04 | 2016-12-21 | 捷开通讯科技(上海)有限公司 | The control system of pointer and method |
KR20180049629A (en) * | 2016-11-03 | 2018-05-11 | 엘지전자 주식회사 | Touch input apparatus using a stylus pen and method for detecting touch thereof |
CN111610869A (en) * | 2020-05-20 | 2020-09-01 | 维沃移动通信有限公司 | Stylus pen, electronic device and control method |
CN111879359A (en) * | 2020-07-15 | 2020-11-03 | 维沃移动通信有限公司 | Electronic equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022121730A1 (en) * | 2020-12-07 | 2022-06-16 | 维沃移动通信有限公司 | Electronic device, electronic device control method, and readable storage medium |
CN113922513A (en) * | 2021-03-26 | 2022-01-11 | 荣耀终端有限公司 | A wireless charging device and electronic equipment |
CN113115294A (en) * | 2021-04-22 | 2021-07-13 | 荣耀终端有限公司 | Stylus pen connection method and Bluetooth system |
CN113115294B (en) * | 2021-04-22 | 2022-05-03 | 荣耀终端有限公司 | Stylus pen connection method and Bluetooth system |
Also Published As
Publication number | Publication date |
---|---|
CN112527134B (en) | 2025-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112527134A (en) | Touch pen, control method thereof and electronic equipment | |
CN103294366B (en) | A kind of screen unlock method and electronic equipment | |
CN102890608B (en) | The screen locking awakening method of terminal and terminal and device | |
CN103076882B (en) | A kind of unlock method and terminal | |
US11941101B2 (en) | Fingerprint unlocking method and terminal | |
CN108920922B (en) | Unlocking method, device, mobile terminal and computer readable medium | |
CN212183717U (en) | Earphone box and earphone set | |
WO2019218843A1 (en) | Key configuration method and device, and mobile terminal and storage medium | |
CN107113205B (en) | Mobile terminal and control method thereof | |
CN105094968A (en) | Method and device for rousing MCU | |
CN105812515A (en) | Protection cover of mobile terminal, and method, device and terminal for setting system themes | |
CN112612281A (en) | Parking control method and device for automobile and computer storage medium | |
CN104123075B (en) | The method of control terminal and device | |
KR102107114B1 (en) | Mobile terminal | |
CN105472096A (en) | Terminal equipment control method and terminal equipment control device | |
CN110466507A (en) | A method of auxiliary is parked | |
CN107724808B (en) | A kind of coded lock touch control system of the key containing doorbell and the coded lock of the key containing doorbell | |
US9961184B2 (en) | Case of portable terminal and method for controlling smart key of portable terminal | |
US20140258923A1 (en) | Apparatus and method for displaying screen image | |
CN114867163A (en) | Vehicle light control method, device, equipment and storage medium | |
CN112114879A (en) | Terminal wake-up method, terminal and storage medium | |
CN108885490A (en) | Multimode Switch Array | |
CN118514627A (en) | Power mode switching method and device, electronic equipment and storage medium | |
CN111491292A (en) | Internet access mode adjusting method and device, storage medium and mobile terminal | |
CN108169778A (en) | Positioning function control method, device, storage medium, vehicle and mobile terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |