Active pen and active pen configuration method
By designing a detachable active pen tail module and controller to work together, the active pen achieves multi-functional and flexible selection, reducing costs for both users and manufacturers.
Patent Information
- Application Number
- CN202610442569.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-03
- Publication Date
- 2026-06-19
AI Technical Summary
Due to size and shape limitations, existing active pens cannot integrate multiple functions into a single pen, requiring users to purchase multiple pens to experience different functions, thus increasing usage costs.
Design an active pen with a detachable pen body connected to multiple pen tail modules. A controller detects and determines the type of the pen tail modules, obtains and sends configuration parameters, enabling them to work collaboratively with the pen body and touch devices.
Users can flexibly replace the pen tail module according to their needs, meeting a variety of functional requirements and reducing usage and development costs.
Smart Images

Figure CN122239959A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and in particular to an active pen and an active pen configuration method. Background Technology
[0002] An active pen is a smart touch input device that differs from a regular passive active pen. It is mainly used in touch devices such as capacitive screens and digital displays / tablets. It does not achieve touch control solely through physical contact, but rather incorporates built-in electronic components, sensors, and control circuits, making it a pen-shaped interactive product that can actively send signals and transmit data to the touch device.
[0003] Currently, in addition to basic writing functions, active pens offer increasingly more expandable functions, especially at the end of the pen. These include functions such as erasing, tilting, voice input, color extraction, and camera recording. However, due to limitations in pen size and shape, these functions cannot be integrated into a single pen. As a result, users who want to experience multiple interactive functions have to purchase multiple pens from the same manufacturer or from different manufacturers, effectively increasing the cost for users to use various functions. Summary of the Invention
[0004] Therefore, it is necessary to provide an active pen and an active pen configuration method that can effectively reduce the cost of using various functions, in order to address the above-mentioned technical problems.
[0005] Firstly, this application provides an active pen, which includes:
[0006] Pen body;
[0007] At least two pen tail modules detachably connected to the pen body; wherein, at any given time, the pen body is connected to one pen tail module; and
[0008] A controller is configured within the pen body, and the controller is used for:
[0009] If the target pen tail module is successfully connected to the pen body, determine the pen tail type of the target pen tail module; wherein, the target pen tail module is any one of at least two pen tail modules.
[0010] Based on the pen tail type, obtain the configuration parameters of the target pen tail module; and
[0011] Send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module to configure its operation.
[0012] In one embodiment, at least two pen tail modules include an erasing module, a camera module, a color picking module, and a voice module; different pen tail modules correspond to different pen tail types.
[0013] In one embodiment, each pen tail module is provided with a target component, and the pen body is provided with a detection unit for detecting the target component, the detection unit being connected to the controller.
[0014] The controller is also used for:
[0015] Receive detection information about the target component detected by the detection unit; and
[0016] Based on the detection information, determine the connection status between the target pen tail module and the pen body.
[0017] In one embodiment, the detection unit is a Hall sensor; the target component is a Hall magnet.
[0018] In one embodiment, each pen tail module is equipped with a second power supply component adapted to the first power supply component on the pen body.
[0019] When the target pen tail module is successfully connected to the pen body, the pen body supplies power to the target pen tail module based on the first power supply component and the second power supply component on the target pen tail module.
[0020] In one embodiment, one of the target pen tail module and the pen body is provided with a pin header female connector, and the other is provided with a pin header male connector; the target pen tail module and the pen body communicate via wired communication through the pin header female connector and the pin header male connector.
[0021] In one embodiment, when the controller performs the task of determining the pen tail type of the target pen tail module, it is configured to:
[0022] Receive the first message sent by the target pen tail module; and
[0023] Based on the content of the field corresponding to the module identifier field in the first message, determine the pen tail type of the target pen tail module.
[0024] In one embodiment, when the controller sends configuration parameters to the target pen tail module, it is used to:
[0025] Send a second message to the target pen tail module; the second message carries configuration parameters.
[0026] In one embodiment, when the controller retrieves the configuration parameters of the target pen tail module based on the pen tail type, it is used for any of the following:
[0027] Based on the pen tail type, read the configuration parameters associated with the pen tail type from the pen body's memory;
[0028] Send a parameter acquisition message carrying the pen tail type to the touch device associated with the active pen, and obtain the configuration parameters of the target pen tail module fed back by the touch device based on the parameter acquisition message.
[0029] In one embodiment, the controller is also used to:
[0030] Send an indication message carrying the pen tail type to the touch device associated with the active pen; wherein the indication message is used to instruct the touch device to switch the working mode based on the pen tail type.
[0031] Secondly, this application also provides an active pen configuration method, configured in a controller of the pen body, the method comprising:
[0032] If the target pen tail module is successfully connected to the pen body of the active pen, the pen tail type of the target pen tail module is determined; wherein, the target pen tail module is any one of at least two pen tail modules; at least two pen tail modules are detachably connected to the pen body.
[0033] Based on the pen tail type, obtain the configuration parameters of the target pen tail module;
[0034] Send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module to configure its operation.
[0035] Thirdly, the application also provides an active pen configuration device, configured in a controller within the pen body, the device comprising:
[0036] The determination module is used to determine the pen tail type of the target pen tail module when the target pen tail module is successfully connected to the pen body of the active pen; wherein the target pen tail module is any one of at least two pen tail modules; at least two pen tail modules are detachably connected to the pen body.
[0037] The acquisition module is used to obtain the configuration parameters of the target pen tail module based on the pen tail type.
[0038] The sending module is used to send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module for working configuration.
[0039] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0040] If the target pen tail module is successfully connected to the pen body of the active pen, the pen tail type of the target pen tail module is determined; wherein, the target pen tail module is any one of at least two pen tail modules; at least two pen tail modules are detachably connected to the pen body.
[0041] Based on the pen tail type, obtain the configuration parameters of the target pen tail module; and
[0042] Send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module to configure its operation.
[0043] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0044] If the target pen tail module is successfully connected to the pen body of the active pen, the pen tail type of the target pen tail module is determined; wherein, the target pen tail module is any one of at least two pen tail modules; at least two pen tail modules are detachably connected to the pen body.
[0045] Based on the pen tail type, obtain the configuration parameters of the target pen tail module; and
[0046] Send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module to configure its operation.
[0047] The aforementioned active pen and active pen configuration method include: a pen body; at least two pen tail modules detachably connected to the pen body; wherein, the pen body is connected to one pen tail module at a time; and a controller configured in the pen body, wherein the controller is used to: determine the pen tail type of the target pen tail module when a successful connection between the target pen tail module and the pen body is detected; wherein the target pen tail module is any one of the at least two pen tail modules; obtain configuration parameters of the target pen tail module according to the pen tail type; and send the configuration parameters to the target pen tail module; wherein the configuration parameters are used for the target pen tail module to perform working configuration. The active pen in this application includes multiple pen tail modules. Since each pen tail module is detachably connected to the pen body, users can flexibly replace different pen tail modules according to their own needs (e.g., required functions), which not only satisfies users' flexible selection of various functions of the active pen but also reduces the user's cost of using various functions of the active pen and the manufacturer's development cost. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0049] Figure 1 A schematic diagram illustrating the principle of the active pen provided in this embodiment;
[0050] Figure 2 This is a schematic diagram of the pen body principle of the active pen provided in this embodiment;
[0051] Figure 3 This is a flowchart illustrating the first active pen configuration method provided in this embodiment;
[0052] Figure 4 A schematic diagram illustrating the wired communication method of the active pen provided in this embodiment;
[0053] Figure 5 This is a flowchart illustrating the process of determining the connection between the target pen tail module and the pen body, as provided in this embodiment.
[0054] Figure 6 This is a schematic diagram of the detection unit and target component provided in this embodiment;
[0055] Figure 7 This is a schematic diagram illustrating the power supply principle between the pen body and pen tail modules provided in this embodiment.
[0056] Figure 8 This is a flowchart illustrating the process of determining the pen tail type of the target pen tail module provided in this embodiment;
[0057] Figure 9 A flowchart illustrating the second active pen configuration method provided in this embodiment; and
[0058] Figure 10 This is a structural block diagram of an active pen configuration device provided in this embodiment. Detailed Implementation
[0059] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0060] An active pen is a smart touch input device that differs from a regular passive pen. It is mainly used in touch devices such as capacitive screens and digital displays / tablets. It does not achieve touch control solely through physical contact, but rather incorporates built-in electronic components, sensors, and control circuits, making it a pen-shaped interactive product that can actively send signals and transmit data to the touch device.
[0061] Currently, in addition to basic writing functions, active pens offer increasingly more expandable functions, especially at the end of the pen. These include functions such as erasing, tilting, voice input, color extraction, and camera recording. However, due to limitations in pen size and shape, these functions cannot be integrated into a single pen. As a result, users who want to experience multiple interactive functions have to purchase multiple pens from the same manufacturer or from different manufacturers, effectively increasing the cost for users to use various functions.
[0062] To address the aforementioned challenges, the active pen provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the active pen includes: a pen body; at least two pen tail modules detachably connected to the pen body; wherein, at any given time, the pen body is connected to one pen tail module; and a controller configured in the pen body, wherein the controller is used to: determine the pen tail type of the target pen tail module when a successful connection between the target pen tail module and the pen body is detected; wherein the target pen tail module is any one of the at least two pen tail modules; obtain configuration parameters of the target pen tail module according to the pen tail type; and send the configuration parameters to the target pen tail module; wherein the configuration parameters are used for the target pen tail module to perform operational configuration.
[0063] Among them, the active pen is an intelligent touch input device that differs from ordinary passive styluses. It is mainly used in touch devices such as capacitive screens and graphics tablets. It doesn't rely solely on physical contact for touch control; instead, it incorporates built-in electronic components, sensors, and control circuits, actively sending signals and transmitting data to the touch device. Touch devices are electronic devices that integrate touch sensing technology, supporting direct human-computer interaction through touch, writing, and gestures. They are the core application carriers of active pens. Their core characteristic is abandoning the indirect operation of traditional mice and keyboards, using touch as the core interaction method. Combined with display, processing, and sensing modules, they achieve a closed loop of command input and information feedback. Touch devices can be tablets (such as iPads and Android tablets), touchscreen smartphones, and handheld learning machines / graphic tablets.
[0064] In one embodiment, such as Figure 1 As shown, an active pen is provided, comprising:
[0065] The pen body, at least two pen tail modules detachably connected to the pen body, and a controller disposed within the pen body. The pen body is connected to one pen tail module at a time. Optionally, in this embodiment, the pen body refers to the main body of the active pen, with a pen tip at one end and a detachable connection to a pen tail module at the other end. Various components can be installed inside the pen body, such as... Figure 2 As shown, the pen body may be equipped with at least one or more of the following modules: a communication module (wired communication module and / or wireless communication module), a coding module, a receiving module, a coding controller, a pressure sensor, an attitude sensor, a vibration sensor, a touch sensor, a main controller (i.e., the controller in this application), a memory, and a pen tail recognition module.
[0066] Optionally, in some embodiments, the pen tail module includes, but is not limited to, an erasing module, a camera module, a color picking module, and a voice module; different pen tail modules correspond to different pen tail types. For example, the erasing module corresponds to an erasing type pen tail. The camera module corresponds to a camera type pen tail.
[0067] Optionally, in some implementations, the detachable connection between the pen body and the pen tail module can be a threaded connection, a magnetic adsorption connection, a snap-fit connection, or a plug-in connection (e.g., an interference fit).
[0068] Optionally, in this embodiment, the pen tail module and the controller can communicate wirelessly or via wired communication.
[0069] In one embodiment, the active pen, during use, such as Figure 3 As shown, the controller of the active pen (i.e. Figure 2 The main controller in the system is also used for:
[0070] S301, if the target pen tail module is successfully connected to the pen body, determine the pen tail type of the target pen tail module.
[0071] The target pen tail module refers to the pen tail module that is currently successfully connected to the pen body. The target pen tail module can be any one of at least two pen tail modules. Users can flexibly select the desired pen tail module from multiple pen tail modules as the target pen tail module according to their own needs.
[0072] In this embodiment, one optional implementation of the controller detecting the connection between the target pen tail module and the pen body is to determine whether the controller has successfully established communication with the pen tail module. If successful, it is determined that the target pen tail module and the pen body have been successfully connected.
[0073] In this embodiment, another optional implementation for the controller to detect the connection between the target pen tail module and the pen body is to determine the distance between the target pen tail module and the pen body using a proximity sensor. If the detected distance is less than a preset threshold, it is determined that the target pen tail module and the pen body have been successfully connected.
[0074] In this embodiment, one optional implementation for determining the pen tail type of the target pen tail module is that the controller sends a type acquisition message to the target pen tail module, so that the target pen tail module sends the pen tail type to the controller based on the type acquisition message.
[0075] Another optional implementation for determining the pen tail type of the target pen tail module in this embodiment is to acquire image information of the target pen tail module using a camera device configured on the pen body, and determine the type of the target pen tail module based on the image information. In this embodiment, different pen tail types have different structures, colors, or markings to facilitate the controller in determining the pen tail type of the target pen tail module based on the image information.
[0076] S302, based on the pen tail type, obtain the configuration parameters of the target pen tail module.
[0077] Here, configuration parameters refer to the parameters associated with the target pen tail module. For example, configuration parameters may include general basic configuration parameters and dedicated function configuration parameters. General basic configuration parameters include power supply adaptation parameters, communication protocol parameters, data interaction parameters, etc. Dedicated function configuration parameters include the dedicated function program parameters and calibration compensation parameters of the target pen tail module, etc.
[0078] As an optional implementation of this application, the controller reads the configuration parameters associated with the pen tail type from the pen body's memory according to the pen tail type. The memory stores each pen tail type and the configuration parameters associated with each pen tail type.
[0079] Another optional implementation of this application involves sending a parameter acquisition message carrying the pen tail type to the touch device associated with the active pen, and acquiring the configuration parameters of the target pen tail module based on the parameter acquisition message from the touch device. The touch device is an electronic device integrating touch sensing technology, supporting direct human-computer interaction through touch, writing, and gestures. It is also the core application carrier of the active pen. Its core feature is that it abandons the indirect operation of traditional mice and keyboards, using touch as the core interaction method, and combining display, processing, and sensing modules to achieve a closed loop of command input and information feedback. The touch device can be a tablet computer (such as an iPad or Android tablet), a touchscreen smartphone, or a handheld learning device / digital tablet. The touch device stores or can retrieve the configuration parameters corresponding to the pen tail type.
[0080] S303, send configuration parameters to the target pen tail module.
[0081] The configuration parameters are used to configure the target pen tail module. The purpose of the configuration parameters is to complete the initialization calibration, working mode setting, and performance parameter adaptation of the target pen tail module, ensuring that the target pen tail module forms a collaborative working closed loop with the controller and touch device, so that the replaced target pen tail module can quickly, stably, and correctly realize its own functions.
[0082] Optionally, in this embodiment, the controller can communicate with the target pen tail module via wireless or wired communication. Wireless communication can be via BLE (Bluetooth Low Energy). Wired communication can be via single-wire communication, serial communication, IIC (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface), etc.
[0083] Optionally, in this embodiment, an optional implementation method for wired communication between the pen body and the target pen tail module is as follows: Figure 4As shown, one of the target pen tail module and the pen body is equipped with a pin header female connector, and the other is equipped with a pin header male connector; the target pen tail module and the pen body communicate via wired communication through the pin header female connector and the pin header male connector, for example, as shown in... Figure 4 As shown, if the target pen tail module is equipped with a female header pin connector, then the pen body is equipped with a male header pin connector; conversely, if the target pen tail module is equipped with a male header pin connector, then the pen body is equipped with a female header pin connector. The female and male header pin connectors are the corresponding communication line connection sockets. The communication line between the target pen tail module and the pen body is established through the male and female header pin connectors, thereby enabling wired communication between the controller and the target pen tail module.
[0084] Optionally, in this embodiment, the controller also sends an indication message carrying the pen tail type to the touch device associated with the active pen; wherein, the indication message is used to instruct the touch device to switch its working mode based on the pen tail type. Specifically, after identifying the specific type of the target pen tail module, the controller generates and sends a dedicated instruction message to the touch device (tablet, digital screen, smart blackboard, etc.). This message carries the type information of the connected pen tail module (such as erase, color picker, camera, voice module, etc.). After receiving the indication message, the touch device will automatically switch its own system / application working mode from the current mode to a dedicated working mode that matches the function of the target pen tail module, and at the same time load the corresponding function's driver, interface, and interaction logic, so that the touch device and the target pen tail module's functions can be seamlessly linked without the user having to manually switch modes.
[0085] The aforementioned active pen includes: a pen body; at least two pen tail modules detachably connected to the pen body; wherein, the pen body is connected to one pen tail module at a time; and a controller configured in the pen body, wherein the controller is used to: determine the pen tail type of the target pen tail module when a successful connection between the target pen tail module and the pen body is detected; wherein the target pen tail module is any one of the at least two pen tail modules; obtain configuration parameters of the target pen tail module according to the pen tail type; and send the configuration parameters to the target pen tail module; wherein the configuration parameters are used for the target pen tail module to perform operational configuration. The active pen in this application includes multiple pen tail modules. Since each pen tail module is detachably connected to the pen body, users can flexibly replace different pen tail modules according to their own needs, which not only satisfies users' flexible selection of various functions of the active pen but also reduces the user's cost of using the various functions of the active pen and the manufacturer's development cost.
[0086] In one embodiment, to more accurately detect the connection between the target pen tail module and the pen body, each pen tail module is provided with a target component, and the pen body is provided with a detection unit for detecting the target component. The detection unit is connected to the controller. Based on this, such as Figure 5 As shown, the controller in the pen body is also used for:
[0087] S501, Receive detection information for the target component detected by the detection unit.
[0088] Optionally, in this embodiment, the detection unit is mainly used to detect the target component.
[0089] Optionally, in this embodiment, the detection unit is a Hall sensor; the target component is a Hall magnet. For example... Figure 6 As shown, a Hall sensor is installed on the pen body, and a Hall magnet is installed on the target pen tail module.
[0090] Optionally, in this embodiment, the Hall sensor at the controller interface sends detection information for the Hall magnet. The principle of the Hall sensor detecting the Hall magnet is as follows: the Hall sensor senses the change in the magnetic field strength generated by the Hall magnet, converts the magnetic signal into an electrical signal, and thus determines whether the magnet is near, far, or in place.
[0091] S502, based on the detection information, determine the connection status between the target pen tail module and the pen body.
[0092] Optionally, in this embodiment, the controller determines the proximity, distance, or in-position state of the Hall magnet based on the detection information, and then determines the connection status between the target pen tail module and the pen body. Specifically, the controller can determine the intensity of the induced magnetic field based on the detection information, and if the intensity of the induced magnetic field is greater than a preset threshold, the connection status between the target pen tail module and the pen body is determined to be successful.
[0093] In this embodiment, by receiving the target component detection information from the detection unit and determining the connection status between the pen tail module and the pen body accordingly, the connection status of the pen tail module, such as access, presence, and removal, can be accurately and in real time identified. This provides an accurate basis for the pen body main controller to trigger subsequent workflows such as module identification, program loading, and data interaction, ensuring the reliability and timeliness of the connection status detection between the pen tail module and the pen body. At the same time, relying on the non-contact detection characteristics of the detection unit, physical contact wear is avoided, the service life of the detection components is improved, and the application scenarios of high-frequency replacement of the pen tail module are adapted to ensure the smooth start-up and orderly operation of the overall workflow of the active pen with replaceable pen tail modules.
[0094] In one embodiment, to improve the continuity of power consumption of the pen tail module, such as Figure 7 As shown, each pen tail module is equipped with a second power supply component adapted to the first power supply component on the pen body. When the target pen tail module is successfully connected to the pen body, the pen body supplies power to the target pen tail module based on the first power supply component and the second power supply component on the target pen tail module. For example, the first power supply component can be a male plug, and the second power supply component can be a female plug. When the male and female plugs are connected, the power supply circuit between the pen body and the pen tail module is connected, and the pen tail module is powered based on the battery configured on the pen body.
[0095] In one embodiment, to facilitate the pen body module's timely understanding of the pen tail type of the target pen tail module, such as... Figure 8 As shown, when the controller executes the process of determining the pen tail type of the target pen tail module, it is used to:
[0096] S801 receives the first message sent by the target pen tail module.
[0097] Optionally, in this embodiment, the target pen tail module sends a first message to the pen body via wired or wireless communication.
[0098] Optionally, the data format of the first message in this embodiment is shown in Table 1:
[0099]
[0100] The check bit field is used to verify data integrity, such as CRC (Cyclic Redundancy Check) verification.
[0101] The preamble field is used to record a fixed number of bits of data, such as 0b001, to indicate that this is a pen tail module.
[0102] The identification ID, or module identifier field, is used to identify the type of module at the end of the pen, such as: erase module, camera module, color picker module, voice module, etc.
[0103] The data length field indicates how many bytes of data the data content contains. Different modules transmit vastly different contents, so different data lengths need to be set according to different module types. This can reduce unnecessary communication overhead and help optimize power consumption.
[0104] The data content field is used to record the data content of the pen tail sensor.
[0105] S802, determine the pen tail type of the target pen tail module based on the field content corresponding to the module identifier field in the first message.
[0106] As an optional implementation of this application, a unique and fixed identifier code (such as erasing module 01, color picking module 02) is pre-assigned to each pen tail module. The module identifier field is a single code value of fixed length. After the main controller extracts the field content, it directly compares it with the pre-stored fixed code one by one. If the match is successful, the corresponding pen tail type is determined.
[0107] Another optional implementation of this application is to pre-store a mapping table between the module identifier and the pen tail type in the pen body. The table contains all compatible module identifier codes and their corresponding pen tail types. After the controller extracts the content of the module identifier field, it uses the content as an index to search in the mapping table. Once the corresponding entry is found, the pen tail type can be determined.
[0108] In the above embodiment, to facilitate sending data to the target pen tail module, the controller sends data or instructions to the target pen tail module via a second message. Based on this, the controller sends a second message to the target pen tail module; wherein the second message carries configuration parameters. The message format of the second message is shown in Table 2:
[0109]
[0110] The start bit field is used to indicate the start of transmission.
[0111] The control command field is used to control the actions of the pen tail module, such as configuring pen tail module parameters, starting sensor acquisition, stopping acquisition, and repeating acquisition in a loop for a set duration.
[0112] The data content field is used to record the specific instructions for controlling the pen tail module.
[0113] The check field is used to verify data integrity, such as CRC check.
[0114] In this embodiment, the controller receives the first message sent by the target pen tail module and determines the pen tail type based on the content of the module identifier field. This enables the controller to quickly and accurately identify the specific category of the connected pen tail module, providing a core basis for the main controller to load the corresponding function program and issue exclusive configuration parameters. This achieves automatic identification and functional adaptation of the pen tail module without manual settings, improving the ease of module replacement. At the same time, relying on the exclusive matching logic of the module identifier field, it can effectively be compatible with different types of pen tail modules, ensuring that all types of modules can quickly work together with the pen body and touch device after being connected. This significantly improves the functional expandability and device compatibility of the replaceable pen tail module active pen.
[0115] In one embodiment, such as Figure 9 As shown, an active pen configuration method is applied to a pen body controller. One optional implementation of this method is as follows:
[0116] S901 receives detection information about the Hall magnet sent by the Hall sensor.
[0117] S902, based on the detection information, determine the connection status between the target pen tail module and the pen body.
[0118] S903 receives the first message sent by the target pen tail module when the target pen tail module is successfully connected to the pen body.
[0119] S904, determine the pen tail type of the target pen tail module based on the field content corresponding to the module identifier field in the first message.
[0120] S905 reads the configuration parameters associated with the pen tail type from the pen body's memory, based on the pen tail type.
[0121] S906, send a second message to the target pen tail module; wherein, the second message carries configuration parameters and is used for the target pen tail module to perform working configuration.
[0122] S907, a notification message carrying the pen tail type is sent to the touch device associated with the active pen. This notification message instructs the touch device to switch operating modes based on the pen tail type.
[0123] In this embodiment, when the controller detects that the target pen tail module is successfully connected to the pen body, it determines the pen tail type of the target pen tail module; wherein, the target pen tail module is any one of at least two pen tail modules; according to the pen tail type, the controller obtains the configuration parameters of the target pen tail module; and sends the configuration parameters to the target pen tail module; wherein, the configuration parameters are used for the target pen tail module to perform working configuration. The active pen in this application includes multiple pen tail modules. Since each pen tail module is detachably connected to the pen body, users can flexibly replace different pen tail modules according to their own needs, which not only satisfies the user's flexible selection of various functions of the active pen, but also reduces the user's cost of using various functions of the active pen, as well as the manufacturer's development cost.
[0124] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0125] Based on the same inventive concept, this application also provides an active pen configuration device for implementing the active pen configuration method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more active pen configuration device embodiments provided below can be found in the limitations of the active pen configuration method described above, and will not be repeated here.
[0126] In one embodiment, such as Figure 10 As shown, an active pen configuration device 1 is provided, including: a determining module 10, an acquiring module 20, and a sending module 30, wherein:
[0127] The determining module 10 is used to determine the pen tail type of the target pen tail module when the target pen tail module is successfully connected to the pen body of the active pen; wherein the target pen tail module is any one of at least two pen tail modules; at least two pen tail modules are detachably connected to the pen body.
[0128] Module 20 is used to obtain the configuration parameters of the target pen tail module according to the pen tail type;
[0129] The sending module 30 is used to send configuration parameters to the target pen tail module; wherein, the configuration parameters are used for the target pen tail module to perform working configuration.
[0130] The active pen configuration device in this embodiment determines the pen tail type of the target pen tail module when it detects that the target pen tail module has successfully connected to the pen body. The target pen tail module is any one of at least two pen tail modules. Based on the pen tail type, it obtains the configuration parameters of the target pen tail module and sends these parameters to the target pen tail module. These configuration parameters are used for the target pen tail module to perform operational configuration. The active pen in this application includes multiple pen tail modules. Since each pen tail module is detachably connected to the pen body, users can flexibly replace different pen tail modules according to their needs. This satisfies users' flexible selection of various functions of the active pen while reducing the user's cost of using the active pen's functions and the manufacturer's development cost.
[0131] In one embodiment, at least two pen tail modules include an erasing module, a camera module, a color picking module, and a voice module; different pen tail modules correspond to different pen tail types.
[0132] In one embodiment, each pen tail module is provided with a target component, and the pen body is provided with a detection unit for detecting the target component. The detection unit is connected to the controller. Based on this, the determination module is further specifically used for:
[0133] Receive detection information about the target component detected by the detection unit; and
[0134] Based on the detection information, determine the connection status between the target pen tail module and the pen body.
[0135] In one embodiment, the detection unit is a Hall sensor; the target component is a Hall magnet.
[0136] In one embodiment, the determining module is further specifically used for:
[0137] Receive the first message sent by the target pen tail module;
[0138] Based on the content of the field corresponding to the module identifier field in the first message, determine the pen tail type of the target pen tail module.
[0139] In one embodiment, the sending module is further specifically used for:
[0140] Send a second message to the target pen tail module; the second message carries configuration parameters.
[0141] In one embodiment, the determining module is further specifically used for:
[0142] Based on the pen tail type, read the configuration parameters associated with the pen tail type from the pen body's memory; and
[0143] Send a parameter acquisition message carrying the pen tail type to the touch device associated with the active pen, and obtain the configuration parameters of the target pen tail module fed back by the touch device based on the parameter acquisition message.
[0144] In one embodiment, an active pen configuration device 1 further includes:
[0145] The sending module is used to send an indication message carrying the pen tail type to the touch device associated with the active pen; wherein the indication message is used to instruct the touch device to switch the working mode based on the pen tail type.
[0146] Each module in the aforementioned active pen configuration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0147] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0148] If the target pen tail module is successfully connected to the pen body, determine the pen tail type of the target pen tail module; wherein, the target pen tail module is any one of at least two pen tail modules.
[0149] Based on the pen tail type, obtain the configuration parameters of the target pen tail module; and
[0150] Send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module to configure its operation.
[0151] In one embodiment, when the processor executes the computer program, it also implements the following steps: at least two pen tail modules include an erasing module, a camera module, a color picking module, and a voice module; different pen tail modules correspond to different pen tail types.
[0152] In one embodiment, when the processor executes the computer program, it further implements the following steps: each pen tail module is provided with a target component, and the pen body is provided with a detection unit for detecting the target component. The detection unit is connected to a controller, and the controller receives detection information for the target component detected by the detection unit; and
[0153] Based on the detection information, determine the connection status between the target pen tail module and the pen body.
[0154] In one embodiment, when the processor executes the computer program, it further implements the following steps: the detection unit is a Hall sensor; the target component is a Hall magnet.
[0155] In one embodiment, the processor, while executing the computer program, further performs the following steps: receiving a first message sent by the target pen tail module; and
[0156] Based on the content of the field corresponding to the module identifier field in the first message, determine the pen tail type of the target pen tail module.
[0157] In one embodiment, when the processor executes the computer program, it further performs the following steps: sending a second message to the target pen tail module; wherein the second message carries configuration parameters.
[0158] In one embodiment, when the processor executes the computer program, it further performs the following steps: reading configuration parameters associated with the pen tail type from the pen body's memory, based on the pen tail type; and
[0159] Send a parameter acquisition message carrying the pen tail type to the touch device associated with the active pen, and obtain the configuration parameters of the target pen tail module fed back by the touch device based on the parameter acquisition message.
[0160] In one embodiment, when the processor executes the computer program, it further performs the following steps: sending an indication message carrying a pen tail type to the touch device associated with the active pen; wherein the indication message is used to instruct the touch device to switch operating modes based on the pen tail type.
[0161] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0162] If the target pen tail module is successfully connected to the pen body, determine the pen tail type of the target pen tail module; wherein, the target pen tail module is any one of at least two pen tail modules.
[0163] Based on the pen tail type, obtain the configuration parameters of the target pen tail module; and
[0164] Send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module to configure its operation.
[0165] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: at least two pen tail modules include an erasing module, a camera module, a color picking module, and a voice module; different pen tail modules correspond to different pen tail types.
[0166] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: each pen tail module is provided with a target component, and the pen body is provided with a detection unit for detecting the target component. The detection unit is connected to a controller, and the controller receives detection information for the target component detected by the detection unit; and
[0167] Based on the detection information, determine the connection status between the target pen tail module and the pen body.
[0168] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: the detection unit is a Hall sensor; the target component is a Hall magnet.
[0169] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving a first message sent by the target pen tail module; and
[0170] Based on the content of the field corresponding to the module identifier field in the first message, determine the pen tail type of the target pen tail module.
[0171] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: sending a second message to the target pen tail module; wherein the second message carries configuration parameters.
[0172] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: reading configuration parameters associated with the pen tail type from the pen body's memory, based on the pen tail type; and
[0173] Send a parameter acquisition message carrying the pen tail type to the touch device associated with the active pen, and obtain the configuration parameters of the target pen tail module fed back by the touch device based on the parameter acquisition message.
[0174] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: sending an indication message carrying a pen tail type to the touch device associated with the active pen; wherein the indication message is used to instruct the touch device to switch operating modes based on the pen tail type.
[0175] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0176] If the target pen tail module is successfully connected to the pen body, determine the pen tail type of the target pen tail module; wherein, the target pen tail module is any one of at least two pen tail modules.
[0177] Based on the pen tail type, obtain the configuration parameters of the target pen tail module; and
[0178] Send configuration parameters to the target pen tail module; the configuration parameters are used by the target pen tail module to configure its operation.
[0179] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: at least two pen tail modules include an erasing module, a camera module, a color picking module, and a voice module; different pen tail modules correspond to different pen tail types.
[0180] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: each pen tail module is provided with a target component, and the pen body is provided with a detection unit for detecting the target component. The detection unit is connected to a controller, and the controller receives detection information for the target component detected by the detection unit; and
[0181] Based on the detection information, determine the connection status between the target pen tail module and the pen body.
[0182] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: the detection unit is a Hall sensor; the target component is a Hall magnet.
[0183] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving a first message sent by the target pen tail module; and
[0184] Based on the content of the field corresponding to the module identifier field in the first message, determine the pen tail type of the target pen tail module.
[0185] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: sending a second message to the target pen tail module; wherein the second message carries configuration parameters.
[0186] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: reading configuration parameters associated with the pen tail type from the pen body's memory, based on the pen tail type; and
[0187] Send a parameter acquisition message carrying the pen tail type to the touch device associated with the active pen, and obtain the configuration parameters of the target pen tail module fed back by the touch device based on the parameter acquisition message.
[0188] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: sending an indication message carrying a pen tail type to the touch device associated with the active pen; wherein the indication message is used to instruct the touch device to switch operating modes based on the pen tail type.
[0189] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0190] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0191] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An active pen, characterized in that, include: Pen body; At least two pen tail modules are detachably connected to the pen body; wherein, at any given time, the pen body is connected to one pen tail module; and A controller configured in the pen body, and the controller is used for: If the target pen tail module is successfully connected to the pen body, the pen tail type of the target pen tail module is determined; wherein, the target pen tail module is any one of at least two pen tail modules. Based on the pen tail type, obtain the configuration parameters of the target pen tail module; and The configuration parameters are sent to the target pen tail module; wherein the configuration parameters are used for the target pen tail module to perform working configuration.
2. The active pen according to claim 1, characterized in that, Each pen tail module is provided with a target component, and the pen body is provided with a detection unit for detecting the target component, the detection unit being connected to the controller; The controller is also used for: Receive detection information for the target component detected by the detection unit; and Based on the detection information, the connection status between the target pen tail module and the pen body is determined.
3. The active pen according to claim 2, characterized in that, The detection unit is a Hall sensor; the target component is a Hall magnet.
4. The active pen according to claim 1, characterized in that, Each of the pen tail modules is equipped with a second power supply component that is compatible with the first power supply component on the pen body; When the target pen tail module is successfully connected to the pen body, the pen body supplies power to the target pen tail module based on the first power supply component and the second power supply component on the target pen tail module.
5. The active pen according to claim 1, characterized in that, The target pen tail module and the pen body are respectively equipped with a pin header female and a pin header male; the target pen tail module and the pen body communicate via wired communication through the pin header female and the pin header male.
6. The active pen according to any one of claims 1-5, characterized in that, When the controller performs the function of determining the pen tail type of the target pen tail module, it is used to: Receive the first message sent by the target pen tail module; and The pen tail type of the target pen tail module is determined based on the field content corresponding to the module identifier field in the first message.
7. The active pen according to any one of claims 1-5, characterized in that, When the controller sends the configuration parameters to the target pen tail module, it is used to: A second message is sent to the target pen tail module; wherein the second message carries the configuration parameters.
8. The active pen according to any one of claims 1-5, characterized in that, When the controller retrieves the configuration parameters of the target pen tail module based on the pen tail type, it is used for any of the following: Based on the pen tail type, read the configuration parameters associated with the pen tail type from the memory of the pen body; Send a parameter acquisition message carrying the pen tail type to the touch device associated with the active pen, and acquire the configuration parameters of the target pen tail module fed back by the touch device based on the parameter acquisition message.
9. The active pen according to any one of claims 1-5, characterized in that, The controller is also used for: Send an indication message carrying the pen tail type to the touch device associated with the active pen; wherein the indication message is used to instruct the touch device to switch working modes based on the pen tail type.
10. A method for configuring an active pen, characterized in that, A controller applied to an active pen, the method comprising: If the target pen tail module is successfully connected to the pen body of the active pen, the pen tail type of the target pen tail module is determined; wherein, the target pen tail module is any one of at least two pen tail modules; the at least two pen tail modules are detachably connected to the pen body. Based on the pen tail type, obtain the configuration parameters of the target pen tail module; The configuration parameters are sent to the target pen tail module; wherein the configuration parameters are used for the target pen tail module to perform working configuration.