Touch pen, control method thereof, and electronic device

By integrating the battery, control and communication modules in the stylus and setting the touch module outside the housing, the problem of loss of function during storage of the stylus is solved, and the operation can still be received and other devices can be controlled in the storage state. Functions improve the efficiency and scope of application of the stylus pen.

CN112527134BActive Publication Date: 2025-01-07VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011396076.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-03
Publication Date
2025-01-07
Estimated Expiration
2040-12-03

AI Technical Summary

Technical Problem

Existing stylus cannot provide any function when stored in electronic devices, resulting in waste of design.

Method used

A stylus pen is designed, including a housing, a battery module, a touch control module, a control module and a communication module. The housing is opened with a housing cavity. The battery module, a control module and a communication module are arranged in the housing cavity. The touch module is arranged in the Outside the housing, the modules are electrically connected and can still be exposed to the surface of the device when stored in an electronic device, providing control functions.

Benefits of technology

Even if the stylus is contained in the storage hole of the electronic device, it can still receive user operations through the touch module and send control commands to other devices, expanding the scope of application and improving usage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112527134B_ABST
    Figure CN112527134B_ABST
Patent Text Reader

Abstract

The present disclosure provides a stylus pen and a control method thereof and an electronic device, which belong to the field of communication equipment. The stylus pen cooperates with a first electronic device, and the first electronic device is provided with a receiving hole. The stylus pen includes: a housing, a battery module, a touch module, a control module and a communication module. The housing is provided with a receiving cavity, and the battery module, the control module and the communication module are arranged in the receiving cavity. The touch module is arranged in the housing, and the battery module is electrically connected to the touch module, the control module and the communication module respectively, and the control module is electrically connected to the touch module and the communication module respectively; when the stylus pen is accommodated in the receiving hole, the touch module is exposed to the first electronic device; the touch module includes at least one of a touch panel and a button. The above-mentioned stylus pen can solve the problem that the current stylus pen cannot provide any function when accommodated in an electronic device, and there is a waste of design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the technical field of communication equipment, and in particular relates to a stylus pen, a control method thereof, and an electronic device. Background Art

[0002] Currently, many electronic devices such as mobile phones or tablet computers are usually equipped with a stylus. Users can use the stylus to touch the touch display module of the electronic device to control and operate the electronic device. The functions and effects of such a stylus are relatively simple, and when the stylus is housed on the electronic device, the stylus cannot provide any function, resulting in design waste. Summary of the invention

[0003] The purpose of the embodiments of the present disclosure is to provide a stylus pen and a control method thereof and an electronic device, which can solve the problem that the current stylus pen cannot provide any function when housed in an electronic device, resulting in design waste.

[0004] In order to solve the above technical problems, the present disclosure is implemented as follows:

[0005] In a first aspect, an embodiment of the present disclosure provides a stylus pen, the stylus pen cooperates with a first electronic device, the first electronic device is provided with a receiving hole, the stylus pen comprises: a housing, a battery module, a touch control module, a control module and a communication module, the housing is provided with a receiving cavity, the battery module, the control module and the communication module are arranged in the receiving cavity, the touch control module is arranged in the housing, the battery module is electrically connected to the touch control module, the control module and the communication module respectively, the control module is electrically connected to the touch module and the communication module respectively;

[0006] When the stylus pen is received in the receiving hole, the touch module is exposed on the first electronic device;

[0007] Wherein, the touch module includes at least one of a touch panel and a button.

[0008] Based on the stylus pen provided in the above embodiment, the first electronic device includes a device body, in which a device battery and a first contact are arranged, 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, and when the stylus pen is accommodated in the accommodating hole, the first contact is in contact with the second contact, and the battery module is electrically connected to the device battery.

[0009] Based on the stylus pen provided in any of the above embodiments, the stylus pen further includes a positioning module, the positioning module is disposed in the accommodating cavity, and the positioning module is electrically connected to the battery module.

[0010] In a second aspect, an embodiment of the present disclosure further provides a control method for a stylus pen, wherein the stylus pen cooperates with a first electronic device, the first electronic device is provided with a receiving hole, the stylus pen comprises: a shell, a battery module, a touch control module, a control module and a communication module, the shell is provided with a receiving cavity, the battery module, the control module and the communication module are arranged in the receiving cavity, the touch control module is arranged in the shell, the battery module is electrically connected to the touch control module, the control module and the communication module respectively, the control module is electrically connected to the touch control module and the communication module respectively; when the stylus pen is accommodated in the receiving hole, the touch control module is exposed to the first electronic device; wherein the touch control module comprises at least one of a touch panel and a button;

[0011] The control method comprises:

[0012] The stylus receives a first operation from a user;

[0013] When the distance between the stylus pen and the target device is less than a preset distance, the control module sends first control information to the target device through the communication module according to the first operation.

[0014] Based on the control method provided in the above embodiment, the target device is the first electronic device, and the preset distance is the first preset distance;

[0015] The first preset distance is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole.

[0016] Based on the control method provided in any of the above embodiments, the control method further includes:

[0017] When the distance between the stylus 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.

[0018] Based on the control method provided by any of the above embodiments, the target device is a second electronic device, and the preset distance is a second preset distance;

[0019] The second preset distance is the distance between the stylus pen and the second electronic device.

[0020] Based on the control method provided in any of the above embodiments, when the distance between the stylus pen and the target device is less than a preset distance, the control module sending the first control information to the target device through the communication module according to the first operation includes:

[0021] When the distance between the stylus pen and the second electronic device is less than the second preset distance and the distance between the stylus pen 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;

[0022] The first preset distance is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole of the first electronic device.

[0023] Based on the control method provided in any of the above embodiments, the first operation includes:

[0024] Touch a preset area of ​​the second electronic device.

[0025] Based on the control method provided in any of the above embodiments, the first operation includes:

[0026] When the distance between the stylus pen and the first electronic device is less than a first preset distance, partially pulling out the stylus pen from the receiving hole of the first electronic device;

[0027] When the distance between the stylus pen and the first electronic device is equal to the first preset distance, partially pull out the stylus pen from the receiving hole of the first electronic device, or partially insert the stylus pen back into the receiving hole of the first electronic device;

[0028] When the distance between the stylus pen and the first electronic device is greater than a first preset distance, the stylus pen is controlled to move along a preset trajectory.

[0029] Based on the control method provided in any of the above embodiments, the control method further includes:

[0030] When the distance between the stylus pen and the second electronic device is greater than or equal to the second preset distance, third control information is sent to the second electronic device through the communication module.

[0031] Based on the control method provided in any of the above embodiments, the second electronic device is a car, an electronic access control system or a smart terminal.

[0032] Based on the control method provided by any of the above embodiments, the first operation includes: touching and / or pressing a touch module of the stylus.

[0033] Based on the control method provided by any of the above embodiments, the first control information includes at least one of authentication information, unlocking information and adjustment information.

[0034] In a third aspect, an embodiment of the present disclosure further provides a controller, the controller comprising:

[0035] A receiving device for receiving a first operation from a user;

[0036] A sending device for sending first control information to a target device when the distance between the stylus pen and the target device is less than a preset distance.

[0037] Based on the controller provided by the above embodiment, the target device is a first electronic device, and the preset distance is a first preset distance, which is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole of the first electronic device;

[0038] The sending device is further configured to send second control information to the first electronic device when the distance between the stylus pen and the first electronic device is greater than the preset distance.

[0039] Based on the controller provided by any of the above embodiments, the target device is a second electronic device, and the preset distance is a second preset distance, which is the distance between the stylus pen and the second electronic device;

[0040] The sending device is further used to send the first control information to the second electronic device when the distance between the stylus pen and the second electronic device is less than the second preset distance and the distance between the stylus pen and the first electronic device is equal to the first preset distance;

[0041] The first preset distance is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole of the first electronic device.

[0042] Based on the controller provided by 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 can be installed in the second electronic device.

[0043] Based on the controller provided by any of the above embodiments, the receiving device includes a second sub-receiving device for receiving movement status of the stylus pen, and the second sub-receiving device is connected to the housing of the stylus pen.

[0044] Based on the controller provided by any of the above embodiments, the target device is a second electronic device, and the preset distance is a second preset distance, which is the distance between the stylus pen and the second electronic device;

[0045] The sending device is further configured to send third control information to the second electronic device when the distance between the stylus pen and the second electronic device is greater than or equal to the second preset distance.

[0046] Based on the controller provided by any of the above embodiments, the receiving device includes a third sub-receiving device for receiving touch and / or pressing actions, and the third sub-receiving device is installed on the housing of the stylus.

[0047] In a fourth aspect, an embodiment of the present disclosure further provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the control method described in the second aspect.

[0048] In a fifth aspect, an embodiment of the present disclosure further provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the control method described in the second aspect are implemented.

[0049] In a sixth aspect, an embodiment of the present disclosure further provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the second aspect.

[0050] In the embodiment of the present disclosure, 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 other devices or chips, or to send information or data to other devices or chips.

[0051] In a seventh aspect, an embodiment of the present disclosure further provides a computer program product, wherein the computer program product is stored in a non-volatile storage medium, and the program / program product is configured to be executed by at least one processor to implement the steps of the method described in the second aspect.

[0052] In an eighth aspect, an embodiment of the present disclosure further provides a processing device, including a processing device configured to execute the method as described in the second aspect.

[0053] In a ninth aspect, an embodiment of the present disclosure further provides a control method, including:

[0054] receiving a first operation from a user;

[0055] When the distance between the stylus pen and the target device is less than a preset distance, first control information is sent to the target device according to the first operation.

[0056] In the disclosed embodiment, the stylus pen can cooperate with the first electronic device, the battery module of the stylus pen is electrically connected to the touch module, the control module and the communication module respectively, and the control module is electrically connected to the touch module and the communication module respectively. The stylus pen can be accommodated in the receiving hole of the first electronic device, and when the stylus pen is accommodated in the receiving hole, the touch module can still be exposed to the first electronic device, so that during the use of the stylus pen, even if the stylus pen is accommodated in the receiving hole of the first electronic device, the user can at least rely on the touch module to send control commands to other devices, which can expand the application scope of the stylus pen and improve the efficiency of the use of the stylus pen. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0058] Figure 1 is a schematic diagram of the structure of a stylus provided by an embodiment of the present disclosure;

[0059] Figure 2 is a schematic structural diagram of the stylus provided by an embodiment of the present disclosure in another direction;

[0060] Figure 3 is an exploded schematic diagram of a stylus provided in an embodiment of the present disclosure;

[0061] Figure 4 is a schematic diagram of the coordination between the stylus pen and the first electronic device provided by an embodiment of the present disclosure;

[0062] Figure 5 yes Figure 4 A schematic diagram of the structure shown in another direction;

[0063] Figure 6 yes Figure 5 A magnified view of part I in the middle;

[0064] Figure 7 is a flow chart of a method for controlling a stylus provided by an embodiment of the present disclosure;

[0065] Figure 8 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure;

[0066] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure.

[0067] Description of reference numerals:

[0068] 110-housing, 120-touch head, 130-cap body,

[0069] 200-Motherboard,

[0070] 310-communication module, 330-touch module, 331-button,

[0071] 510-second contact,

[0072] 600-battery module,

[0073] 700-antenna,

[0074] 900-First electronic device. DETAILED DESCRIPTION

[0075] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0076] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0077] The stylus provided in the embodiment of the present disclosure is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0078] like Figure 1-Figure 6 As shown, the present disclosure provides a stylus pen, which cooperates with a first electronic device, and the first electronic device can be a terminal device such as a mobile phone or a tablet computer. The first electronic device is provided with a receiving hole, and the shape and size of the receiving hole can be adapted to the shape and size of the stylus pen to ensure that the stylus pen can be accommodated in the receiving hole, and the receiving hole can provide a receiving and placement function for the stylus pen. When the stylus pen is accommodated in the receiving hole, the stylus pen can be moved or carried with the first electronic device. The stylus pen includes a housing 110, a battery module 600, a touch module 330, a control module, and a communication module 310.

[0079] The housing 110 is provided with a receiving cavity, and the battery module 600, the control module and the communication module 310 are all arranged in the receiving cavity. The housing 110 can also provide protection for the battery module 600, the control module and the communication module 310. The touch module 330 can interact with the user, so that the user can input control instructions to the stylus through the touch module 330. The control module can form corresponding control signals or instructions according to the user's instructions, the corresponding signals received or the preset instructions, and send the control signals or instructions to the target device such as the controlled object through the communication module 310, so that the target device can complete the corresponding operation according to the user's instructions. Of course, the situation of the user implementing the first operation can also be received by the communication module 310 or other devices in the stylus.

[0080] The battery module 600 is electrically connected to the touch module 330, the control module and the communication module 310 respectively, so as to supply power to the touch module 330, the control module and the communication module 310, and ensure that the above three can work normally. In the process of assembling the stylus pen, the touch module 330, the control module and the communication module 310 can form an electrical connection relationship with the battery module 600 through connecting parts such as wires; or, the touch module 330, the control module and the communication module 310 can also be 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 instructions received by the touch module 330 can be sent to the control module, and the control module can send control instructions to the target device through the communication module 310. Similarly, the touch module 330 and the communication module 310 can be connected to the control module through connecting structures such as wires or circuit boards. The communication module 310 can be a wifi module or a Bluetooth module, etc., and the touch module 330 can be at least one of a touch panel and a button 510. As mentioned above, the user can send control instructions to the control module through the touch module 330 by touching the touch panel and / or the control button 510.

[0081] The touch module 330 is disposed in the housing 110, and when the stylus is accommodated in the receiving hole, the touch module 330 is exposed on the first electronic device. That is, the touch module 330 in the stylus is exposed on the surface of the first electronic device. In addition, in order to facilitate the insertion and removal of the stylus, a portion of the stylus can usually be exposed outside the first electronic device, so that when inserting and removing the stylus, especially in the process of pulling the stylus out of the receiving hole, it is convenient for the user to pull out the stylus through the exposed portion of the stylus. In the stylus provided in the present disclosure, at least the touch module 330 is exposed outside the first electronic device. Of course, in the aforementioned embodiment, only the area where the touch panel is located and / or the position where the button 510 is located in the touch module 330 can be exposed outside the first electronic device, or the entire touch module 330 can be exposed outside the first electronic device, including the edge of the touch module 330 and other parts that cannot provide a touch function. In addition, in the stylus provided by the present disclosure, in addition to the touch module 330 being exposed on the first electronic device, other parts of the stylus, such as a part of the housing 110 , may also be exposed outside the first electronic device.

[0082] In the disclosed embodiment, the stylus pen can cooperate with the first electronic device, and the battery module 600 of the stylus pen is electrically connected to the touch module 330, the control module and the communication module 310 respectively, and the control module is electrically connected to the touch module 330 and the communication module 310 respectively. The stylus pen can be accommodated in the receiving hole of the first electronic device, and when the stylus pen is accommodated in the receiving hole, the touch module 330 can still be exposed to the first electronic device, so that during the use of the stylus pen, even if the stylus pen is accommodated in the receiving hole of the first electronic device, the user can at least rely on the touch module 330 to send control commands to other devices, which can expand the application scope of the stylus pen and improve the efficiency of the use of the stylus pen.

[0083] As described above, when the stylus pen is received in the receiving hole, the touch module 330 is exposed to the first electronic device. Optionally, the touch module 330 is arranged at the tail of the stylus pen. Accordingly, when the stylus pen is received in the receiving hole, the touch module 330 located at the tail of the stylus pen is exposed to the first electronic device.

[0084] In another embodiment of the present disclosure, a notch can be provided on the side wall of the receiving hole of the first electronic device, that is, a preset angle is formed between the axial direction of the notch and the axial direction of the receiving hole, and the notch is not provided at the tail of the receiving hole. The size and shape of the notch can be determined according to actual conditions, and in the process of designing and manufacturing the stylus, the part of the stylus corresponding to the notch, such as the shape of the touch module 330, can be adapted to the overall shape of the first electronic device, so that the overall structure of the first electronic device is more regular.

[0085] In the above embodiment, when the stylus pen is received in the receiving hole, the touch module 330 can be exposed to the electronic device through the notch. When the above technical solution is adopted, the area of ​​the part of the stylus pen exposed to the first electronic device can be expanded to a certain extent, and when the stylus pen is received in the receiving hole, it is less difficult for the user to use the touch module 330; in addition, when the above technical solution is adopted, the probability of the user misoperating the touch module 330 during the process of plugging and unplugging the stylus pen can also be reduced.

[0086] As described above, the stylus pen includes a battery module 600, and the battery module 600 can supply power to other modules in the stylus pen. The battery module 600 can be a storage lithium battery, and the battery module 600 can be charged by wireless charging or wired charging. Optionally, the first electronic device includes a device body, and a device battery and a first contact are provided in the device body, and the first contact is electrically connected to the device battery. The stylus pen is provided with a second contact 530, and the battery module 600 is electrically connected to the second contact 530. When the stylus pen is accommodated in the receiving hole, the first contact contacts the second contact 530, and the battery module 600 is electrically connected to the device battery. The above-mentioned contact charging method can ensure the reliability of the charging work and make the charging efficiency higher. In addition, the structure for providing the charging function is relatively simple.

[0087] The shapes and numbers of the first contact and the second contact 530 are appropriate, and both can be made of metal copper to reduce the charging resistance and further improve the charging efficiency. The device body and the housing 110 of the stylus pen can be provided with corresponding openings to ensure that the first contact connected to the device battery can extend from the device body, and the second contact 530 connected to the battery module 600 can extend from the housing 110 and contact the first contact. The first contact and the device battery, as well as the second contact 530 and the battery module 600 can be connected to each other through electrical connectors such as wires to ensure that the charging of the battery module 600 can proceed normally.

[0088] Optionally, the stylus pen further includes a positioning module, which is disposed in the accommodating cavity and electrically connected to the battery module 600. The positioning module can determine the location of the stylus pen, thereby facilitating the user to find the stylus pen, and can also enable the stylus pen to be used as a locator.

[0089] In addition, the stylus pen further includes a stylus head 120 and a cap body 130. The stylus head 120 is connected to one end of the housing 110 and can provide a touch function. The cap body 130 is connected to the other end of the housing 110, so that the overall sealing performance of the stylus pen is better. The stylus head 120 and the cap body 130 can be installed on the housing 110 in a detachable connection manner such as plug-in or snap-on, or the stylus head 120 and the cap body 130 can be fixed on the housing 110 by bonding or other means. As described above, the control module and the like can be connected to the battery module 600 through a circuit board. Optionally, the stylus pen includes a main board 200, which is installed in the housing 110. The touch module 330, the control module, the communication module 310 and the battery module 600 are all electrically connected to the main board 200. The stylus pen is provided with an antenna 700, which is connected to the main board 200.

[0090] As described above, the touch module 330 may include a button 510. Optionally, when the stylus pen is provided with a cap body 130, an opening may be provided on the cap body 130, and the button 510 may extend from the cap body 130. The number of buttons 510 may be three. Of course, the specific number and distribution position of the buttons 510 may also be selected according to actual needs.

[0091] Based on the stylus provided above, Figure 7 As shown, the present disclosure also provides a control method for a stylus pen, the control method comprising:

[0092] S11. The stylus receives a first operation from the user. As described above, the stylus includes a touch module and a battery module that are connected to each other, and the battery module can 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 the user can at least send a first operation to the touch module by touching the touch panel and / or pressing a button when the stylus is accommodated in the accommodating cavity. Correspondingly, the touch module can receive the first operation from the user. In addition, as described above, other devices such as the communication module in the stylus can also be used as devices for receiving the first operation performed by the user.

[0093] S12: When the distance between the stylus pen and the target device is less than the preset distance, the control module sends the first control information to the target device through the communication module according to the first operation. As described above, the stylus pen includes a battery module, and a control module and a communication module connected to the battery module, and the communication module and the touch module are both connected to the control module. The battery module can supply power to the control module and the communication module, so that when the distance between the stylus pen and the target device is less than the preset distance, 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. There is a preset corresponding relationship between the first control information and the first operation, and the preset corresponding relationship can be pre-set in the stylus pen or the target device, or can be flexibly set by the user according to his own needs before and during the use of the stylus pen.

[0094] In the disclosed embodiment, the stylus pen can be accommodated in a receiving hole of a first electronic device, and when the stylus pen is accommodated in the receiving hole, the touch module can still be exposed to the first electronic device. Therefore, during the use of the stylus pen, even if the stylus pen is accommodated in the receiving hole of the first electronic device, the stylus pen can receive a first operation from the user and send first control information to the target device through the communication module with the help of the control module. This can expand the scope of application of the stylus pen and improve the efficiency of using the stylus pen.

[0095] The target device may be a first electronic device, as described above, which may provide a storage space for the stylus; or the target device may be another electronic device other than the first electronic device, such as a second electronic device. Accordingly, depending on the different target devices and the different first operations, the first control information sent by the control module through the communication module may be the same or different.

[0096] In addition, the distance between the stylus pen and the target device can be measured by the above-mentioned positioning module, or a distance measuring module can be provided on the stylus pen, and both the battery module and the control module can be connected to the distance measuring module. The distance measuring module can be an infrared distance measuring module or an ultrasonic distance measuring module, and the distance between the stylus pen and the target device can also be obtained with the help of the distance measuring module. Of course, the preset distance can be set in advance, or set or modified by the user according to his own needs.

[0097] As described above, the stylus includes a touch module, and when the stylus is accommodated in the receiving hole, the touch module is exposed to the first electronic device, and the touch module includes at least one of a touch panel and a button. Based on the above situation, in the control method provided by the present disclosure, optionally, the first operation includes touching and / or pressing the touch module of the stylus. In other words, the user can input control information to the stylus with the help of the touch module to form a first operation. In this case, the stylus can receive the first operation from the user through the touch module.

[0098] As described above, the stylus can receive the first operation from the user not only through the touch module, but also through the communication module, as well as the distance measurement module and positioning module provided in the stylus. In the above cases, it can be ensured that the stylus can receive the first operation from the user. It should be noted that the user's first operation can act directly on the stylus, so that at least one of the components of the stylus, such as the touch module, communication module, distance measurement module and positioning module, receives the first operation from the user; or, the user's first operation can act on other devices other than the stylus, and by interconnecting the aforementioned other devices with the stylus or the first electronic device, it can also be ensured that the stylus can receive the information that the user has performed the first operation.

[0099] Based on the control method provided in the above embodiment, optionally, the target device is a first electronic device, and the preset distance is a first preset distance. Wherein, when the stylus pen is partially received in the receiving hole, the distance between the stylus pen and the first electronic device is the first preset distance.

[0100] It should be noted that since the stylus pen and the first electronic device are both three-dimensional structures and both have multiple position points at different positions, in order to facilitate determining the distance between the stylus pen and the first electronic device, the stylus pen can be replaced by the tip of the stylus pen, and the first electronic device can be replaced by the portion of the hole wall of the accommodating hole in the first electronic device that is opposite to the tip of the stylus pen.

[0101] In the above case, when the stylus pen is completely accommodated in the accommodating hole, the stylus pen cannot continue to extend deeper into the accommodating hole. It can be considered that the distance between the tip of the stylus pen and the portion of the hole wall of the accommodating hole opposite to the tip of the stylus pen is 0, which is equivalent to the distance between the stylus pen and the first electronic device being 0. Of course, in the above case, the distance between the stylus pen and the first electronic device is less than the first preset distance.

[0102] Based on the above situation, as long as the stylus is pulled out of the receiving hole, no matter the stylus is completely pulled out or only a part of the stylus is pulled out of the receiving hole, the distance between the stylus and the first electronic device must be greater than 0. Correspondingly, when the stylus is just completely pulled out of the receiving hole and is completely outside the receiving hole, it is considered that the distance between the stylus and the first electronic device is just greater than the first preset distance. Since the stylus has a certain length, the first preset distance can be a range value, and does not include the end values ​​at both ends.

[0103] In this embodiment, the preset distance is a first preset distance. When the distance between the stylus pen and the first electronic device is less than the first preset distance, that is, when the stylus pen is completely located in the receiving hole, the control module can send the first control information to the first electronic device through the communication module according to the first operation from the user. It should be noted that the above-mentioned situation where the stylus pen is completely located in the receiving hole does not contradict the touch module being exposed to the first electronic device, but means that the distance between the stylus pen and the first electronic device is 0, that is, the distance between the two is less than the first preset distance.

[0104] By adopting the technical solution provided in the above embodiment, the first electronic device can be controlled by means of the touch module of the stylus. For example, the first electronic device can be a terminal device including a display module such as a mobile phone or a tablet computer, and the user can control the content played by the display module in the first electronic device to fast forward or rewind through the touch module, and control the first electronic device to change the content played; for example, the first electronic device can be controlled to change the ringtone or the volume of the media sound. Alternatively, the first electronic device can be an audio playback device, etc. Correspondingly, when the touch module receives the first operation from the user, if the stylus is accommodated in the accommodating hole, the control module can send the 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 to play audio, and can also control the first electronic device to increase or decrease the volume. Of course, in the case where the first electronic device is a device of other types, the first control information formed based on the first operation may also be different. Considering the simplicity of the text, examples are not given one by one here.

[0105] Based on the above embodiment, a further embodiment includes the above steps S11 and S12, and further includes:

[0106] S13. When the distance between the stylus 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 to say, similar to the above embodiment, the first electronic device can still be controlled by the stylus pen. In addition, when the relative position between the stylus pen and the first electronic device is different, the same control instruction can cause the control module to send different control information. Among them, the aforementioned different relative positions can be different distances between the stylus pen and the first electronic device, the same control instructions can all be the first operation from the user, and the different control information can include the first control information and the second control information.

[0107] As described above, the second control information is different from the first control information. When the user inputs the first operation to the stylus, if the distance between the stylus 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 can be to start or stop playing audio and video, and if the distance between the stylus 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 can be to light up or turn off the display module of the first electronic device. Of course, the first control information and the second control information can also be other types of control information, and the second control information is different from the first control information. In addition, the first electronic device can also be other terminal devices, and the first control information and the second control information can be set according to actual conditions, or can be flexibly assigned according to the actual needs of the user.

[0108] Based on the control method provided in the above embodiment, optionally, the target device is a second electronic device, and the preset distance is a second preset distance. The second preset distance is the distance between the stylus and the second electronic device. The type of the second electronic device may be the same as the first electronic device, for example, both are smart terminals such as mobile phones. Alternatively, the type of the second electronic device may be different from the first electronic device, such as the first electronic device may be a smart terminal such as a mobile phone, and the second electronic device may be a smart terminal such as a projector, a television, an air conditioner, a fan, or the like, or the second electronic device may also be a smart door lock or an electronic access control, or the second electronic device may be a device such as a car equipped with electronic devices.

[0109] In the above embodiment, when the stylus is within the preset range of the second electronic device, that is, the distance between the stylus and the second electronic device is less than the second preset distance, the stylus can receive the first operation from the user to achieve the purpose of controlling the second electronic device outside the first electronic device.

[0110] For example, the second electronic device is a smart door lock. When the stylus enters the 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 the first control information to the second electronic device through the communication module. The first control information can be closing or opening the door lock, etc. When the second electronic device is an electrical appliance such as a projector or air conditioner, the first control information can be adjusting the brightness or adjusting the temperature, etc. When the second electronic device is a car, etc., the first control information can be opening or closing the door lock, opening or closing the trunk, etc.

[0111] In addition, in the above embodiments, only the distance between the stylus pen and the second electronic device is required, and there is no restriction on the positional relationship between the stylus pen and the first electronic device. In the process of combining the above multiple embodiments, in order to enable the control module to accurately determine the ownership of the controlled object, that is, whether the target device is the first electronic device or the second electronic device, etc., an optional embodiment is to set the priority of the second electronic device higher than the priority of the first electronic device, that is, when the stylus pen receives the first operation from the user, if the distance between the second electronic device and the stylus pen is less than the second preset distance, the control module can send the first control information to the second electronic device through the communication module.

[0112] In order to solve the above technical problems, in other embodiments of the present disclosure, the method of allowing the user to select the target device can also be used. For example, before, when or after the user inputs the control instruction, the user can input which of the first electronic device and the second electronic device to be controlled is, and then, by detecting and judging the relationship between the distance between the target device selected by the user and the stylus and the preset distance, the control module can send control information to the target device through the communication module when the preset conditions are met. For another example, by setting a control switch, when the control switch is in the first position, the target device can be the first electronic device, and when the control switch is in the second position, the target device can be the second electronic device.

[0113] As described above, there are many ways to determine the target device. In this embodiment, the distance relationship between the first electronic device, the second electronic device and the stylus can be determined to determine the target device. Specifically, when the target device is the second electronic device and the preset distance is the second preset distance, the above step S12 may include:

[0114] S121, when the distance between the stylus pen and the second electronic device is less than the second preset distance, and the distance between the stylus pen 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. Similar to the above embodiment, the first preset distance is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole of the first electronic device.

[0115] That is, in the process of determining the target device, when the stylus pen is partially accommodated in the receiving hole of the first electronic device, and the distance between the stylus pen and the second electronic device is less than the second preset distance, the target device is the second electronic device. In other cases, such as when the stylus pen is completely accommodated in the receiving hole, or when the stylus pen is completely outside the receiving hole, the target device is the first electronic device. The above technical solution can reduce the difficulty of designing and producing the stylus pen to a certain extent, and can reduce the user's operation, making it easier for the user to use.

[0116] Based on the control method provided in the above embodiment, in the case where the target device is determined by the positional relationship between the first electronic device, the second electronic device and the stylus, the first operation may further include:

[0117] Touch the preset area of ​​the second electronic device. Of course, in this embodiment, it is necessary to set a receiving device such as a touch button or a capacitive sensor 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 also be provided with a communication module, so that when the user performs a first operation on the second electronic device, the second electronic device can send the aforementioned situation to the stylus or the first electronic device, so that the stylus can receive the fact that the user has performed the first operation. Furthermore, when the distance between the stylus and the first electronic device is equal to the first preset distance, and the distance between the stylus and the second electronic device is less than the second preset distance, the control module can send the first control information to the second electronic device through the communication module.

[0118] Optionally, the above embodiments can be applied to the automatic opening scenario of a car or a smart door lock. Taking a car as an example, the second electronic device can be a car. In a scenario where the user needs to carry items and needs to occupy his hands, the user can pull out a part of the stylus from the accommodating hole of the first electronic device in advance, so that the distance between the stylus and the first electronic device meets the first preset distance. After that, the user can carry the items to the parking area of ​​the car. When the user reaches the car or enters the preset area around the car, the user can touch the front door, rear door or trunk of the car with the back of the hand, so that the second electronic device of the car receives the first operation from the user. After that, the second electronic device can 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. The first control information can correspond to opening the front door lock, opening the rear door lock or opening the trunk lock.

[0119] In summary, in the above embodiments, the stylus pen can replace the car key; and in the process of controlling the car by the stylus pen, not only can the corresponding instructions be sent to the car by touching the touch panel of the stylus pen and / or pressing buttons, but the stylus pen can also be used to achieve the purpose of keyless entry of the car, so that the user only needs to carry the first electronic device when driving out, without the need to carry the conventional physical car key. At the same time, as mentioned above, the first electronic device can be a terminal device with communication functions such as a mobile phone. Therefore, the user can carry the first electronic device as a tool to provide the user with the functions that both conventional devices, such as mobile phones and car keys, can provide.

[0120] Of course, when providing the function of keyless entry with the help of a stylus, the value of the second preset distance can be set according to the actual situation. In addition, when the user carries a first electronic device that houses a stylus and touches the preset area of ​​the second electronic device, as long as the second preset distance is not too small, that is, when the second preset distance takes most values, it can basically ensure that the distance between the stylus and the second electronic device is less than the second preset distance. For example, the second preset distance can take specific values ​​such as one meter, fifty centimeters, thirty centimeters or twenty centimeters. The second preset distance can be set in advance, or it can be flexibly set by the user according to their own needs. At the same time, similar to the second electronic device being a car, when the second electronic device is a smart door lock or smart access control, it can also be implemented accordingly according to the above embodiments.

[0121] Based on the control method provided in the above 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 pressing the preset area of ​​the second electronic device, or long pressing the preset area of ​​the second electronic device, or touching the preset area of ​​the second electronic device with a preset trajectory, etc. In the case of different specific implementation forms of the first operation, the first control information formed may be the same, or, in the case of different specific implementation forms of the first operation, the first control information may be different, 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 car door as mentioned above, adjusting the seat angle or position, or controlling the car to start in different driving modes.

[0122] In addition, in order to ensure that there is an accurate correspondence between the stylus pen and the second electronic device, optionally, before the stylus pen is used to control the second electronic device for the first time, the stylus pen can be paired with the second electronic device as the target device. Optionally, during the pairing process of the stylus pen and the second electronic device, the stylus pen and the second electronic device can be connected to each other via Bluetooth for pairing.

[0123] Furthermore, when configuring the stylus to control the corresponding function of the second electronic device, when the first function button on the controller of the second electronic device (such as a remote control or a car key, etc.) is in a pressed state, a certain button on the stylus, such as the first button, can be pressed, so that the first button of the stylus can be used as the first function button to control the second electronic device. After that, the second function button of the controller of the second electronic device is pressed, and the second button of the stylus is pressed, so that the second button replicates the function of the second function button, and so on, so that the stylus can have the function of controlling the second electronic device to perform a variety of different operations.

[0124] Similarly, when the touch module of the stylus pen includes a 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 pen (and / or the virtual keys on the touch panel), the function of a control key in the second electronic device can be copied by pressing multiple keys on the stylus pen at the same time; or, the stylus pen can only copy the functions of the more commonly used and more important function keys in the second electronic device.

[0125] Optionally, in the process of copying the control function of the controller, the communication module of the stylus can be used to receive a radio frequency signal emitted when a control button of the controller is in a pressed state. By copying the received radio frequency signal, and when the corresponding button on the stylus is pressed (or the corresponding position on the touch panel is touched), the control module can send the aforementioned radio frequency signal through the communication module, thereby achieving the purpose of the stylus copying the function of the controller.

[0126] In addition, as mentioned above, the first electronic device can be a terminal device with a display function such as a mobile phone. Therefore, when the above-mentioned scheme of receiving radio frequency signals is adopted to enable the stylus to have a controller function, the first electronic device can also be used to provide auxiliary functions for the copying work. In detail, the stylus can first form a communication connection relationship with the first electronic device, such as a Bluetooth connection; then, the stylus can be put into copy mode with the help of the first electronic device; then, by pressing the corresponding buttons on the stylus and the controller, the radio frequency signal sent by the controller is received with the help of the communication module of the stylus. When the communication module receives the complete radio frequency signal, it can be considered that the copying process has been completed; at this time, the words such as "copying completed" can be displayed on the display module of the first electronic device to let the user know that the copying work has been completed. Of course, without the help of the first electronic device, an acousto-optical device can be set for the stylus to show the user the results such as copying completion or copying failure through sound signals or light signals, so as to improve the user experience of the stylus.

[0127] Optionally, when the stylus needs to be used to control another second electronic device, the second electronic device to be controlled can be switched by controlling the switch or the touch module. Alternatively, the first electronic device can be used to provide auxiliary functions for the stylus, and the first electronic device can be used to determine which second electronic device is matched with the stylus.

[0128] Optionally, when the controlled relationship between the stylus pen and the second electronic device needs to be released, the corresponding relationship with one or some second electronic devices can be deleted by means of the touch module. Alternatively, a corresponding release switch can be set on the stylus pen.

[0129] Alternatively, the above-mentioned first electronic device can also assist the stylus pen in contacting the controlled relationship with the second electronic device. In the case where the first electronic device includes a display module and a communication module, by establishing a communication connection relationship between the stylus pen and the first electronic device, with the help of the display module of the first electronic device, the user can also clearly understand the number and type of second electronic devices that have a paired relationship with the stylus and other information. The user can add and delete the second electronic device that can be controlled by the stylus pen through the display module of the first electronic device, so that the user can clearly and simply increase and decrease the second electronic device paired with the stylus pen, thereby improving the user experience.

[0130] As described above, when the target device is a second electronic device and the preset distance is a second preset distance, when a first operation is received from the user, if the distance between the stylus pen and the second electronic device is less than the second preset distance, the control module can send first control information to the second electronic device through the communication module according to the first operation. As described above, the first operation can specifically be an operation applied by the user to the touch module, such as pressing a button of the touch module, or touching a touch panel of the touch module. In another embodiment of the present disclosure, the first operation can also be an operation applied to other structural parts on the stylus, such as a distance measurement module or a positioning module in the stylus.

[0131] Optionally, when the distance between the stylus pen and the first electronic device is different, the first operation may also be changed accordingly. As described above, the distance between the stylus pen and the first electronic device may be less than, equal to, or greater than a first preset distance, which is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole.

[0132] In detail, the first operation may include: when the distance between the stylus and the first electronic device is less than a first preset distance, partially pulling out the stylus from the receiving hole of the first electronic device. In other words, when the user implements the first operation, if the stylus is fully inserted into the receiving hole of the first electronic device, a portion of the stylus can be pulled out from the receiving hole, so that a portion of the stylus is located inside the receiving hole and the other portion is located outside the receiving hole, thereby completing the implementation of the first operation. During the implementation of the above-mentioned first operation, the real-time distance between the stylus and the first electronic device can be detected by the ranging module or positioning module of the stylus, and when the distance between the two changes, the change in the relative position between the stylus and the first electronic device is transmitted to the control module, and then when the distance between the stylus and the second target device meets the preset conditions, the control module sends the first control information to the second electronic device through the communication module.

[0133] In another embodiment, the first operation may include: when the distance between the stylus and the first electronic device is equal to the first preset distance, part of the stylus is pulled out from the receiving hole of the first electronic device, or part of the stylus is inserted back into the receiving hole of the first electronic device. In other words, when the user implements the first operation, if part of the stylus is inserted into the receiving hole of the first electronic device and the other part is outside the receiving hole, the stylus can be controlled to move relative to the first electronic device, including allowing the stylus to continue to extend into the receiving hole, and allowing the stylus to continue to be pulled out from the receiving hole, to complete the implementation of the first operation. During the implementation of the above-mentioned first operation, the real-time distance between the stylus and the first electronic device can be detected by the distance measurement module or the positioning module of the stylus, and when the distance between the two changes, the change in the relative position between the stylus and the first electronic device is transmitted to the control module, and then when the distance between the stylus and the second target device meets the preset conditions, the control module sends the first control information to the second electronic device through the communication module.

[0134] Alternatively, the first operation may include: when the distance between the stylus and the first electronic device is greater than a first preset distance, controlling the stylus to move along a preset trajectory. Similarly, during the implementation of the above-mentioned first operation, the movement of the stylus can be detected by a distance measurement module or a positioning module of the stylus. Of course, other devices such as a gyroscope, a gravity sensor, and a displacement sensor can also be provided in the stylus to provide a detection function for the moving trajectory of the stylus, so that when the stylus is located outside the receiving hole of the first electronic device, when the stylus completes the movement along a preset trajectory, and when the distance between the stylus and the second electronic device meets the second preset distance, the control module can send the first control information to the second electronic device through the communication module.

[0135] In addition, it should be noted that when detecting whether the stylus moves along a preset trajectory, the stylus can also be regarded as a point, or the motion trajectory of the component in the stylus used to detect the motion trajectory of the stylus can represent the motion trajectory of the stylus. Moreover, when judging whether the actual motion trajectory of the stylus conforms to 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. Optionally, the preset trajectory can be specifically a straight line, a circle, or an S shape, etc.

[0136] Based on the above situation, optionally, when the stylus pen is located outside the accommodating hole of the first electronic device, when the stylus pen moves with different preset trajectories, the control module can send different control information to the second electronic device through the communication module. For example, when the preset trajectory is a straight line, the first sub-control information is sent, and when the preset trajectory is a circle, the second sub-control information is sent, and the first sub-control information and the second sub-control information are both included in the first control information.

[0137] In the case of controlling the second electronic device by the stylus pen, there is also a case where the distance between the stylus pen and the second electronic device is not less than the second preset distance, that is, the distance between the stylus pen 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 also includes:

[0138] S14. When the distance between the stylus pen and the second electronic device is greater than or equal to the second preset distance, the third control information is sent to the second electronic device through the communication module. Specifically, by setting a distance measurement module and / or a positioning module in the stylus pen, the distance between the stylus pen and the second electronic device can be detected in real time, and by a preset algorithm or a preset program, it can be ensured that when the distance between the stylus pen and the second electronic device is equal to or greater than the second preset distance, the communication module can send the third control information to the second electronic device, so that the second electronic device generates a corresponding operation according to the third control information.

[0139] For example, if the second electronic device is a car, the third control information may be a locking signal. When the user leaves the car and moves away from the car, if the user forgets to lock the car, the stylus can 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 the second preset distance. In this case, regardless of whether the user remembers to lock the car, the second electronic device can complete the locking operation when and after the user leaves the preset range around the car to prevent theft and prevent children from accidentally entering the car and being trapped.

[0140] Of course, the third control information can also be other specific signals, such as an alarm signal, etc. The specific type of the third control information can be preset, or the user can flexibly assign it according to their own needs, which is not limited here. Similarly, when the second electronic device is a smart door lock or electronic access control device, it can be understood according to the above embodiment. Considering the simplicity of the text, it will not be described here.

[0141] Optionally, the first control information includes at least one of authentication information, unlocking information and adjustment information, that is, the first control information can be used to verify whether the stylus has the right to exchange information and control instructions with the target device to ensure safe control. Correspondingly, the first control information can also be used to control the target device to unlock, so that the user or authorized others can use the target device normally; or, the first control information can be used to adjust the corresponding parameters of the target device so that the target device meets the needs of the user. Of course, when the first electronic device and the second electronic device are controlled separately by the stylus, the specific type and content of the first control information can be the same, or can be changed accordingly according to the different target devices.

[0142] Similarly, the second control information and the third control information may include multiple types. In addition to the control information included in the first control information, the second control information and the third control information may also be locking information, closing information, and the like.

[0143] The present disclosure also provides a control method, which includes:

[0144] S21, receiving a first operation from a user;

[0145] S22: When the distance between the stylus pen and the target device is less than a preset distance, send first control information to the target device according to the first operation.

[0146] The control method provided by the embodiment of the present disclosure can achieve Figure 7 To avoid repetition, the various processes implemented in the illustrated method embodiment will not be described again here.

[0147] Based on the control methods provided in the above embodiments, the present disclosure also provides a controller, which includes a receiving device and a sending device, wherein the receiving device is used to receive a first operation from a user, and the sending device is used to send a first control information to the target device when the distance between the stylus pen and the target device is less than a preset distance.

[0148] In the disclosed embodiment, the receiving device of the controller may receive a first operation from the user, and send first control information to the target device through the sending device, thereby expanding the application scope of the stylus pen and improving the efficiency of using the stylus pen.

[0149] Optionally, the target device is a first electronic device, and the preset distance may be a first preset distance, which is the distance between the stylus and the first electronic device when the stylus is partially received in the receiving hole. In the above case, the sending device in the controller is further used 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.

[0150] Optionally, the target device is a second electronic device, and the preset distance is a second preset distance, which is the distance between the stylus pen and the second electronic device. In the above case, the sending device in the controller is also used to send the first control information to the second electronic device when the distance between the stylus pen and the second electronic device is less than the second preset distance and the distance between the stylus pen and the first electronic device is equal to the first preset distance. The first preset distance is the distance between the stylus pen and the first electronic device when the stylus pen is partially accommodated in the receiving hole of the first electronic device.

[0151] Optionally, the receiving device includes a first sub-receiving device, which can receive touch operations, and the first sub-receiving device can be installed on a second electronic device so that when the user touches a preset area on the second electronic device where the first sub-receiving device is installed, the stylus can receive a first operation from the user.

[0152] Optionally, the receiving device may include a second sub-receiving device, which can receive the movement of the stylus pen. The second sub-receiving device may be connected to the housing of the stylus pen and installed inside or on the housing. Under the action of the second sub-receiving device, the stylus pen may determine whether the user inputs the first operation by its own movement. The movement may specifically include moving toward or away from the first electronic device, and the stylus pen moves along a preset trajectory outside the first electronic device.

[0153] Optionally, the target device is a second electronic device, and the preset distance is a second preset distance, which is the distance between the stylus pen and the second electronic device. In the above case, the sending device is further used to send the second control information to the second electronic device when the distance between the stylus pen and the second electronic device is greater than or equal to the second preset distance.

[0154] Optionally, the receiving device includes a third sub-receiving device, which can receive touch and / or pressing actions. The third sub-receiving device is connected to the shell of the stylus pen, and can be specifically installed on the shell to ensure that the user can touch and / or press the third sub-receiving device to input the first operation to the stylus pen.

[0155] The controller provided by the embodiment of the present disclosure can realize Figure 7To avoid repetition, the various processes implemented in the illustrated method embodiment will not be described again here.

[0156] Based on the control methods disclosed in the above embodiments, Figure 8 As shown, the present disclosure also provides an electronic device 900, which includes a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, the various steps of the above-mentioned control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0157] It should be noted that the electronic devices in the embodiments of the present disclosure include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0158] Fig. 9 A schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present disclosure.

[0159] 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 and other components.

[0160] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0161] The user input unit 1007 is used to receive a first operation from a user.

[0162] The processor 1010 is configured to control the RF unit 1001 to send first control information to the target device according to the first operation when the distance between the stylus pen and the target device is less than a preset distance.

[0163] In the disclosed embodiment, the stylus pen can cooperate with the first electronic device, the battery module of the stylus pen is electrically connected to the touch module, the control module and the communication module respectively, and the control module is electrically connected to the touch module and the communication module respectively. The stylus pen can be accommodated in the receiving hole of the first electronic device, and when the stylus pen is accommodated in the receiving hole, the touch module can still be exposed to the first electronic device, so that during the use of the stylus pen, even if the stylus pen is accommodated in the receiving hole of the first electronic device, the user can at least rely on the touch module to send control commands to other devices, which can expand the application scope of the stylus pen and improve the efficiency of the use of the stylus pen.

[0164] Optionally, the target device is a first electronic device, and the preset distance is a first preset distance, which is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole. Based on the above situation, the processor 1010 is further configured to control the RF unit 1001 to send second control information to the first electronic device according to the first operation when the distance between the stylus pen and the first electronic device is greater than the preset distance.

[0165] Optionally, the target device is a second electronic device, and the preset distance is a second preset distance, and the second preset distance is the distance between the stylus pen and the second electronic device. Based on the above situation, the processor 1010 is further configured to control the RF unit 1001 to send the first control information to the second electronic device according to the first operation when the distance between the stylus pen and the second electronic device is less than the second preset distance and the distance between the stylus pen and the first electronic device is equal to the first preset distance.

[0166] The first preset distance is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole of the first electronic device.

[0167] Optionally, the target device is a second electronic device, and the preset distance is a second preset distance, which is the distance between the stylus pen 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 pen and the second electronic device is greater than or equal to the second preset distance.

[0168] Optionally, the user input unit 1007 can receive a touch action from the user, or the user input unit 1007 can receive movement of a stylus pen, or the user input unit 1007 can receive a touch and / or press action.

[0169] It should be understood that in the embodiment of the present disclosure, the input unit 1004 may include a graphics processor (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture 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, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called 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, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0170] The embodiments of the present disclosure also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned stylus control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0171] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0172] The disclosed embodiment further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned stylus control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0173] It should be understood that the chip mentioned in the embodiments of the present disclosure may also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc.

[0174] 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 other devices or chips, or to send information or data to other devices or chips.

[0175] The embodiments of the present disclosure further provide a computer program product, which is stored in a non-volatile storage medium. The computer program product is configured to be executed by at least one processor to implement the various processes of the above-mentioned stylus control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0176] The disclosed embodiment further provides a processing device, which is configured to execute each process of the above-mentioned stylus control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0177] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0178] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0179] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present disclosure and the claims, all of which are within the protection of the present disclosure.

Claims

1. A stylus pen, the stylus pen is matched with a first electronic device, the first electronic device is provided with a receiving hole, characterized in that: The stylus pen comprises: a shell, a touch head, a battery module, a touch module, a control module and a communication module, the shell is provided with a receiving cavity, the battery module, the control module and the communication module are arranged in the receiving cavity, the touch module is arranged in the shell, the touch head is connected to an end of the shell away from the touch module, the battery module is electrically connected to the touch module, the control module and the communication module respectively, and the control module is electrically connected to the touch module and the communication module respectively; When the stylus pen is received in the receiving hole, the touch module is exposed on the first electronic device; Wherein, the touch module includes at least one of a touch panel and a button.

2. The touch pen according to claim 1, characterized in that: The first electronic device includes a device body, in which a device battery and a first contact are arranged, the first contact is electrically connected to the device battery, the stylus pen is provided with a second contact, the battery module is electrically connected to the second contact, and when the stylus pen is accommodated in the accommodating hole, the first contact is in contact with the second contact, and the battery module is electrically connected to the device battery.

3. The touch pen according to claim 1, characterized in that: The stylus pen further includes a positioning module, which is disposed in the accommodating cavity and is electrically connected to the battery module.

4. A method for controlling a touch pen, characterized in that: The stylus pen cooperates with a first electronic device, the first electronic device is provided with a receiving hole, the stylus pen comprises: a shell, a touch head, a battery module, a touch module, a control module and a communication module, the shell is provided with a receiving cavity, the battery module, the control module and the communication module are arranged in the receiving cavity, the touch module is arranged in the shell, the touch head is connected to an end of the shell away from the touch module, the battery module is electrically connected to the touch module, the control module and the communication module respectively, the control module is electrically connected to the touch module and the communication module respectively; when the stylus pen is accommodated in the receiving hole, the touch module is exposed to the first electronic device; wherein the touch module comprises at least one of a touch panel and a button; The control method comprises: The touch module of the touch pen receives a first operation from the user; When the distance between the stylus pen and the target device is less than a preset distance, the control module sends first control information to the target device through the communication module according to the first operation.

5. The control method according to claim 4, characterized in that: 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 pen and the first electronic device when the stylus pen is partially received in the receiving hole.

6. The control method according to claim 5, characterized in that: The control method further comprises: When the distance between the stylus 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.

7. The control method according to claim 4, characterized in that: The target device is a second electronic device, and the preset distance is a second preset distance; The second preset distance is the distance between the stylus pen and the second electronic device.

8. The control method according to claim 7, characterized in that: When the distance between the stylus pen and the target device is less than a preset distance, the control module sends the first control information to the target device through the communication module according to the first operation, including: When the distance between the stylus pen and the second electronic device is less than the second preset distance and the distance between the stylus pen 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 the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole of the first electronic device.

9. The control method according to claim 8, characterized in that: The first operation includes: Touch a preset area of ​​the second electronic device.

10. The control method according to claim 7, characterized in that: The first operation includes: When the distance between the stylus pen and the first electronic device is less than a first preset distance, partially pulling out the stylus pen from the receiving hole of the first electronic device; When the distance between the stylus pen and the first electronic device is equal to the first preset distance, partially pull out the stylus pen from the receiving hole of the first electronic device, or partially insert the stylus pen back into the receiving hole of the first electronic device; When the distance between the stylus pen and the first electronic device is greater than a first preset distance, the stylus pen is controlled to move along a preset trajectory.

11. The control method according to claim 7, characterized in that: The control method further comprises: When the distance between the stylus pen and the second electronic device is greater than or equal to the second preset distance, third control information is sent to the second electronic device through the communication module.

12. The control method according to claim 7, characterized in that: The second electronic device is a car, an electronic access control system or a smart 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, characterized in that: 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: A receiving device for receiving a first operation from a user; A sending device for sending first control information to a target device when the distance between the stylus pen and the target device is less than a preset distance.

16. The controller according to claim 15, characterized in that The target device is a first electronic device, and the preset distance is a first preset distance, which is a distance between the stylus pen and the first electronic device when the stylus pen is partially 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 pen and the first electronic device is greater than the preset distance.

17. The controller according to claim 15, characterized in that: The target device is a second electronic device, and the preset distance is a second preset distance, which is the distance between the stylus pen and the second electronic device; The sending device is further used to send the first control information to the second electronic device when the distance between the stylus pen and the second electronic device is less than the second preset distance and the distance between the stylus pen and the first electronic device is equal to the first preset distance; The first preset distance is the distance between the stylus pen and the first electronic device when the stylus pen is partially received in the receiving hole of the first electronic device.

18. The controller according to claim 17, characterized in that The receiving device includes a first sub-receiving device for receiving a touch action, and the first sub-receiving device can be installed in the second electronic device.

19. The controller according to claim 16, characterized in that The receiving device includes a second sub-receiving device for receiving movement of the stylus pen, and the second sub-receiving device is connected to the housing of the stylus pen.

20. The controller according to claim 16, characterized in that The target device is a second electronic device, and the preset distance is a second preset distance, which is the distance between the stylus pen 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 pen and the second electronic device is greater than or equal to the second preset distance.

21. The controller according to claim 15, characterized in that The receiving device includes a third sub-receiving device for receiving touch and / or pressing actions, and the third sub-receiving device is installed on the housing of the stylus pen.

22. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the control method as described in any one of claims 4 to 14.

23. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the control method as described in any one of claims 4 to 14 are implemented.

Citation Information

Patent Citations

  • Control system and method of touch pen

    CN106249921A

  • Electrical system, input device and charging method for input device

    DE102014200287A1