Touch pen, electronic device, operation control method, device and terminal device
By introducing extendable button modules and control modules into the stylus, combined with the movable design of the control part, the problems of single functions and operation limitations of the existing stylus are solved, and more abundant user interaction and operation are achieved Experience.
Patent Information
- Application Number
- CN202011285543.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-11-17
AI Technical Summary
The existing electronic device stylus has a single function and limited operating dimensions, which cannot meet the diverse operating needs of users during writing and recording.
A stylus pen is designed, including a housing, a control part, a key module, a battery module and a control module. The control part can move between two positions of the housing, and the key module extends out of the housing through the through hole. In addition, the pop-up and retraction state of the key module is realized, and the control module communicates with the electronic device to control the functional mode of the key module.
The button function of the stylus pen is realized, which enhances the user's operating experience, solves the problems of single functions and limited operating dimensions, and improves the versatility and flexibility of the equipment.
Smart Images

Figure CN112181184B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a stylus pen, electronic equipment, operation control method, device and terminal equipment. Background Art
[0002] With the development of the electronics industry, people's demand for electronic devices is increasing day by day, and there is a gradual need to use electronic devices to take notes and add comments, which makes electronic device stylus a hot topic today. At present, most electronic device stylus pens on the market are active capacitive pens, which interact with the capacitive screen by extracting or releasing electrical signals. The pen head can be very small and has high precision. At present, most mobile phones have capacitive screens, so the compatibility is high. Users can only use active capacitive pens to draw, write and take notes on their mobile phones. Therefore, the stylus has a single function and limited operation dimensions. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a stylus pen, an electronic device, an operation control method, an apparatus and a terminal device, which can solve the problem of single function and limited operation dimension.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a stylus pen, comprising: a shell, a control unit, a button module, a battery module, a control module and a communication module, wherein the control unit is movably disposed at a first end of the shell and can move between a first position and a second position, the shell is provided with a first through hole and a receiving cavity, the first through hole is communicated with the receiving cavity, the communication module, the battery module and the control module are located in the receiving cavity, and the control module is electrically connected to the battery module, the communication module and the button module respectively;
[0006] When the control unit is located at the first position, the button module is located inside the housing;
[0007] When the control portion is located at the second position, the button module at least partially extends out of the housing through the first through hole.
[0008] In a second aspect, an embodiment of the present application provides an electronic device, including the stylus according to the first aspect, wherein the electronic device further includes a device body, wherein a receiving groove having at least one end being open is provided on the device body, and a third through hole communicating with the receiving groove is provided on a side wall of the receiving groove; the control unit is located outside the receiving groove;
[0009] When the control unit is located at the first position, the first part of the button module extends out of the receiving groove through the third through hole;
[0010] When the operating part is located at the second position, the second portion of the button module extends out of the receiving groove through the third through hole; and the first portion is smaller than the second portion.
[0011] In a third aspect, an embodiment of the present application provides an operation control method, which is applied to the electronic device as described in the second aspect, and the method includes:
[0012] Acquiring a state of the key module; the state of the key module includes a retracted state within the housing or a pop-up state in which the key module at least partially extends out of the housing through the first through hole;
[0013] The function mode of the button module is determined according to the button module state.
[0014] In a fourth aspect, an embodiment of the present application further provides an operation control device, including:
[0015] A first acquisition module, used for acquiring a key module state; the key module state includes a retracted state within the housing or a pop-up state at least partially extending out of the housing through the first through hole;
[0016] The determination module is used to determine the function mode of the button module according to the state of the button module.
[0017] In the fifth aspect, an embodiment of the present application also provides a terminal device, which includes 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 method described in the third aspect.
[0018] In a sixth aspect, an embodiment of the present application 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 method described in the third aspect are implemented.
[0019] In a seventh aspect, an embodiment of the present application 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 third aspect.
[0020] In an eighth aspect, an embodiment of the present application further provides a computer program product, which is stored in a non-volatile storage medium, and the computer program product is configured to be executed by at least one processor to implement the steps of the method described in the third aspect.
[0021] In a ninth aspect, an embodiment of the present invention further provides a control device, which is configured to execute the method as described in the third aspect.
[0022] Thus, in the embodiment of the present application, the stylus pen includes: a housing, a control part, a key module, a battery module, a control module and a communication module, the control part is movably arranged at the first end of the housing, and can move between a first position and a second position, so that it is convenient for the user to control the control pen, the housing is provided with a first through hole and a receiving cavity, the first through hole is connected to the receiving cavity, the communication module, the battery module and the control module are located in the receiving cavity, and the control module is electrically connected to the battery module, the communication module and the key module respectively; thus, the control module can communicate with other electronic devices through the communication module to control the key module; specifically, when the control part is located at the first position, the key module is located inside the housing; when the control part is located at the second position, the key module at least partially extends out of the housing through the first through hole, so that the key module of the stylus pen can have the key function of the electronic device. Thus, the stylus pen not only has the traditional writing function, but the key module on the stylus pen can also be used as the key of the electronic device, which solves the problem of the single function of the stylus pen and the limited operation dimension, and realizes the rational use of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of a stylus pen according to an embodiment of the present application;
[0024] Figure 2 A schematic diagram of a key module according to an embodiment of the present application;
[0025] Figure 3 This is one of the partial schematic diagrams of the stylus pen according to an embodiment of the present application;
[0026] Figure 4 This is the second partial schematic diagram of the stylus pen according to the embodiment of the present application;
[0027] Figure 5 This is one of the schematic diagrams of an electronic device according to an embodiment of the present application;
[0028] Figure 6 This is a second schematic diagram of an electronic device according to an embodiment of the present application;
[0029] Figure 7 This is one of the step diagrams of the operation control method of an embodiment of the present application;
[0030] Figure 8 A schematic diagram of an electronic device displaying key module information according to an embodiment of the present application;
[0031] Fig. 9This is a second schematic diagram of the steps of the operation control method of an embodiment of the present application;
[0032] Fig.10 This is a third schematic diagram of the operation control device of an embodiment of the present application;
[0033] Fig.11 One of the schematic diagrams of the terminal device according to the embodiment of the present application;
[0034] Fig.12 This is the second schematic diagram of the terminal device according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0036] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0037] The electronic device and operation control method provided by the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0038] The electronic device of the embodiments of the present application may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiments of the present application do not make specific limitations.
[0039] like Figures 1 to 4, which are a schematic diagram of a stylus pen, a schematic diagram of a key module, a partial schematic diagram of the stylus pen, and a partial schematic diagram of the stylus pen according to an embodiment of the present application; the stylus pen comprises: a housing 206, a control unit 205, a key module 207, a battery module 212, a control module 201, and a communication module 213; the control unit 205 is movably disposed at a first end of the housing 206 and can move between a first position and a second position; the housing 206 is provided with a first through hole and a receiving cavity, the first through hole is connected to the receiving cavity, the communication module 213, the battery module 212, and the control module 201 are located in the receiving cavity, and the control module 201 is electrically connected to the battery module 212, the communication module 213, and the key module 207, respectively;
[0040] When the control unit 205 is located at the first position, the button module is located inside the housing 206;
[0041] When the control unit 205 is located at the second position, the button module 207 at least partially extends out of the housing through the first through hole.
[0042] The stylus pen of the embodiment of the present application, by movably setting the control part 205 at the first end of the shell 206, allows the user to control the button module 207 by operating the control part 205, and realizes that the button module 207 has two states of being located inside the shell 206 and at least partially extending outside the shell 206. Therefore, when the stylus pen 2 is communicatively connected with the electronic device 1, the button module 207 can function as a button of the electronic device 1, so that hardware resources can be reasonably utilized, which solves the problems of the single function and limited controllable dimensions of the stylus pen, and improves the user's control experience.
[0043] Here, it should be noted that, on the one hand, the control module 201 can also be used to determine whether the relationship between the stylus 2 and other electronic devices is a connection relationship or a separation relationship according to the state of the battery module 213 (charging state or uncharging state); so that the electronic device can determine the functional mode of the key module based on the relationship between the stylus 2 and the electronic device; on the other hand, the control module 201 can also communicate with the electronic device through the communication module 212; wherein the communication module 212 can be a wireless module or a Bluetooth module, and can also be a communication interface, which is not limited in the embodiment of the present application. On the other hand, the stylus of the embodiment of the present application can be provided with one or more key modules. In the case of including two or more key modules, the control unit 205 can control multiple key modules at the same time, or the control unit 205 can control one key module, and the other key modules are controlled by the movement of the control unit at the other end of the stylus relative to the housing 206 to control the state of the key module to switch between the state of being located inside the housing 206 and the state of at least partially extending outside the housing 206.
[0044] It should also be noted that, in order to ensure that the button assembly will not be hidden in the receiving slot when the user places the stylus pen 2 in the receiving slot, in the embodiment of the present application, the housing 206 may be asymmetrical in shape, or the cross section of the housing 206 may be elliptical and one side of the control unit 205 may have a protruding marking structure, through which the button module is ensured to correspond to the first through hole. In this way, when the user inserts the stylus pen 2 into the receiving slot of the electronic device, it is only necessary to ensure that the button module is located on the side wall close to the device body.
[0045] In addition, in order to prevent the user from inserting the stylus pen 2 in reverse, that is, the positions of the control unit 205 and the touch unit 214 are reversed, in the embodiment of the present application, the control unit 205 is specially designed, such as Figure 1 , Figures 3 to 6 As shown, the control part 205 is configured to have an outer surface protruding from the outer surface of the side wall of the shell 206. In this way, when the user inserts the stylus pen 2 into the receiving slot of the electronic device, the control part 205 cannot be inserted into the receiving slot, thereby preventing the stylus pen 2 from being inserted upside down. Specifically, in order to further facilitate the user to insert or remove the stylus pen 2 from the receiving slot, the outer surface of the control part 205 can also be configured in a spiral shape in this embodiment.
[0046] Alternatively, if Figure 2 , Figure 3 and Figure 4 As shown, the key module includes: a key component and a circuit component, the circuit component is connected to the key component through a first elastic element 203; the circuit component is electrically connected to the control module, the circuit component is electrically connected to the control module 201, and the key component is connected to the control unit 205.
[0047] In the embodiment of the present application, the circuit assembly is connected to the key assembly through the first elastic element 203, so that the key assembly can move relative to the circuit assembly to adjust the degree to which the key assembly is exposed from the housing 206, that is, the key assembly includes: Figure 4 The state of at least partially ejecting the housing 206 as shown and Figure 3 wherein, when the key assembly is in the state of popping out of the housing 206, the first elastic element 203 is in the state of Figure 4 When the key assembly is retracted to the housing 206, the first elastic element 203 is in the stretched state; Figure 3 Specifically, the first elastic element 203 may be a coil spring, but is not limited thereto.
[0048] In addition, by electrically connecting the button assembly to the control unit 205, the control of the button assembly by the control unit 205 is realized, that is: through the user's control of the control unit 205 or the control module 201's automatic control of the control unit 205, the control unit 205 moves between the first position and the second position, so that the button module can switch between a state of being located inside the shell and a state of at least partially extending outside the shell, thereby realizing multiple functional modes of the button module.
[0049] Alternatively, if Figure 2 , Figure 3 and Figure 4 As shown, the button assembly includes a first button body 207 and a support assembly; the first button body 207 is located on the side of the support assembly away from the circuit assembly and is connected to the support assembly; the support assembly is connected to the circuit assembly through a first elastic element; the support assembly is also connected to the control part; in this way, when the first elastic element 203 is in a compressed state, the first button body 207 is located inside the shell 206; when the first elastic element 203 is in a stretched state, the first button body 207 at least partially extends out of the shell 206 through the first through hole.
[0050] In the embodiment of the present application, on the one hand, the support assembly is connected to the control part 205, and the support assembly is connected to the circuit assembly through the first elastic element 203, so that when the control part 205 is manipulated, the support assembly can drive the first button body 207 to move in a direction close to or away from the circuit assembly, so that the first button body 207 can switch between a state of being located inside the shell 206 and a state of at least partially extending outside the shell 206; the circuit assembly will detect the state of the first button body 207 and feedback it to the electronic device, thereby realizing different functional modes of the first button body 207, solving the problem of the single function and limited operating dimension of the stylus 2.
[0051] Optionally, the supporting assembly is connected to the first button body via a second elastic element.
[0052] The supporting component is connected to the first button body 207 through the second elastic element 208; when the first elastic element 203 is in a stretched state, when the user presses the first button body 207, the second elastic element 208 will undergo elastic deformation, and then transmit signals to the supporting component, the circuit module and the control module 201 in sequence, so that the user can have a strong knocking feeling when pressing the first button body 207, thereby improving the user's experience; optionally, the second elastic element 208 is a coil spring.
[0053] Of course, in the embodiment of the present application, the support component can also be directly connected to the first button body 207, and the distance between the first button body 207 and the circuit component can be detected through optical or ultrasonic detection methods to determine whether the user operates (presses) the first button body 207, as well as parameters such as the frequency and method of pressing, so as to determine the button function corresponding to the user operation.
[0054] Optionally, the button module also includes a supporting button 209 arranged on the circuit component; the supporting component is provided with a second through hole, the second through hole is distributed relative to the supporting button, and when the first elastic element 203 is in a compressed state, the first button body 207 is connected to the supporting button 209 through the second through hole.
[0055] In the embodiment of the present application, by setting the second through hole on the supporting component and distributing the second through hole relative to the supporting button, when the first elastic element 203 is in a compressed state (the button module is located inside the shell 206), the lower surface of the first button body 207 and the upper surface of the supporting button 209 can be in contact and connected, and the signal generated by the user pressing the first button body 207 is transmitted to the circuit component through the supporting button 209, and further transmitted to the control component 201 by the circuit component.
[0056] In addition, by providing the supporting button 209, when the button assembly is located inside the shell 206, on the one hand, the surface of the first button body 207 can also slightly protrude from the side wall of the device body 1, so that the button assembly can be used as an ordinary button. When the user presses the first button body 207, the supporting button 209 is pressed, thereby transmitting the signal.
[0057] Specifically, the support assembly includes a rotating component 210 and a supporting component 211 ; the rotating component 210 is connected to the operating part 205 , and the supporting component 211 is located above the rotating component and connected to the rotating component 210 ; the first button body 207 is connected to the supporting component 211 via a second elastic element 208 .
[0058] In the embodiment of the present application, by configuring the support assembly to consist of two parts, a rotating part 210 and a supporting part 211, when the operating part 205 is operated, the rotating part 210 can move along with the movement of the operating part 205, thereby enabling the supporting part 211 to drive the first button body 207 to move in a direction away from or close to the circuit assembly, thereby enabling the first button body 207 to switch between a state inside the shell and a state at least partially outside the shell.
[0059] More specifically, the rotating component 210 is an elliptical structure, and the control part 205 is connected to the rotating axis of the rotating component 210; when the control part 205 is in the first position, the long axis of the rotating component is parallel to the circuit component; at this time, the first button body 207 is located inside the shell 206; when the control part 205 is in the second position, the long axis of the rotating component 210 is perpendicular to the circuit component.
[0060] That is to say, one possible implementation of the embodiment of the present application is to switch the first button body 207 between a state of being located inside the shell 206 and a state of being at least partially located outside the shell 206 by controlling the rotation of the control portion 205. Of course, the embodiment of the present application can also be to press the control portion 205 along the radial direction of the shell 206 to realize that the support component drives the first button body 207 to move in a direction away from or close to the circuit component, so that the first button body 207 is in a state of being located inside the shell 206 or at least partially located outside the shell 206. Figure 3 The state shown in the housing 206 and the Figure 4 As shown, the switching between the states of being at least partially located outside the shell 206 is not limited to the specific implementation method of how the control unit 205 realizes the switching of the button module state. All implementation methods based on this idea should be within the protection scope of this application.
[0061] Optionally, the circuit assembly includes a circuit board 202 and a detection component 204 disposed on the circuit board 202 ; the detection component 204 is located below the first elastic element 203 , and the detection component 204 is electrically connected to the control module 201 .
[0062] In an embodiment of the present application, a detection element 204 for detecting the pressing state of a key component is provided on a circuit board 202; and the circuit board 202 is electrically connected to a control module 201, and a detection result of the detection element 204 is transmitted to the control module 201, so that the control module 201 can know the state of the key component, and send the state of the key component to the electronic device through the communication module 212, so that the electronic device determines the corresponding functional mode according to the state of the key component; at the same time, the user's tapping feeling on the first key body 207 is also enhanced.
[0063] Specifically, the detection element 204 can be a pressure sensor arranged on the circuit board 202, wherein the pressure sensor is located below the first elastic element 203, and the state of the key assembly is determined by the pressure collected by the pressure sensor; or, the detection element 204 can include a Hall detection element located on the circuit board 202, such as a Hall sensor, and a magnetic detection element located on the support assembly, such as a magnet, and the state of the key module is detected by the mutual cooperation of the Hall detection element and the magnetic detection element. Of course, the detection element 204 can also be other elements, such as: a capacitor element or a lighting element, etc. Any method that can determine the state of the key assembly by detecting the relative position of the key assembly and the circuit board 202 should be within the protection scope of the present application, and the present application does not limit this.
[0064] Optionally, the stylus pen 2 further includes a driving module, which is electrically connected to the control module 201 , and the driving module drives the control unit 205 to move between the first position and the second position.
[0065] In the embodiment of the present application, by setting the driving module, the control module 201 automatically controls the control unit 205, that is, the control module 201 outputs a control instruction to the driving module, and the driving module controls the movement of the control unit 205 according to the control instruction, so that the user does not need to manually adjust the state of the button module, further improving the user's experience and feeling of using the stylus. Specifically, the driving module may include driving components such as a motor.
[0066] The stylus pen 2 of the embodiment of the present application comprises: a shell 206, a control unit 205, a button module, a battery module 213, a control module 201 and a communication module 212. The control unit 205 is movably arranged at a first end of the shell 206 and can move between a first position and a second position, so that it is convenient for a user to control the control unit 205 in the control pen. The shell 206 is provided with a first through hole and a receiving cavity, the first through hole is connected to the receiving cavity, the communication module 212, the battery module 213 and the control module 201 are located in the receiving cavity, and the control module The control module 201 is electrically connected to the battery module 213, the communication module 212 and the key module respectively; in this way, the control module 201 can communicate with other electronic devices through the communication module 212 to control the key module; specifically, when the control unit 205 is in the first position, the key module is located inside the shell; when the control unit 205 is in the second position, the key module at least partially extends out of the shell 206 through the first through hole, so that the key module of the stylus pen 2 can have the key function of an electronic device. In this way, the stylus pen 2 not only has the traditional writing function, but the key module on the stylus pen 2 can also be used as a key of an electronic device, which solves the problem of the single function and limited operation dimension of the stylus pen 2 and realizes the rational use of resources.
[0067] like Figure 5 and Figure 6 As shown, an embodiment of the present application also provides an electronic device, including the touch pen as described above, and also including: a device body 1, a receiving groove with at least one end being open is provided on the device body 1, and a third through hole connected to the receiving groove is provided on the side wall of the receiving groove; the control part 205 is located outside the receiving groove; wherein, when the control part 205 is located in the first position, the first part of the button module extends out of the receiving groove through the third through hole; when the control part 205 is located in the second position, the second part of the button module extends out of the receiving groove through the third through hole; the first part is less than the second part.
[0068] Here, it should be noted that Figure 5 and Figure 6 As shown, the control portion 205 of the touch pen 2 is located outside the receiving slot to facilitate the user to operate the touch portion 205 .
[0069] In the embodiment of the present application, when the control unit 205 is located in the first position, the first part of the button module extends out of the receiving slot through the third through hole, so that the button module can have the function of an ordinary button of an electronic device; when the control unit 205 is located in the second position, the second part of the button module extends out of the receiving slot through the third through hole; the first part is smaller than the second part; in this way, the tapping feeling of the user pressing the button module can be enhanced, thereby improving the user's experience of using the button module.
[0070] The electronic device of the embodiment of the present application includes a device body 1 and a stylus pen 2, wherein the device body 1 has a receiving slot with an opening at one end, and the stylus pen 2 is arranged in the receiving slot, and the stylus pen includes: a control module and at least one button module; wherein at least one first opening is arranged on the side wall of the receiving slot, and at least a part of the structure of at least one button module is exposed to the device body 1 through the corresponding first opening, so that when the stylus pen 2 is built into the device body 1, the user can also operate the button module, so that the button module can act as an ordinary button, thereby avoiding waste of resources; wherein the control module 201 is electrically connected to at least one button module and is communicatively connected to the device body 1, so that when the user operates the button module, the electronic device can execute the corresponding function in response to the operation, thereby bringing the user a better use experience.
[0071] Specifically, Figure 5 As shown, the receiving groove can be provided on the side wall of the device body 1, such as the receiving groove provided along the side wall in the length direction of the device body 1, so that the opening end of the receiving groove is located at the top or bottom of the electronic device. Of course, the receiving groove can also be provided at other positions of the device body 1 that are convenient for user operation, and the present application does not limit the specific setting position of the receiving groove.
[0072] It should be noted here that Figure 1 As shown, the stylus pen 2 may be provided with two button modules to facilitate the user to operate the electronic device with both hands when the stylus pen 2 is built into the device body 1. Of course, in the embodiment of the present application, it may be as follows Figure 4 and Figure 5 At least part of each key module shown is exposed to the device body 1 through the corresponding third opening, or only at least part of the structure of some key modules is exposed to the device body 1 through the corresponding third opening. In other words, the number of the third openings on the side wall of the receiving groove can be the same as the number of key modules on the stylus 2 to achieve a one-to-one correspondence between the two; or, the number of the third openings is less than the number of key modules, that is, when the stylus 2 is built into the device body 1, part of the key modules of the stylus 2 are hidden in the receiving groove, and only when the stylus 2 is placed outside the device body 1, the hidden key modules can be used.
[0073] Here, it should be noted that Figure 3 and Figure 4 Only the implementation method of connecting the key module with the control unit 205 is provided, and the connection method of the key module with the touch unit 214 is similar to the connection method with the control unit 205, so it will not be repeated in this application.
[0074] Optionally, when one end of the receiving groove is an open end, the end wall of the receiving groove opposite to the open end can be rotated relative to the side wall of the receiving groove, and the inner surface of the end wall is adapted to the touch portion 214 of the stylus. Further, the end wall of the receiving groove opposite to the open end can be provided with a first connecting portion, and the touch portion 214 of the stylus can be provided with a second connecting portion, and when the stylus is located in the receiving groove, the first connecting portion is connected to the second connecting portion to achieve transmission matching. Optionally, the first connecting portion can be a first convex portion, and the second connecting portion can be a first groove that can match the first convex portion; of course, the first connecting portion can also be a first magnetic member, and the second connecting portion can be a second magnetic member, and a magnetic transmission connection can be achieved between the first magnetic member and the second magnetic member.
[0075] Here, it should be noted that the touch portion 214 and the control portion 205 are respectively arranged at the two ends of the housing 206, and the touch portion 214 and the control portion 205 can move relative to the housing 206 to control the key module. In the case where the receiving slot is a slot body with one end open, the touch portion 214 is hidden in the receiving slot. In order to realize the rotation of the touch portion 214 relative to the housing 206, the end wall of the receiving slot needs to be set to be rotatable relative to the side wall of the receiving slot. If the receiving groove is cylindrical, a protrusion structure can be set on the end wall along the circumference of the inner end wall, and a relative groove structure can be set on the inner side wall of the receiving groove to achieve relative rotation between the two; if the position of the receiving groove relative to the shell 206 is elliptical, the part of the receiving groove opposite to the touch portion 214 can be set to a cylinder, the diameter of the cylinder is the same as the short axis of the ellipse, and a groove structure is set on the circumference of the cylinder, and a protrusion structure is set on the inner end wall to achieve relative rotation between the two.
[0076] Of course, the embodiment of the present application can also configure the end wall to be a structure that is detachably connected to the side wall, that is: after the stylus pen is set in the receiving groove, the control part 205 and the touch part 214 of the stylus pen are exposed in the receiving groove, so that the touch part 214 can be inserted into the end wall and driven to rotate by the end wall.
[0077] In addition, in the electronic device of the embodiment of the present application, the device body 1 is also connected to the control module 201 through the communication module 212, so that the control module 201 can transmit the detected state of the key module and the mode of the battery module 213 to the device body 1, so that the device body 1 can determine the functional mode of the key module according to the received information, and respond to the user's pressing operation on the key module. Specifically, the mode of the battery module 213 includes a charging mode and an uncharging mode. When the battery module 213 is in the charging mode, it is confirmed that the stylus 2 is located in the receiving slot; when the battery module 213 is in the uncharging mode, it is confirmed that the stylus 2 is located outside the receiving slot and is separated from the device body 1. Among them, as an implementation method, when the device body 1 periodically receives signals such as the power and charging parameters sent by the stylus 2, it is determined that the battery module 213 is in the charging mode, otherwise, it is determined that the battery module 213 is in the non-charging mode.
[0078] The electronic device of the embodiment of the present application includes a device body 1 and a stylus 2. The device body 1 is provided with a receiving groove with at least one end being open, and the stylus 2 is arranged in the receiving groove. On the one hand, a third through hole connected to the receiving groove is provided on the side wall of the receiving groove, and the third through hole is relatively distributed with a key module on the stylus 2, so that when the stylus 2 is built into the device body 1, the user can also operate the key module, and the key module can realize the function of an ordinary key, thereby avoiding waste of resources; on the other hand, the control module 201 is electrically connected to at least one key module and is communicatively connected to the device body 1, so that when the user operates the key module, the electronic device can execute a corresponding function in response to the operation, thereby bringing a better user experience to the user.
[0079] like Figure 7 As shown, the embodiment of the present application also provides an operation control method, which is applied to the electronic device as described above, and the method includes:
[0080] Step 701, obtaining a state of the button module; the button module state includes a retracted state in the housing or a pop-up state in which the button module at least partially extends out of the housing through the first through hole;
[0081] Step 702: Determine the function mode of the button module according to the button module state.
[0082] Here, it should be noted that, on the one hand, the correspondence between the button module status and the functional mode can be pre-configured by the user or can be the default of the electronic device; on the other hand, the change of the button module status can be achieved based on the manual operation of the user or can be based on the automatic adjustment of the electronic device according to the current usage environment; among them, if the electronic device automatically adjusts, the mainboard of the electronic device can send a control instruction to the control module 201, and the control module 201 adjusts the status of the button component according to the control instruction.
[0083] In this step, by setting the button module to different states, when the user performs the same operation on the button module, different button module states correspond to different functional modes, thereby realizing the diversification of the button module functions and being suitable for different application scenarios. In addition, as mentioned above, when the button module is in a pop-up state, the user can also have a strong knocking feeling when pressing the button module, thereby improving the user experience.
[0084] Furthermore, after obtaining the button module status in step 701, the method further includes:
[0085] At least one of an application currently running on the electronic device and a stylus state is acquired, wherein the stylus state includes a connected state located in the receiving slot and a separated state located outside the receiving slot.
[0086] In this step, the state of the stylus pen includes a state located inside the device body, or a state located outside the device body; specifically, the state of the stylus pen can be determined by whether the battery module of the stylus pen is in a charging mode or a non-charging mode. Specifically, when the battery module is in the charging mode, the state of the stylus pen is determined to be a state located inside the device body, and when the battery module is in the non-charging mode, the state of the stylus pen is determined to be a state located outside the device body.
[0087] Step 702, determining the function mode of the button module according to the button module state, includes:
[0088] The function mode of the key module is determined according to at least one of the currently running application and the state of the stylus, and the state of the key module.
[0089] In this step, by obtaining at least one of the currently running application and the stylus state, it is achieved that under the same button module state, running different applications and different stylus states can enable the user's pressing operation on the button module to correspond to different functions, further increasing the functional mode of the button module; such as: when the stylus state is a state of being located inside the device body and the currently running application is a video application, if the current state of the button body is a pop-up state, then the functional mode of the button module is determined to be a video operation functional mode (fast forward, rewind, etc.); if the current state of the button body is a retracted state, then the functional mode of the button module is determined to be a volume function mode (volume up, volume down, etc.).
[0090] In this step, specifically, the functional mode of the key module of the stylus can be determined according to a pre-configured correspondence between the stylus state-application-functional mode; for example, if the stylus state is that it is located inside the device body and the currently running application is a game application, then the functional mode of the key module is determined to be the game mode, and in the game mode, a single click can be set as a confirmation operation, a double click can be set as a forward operation, and two consecutive single clicks can be set as a backward operation, etc.; if the stylus state is that it is located outside the device body and the currently running application is a photo taking application, then the functional mode of the key module is determined to be the photo taking mode, and in the photo taking mode, a single click can be set as a confirmation operation, a double click can be set as a flash on operation, and two consecutive single clicks can be set as a flash off operation, etc.
[0091] Furthermore, after obtaining the button module status in step 701, the method further includes:
[0092] According to the state of the stylus pen and / or the currently running application program, the driving module of the stylus pen is controlled to drive the button module to switch between the pop-up state and the retracted state.
[0093] This step is an implementation method of switching the button module state when a drive module is provided in the stylus. Specifically, when the electronic device detects that the user currently opens a preset application, such as a game application, a video application, etc., an instruction for the button body to enter a pop-up state is sent to the control module of the stylus, so that the control module controls the button body to pop up. Of course, if the user does not need to use the button body at present, the user can input a voice control instruction to the electronic device to make the electronic device control the button body to enter a retracted state, or the user manually controls the button body to enter a retracted state. Of course, in this implementation method of automatically adjusting the button body state, a drive device for driving the button body to move, such as a motor, needs to be provided in the stylus.
[0094] The operation control method of the embodiment of the present application determines the functional mode of the button module according to the state of the stylus pen and the application currently running on the electronic device, thereby realizing that the button module has different functional modes in different stylus pen states and / or currently running applications, and realizing the reuse of the button module of the stylus pen, so as to maximize the utilization of hardware resources and enhance the user experience.
[0095] Further, after determining the function mode of the button module according to the button module state, the method further includes:
[0096] Receive input operations on the key module;
[0097] In response to the input operation, the application is controlled according to the function mode to execute a function corresponding to the input operation.
[0098] Specifically, in response to the input operation, controlling the application to execute a function corresponding to the input operation according to the function mode includes:
[0099] According to the functional mode and the currently running application, controlling the support component in the stylus to move back and forth at a preset frequency;
[0100] According to the reciprocating movement of the support assembly, the function corresponding to the input operation is executed.
[0101] Optionally, after determining the functional mode of the button module according to the button module state, the method further comprises: displaying the current state and the functional mode of the button module on a display screen of the electronic device.
[0102] In this optional embodiment, if Figure 8 As shown, an example of displaying the current status and functional mode of a button module on a display screen of an electronic device is given. By displaying the current status and functional mode of a button module on a display screen of an electronic device, it is convenient for users to operate the buttons on the stylus pen or manually adjust the current status of the button body as needed.
[0103] Optionally, after determining the function mode of the key module according to at least one of the currently running application and the state of the stylus pen and the state of the key module in step 701, the method further includes:
[0104] In the case where the application is a preset application, a preset method is used to remind the user to control the button body in the button module to enter a pop-up state.
[0105] Specifically, for example, when the application is a game application, a prompt message "Please manually raise the button on the stylus" can be displayed on the display screen of the electronic device, so that the user can operate the stylus according to the prompt message, so that the button body pops out of the receiving slot, thereby increasing the user's tactile feeling when clicking the button during the game and improving the user's gaming experience. Specifically, the prompt message can also include an operating tutorial for the stylus, such as: please rotate the control part and / or touch part of the stylus to manually raise the button on the stylus; of course, the user can also be reminded by voice broadcast to control the button body in the button module to enter the pop-up state, and this application does not limit this.
[0106] As an optional embodiment, determining the current stylus state of the stylus includes:
[0107] When it is determined that the battery module of the stylus pen is in a charging mode, determining that the stylus pen is in a state of being located in the device body;
[0108] When it is determined that the battery module of the stylus pen is in an uncharged mode, a state outside the device body is determined.
[0109] Specifically, the working mode of the battery module can be determined through communication between the device body and the control module of the stylus. For example, when the device body periodically receives signals such as power and charging parameters sent by the stylus, it is determined that the battery module is in charging mode; otherwise, it is determined that the battery module 213 is in non-charging mode.
[0110] Next, combine Fig. 9 , taking a stylus having two button modules as an example, the operation control method of an embodiment of the present application is explained.
[0111] Step 901, the electronic device detects that the state of the key module or the state of the stylus pen changes, and then executes step 902;
[0112] Step 902, the electronic device determines whether the battery module of the stylus pen is in charging mode; if so, step 903 is executed, if not, step 907 is executed;
[0113] Step 903, determine that the stylus is external to the device body and the user is using the stylus, and then execute step 904;
[0114] Step 904: Determine whether the state of the dual-button module is a pop-up state or a retracted state, and execute any one of steps 905A to 905D according to the determination result;
[0115] Step 905A: Determine the key state 1: key module 1 is in the pop-up state, key module 2 is in the retracted state, and execute step 906;
[0116] Step 905B: Determine the key state 2: key module 1 is in the retracted state, key module 2 is in the pop-up state, and execute step 906;
[0117] Step 905C: Determine the key state 3: key module 1 is in the pop-up state, key module 2 is in the pop-up state, and execute step 906;
[0118] Step 905D: Determine the key state 4: key module 1 is in the retracted state, key module 2 is in the pop-up state, and execute step 906;
[0119] Step 906: Control the button module to implement corresponding functions, wherein the button states 1 to 4 correspond to button functions which can be set by the user;
[0120] Step 907: If the stylus is built into the device and is not used, go to step 908:
[0121] Step 908: Determine whether the user controls the electronic device to enter the game scene. If yes, execute step 910; if no, execute step 909:
[0122] Step 909: the button module is used as a common button, specifically: the double button is not applicable by default, or the user manually sets the button function to be a screenshot button, an AI button, etc.;
[0123] Step 910: Determine whether the double button pops up, if so, execute step 911, if not, execute step 909;
[0124] Step 911: The button module is used as a game button.
[0125] The operation control method of the embodiment of the present application can realize the setting of different functions of the stylus button in different states by judging the state of the stylus, the state of the button module and the setting information of the user. The user can manually put the two buttons in the pop-up or retracted state, and set different functions of the buttons in different states, so as to realize the rapid conversion of the button functions. When the stylus is built into the device body, both buttons are retracted in daily scenes, and the buttons have no function at this time. They can also be set to screenshot and AI button light applications. In the game scene, both buttons are used as game buttons when they are popped up; when the stylus is external to the device body, the user can control the different functions of the stylus button in different states through the settings of the device body, and these functions can be defined by the user himself; in this way, the user's selectivity is enriched, and the user can perform simple operations on the button module according to needs to meet the use needs, avoid the user's complex operations on the device body, and improve the user experience.
[0126] It should be noted that the operation control method provided in the embodiment of the present application can be executed by an operation control device or a control module in the operation control device for executing and loading the operation control method. In the embodiment of the present application, the operation control method provided in the embodiment of the present application is described by taking the operation control device executing the loading operation control method as an example.
[0127] Fig.10 This is a schematic diagram of the mechanism of the operation control device of an embodiment of the present application. Fig.10 The operation control device 1000 includes a first acquisition module 1001 and a determination module 1002 .
[0128] A first acquisition module 1001 is used to acquire a key module state; the key module state includes a retracted state within the housing or a pop-up state at least partially extending out of the housing through the first through hole;
[0129] The determination module 1002 is used to determine the function mode of the button module according to the state of the button module.
[0130] In the operation control device 1000 of the embodiment of the present application, the first acquisition module 1001 acquires the state of the button module; the button module state includes a retracted state located within the shell or a pop-up state at least partially extending out of the shell through the first through hole; the determination module 1002 is used to determine the functional mode of the button module according to the button module state; the functional modes of the button module are diversified and suitable for different application scenarios. In addition, as mentioned above, when the button module is in the pop-up state, the user can also have a strong knocking feeling when pressing the button module, thereby improving the user experience; when the stylus is located in the device body, the button module can also be used as an ordinary button of the electronic device, thereby realizing resource reuse.
[0131] In the embodiment of the present application, the operation control device 1000 further includes:
[0132] A second acquisition module, used to acquire at least one of an application currently running on the electronic device and a stylus state, where the stylus state includes a connected state located in the receiving slot and a separated state located outside the receiving slot;
[0133] The determination module is used to determine the function mode of the key module according to at least one of the currently running application program and the state of the stylus pen, and the state of the key module.
[0134] In the embodiment of the present application, the operation control device 1000 further includes:
[0135] The control module is used to control the driving module of the stylus to drive the key module to switch between the pop-up state and the retracted state according to the state of the stylus and / or the currently running application.
[0136] In the embodiment of the present application, the device further includes:
[0137] A receiving module, used for receiving input operations on the key module;
[0138] The response module is used to respond to the input operation and control the application to execute the function corresponding to the input operation according to the function mode.
[0139] In the embodiment of the present application, the response module includes:
[0140] A control submodule, used to control the support component in the stylus to move back and forth at a preset frequency according to the function mode and the currently running application;
[0141] The execution submodule is used to execute the function corresponding to the input operation according to the reciprocating motion of the support component.
[0142] In the embodiment of the present application, the operation control device 1000 further includes:
[0143] The display module is used to display the current state and function mode of the key module on the display screen of the electronic device.
[0144] In the embodiment of the present application, the operation control device 1000 further includes:
[0145] The reminder module is used to remind the user to control the button body in the button module to enter the pop-up state in a preset manner when the application is a preset application.
[0146] In the embodiment of the present application, the first determining module 1001 is specifically used for:
[0147] When it is determined that the battery module of the stylus pen is in a charging mode, determining that the stylus pen is in a first state built into the device body;
[0148] When it is determined that the battery module of the stylus pen is in an uncharged mode, the stylus pen is determined to be in a second state separated from the device body.
[0149] The interface switching device in the embodiment of the present application can be a device, or a component, integrated circuit or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0150] The operation control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0151] The operation control device provided in the embodiment of the present application can achieve Figures 7 to 9 The various processes implemented by the operation control method in the method embodiment will not be described again here to avoid repetition.
[0152] In the operation control device 1000 of the embodiment of the present application, the first acquisition module 1001 acquires the state of the button module; the button module state includes a retracted state located within the shell or a pop-up state at least partially extending out of the shell through the first through hole; the determination module 1002 is used to determine the functional mode of the button module according to the button module state; the functional modes of the button module are diversified and suitable for different application scenarios. In addition, as mentioned above, when the button module is in the pop-up state, the user can also have a strong knocking feeling when pressing the button module, thereby improving the user experience; when the stylus is located in the device body, the button module can also be used as an ordinary button of the electronic device, thereby realizing resource reuse.
[0153] like Fig.11 As shown, an embodiment of the present application also provides a terminal device 1100, including a processor 1101, a memory 1102, and a program or instruction stored in the memory 1102 and executable on the processor 1101, and the steps of the above-mentioned operation control method are implemented when the program or instruction is executed by the processor 1101.
[0154] It should be noted that the terminal devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0155] Fig.12 A schematic diagram of the hardware structure of a terminal device according to various embodiments of the present application.
[0156] The terminal device 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, a processor 1210 and a power supply 1211 and other components.
[0157] Those skilled in the art will understand that Fig.12 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and the terminal device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present application, the terminal device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0158] The processor 1210 is used to obtain the state of the button module; the button module state includes a retracted state within the shell or a pop-up state at least partially extending out of the shell through the first through hole.
[0159] The processor 1210 is further configured to determine the function mode of the key module according to the state of the key module.
[0160] It can be seen that in the terminal device, the processor 1210 obtains the state of the button module; the state of the button module includes a retracted state located within the shell or a pop-up state at least partially extending out of the shell through the first through hole; and according to the state of the button module, the functional mode of the button module is determined; the functional modes of the button module are diversified and suitable for different application scenarios. In addition, as mentioned above, when the button module is in the pop-up state, the user can also have a strong knocking feeling when pressing the button module, thereby improving the user experience; when the stylus pen is located in the device body, the button module can also be used as an ordinary button of the electrical terminal device, thereby realizing resource reuse.
[0161] Optionally, the processor 1210 is further configured to obtain at least one of an application currently running on the electronic device and a stylus state, wherein the stylus state includes a connected state located in the receiving slot and a separated state located outside the receiving slot;
[0162] When the processor 1210 determines the functional mode of the button module according to the button module state, it is specifically configured to determine the functional mode of the button module according to at least one of the currently running application and the stylus state, as well as the button module state.
[0163] Optionally, the processor 1210 is further configured to control the driving module of the stylus to drive the button module to switch between a pop-up state and a retracted state according to the state of the stylus and / or a currently running application.
[0164] Optionally, the input unit 1204 is used to receive an input operation on the key module;
[0165] The processor 1210 is further configured to, in response to the input operation, control the application to execute a function corresponding to the input operation according to the function mode.
[0166] Optionally, when the processor 1210 is used to respond to the input operation and control the application to execute the function corresponding to the input operation according to the functional mode, it is specifically used to control the support component in the stylus pen to move back and forth at a preset frequency according to the functional mode and the currently running application; and execute the function corresponding to the input operation according to the reciprocating movement of the support component.
[0167] Optionally, after the processor 1210 determines the functional mode of the button module based on the stylus state, the currently running application and the current state, the display unit 1206 is used to remind the user to control the button body in the button module to enter a pop-up state in a preset manner when the application is a preset application.
[0168] Optionally, when determining the current stylus state of the stylus, the processor 1210 is specifically configured to:
[0169] When it is determined that the battery module of the stylus pen is in a charging mode, determining that the stylus pen is in a state of being located in the device body;
[0170] When it is determined that the battery module of the stylus pen is in an uncharged mode, a state outside the device body is determined.
[0171] It should be understood that in the embodiment of the present application, the radio frequency unit 1201 can be used for receiving and sending signals during information transmission or calls. Specifically, after receiving downlink data from the base station, it is sent to the processor 1210 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 1201 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 1201 can also communicate with the network and other devices through a wireless communication system.
[0172] The terminal device provides users with wireless broadband Internet access through the network module 1202, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0173] The audio output unit 1203 can convert the audio data received by the RF unit 1201 or the network module 1202 or stored in the memory 1209 into an audio signal and output it as sound. In addition, the audio output unit 1203 can also provide audio output related to a specific function performed by the terminal device 1200 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 1203 includes a speaker, a buzzer, a receiver, etc.
[0174] The input unit 1204 is used to receive audio or video signals. The input unit 1204 may include a graphics processor (GPU) 12041 and a microphone 12042. The graphics processor 12041 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 processed image frame can be displayed on the display unit 1206. The image frame processed by the graphics processor 12041 can be stored in the memory 1209 (or other storage medium) or sent via the radio frequency unit 1201 or the network module 1202. The microphone 12042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 1201 in the case of a telephone call mode.
[0175] The terminal device 1200 also includes at least one sensor 1205, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 12061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 12061 and / or the backlight when the terminal device 1200 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 1205 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0176] The display unit 1206 is used to display information input by the user or information provided to the user. The display unit 1206 may include a display panel 12061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0177] The user input unit 1207 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the user input unit 1207 includes a touch panel 12071 and other input devices 12072. The touch panel 12071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 12071 or near the touch panel 12071 using any suitable object or accessory such as a finger or stylus). The touch panel 12071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch control module; the touch control module receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1210, receives the command sent by the processor 1210 and executes it. In addition, the touch panel 12071 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 12071, the user input unit 907 may also include other input devices 12072. Specifically, other input devices 12072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
[0178] Furthermore, the touch panel 12071 may be overlaid on the display panel 11061. When the touch panel 12071 detects a touch operation on or near it, it is transmitted to the processor 1110 to determine the type of touch event. Then, the processor 1110 provides corresponding visual output on the display panel 11061 according to the type of touch event. Fig.12 In the figure, the touch panel 12071 and the display panel 11061 are used as two independent components to realize the input and output functions of the terminal device. However, in some embodiments, the touch panel 12071 and the display panel 12061 can be integrated to realize the input and output functions of the terminal device, which is not limited here.
[0179] The interface unit 1208 is an interface for connecting an external device to the terminal device 1200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 1208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 1200 or may be used to transmit data between the terminal device 1200 and an external device.
[0180] The memory 1209 can be used to store software programs and various data. The memory 1209 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1209 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0181] The processor 1210 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 1209 and calling data stored in the memory 1209, it executes various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. The processor 1210 may include one or more processing units; preferably, the processor 1210 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1210.
[0182] The terminal device 1200 may also include a power supply 1211 (such as a battery) for supplying power to each component. Preferably, the power supply 1211 may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0183] In addition, the terminal device 1200 includes some functional modules not shown, which will not be described here.
[0184] An embodiment of the present application also provides 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 operation control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0185] The processor is the processor in the terminal device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0186] An embodiment of the present application 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 operation control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0187] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0188] An embodiment of the present application also provides 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 steps of the method described in the third aspect. To avoid repetition, they are not described here.
[0189] An embodiment of the present invention further provides a control device, which is configured to execute the method as described in the third aspect. To avoid repetition, it is not described again here.
[0190] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do 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 methods and devices in the embodiments of the present application 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.
[0191] 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 application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for 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 application.
[0192] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application 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 application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A touch pen, characterized in that: include: A housing, a control unit, a button module, a battery module, a control module and a communication module, wherein the control unit is movably disposed at a first end of the housing and can move between a first position and a second position, the housing is provided with a first through hole and a receiving cavity, the first through hole is communicated with the receiving cavity, the communication module, the battery module and the control module are located in the receiving cavity, and the control module is electrically connected to the battery module, the communication module and the button module respectively; When the control unit is located at the first position, the button module is located inside the housing; When the control unit is located at the second position, the button module at least partially extends out of the housing through the first through hole; Wherein, the button module includes a button assembly and a circuit assembly, the circuit assembly is connected to the button assembly through a first elastic element, the circuit assembly is electrically connected to the control module, and the button assembly is connected to the control unit; The button assembly includes a first button body and a support assembly; the first button body is located on a side of the support assembly away from the circuit assembly and is connected to the support assembly; the support assembly is connected to the circuit assembly through the first elastic element; the support assembly is also connected to the control part, and when the control part is operated, the support assembly drives the first button body to move toward or away from the circuit assembly, and the first button body switches between a state of being located inside the shell and a state of at least partially extending outside the shell; wherein different button module states correspond to different functional modes.
2. The stylus pen according to claim 1, characterized in that: When the first elastic element is in a compressed state, the first button body is located inside the housing; When the first elastic element is in a stretched state, the first button body at least partially extends out of the housing through the first through hole.
3. The touch pen according to claim 2, characterized in that: The supporting assembly is connected to the first button body via a second elastic element.
4. The touch pen according to claim 2, characterized in that: The button module also includes a supporting button arranged on the circuit component; the supporting component is provided with a second through hole, the second through hole is distributed relative to the supporting button, and when the first elastic element is in a compressed state, the first button body is connected to the supporting button through the second through hole.
5. The touch pen according to claim 3, characterized in that: The support assembly includes a rotating component and a supporting component; the rotating component is connected to the operating part, and the supporting component is located above the rotating component and connected to the rotating component; the first button body is connected to the supporting component through the second elastic element.
6. The touch pen according to claim 5, characterized in that: The rotating component is an elliptical structure, and the control part is connected to the rotating shaft of the rotating component; When the control unit is located at the first position, the long axis of the rotating component is parallel to the circuit assembly; When the operating portion is located at the second position, the long axis of the rotating component is perpendicular to the circuit component.
7. The touch pen according to claim 1, characterized in that: The circuit assembly includes a circuit board and a detection component arranged on the circuit board; the detection component is located below the first elastic element, and the detection component is electrically connected to the control module.
8. The touch pen according to claim 1, characterized in that: The stylus pen further includes a driving module, the driving module is electrically connected to the control module, and the driving module drives the control part to move between the first position and the second position.
9. An electronic device, characterized in that: The stylus pen comprises the stylus pen as claimed in any one of claims 1 to 8, and further comprises a device body, wherein the device body is provided with a receiving groove with at least one end being open, and a third through hole communicating with the receiving groove is provided on a side wall of the receiving groove; the control unit is located outside the receiving groove; When the control unit is located at the first position, the first part of the button module extends out of the receiving groove through the third through hole; When the control unit is located at the second position, the second portion of the button module extends out of the receiving groove through the third through hole; The first portion is smaller than the second portion.
10. The electronic device according to claim 9, characterized in that: In the case where one end of the receiving groove is an open end, an end wall of the receiving groove opposite to the open end can rotate relative to a side wall of the receiving groove, and an inner surface of the end wall is adapted to a touch portion of the stylus.
11. An operation control method, applied to the electronic device according to claim 9 or 10, characterized in that: The method comprises: Acquiring a state of the key module; the state of the key module includes a retracted state within the housing or a pop-up state in which the key module at least partially extends out of the housing through the first through hole; The function mode of the button module is determined according to the button module state.
12. The method according to claim 11, characterized in that After obtaining the button module status, the method further includes: Acquire at least one of an application currently running on the electronic device and a stylus state, wherein the stylus state includes a connected state located in the receiving slot and a separated state located outside the receiving slot; Determining the function mode of the button module according to the button module state includes: The function mode of the key module is determined according to at least one of the currently running application and the state of the stylus, and the state of the key module.
13. An operation control device, applied to the electronic device according to claim 9 or 10, characterized in that: include: The first acquisition module is used to obtain the button module status; The button module state includes a retracted state in the housing or a pop-up state in which the button module at least partially extends out of the housing through the first through hole; The determination module is used to determine the function mode of the button module according to the state of the button module.
14. The device according to claim 13, characterized in that The device also includes: A second acquisition module, configured to acquire at least one of an application currently running on the electronic device and a stylus state, wherein the stylus state includes a connected state located in the receiving slot and a separated state located outside the receiving slot; The determination module is used to determine the function mode of the key module according to at least one of the currently running application and the stylus state, and the key module state.
15. The device according to claim 14, characterized in that The device also includes: The control module is used to control the driving module of the stylus to drive the button module to switch between the pop-up state and the retracted state according to the state of the stylus and / or the currently running application.
16. The device according to claim 14, characterized in that The device also includes: A receiving module, used for receiving input operations on the key module; The response module is used to respond to the input operation and control the application to execute the function corresponding to the input operation according to the function mode.
17. The device according to claim 16, characterized in that The response module comprises: A control submodule, configured to control the support component in the stylus pen to move back and forth at a preset frequency according to the functional mode and the currently running application; The execution submodule is used to execute the function corresponding to the input operation according to the reciprocating movement of the support component.
18. A terminal 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 operation control method according to any one of claims 11 to 12.
19. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the operation control method according to any one of claims 11 to 12 are implemented.
