Touch pen, control method and device of electronic device, and electronic device
By integrating the rotation module and detection device on the stylus, its operating dimension is expanded, and the problems of single functions and limited operating dimensions are solved, achieving a more accurate input experience and convenient human-computer interaction.
Patent Information
- Application Number
- CN202011479300.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2040-12-15
AI Technical Summary
The existing stylus functions are single and have limited operating dimensions, so it is impossible to provide accurate input experiences in multimedia and entertainment functions.
A stylus pen is designed, including the pen body, touch part, rotation module and detection device. Through the angle detection module and pressure detection module, combined with the rotating parts and electrical connection components, the operating dimension of the stylus pen is expanded, and Information interaction with the device body is carried out through the wireless module.
It improves the operating experience of the stylus, expands its functions, and can provide a more accurate input experience in multimedia and entertainment functions, enhancing the convenience of human-computer interaction.
Smart Images

Figure CN112558790B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a control method and device for a touch pen, an electronic device, and the electronic device. Background Art
[0002] At present, the multimedia and entertainment functions of smart terminal devices are gradually enhanced. In order to improve the user's experience in precise input, such as painting, 3D drawing design, etc., many smart terminal devices are equipped with stylus pens, which are usually embedded in the terminal device for easy carrying. The stylus pen is paired with the terminal device to complete functions such as handwriting input.
[0003] The existing stylus pen has a single function and can only input on the screen of the terminal device, and the operation dimension of the stylus pen is limited. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a control method and device for a stylus pen, an electronic device, and an electronic device, which can solve the problem that the existing stylus pen has a single function and limited operating dimensions.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a stylus pen, comprising:
[0007] A pen body, wherein the pen body is provided with a receiving cavity;
[0008] A touch control portion, the touch control portion being disposed at the first end of the pen body;
[0009] A rotating module, the rotating module is arranged on the pen body, the rotating module comprises: a rotating member and a detection device, the detection device comprises an angle detection module and a pressure detection module, and the angle detection module and the pressure detection module are spaced apart and distributed along the circumference of the rotating member;
[0010] The first control module and the first battery module are disposed in the accommodating cavity, and the first control module is electrically connected to the touch control portion, the detection device and the first battery module respectively.
[0011] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0012] The stylus pen as described in the first aspect;
[0013] The device body has a receiving groove, and the stylus pen is detachably arranged in the receiving groove.
[0014] In a third aspect, an embodiment of the present application further provides a control method of an electronic device, wherein the electronic device includes a stylus pen and a device body, wherein the stylus pen is detachably disposed in the device body, and the control method includes:
[0015] Acquire the position status of the stylus;
[0016] Determining a function corresponding to the rotating module according to the position state;
[0017] The position state of the stylus pen includes a first position state in which the stylus pen is located inside the device body and a second position state in which the stylus pen is separated from the device body.
[0018] In a fourth aspect, an embodiment of the present application further provides a control device for an electronic device, comprising:
[0019] An acquisition module, used for acquiring the position state of the stylus;
[0020] A first processing module, used for determining a function corresponding to the rotating module according to the position state;
[0021] The position state of the stylus pen includes a first position state in which the stylus pen is located inside the device body and a second position state in which the stylus pen is separated from the device body.
[0022] In a fifth aspect, an embodiment of the present application 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 of the electronic device as described in the third aspect.
[0023] 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 control method of the electronic device as described in the third aspect are implemented.
[0024] In the seventh aspect, an embodiment of the present application 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 a program or instruction to implement the steps of the control method of the electronic device as described in the third aspect.
[0025] In an embodiment of the present application, the stylus pen includes a pen body with a accommodating cavity, a touch portion arranged at a first end of the pen body; a rotating module arranged on the pen body, including a rotating part and a detection device, the detection device including an angle detection module and a pressure detection module, and the angle detection module and the pressure detection module are distributed at intervals along the circumference of the rotating part; a first control module and a first battery module are arranged in the accommodating cavity, and the first control module is electrically connected to the touch portion, the detection device and the first battery module, respectively. The stylus pen with the above structure can expand the operating dimension of the stylus pen by adding a rotating module to the stylus pen, and can also adapt different functions to the operation of the rotating part to enhance the operating experience of the stylus pen. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 One of the structural schematic diagrams of the stylus provided in the embodiment of the present application;
[0027] Figure 2 for Figure 1 The structural diagram of the rotating module;
[0028] Figure 3 The second structural schematic diagram of the stylus provided in the embodiment of the present application;
[0029] Figure 4 for Figure 3 The structural diagram of the rotating module;
[0030] Figure 5 The third structural diagram of the stylus provided in the embodiment of the present application;
[0031] Figure 6 A schematic diagram of the structure of the stylus pen hardware system provided in an embodiment of the present application;
[0032] Figure 7 One of the structural schematic diagrams of the electronic device provided in the embodiment of the present application;
[0033] Figure 8 A second structural diagram of an electronic device provided in an embodiment of the present application;
[0034] Fig. 9 A schematic diagram of a flow chart of a control method of an electronic device provided in an embodiment of the present application;
[0035] Fig.10 A schematic diagram of the structure of a control device of an electronic device provided in an embodiment of the present application;
[0036] Fig.11 The third structural diagram of the electronic device provided in the embodiment of the present application;
[0037] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] 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.
[0039] 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, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "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.
[0040] The stylus pen, control method, device and electronic device provided in the embodiments of the present application will be described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0041] like Figure 1 to Figure 5 The figure is a schematic diagram of the structure of the stylus provided in the embodiment of the present application. The stylus comprises: a pen body 1, which is provided with a receiving cavity; a touch portion 2, which is arranged at the first end of the pen body 1; a rotating module 3, which is arranged at the pen body 1, and comprises: a rotating member 4 and a detection device, wherein the detection device comprises an angle detection module and a pressure detection module 5, and the angle detection module and the pressure detection module 5 are spaced apart along the circumference of the rotating member; a first control module 6 and a first battery module 7, which are arranged in the receiving cavity, and the first control module 6 is electrically connected to the touch portion 2, the detection device and the first battery module 7 respectively.
[0042] It should be noted that the first control module 6 integrates a processor and a memory, etc. The first battery module 7 provides power output for the stylus. The touch portion 2 can be understood as a pen tip, and the touch portion 2 integrates a pressure sensor for detecting the user's handwriting trajectory.
[0043] Optionally, when the number of the rotating module 3 is one, the rotating module 3 is arranged at the second end of the pen body 1 (such as Figure 1 As shown), or, the rotating module 3 is disposed on the touch control part 2;
[0044] When the number of the rotating modules 3 is two, the two rotating modules 3 are respectively arranged at the second end of the pen body 1 and the touch portion 2 (such as Figure 5 As shown), wherein the second end is the end of the pen body 1 opposite to the touch portion 2.
[0045] Optionally, the detection device is disposed in the accommodating cavity, and a portion of the rotating member 4 is located in the accommodating cavity, and another portion is exposed from the pen body 1 .
[0046] Optionally, the rotating member 4 is a roller or a trackball.
[0047] Optionally, the angle detection module includes a first angle sensor 8 and a second angle sensor 9; the pressure detection module 5 is a pressure sensor; the pressure sensor is located between the first angle sensor 8 and the second angle sensor 9, and the direction of the line connecting the first position of the first angle sensor 8 and the center point of the rotating part 4 is perpendicular to the direction of the line connecting the second position of the second angle sensor 9 and the center point of the rotating part 4.
[0048] In another optional implementation, Figure 3 As shown, the rotating module 3 is detachably connected to the pen body 1 ; the rotating module 3 further includes an electrical connection component 10 , a second control module 11 and a second battery module 12 .
[0049] Among them, the second control module 11 is electrically connected to the electrical connection component 10, the detection device and the second battery module 12 respectively; when the rotating module 3 and the pen body 1 are in a separated state, the second control module 11 is wirelessly connected to the first control module 6; when the rotating module 3 and the pen body 1 are in a connected state, the second control module 11 is electrically connected to the first control module 6 through the electrical connection component 10.
[0050] It should be noted that the rotating module 3 is detachably connected to the pen body 1. After the rotating module 3 is removed, it is wirelessly connected to the first control module 6 on the stylus pen through the second control module 11 and can communicate with the stylus pen. When the rotating module 3 is installed on the pen body 1, the second control module 11 of the rotating module 3 is electrically connected to the first control module 6 on the stylus pen through the electrical connection part 10. In other words, the rotating module 3 can be directly removed and used as an independent accessory.
[0051] Specifically, the electrical connection portion 10 is provided with an electrical contact point 13 , through which the second control module 11 is electrically connected to the first control module 6 .
[0052] Alternatively, if Figure 5As shown, when the rotating module 3 is disposed on the touch portion 2 , the rotating member 4 is located on the top of the touch portion 2 , a portion of the rotating member 4 is located inside the touch portion 2 , and another portion is exposed outside the touch portion 2 .
[0053] Optionally, a positioning member 14 is provided in the pen body 1 , and when the stylus pen is received in an electronic device, the positioning member 14 is used to determine and / or adjust the position of the stylus pen.
[0054] like Figure 6 The figure shows the structure diagram of the stylus hardware system. The system is based on the processor, and cooperates with the wireless module, pressure sensor, rotation module and battery module to form a complete stylus system.
[0055] The functions of each module are as follows:
[0056] Wireless module: exchanges information with the terminal device; in the case where the rotating module and the stylus pen body are detachably connected, if the rotating module and the stylus pen body are in a separated state, the wireless module also exchanges information with the rotating module.
[0057] Pressure sensor: Receives the pressure of the stylus tip on the input interface.
[0058] Rotation module: Converts the detected rotation angle and speed of the rotating part and the pressure on the rotating part into digital input to achieve specific control.
[0059] Processor: Receives data from various modules, responds to input instructions, performs data operations and outputs them.
[0060] Memory: Stores user input data and system data.
[0061] Battery: Provides power output for the stylus.
[0062] The touch pen of the embodiment of the present invention includes a pen body with a accommodating cavity, a touch part arranged at the first end of the pen body; a rotating module arranged on the pen body, including a rotating part and a detection device, the detection device including an angle detection module and a pressure detection module, and the angle detection module and the pressure detection module are distributed at intervals along the circumference of the rotating part; a first control module and a first battery module are arranged in the accommodating cavity, and the first control module is electrically connected to the touch part, the detection device and the first battery module respectively. The touch pen with the above structure can expand the operation dimension of the touch pen by adding a rotating module to the stylus pen, and can also adapt different functions to the operation of the rotating part to enhance the operation experience of the stylus pen.
[0063] like Figures 7-8As shown, an embodiment of the present application further provides an electronic device, which includes: a stylus pen as described in the above embodiment; a device body 15, wherein the device body 15 has a receiving groove 16, and the stylus pen is detachably disposed in the receiving groove 16.
[0064] Figure 7 is a schematic diagram of the stylus pen being received in the receiving slot 16; Figure 8 FIG. 1 is a schematic diagram showing the stylus pen partially popping out of the receiving groove 16 .
[0065] Optionally, at least two detection members are arranged in the device body 15 and are spaced apart from each other; when at least one of the at least two detection members is working, the stylus pen is fixed at a position corresponding to the receiving groove 16 through its positioning member 14, and the rotating module 3 performs a function corresponding to the position.
[0066] When the target detection element is powered on, the stylus pen cooperates with the target detection element through its positioning element 14 and is fixed at a position corresponding to the receiving groove 16 , and the rotating module 3 performs a function corresponding to the position.
[0067] Optionally, the positioning member 14 is a magnetic member, and correspondingly, the detection member is a coil (for details, see Figure 1 , Figure 3 and Figure 5 shown).
[0068] Specifically, when the target coil is energized, the magnetic member and the target coil are magnetically attracted to each other, so that the stylus pen is fixed at a position corresponding to the receiving groove 16 .
[0069] It should be noted that the detection member disposed in the device body 15 cooperates with the positioning member 14 inside the stylus pen to achieve the fixation and movement of the stylus pen.
[0070] Here, the stylus pen is fixed at different positions by the positioning member 14 to perform different functions.
[0071] Specifically, the functions performed include but are not limited to at least one of the following:
[0072] The rotating part is unlocked;
[0073] Rotating parts locking;
[0074] The detection device is started;
[0075] The detection device is closed.
[0076] It should be noted that the device body 15 can generate a target signal and control the operation of the target detection element by receiving a preset input from the user to the device body 15 (specifically, such as a screen on the device body 15).
[0077] This implementation method controls the operation of the corresponding detection part to execute the touch pen, specifically the rotating module, and the corresponding internal functions, thereby corresponding to different usage scenarios to meet the different usage needs of users.
[0078] In one example, a first coil, a second coil, a third coil and a fourth coil are disposed in the device body 15 at intervals, wherein the distances between the first coil, the second coil, the third coil and the fourth coil and the opening of the receiving slot 16 for receiving the stylus pen decrease or increase in sequence.
[0079] When the signal output by the device body 15 triggers the fourth coil to be energized, and the other coils are not energized, the fourth coil generates a magnetic field. According to the principle of opposite magnetic poles attracting each other, the fourth coil and the magnetic part inside the stylus are attracted to each other, and the stylus remains in the state of Figure 7 The fourth coil is located at a position where the stylus pen is completely stored in the device body 15. It should be noted that the fourth coil is located at a position where the stylus pen can be completely stored in the device body 15 after the fourth coil is energized and attracted to the magnetic part inside the stylus pen by polarity.
[0080] When the signal output by the device body 15 triggers the third coil to be energized, and the other coils are not energized, the third coil generates a magnetic field. When the user moves the stylus pen in a direction away from the bottom of the accommodating groove 16 so that the magnetic part inside the stylus pen faces the third coil, according to the principle of opposite magnetic poles attracting each other, the third coil and the magnetic part inside the stylus pen are attracted to each other in polarity, the stylus pen is partially moved out of the device body, and the rotating part of the stylus pen can roll (i.e., unlocked), and the pressure detection module inside the rotating module is started;
[0081] When the signal output by the device body 15 triggers the second coil to be energized, and the other coils are not energized, the second coil generates a magnetic field. When the user moves the stylus pen in a direction away from the bottom of the accommodating groove 16 so that the magnetic part inside the stylus pen faces the second coil, according to the principle of opposite magnetic poles attracting each other, the second coil and the magnetic part inside the stylus pen are attracted to each other in polarity, the stylus pen is partially moved out of the device body, and the rotating part of the stylus pen can roll, and the pressure sensor inside the rotating module is turned off;
[0082] When the signal output by the device body 15 triggers the first coil to be energized, and the other coils are not energized, the first coil generates a magnetic field, and when the user moves the stylus pen in a direction away from the bottom of the accommodating groove 16 so that the magnetic part inside the stylus pen is opposite to the first coil, according to the principle of opposite magnetic poles attract each other, the first coil and the magnetic part inside the stylus pen are attracted to each other in polarity, the stylus pen is partially moved out of the device body, the rotating part of the stylus pen is locked, and the pressure sensor inside the rotating module is started.
[0083] It should be noted that when the user needs to take out the stylus pen, the four coils can be triggered to stop being energized through user operation, so that the stylus pen can be taken out.
[0084] Here, a rotating module is added to the stylus pen, which can expand the operating dimension of the stylus pen by cooperating with the device body, and can also adapt different functions to the rotating parts of the rotating module to enhance the operating experience of the stylus pen.
[0085] Furthermore, the electronic device of the embodiment of the present application can control the device body through the stylus pen detachably disposed in the receiving groove of the device body, thereby further improving the convenience of human-computer interaction operation.
[0086] like Fig. 9 FIG. 1 is a flow chart of a control method of an electronic device provided in an embodiment of the present application. The method is applied to the electronic device as described in the above embodiment. The electronic device includes a stylus pen and a device body. The stylus pen is detachably disposed in the device body. The control method may include:
[0087] Step 901, obtaining the position status of the stylus;
[0088] The position state of the stylus pen includes a first position state in which the stylus pen is located inside the device body and a second position state in which the stylus pen is separated from the device body.
[0089] Step 902: Determine the function corresponding to the rotating module according to the position state.
[0090] It should be noted that the first position state of the stylus pen in the device body specifically refers to the first position state of the stylus pen being at least partially located in the device body.
[0091] Here, when the position state of the stylus pen is the first position state, the function correspondingly executed by the rotating module includes but is not limited to at least one of the following:
[0092] The rotating part is unlocked;
[0093] Rotating parts locking;
[0094] The detection device is started;
[0095] The detection device is closed.
[0096] When the position state of the stylus pen is the second position state, the function corresponding to the rotating module is to unlock the rotating member, and the detection device of the stylus pen is turned on.
[0097] The control method of the electronic device in the embodiment of the present application obtains the position state of the stylus pen; based on the position state, the function corresponding to the rotating module is determined. In this way, by adding a rotating module to the stylus pen and cooperating with the device body, the operation dimension of the stylus pen can be expanded, and different functions can be adapted to the operation of the rotating parts of the rotating module, thereby improving the operation experience of the stylus pen.
[0098] Optionally, the first position state is that the rotating member of the stylus pen is in a first target position exposed outside the device body, or the position state is the second position state, and the function corresponding to the rotating module is that the rotating member is unlocked and the detection device of the stylus pen is turned on; the method of the embodiment of the present application may also include:
[0099] receiving a first signal output by the stylus;
[0100] It should be noted that the detection device of the stylus detects the rotation of the rotating member or detects the external pressing pressure on the rotating member. Specifically, the angle detection module detects the rotation of the rotating member, and the pressure detection module detects the external pressing pressure on the rotating member.
[0101] According to the first signal, a target parameter of a currently running application is adjusted according to a preset control strategy, wherein the first signal is a signal generated when a rotating member of the stylus pen is rotated or pressed.
[0102] Here, by analyzing the first signal, the rotation angle, direction and / or pressing pressure of the rotating member of the stylus pen can be determined, and the target parameters of the currently running application can be adjusted according to the rotation angle, direction and / or pressing pressure of the rotating member. The corresponding first signal is generated by the rotation angle and direction of the rotating member of the stylus pen rotated by the user, or the pressing pressure of the rotating member of the stylus pen pressed.
[0103] Here, the target parameters to be adjusted are different based on the different applications currently running.
[0104] This implementation method realizes control over the device body through user operation of the rotating part of the stylus pen, thereby further improving the convenience of human-computer interaction operation.
[0105] As an optional implementation, adjusting the target parameter of the currently running application may include at least one of the following:
[0106] Increasing the volume of the sound output by the device body;
[0107] reducing the volume of the sound output by the device body;
[0108] Fast forward the video;
[0109] Rewind video;
[0110] Enlarge the image;
[0111] Reduce the image size;
[0112] Switch to display the previous picture of the current picture;
[0113] Switch to display the next picture of the current picture;
[0114] The page moves along a first direction;
[0115] The page moves along a second direction;
[0116] Switch to display the previous page of the current page;
[0117] Switch to display the next page of the current page;
[0118] Display the game perspective of the corresponding direction;
[0119] Display the shooting aiming interface;
[0120] Move the shooting center in the corresponding direction.
[0121] It should be noted that the embodiments of the present application are based on the operation logic and operation method of the rotating part of the rotating module (i.e., rotating or pressing the rotating part), and by combining the stylus with the rotating module as a supplement to the touch operation of the electronic device, it is possible to optimize the user experience in certain scenarios. The following Table 1 shows the system functions achieved by the rotating part rotating in different states in some implementation scenarios.
[0122] For example, the rotating member is a roller, and the stylus is located in the device body, the first angle sensor in the rotating module is used to detect the first rotation angle of the rotating member in the first direction, and the second angle sensor is used to detect the second rotation angle of the rotating member in the second direction. Here, the first direction is a direction parallel to the wide side of the device body, which can be defined as the X direction; the second direction is a direction perpendicular to the wide side of the device body, which can be defined as the Y direction.
[0123] Table 1 Functions realized by the scroll wheel in some scenarios
[0124]
[0125] It can be seen from the above scenario embodiments that some functions on the electronic device can be controlled by the rotating parts of the rotating module set on the stylus. The rotating module can replace the function buttons on the device body, expand the operating dimension of the stylus, and enhance the operating experience of the stylus.
[0126] In one example, when a user uses an electronic device to play a shooting game, the game interface is displayed on the screen of the device body. Generally, the user needs to use the thumb of one hand to control the movement of the game character, and the thumb of the other hand needs to slide on the screen to switch the perspective, while pressing the shooting button at the same time, which is inconvenient to operate. At this time, the rotation module of the stylus can be used as a supplement to the touch screen function, and the rotation module serves as a game joystick.
[0127] Specifically, the user uses the index finger of the hand that presses the shooting button to operate the rotating member (such as a scroll wheel). Lightly pressing the rotating member can switch the viewing angle. Sliding in the positive direction of the X-axis moves the viewing angle to the right; sliding in the negative direction of the X-axis moves the viewing angle to the left; sliding in the positive direction of the Y-axis moves the viewing angle upward; sliding in the negative direction of the Y-axis moves the viewing angle downward; it can also move in any direction to achieve the operation of switching the viewing angle in any direction.
[0128] Press the rotating part hard to open the shooting aiming interface. By operating the rotating part, you can move it in any direction of the XY axis to achieve arbitrary movement of the shooting center.
[0129] Here, when the user uses an electronic device to play a shooting game, the rotating module is used as a game joystick, which can reduce the operation of the user's thumb that is responsible for pressing the shooting button, shorten the time for the user to shoot the target in the game interface, and greatly improve the gaming experience.
[0130] It should be noted that the rotating module set on the stylus can not only optimize the touch screen interaction on the existing electronic device, improve the shortcomings of the existing touch interaction, and enhance the user's operating experience on the electronic device; but also break through the limitations of touch operation in combination with specific usage scenarios. More importantly, through the design of the rotating part based on the rotating module, it is possible to operate the electronic device more conveniently without blocking the screen display content.
[0131] In another example, when the screen of the electronic device is projected onto a smart large-screen device, such as displaying a PPT file or playing a video file on the large screen through projection, the screen switching of the PPT file or the progress of the video file playback can be controlled by the user's operation on the rotating member of the rotating module. It should be noted that if the rotating module is detachably connected to the pen body, the rotating module can be removed and used as an independent accessory, which is more convenient for users to carry and operate.
[0132] If the game interface is displayed on a large screen through projection, the game character can be controlled by the user's operation on the rotating part of the rotating module; further, if the game is a battle game played by two or more people, especially a battle game played by two people, one player can operate the touch screen on the electronic device, and the other player can use the stylus provided with the rotating module to operate. Of course, if the rotating module is detachable, for the convenience of operation, the rotating module can also be removed and used as an independent accessory, thereby increasing the playability of the game's multi-person collaborative operation.
[0133] As an optional implementation, the method of the embodiment of the present application may further include:
[0134] When the device body displays an editable interface, receiving a first input of a rotating member of a rotating module to the editable interface;
[0135] In response to the first input, the content displayed in the area corresponding to the first input is erased.
[0136] Here, the editable interface may be a drawing interface.
[0137] In this implementation, the rotating module can be disassembled and used as an independent accessory, or it can be used as an eraser without being disassembled. Wherein, according to the pressing force of the first input, the degree of erasing is different, so that a more realistic eraser experience can be provided.
[0138] It should be noted that the rotating module is designed to be detachable, so that the rotating module can be disassembled or combined according to the actual usage needs of the user, enriching the functions of the stylus pen and greatly expanding the usage scenarios of the stylus pen.
[0139] As an optional implementation, the rotating member of the rotating module arranged at the second end of the pen body of the stylus is exposed outside the device body, the rotating module arranged at the touch part is housed in the device body, and the currently running application is the first preset application.
[0140] Optionally, the first preset application is a game application. That is, when the rotating member of the rotating module disposed at the second end of the stylus body is exposed outside the device body and the rotating module disposed at the touch portion is accommodated in the device body, the first preset application is allowed to be operated.
[0141] As another optional implementation, the rotating member of the rotating module provided on the touch portion is exposed outside the device body, the rotating module provided on the second end of the pen body of the stylus is housed in the device body, and the currently running application is the second preset application. After receiving the first signal output by the stylus, the method of the embodiment of the present application may further include:
[0142] The parameters of the second preset application program remain unchanged.
[0143] That is, when the rotating member of the rotating module disposed on the touch portion is exposed outside the device body and the rotating module disposed on the second end of the stylus pen body is housed in the device body, user operations on the second preset application are ignored.
[0144] In this implementation, rotation modules are provided at both ends of the stylus pen, and different functions can be realized by inserting the stylus pen corresponding to different directions into the device body.
[0145] In addition, when the rotating module is set on the stylus pen head, the angle sensor in the rotating module can provide a locking function and apply a reverse force to provide a damping feeling when the user uses the stylus pen to write or draw on the screen of the device body. The user can experience writing on different materials on the electronic device.
[0146] If the electronic device detects that the currently running application is not a drawing application, the electronic device outputs a control signal to the stylus pen to trigger the stylus pen to lock its rotating member. That is, at this time, the stylus pen only provides a pressure sensing function for interface clicks, double clicks, etc.
[0147] Of course, by setting a rotating module on the stylus, the following application scenarios can also be realized. For example, when the desktop is displayed on the screen of the device body, the user presses the rotating part of the stylus to trigger the device body to enter a preset application; further, different pressing forces can trigger entering different applications. For example, when the pressing pressure is less than a preset threshold, the device body is triggered to enter a memo; when the pressing pressure is greater than the preset threshold, the device body is triggered to enter a drawing application.
[0148] The control method of the electronic device in the embodiment of the present application obtains the position state of the stylus pen; based on the position state, the function corresponding to the rotating module is determined. In this way, by adding a rotating module to the stylus pen and cooperating with the device body, the operation dimension of the stylus pen can be expanded, and different functions can be adapted to the operation of the rotating parts of the rotating module, thereby improving the operation experience of the stylus pen.
[0149] like Fig.10 As shown, it is a schematic diagram of the structure of the control device of the electronic device provided in the embodiment of the present application. The method is applied to the electronic device as described in the above embodiment. The control device 1000 of the electronic device may include:
[0150] An acquisition module 1001 is used to acquire the position state of the stylus pen;
[0151] A first processing module 1002, used to determine a function corresponding to the rotating module according to the position state;
[0152] The position state of the stylus pen includes a first position state in which the stylus pen is located inside the device body and a second position state in which the stylus pen is separated from the device body.
[0153] Optionally, the first position state is that the rotating member of the stylus pen is in a first target position exposed outside the device body, or the position state is the second position state; the function corresponding to the rotating module is that the rotating member is unlocked and the detection device of the stylus pen is turned on;
[0154] The device 1000 further includes:
[0155] A first receiving module, used for receiving a first signal output by the stylus pen;
[0156] The second processing module is used to adjust the target parameters of the currently running application according to the first signal and a preset control strategy, wherein the first signal is a signal generated when the rotating part of the stylus pen is rotated or pressed.
[0157] Optionally, the device 1000 includes:
[0158] A second receiving module, configured to receive a first input from a rotating member of a rotating module to the editable interface when the device body displays the editable interface;
[0159] A third processing module is configured to erase the content displayed in the area corresponding to the first input in response to the first input.
[0160] Optionally, the rotating member of the rotating module arranged at the second end of the pen body of the stylus is exposed outside the device body, the rotating module arranged at the touch part is accommodated in the device body, and the currently running application is the first preset application.
[0161] Optionally, the rotating member of the rotating module disposed on the touch portion is exposed outside the device body, the rotating module disposed on the second end of the stylus pen body is housed in the device body, and the currently running application is a second preset application; the device 1000 further includes:
[0162] The fourth processing module is used to keep the parameters of the second preset application program unchanged.
[0163] The control device of the electronic device of the embodiment of the present application obtains the position state of the stylus pen, and determines the function corresponding to the rotating module according to the position state. In this way, by adding a rotating module to the stylus pen and cooperating with the device body, the operation dimension of the stylus pen can be expanded, and different functions can be adapted to the operation of the rotating parts of the rotating module, thereby improving the operation experience of the stylus pen.
[0164] The control device of the electronic device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, 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 (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0165] The control device of the electronic 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.
[0166] The control device of the electronic device provided in the embodiment of the present application can achieve Fig. 9 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0167] Alternatively, if Fig.11 As shown, an embodiment of the present application also provides an electronic 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. When the program or instruction is executed by the processor 1101, each process of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0168] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0169] Fig.12 The hardware structure diagram of an electronic device for implementing each embodiment of the present application is shown in FIG. The electronic 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.
[0170] Those skilled in the art will appreciate that the electronic device 1200 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 1210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 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.
[0171] Among them, the processor 1210 is used to obtain the position state of the stylus; determine the function corresponding to the rotation module according to the position state; wherein the position state of the stylus includes a first position state in which the stylus is located inside the device body and a second position state in which the stylus is separated from the device body.
[0172] In the embodiment of the present application, by adding a rotating module to the stylus pen and cooperating with the device body, the operating dimension of the stylus pen can be expanded, and different functions can be adapted for the rotating parts of the rotating module to enhance the operating experience of the stylus pen.
[0173] Optionally, the first position state is that the rotating part of the stylus pen is in a first target position exposed outside the device body, or the position state is the second position state; the function corresponding to the rotation module is that the rotating part is unlocked and the detection device of the stylus pen is turned on; the user input unit 1207 is used to receive a first signal output by the stylus pen; the processor 1210 is also used to adjust the target parameters of the currently running application according to the first signal and a pre-set control strategy, and the first signal is a signal generated when the rotating part of the stylus pen is rotated or pressed.
[0174] Optionally, the user input unit 1207 is used to receive a first input from a rotating part of a rotating module to the editable interface when the device body displays the editable interface; the processor 1210 is also used to erase the content displayed in the area corresponding to the first input in response to the first input.
[0175] Optionally, the rotating member of the rotating module arranged at the second end of the pen body of the stylus is exposed outside the device body, the rotating module arranged at the touch part is accommodated in the device body, and the currently running application is the first preset application.
[0176] Optionally, the rotating part of the rotating module arranged on the touch part is exposed outside the device body, the rotating module arranged on the second end of the pen body of the stylus is housed in the device body, and the currently running application is a second preset application; the processor 1210 is also used to keep the parameters of the second preset application unchanged.
[0177] In the embodiment of the present application, by adding a rotating module to the stylus pen and cooperating with the device body, the operating dimension of the stylus pen can be expanded, and different functions can be adapted for the rotating parts of the rotating module to enhance the operating experience of the stylus pen.
[0178] It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 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 1209 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1210 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 1210.
[0179] 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 control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0180] 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.
[0181] 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 control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0182] 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.
[0183] 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.
[0184] 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.
[0185] 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 pen body, wherein the pen body is provided with a receiving cavity; A touch control portion, the touch control portion being disposed at the first end of the pen body; A rotating module, the rotating module is arranged on the pen body, the rotating module comprises: a rotating member and a detection device, the detection device comprises an angle detection module and a pressure detection module, and the angle detection module and the pressure detection module are spaced apart and distributed along the circumference of the rotating member; The first control module and the first battery module are disposed in the accommodating cavity, and the first control module is electrically connected to the touch control portion, the detection device and the first battery module respectively.
2. The touch pen according to claim 1, characterized in that: When the number of the rotating module is one, the rotating module is arranged at the second end of the pen body, or the rotating module is arranged at the touch control part; When the number of the rotating modules is two, the two rotating modules are respectively arranged at the second end and the touch portion; Wherein, the second end is the end of the pen body opposite to the touch portion.
3. The touch pen according to claim 1, characterized in that: The detection device is arranged in the accommodating cavity, a part of the rotating member is located in the accommodating cavity, and another part is exposed outside the pen body.
4. The touch pen according to claim 1, characterized in that: The angle detection module includes a first angle sensor and a second angle sensor; the pressure detection module is a pressure sensor; The pressure sensor is located between the first angle sensor and the second angle sensor, and the direction of the line connecting the first position of the first angle sensor and the center point of the rotating member is perpendicular to the direction of the line connecting the second position of the second angle sensor and the center point of the rotating member.
5. The touch pen according to claim 1, characterized in that: The rotating module is detachably connected to the pen body; the rotating module further comprises an electrical connection component, a second control module and a second battery module; Wherein, the second control module is electrically connected to the electrical connection component, the detection device and the second battery module respectively; When the rotating module and the pen body are in a separated state, the second control module is wirelessly connected to the first control module; When the rotating module is in a connected state with the pen body, the second control module is electrically connected with the first control module through the electrical connection component.
6. The touch pen according to claim 1, characterized in that: In the case where the rotating module is disposed on the touch portion, the rotating member is located on the top of the touch portion, a portion of the rotating member is located inside the touch portion, and another portion of the rotating member is exposed outside the touch portion.
7. The touch pen according to claim 1, characterized in that: A positioning member is provided in the pen body, and when the stylus pen is stored in an electronic device, the positioning member is used to determine and / or adjust the position of the stylus pen.
8. An electronic device, characterized in that: include: The stylus pen according to any one of claims 1 to 7; The device body has a receiving groove, and the stylus pen is detachably arranged in the receiving groove.
9. The electronic device according to claim 8, characterized in that: At least two detection members are arranged in the main body of the device and are spaced apart from each other; When at least one of the at least two detection members is working, the stylus pen is fixed at a position corresponding to the accommodating groove through its positioning member, and the rotating module performs a function corresponding to the position.
10. A method for controlling an electronic device, characterized in that: The electronic device comprises a stylus pen and a device body, wherein the stylus pen is detachably arranged in the device body, and the control method comprises: Acquire the position status of the stylus; According to the position state, a function corresponding to the rotating module is determined; the rotating module is arranged on the body of the stylus pen, and the rotating module comprises: a rotating member and a detection device, the detection device comprises an angle detection module and a pressure detection module, and the angle detection module and the pressure detection module are spaced apart and distributed along the circumference of the rotating member; The position state of the stylus pen includes a first position state in which the stylus pen is located inside the device body and a second position state in which the stylus pen is separated from the device body.
11. The method according to claim 10, characterized in that The first position state is that the rotating member of the stylus pen is in a first target position exposed outside the device body, or the position state is the second position state; The function corresponding to the rotating module is to unlock the rotating member and turn on the detection device of the stylus pen; The method further comprises: receiving a first signal output by the stylus; According to the first signal, a target parameter of a currently running application is adjusted according to a preset control strategy, wherein the first signal is a signal generated when a rotating member of the stylus pen is rotated or pressed.
12. The method according to claim 10, characterized in that The method further comprises: When the device body displays an editable interface, receiving a first input of a rotating member of a rotating module to the editable interface; In response to the first input, the content displayed in the area corresponding to the first input is erased.
13. The method according to claim 11, characterized in that The rotating member of the rotating module arranged at the second end of the pen body of the touch pen is exposed outside the device body, the rotating module arranged at the touch part is accommodated in the device body, and the currently running application is the first preset application.
14. The method according to claim 11, characterized in that The rotating member of the rotating module disposed on the touch portion is exposed outside the device body, the rotating module disposed on the second end of the stylus pen body is housed in the device body, and the currently running application is a second preset application; After receiving the first signal output by the stylus pen, the method further includes: The parameters of the second preset application program remain unchanged.
15. A control device for an electronic device, characterized in that: include: An acquisition module, used to acquire the position status of the stylus; A first processing module, used for determining a function corresponding to the rotating module according to the position state; The rotating module is arranged on the body of the stylus pen, and the rotating module comprises: a rotating member and a detection device, wherein the detection device comprises an angle detection module and a pressure detection module, and the angle detection module and the pressure detection module are spaced apart and distributed along the circumference of the rotating member; The position state of the stylus pen includes a first position state in which the stylus pen is located inside a device body and a second position state in which the stylus pen is separated from the device body.
16. The device according to claim 15, characterized in that The first position state is that the rotating member of the stylus pen is in a first target position exposed outside the device body, or the position state is the second position state; The function corresponding to the rotating module is to unlock the rotating member and turn on the detection device of the stylus pen; The device also includes: A first receiving module, used for receiving a first signal output by the stylus pen; The second processing module is used to adjust the target parameters of the currently running application according to the first signal and a preset control strategy, wherein the first signal is a signal generated when the rotating part of the stylus pen is rotated or pressed.
17. The device according to claim 15, characterized in that The device comprises: A second receiving module, configured to receive a first input from a rotating member of a rotating module to the editable interface when the device body displays the editable interface; A third processing module is configured to erase the content displayed in the area corresponding to the first input in response to the first input.
18. The device according to claim 15, characterized in that The rotating member of the rotating module arranged at the second end of the pen body of the touch pen is exposed outside the device body, the rotating module arranged at the touch part is accommodated in the device body, and the currently running application is the first preset application.
19. The device according to claim 15, characterized in that The rotating member of the rotating module disposed on the touch portion is exposed outside the device body, the rotating module disposed on the second end of the stylus pen body is housed in the device body, and the currently running application is a second preset application; the device further includes: The fourth processing module is used to keep the parameters of the second preset application program unchanged.
20. An electronic device, characterized in that: The device 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 of the electronic device as claimed in any one of claims 10 to 14.
21. 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 control method of the electronic device according to any one of claims 10 to 14 are implemented.
