Scanning pen control method and device, scanning pen and storage medium
By setting support components on both sides of the scanning port of the scanning pen and determining the control signal based on the pressure value, the problem of low control efficiency of the scanning pen is solved, and more flexible operation is achieved.
Patent Information
- Application Number
- CN202410594115.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2025-11-14
AI Technical Summary
Existing scanning pens are inefficient in controlling the content being scanned, and users cannot flexibly control the display and operation of the scanned content.
A first support component and a second support component are set on both sides of the scanning port of the scanning pen. The corresponding control signal is determined by acquiring the pressure value of these components, thereby realizing different function control.
The scanning pen has improved control flexibility and efficiency, allowing users to perform various functions by pressing the support component, such as controlling scanning and turning pages on the display.
Smart Images

Figure CN120954003A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a control method, device, scanning pen, and storage medium for a scanning pen. Background Technology
[0002] With the development of science and technology, all kinds of terminal devices have appeared in people's daily lives, and people can use terminal devices for learning, entertainment and other activities.
[0003] For example, as a common terminal device, a scanning pen allows users to scan and recognize text or images for learning purposes. Scanning pens come in various structures; some have a recessed scanning nozzle. Users align the nozzle with the text and trigger the scanning process, displaying the scanned and recognized content on the screen. Currently, most scanning pens have limitations in controlling the scanned content, resulting in low user control efficiency. Summary of the Invention
[0004] To address the problems in related technologies, enhance the functionality of scanning pens, and flexibly control the scanned content, this application provides a scanning pen control method, device, scanning pen, and storage medium. The technical solution is as follows:
[0005] In one aspect, this application provides a method for controlling a scanning pen, the scanning pen including a scanning port and a first support component and a second support component disposed on both sides of the scanning port, the first support component and the second support component being used to support the scanning pen during scanning, the method comprising:
[0006] Obtain the target pressure value exerted on the target support component, wherein the target support component includes the first support component and / or the second support component;
[0007] Determine the target control signal corresponding to the target support component at the target pressure value; wherein, different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions;
[0008] Based on the target control signal, the scanning pen is controlled to perform corresponding control functions.
[0009] In one aspect, this application provides a control device for a scanning pen, the scanning pen including a scanning port and a first support component and a second support component disposed on both sides of the scanning port, the first support component and the second support component being used to support the scanning pen during scanning, the device comprising:
[0010] The first acquisition module is used to acquire the target pressure value of the target support component, wherein the target support component includes the first support component and / or the second support component;
[0011] The first determining module is used to determine the target control signal corresponding to the target support component at the target pressure value; wherein, different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions.
[0012] The first control module is used to control the scanning pen to perform corresponding control functions based on the target control signal.
[0013] In another aspect, this application provides a scanning pen that includes a processor and a memory, the memory storing a computer program that is executed by the processor to implement the scanning pen control method as described in one aspect above.
[0014] In another aspect, this application provides a computer-readable storage medium storing a computer program that is executed by a processor to implement the scanning pen control method as described in one aspect above.
[0015] On the other hand, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute a scanning pen control method as described in one aspect above.
[0016] On the other hand, embodiments of this application provide an application publishing platform for publishing computer program products, wherein when the computer program product is run on a computer, the computer executes a scanning pen control method as described in one aspect above.
[0017] The beneficial effects of the technical solutions provided in this application include at least the following:
[0018] The scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire a target pressure value received by a target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled; the user can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0020] Figure 1 This is a schematic diagram illustrating a usage scenario of a scanning pen according to an exemplary embodiment of this application;
[0021] Figure 2 This is a flowchart of a method for controlling a scanning pen according to an exemplary embodiment of this application;
[0022] Figure 3 This is a schematic diagram of the structure of a scanning pen according to an exemplary embodiment of this application;
[0023] Figure 4 This is a flowchart of a method for controlling a scanning pen according to an exemplary embodiment of this application;
[0024] Figure 5 This is a flowchart of a method for controlling a scanning pen according to an exemplary embodiment of this application;
[0025] Figure 6 This is a flowchart of a method for controlling a scanning pen according to an exemplary embodiment of this application;
[0026] Figure 7 This is a flowchart of a method for controlling a scanning pen according to an exemplary embodiment of this application;
[0027] Figure 8 This is a schematic diagram of the circuit structure of a pressure-sensitive element according to an exemplary embodiment of this application;
[0028] Figure 9 This is a schematic diagram of the structure of a control unit according to an exemplary embodiment of this application;
[0029] Figure 10 This is a schematic diagram of the connection structure of the internal circuit of a scanning pen according to an exemplary embodiment of this application;
[0030] Figure 11 This is a structural block diagram of the control device for a scanning pen provided in an exemplary embodiment of this application;
[0031] Figure 12 This is a schematic diagram of another example of the control device for the scanning pen provided in the embodiments of this application. Detailed Implementation
[0032] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0033] In this article, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0034] The solution provided in this application can be used in real-world scenarios where people need to control certain functions when using a scanning pen in their daily lives. To facilitate understanding, the application scenarios involved in the embodiments of this application will be briefly introduced below.
[0035] With the development of science and technology, all kinds of terminal devices have appeared in people's daily lives, and people can use terminal devices for work, entertainment, learning, etc.
[0036] A scanning pen is a common terminal device. Users can typically use a scanning pen to scan and recognize text or images to obtain the desired scan results. Please refer to [link / reference]. Figure 1 This illustration shows a schematic diagram of a usage scenario for a scanning pen according to an exemplary embodiment of this application. Figure 1As shown, the scanning pen 100 includes a scanning port 101 and a scanning body 102. Users can follow... Figure 1 Hold the scanner as shown, align the scanning nozzle with the content to be scanned, and then perform the scan.
[0037] Optionally, to enhance the functionality of the scanning pen, some scanning pens are equipped with a display screen 103 on the scanning body 102. The scanned content can be displayed on the display screen 103. Alternatively, the scanning pen can also establish a communication network connection with other terminal devices to transmit the scanned content to other terminal devices through the communication network connection.
[0038] Optionally, the aforementioned terminal devices may include, but are not limited to, wearable devices (such as smart bracelets, smartwatches, smart glasses, etc.), mobile phones, tablets, laptops, smart glasses, smartwatches, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 players (Moving Picture Experts Group Audio Layer IV), desktop computers, laptops, etc.
[0039] Optionally, a communication network connection is established between the scanning pen and the terminal device. Optionally, this communication network can be a wired network or a wireless network.
[0040] Optionally, the aforementioned wireless or wired network uses standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Networks (VPNs), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.
[0041] Among them, in the above Figure 1 Currently, most scanning pens cannot effectively control the content displayed on the screen. For example, modifying, enlarging, or shrinking the displayed content requires sending the content to a terminal device for user operation. Therefore, most scanning pens still have shortcomings in controlling the scanned content, resulting in low control efficiency for users.
[0042] To address the problems existing in the aforementioned related technologies, enhance the functionality of the scanning pen, and flexibly control the scanned content obtained by the scanning pen, this application provides a scanning pen control method. In a scanning pen including a first support component and a second support component arranged on both sides of the scanning port, the scanning pen can obtain the target pressure value received by the target support component. The user can realize the control function by pressing the target support component, thereby improving the flexibility and efficiency of controlling the scanning pen.
[0043] Please refer to Figure 2 The diagram illustrates a flowchart of a scanning pen control method provided in an exemplary embodiment of this application. This scanning pen control method can be applied to a scanning pen. Figure 2 As shown, the control method for this scanning pen may include the following steps:
[0044] Step 201: Obtain the target pressure value of the target support component, which includes a first support component and / or a second support component.
[0045] Optionally, in this solution, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first support component and the second support component are used to support the scanning pen during scanning. Please refer to [reference needed]. Figure 3 This illustrates a schematic diagram of the structure of a scanning pen according to an exemplary embodiment of this application. Figure 3 As shown, the scanning pen 300 includes a scanning port 301, a first support component 302, and a second support component 303. In use, the user can simultaneously place the first support component 302 and the second support component 303 into contact with paper or an image, and the scanning pen will begin scanning through the scanning port 301.
[0046] Optionally, the above Figure 3 The support component shown is exemplary; in practical applications, this support component, in addition to being... Figure 3 Besides the shape shown, the roller can also be other shapes, such as spheres, cuboids, and sectors. When using the scanning pen, the user uses this support component to make contact with the document to be scanned, and then performs the scan.
[0047] The target support component is the first support component and / or the second support component mentioned above. That is, in this solution, if the first support component is pressed, the scanning pen will acquire the target pressure value of the first support component; if the second support component is pressed, the scanning pen will acquire the target pressure value of the second support component; if both support components are pressed, the scanning pen will acquire the target pressure value of each support component. Optionally, the two support components mentioned above are exemplary. In actual applications, more support components may be set. The target support component in this solution can be one or a combination of more of them; this solution is not limited in this respect.
[0048] Step 202: Determine the target control signal corresponding to the target support component at the target pressure value; wherein, different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions.
[0049] Optionally, the scanning pen determines the corresponding target control signal based on the target support component being subjected to a target pressure value. Different control signals can be pre-set in the scanning pen for different support components under different pressure values. When a support component is pressed, the scanning pen can obtain the corresponding target pressure value for that component, thereby determining the corresponding target control signal and controlling the scanning pen to perform different functions.
[0050] For example, when the first support component is under the first pressure value, the corresponding target control signal is the first control signal. If the user only triggers the first support component and presses the first support component so that the scanning pen obtains the target pressure value, the corresponding first control signal can be determined in this step, and the first control signal can be used to control the scanning pen to achieve the corresponding function.
[0051] Step 203: Based on the target control signal, control the scanning pen to perform the corresponding control function.
[0052] Optionally, the scanning pen controls itself to perform corresponding control functions based on a defined target control signal. Typically, the scanning pen may contain a processor that receives a pressure signal when the target support component of the scanning port is pressed, thereby obtaining the corresponding target pressure value and determining the corresponding target control signal, and controlling the scanning pen based on the target control signal.
[0053] Optionally, the control function can be one of the following: controlling the extension and retraction of the scanning pen, controlling the audio playback inside the scanning pen, or controlling the display screen of the scanning pen. Alternatively, developers can pre-set corresponding trigger conditions for each function during development. After obtaining the target pressure value, they can check the currently met trigger conditions to determine the corresponding target control signal and implement the corresponding control function. These functions are just examples; in actual applications, other functions required by the user can also be used, which will not be elaborated here.
[0054] In summary, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire the target pressure value received by the target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value of the target support component is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled. Users can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen.
[0055] Below, taking the example of a scanner with a pre-defined first mapping relationship, we will discuss the above... Figure 2The method embodiments shown are illustrated with examples. Please refer to them. Figure 4 The diagram illustrates a flowchart of a scanning pen control method provided in an exemplary embodiment of this application. This scanning pen control method can be applied to a scanning pen. Figure 4 As shown, the control method for this scanning pen may include the following steps:
[0056] Step 401: Obtain the target pressure value of the target support component, which includes a first support component and / or a second support component.
[0057] Optionally, the target pressure value obtained by the scanning pen from the target support component can be referenced as described above. Figure 3 The description will not be repeated here.
[0058] In one possible implementation, the scanning pen can transmit an electrical signal when a target support component is pressed via a pressure-sensitive element. The processor in the scanning pen then obtains the corresponding target pressure value based on this electrical signal. For example, a first support component is connected to a first pressure-sensitive element, and a second support component is connected to a second pressure-sensitive element. When the first support component is pressed, the electrical signal generated by the press is transmitted through the first pressure-sensitive element; when the second support component is pressed, the electrical signal generated by the press is transmitted through the second pressure-sensitive element. That is, when the target support component is pressed, the target press signal output by the target pressure-sensitive element is obtained, and based on the target press signal, the target pressure value pressed on the target support component is obtained. The target pressure-sensitive element is the pressure-sensitive element connected to the target support component.
[0059] Optionally, the first and second pressure-sensitive elements mentioned above can be designed based on pressure sensors, so that when the user presses a certain support component, the scanning pen receives an electrical signal generated by the pressure-sensitive element. Of course, other types of sensors can also be used in practical applications, such as light sensors, ultrasonic sensors, etc. By detecting that a certain support component is pressed through different sensors, the scanning pen can obtain the corresponding target pressure value.
[0060] Step 402: Based on the first mapping relationship between the preset support component, the first preset pressure value, and the preset control signal, determine the target control signal corresponding to the target support component at the target pressure value.
[0061] Optionally, after the scanning pen obtains the target pressure value, it can determine the target control signal corresponding to the target support component at the target pressure value based on a first mapping relationship between the preset support component, the first preset pressure value, and the preset control signal. The first mapping relationship is preset in the scanning pen; please refer to Table 1, which shows a mapping relationship table between the preset support component, the first preset pressure value, and the preset control signal according to an exemplary embodiment of this application.
[0062]
[0063]
[0064] Table 1
[0065] As shown in Table 1 above, it contains preset control signals for each support component under different pressure values. For example, the target support component obtained above is the first support component, the target pressure value is pressure value two, and by referring to Table 1 above, the target control signal can be found to be the second control signal.
[0066] Step 403: Based on the target control signal, control the scanning pen to perform the corresponding control function.
[0067] Optionally, after determining the target control signal, the scanning pen can respond to the target control signal and execute the corresponding control function. This process can be referred to the description in step 303 above, and will not be repeated here.
[0068] In summary, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire the target pressure value received by the target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value of the target support component is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled. Users can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen.
[0069] In one possible implementation, the scanning pen can store multiple mapping relationships. After acquiring the target pressure value, the corresponding mapping relationship is determined based on the target support component being pressed. Please refer to [reference needed]. Figure 5 The diagram illustrates a flowchart of a scanning pen control method provided in an exemplary embodiment of this application. This scanning pen control method can be applied to a scanning pen. Figure 5 As shown, the control method for this scanning pen may include the following steps:
[0070] Step 501: Obtain the target pressure value of the target support component, which includes a first support component and / or a second support component.
[0071] Optionally, the target pressure value obtained by the scanning pen from the target support component can be referenced as described above. Figure 3 The description of that will not be repeated here.
[0072] Step 502: Obtain the target mapping relationship corresponding to the target support component.
[0073] The scanning pen stores a second mapping relationship corresponding to the first support component, a third mapping relationship corresponding to the second support component, and a fourth mapping relationship corresponding to both the first and second support components. The target mapping relationship is one of the second, third, and fourth mapping relationships.
[0074] In other words, in this solution, the scanning pen sets different mapping relationships for different target support components. After obtaining the target support component, the corresponding target mapping relationship can be obtained based on that target support component. For example, the scanning pen has the above three mapping relationships pre-set, namely the second mapping relationship, the third mapping relationship, and the fourth mapping relationship.
[0075] In one possible implementation, when different support components are pressed, the scanning pen can identify which support component is being pressed and query the corresponding target mapping relationship based on the label representing that support component. For example, 1 represents the first support component being pressed, 2 represents the second support component being pressed, and 3 represents both the first and second support components being pressed. If the user only presses the first support component, the label is 1, the scanning pen obtains the label 1, and queries the second mapping relationship corresponding to the first support component based on 1.
[0076] Please refer to Table 2, which shows a correspondence table between labels and mapping relationships according to an exemplary embodiment of this application.
[0077]
[0078]
[0079] Table 2
[0080] Optionally, the scanning pen can obtain the mapping relationship corresponding to the supporting components, i.e., the determined target mapping relationship, by querying Table 2.
[0081] Step 503: Determine the target control signal from the target mapping relationship based on the target pressure value.
[0082] Optionally, the scanning pen determines the target control signal from the target mapping relationship based on the magnitude of the target pressure value. The various mapping relationships mentioned above include correspondences between different target pressure values and target control signals. Taking the second mapping relationship as an example, please refer to Table 3, which shows a correspondence table between target pressure values and target control signals according to an exemplary embodiment of this application.
[0083] Target pressure value Target control signal Pressure value one First control signal Pressure value two Second control signal Pressure value three Third control signal …… ……
[0084] Table 3
[0085] In other words, the scanning pen can contain different support components and target control signals set to control different pressure values. The third and fourth mapping relationships are similar and will not be elaborated here.
[0086] Step 504: Based on the target control signal, control the scanning pen to perform the corresponding control function.
[0087] Optionally, after determining the target control signal, the scanning pen can respond to the target control signal and execute the corresponding control function. This process can be referred to the description in step 303 above, and will not be repeated here.
[0088] In summary, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire the target pressure value received by the target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value of the target support component is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled. Users can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen.
[0089] In one possible implementation, the scanning pen can first determine the relationship between the current target pressure value and a second preset pressure value. If the target pressure value is greater than or equal to the second preset pressure value, the corresponding target control signal is determined based on a preset fifth mapping relationship. Please refer to [reference needed]. Figure 6 The diagram illustrates a flowchart of a scanning pen control method provided in an exemplary embodiment of this application. This scanning pen control method can be applied to a scanning pen. Figure 6 As shown, the control method for this scanning pen may include the following steps:
[0090] Step 601: Obtain the target pressure value of the target support component, which includes a first support component and / or a second support component.
[0091] Optionally, the target pressure value obtained by the scanning pen from the target support component can be referenced as described above. Figure 3 The descriptions in the embodiments are not repeated here.
[0092] Step 602: Determine whether the target pressure value is greater than or equal to the second preset pressure value.
[0093] In this embodiment, the scanning pen can first detect the relationship between the target pressure value and the second preset pressure value. If the target pressure value is greater than or equal to the second preset pressure value, step 603 is executed. If the target pressure value is less than the second preset pressure value, the scanning pen can not respond at all, which is equivalent to preventing accidental touches.
[0094] For example, the second preset pressure value is set by the developers in the scanning pen. This pressure value is relatively small. If the user triggers the target support component, the scanning pen obtains the corresponding target pressure value. If the target pressure value is less than the second preset pressure value, it means that the user may have accidentally touched it. The scanning pen does not respond. If the target pressure value is greater than or equal to the second preset pressure value, the subsequent steps are executed.
[0095] Step 603: When the target pressure value is greater than or equal to the second preset pressure value, determine the target control signal corresponding to the target support component at the target pressure value according to the fifth mapping relationship between the preset support component and the preset control signal.
[0096] Optionally, the scanning pen can determine the target control signal corresponding to the target support component at the target pressure value through a preset fifth mapping relationship. Please refer to Table 4, which shows a mapping relationship table between a preset support component and a preset control signal according to an exemplary embodiment of this application.
[0097] Table 4
[0098] As shown in Table 4, the table contains the preset mapping relationships between each support component and the preset control signal. If the target pressure value is the value when the first support component is pressed, after determining in step 602 that it is greater than the second preset pressure value, Table 4 can be consulted to obtain the corresponding target control signal, which is the first control signal. Of course, in practical applications, more control signals can be set based on more functions, which will not be elaborated here.
[0099] Step 604: Based on the target control signal, control the scanning pen to perform the corresponding control function.
[0100] Optionally, after determining the target control signal, the scanning pen can respond to the target control signal and execute the corresponding control function. This process can be referred to the description in step 303 above, and will not be repeated here.
[0101] It should be noted that the above Figures 4 to 6 The solutions can be combined or independent of each other. Developers can set different methods according to the actual processing performance of the scanning pen to determine the corresponding target control signals.
[0102] In one possible implementation, the scanning pen further includes a display element containing display content, and the display element has a page-turning function. Taking the page-turning function as an example, the above embodiments will be described with illustration. When the target support component is a first support component and a second support component, the target control signal is a scanning control signal, which controls the scanning function of the scanning pen; when the target support component is a first support component, the target control signal is a first target signal, which controls the display content to turn to the previous page; when the target support component is a second support component, the target control signal is a second target signal, which controls the display content to turn to the next page.
[0103] In other words, if the extended function is the page-turning function of the display element, when the user presses the first support component, the scanning pen ultimately determines the first target control signal, thereby controlling the display content to turn to the previous page. If the user presses the second support component, the scanning pen ultimately determines the second target control signal, thereby controlling the display content to turn to the next page. If the user presses both the first and second support components simultaneously, the scanning pen ultimately determines the scan control signal, thereby controlling the scanning pen to perform scanning and operate normally.
[0104] For example, in the fifth mapping relationship mentioned above, the first control signal is the scanning control signal, the second control signal is the first target signal, and the third control signal is the second target signal, thereby realizing the page-turning function of the display element when the user presses and triggers one of the support components.
[0105] In summary, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire the target pressure value received by the target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value of the target support component is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled. Users can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen.
[0106] In one possible implementation, the scanning pen provided by this solution also includes a timing element, which can be used to obtain the moment when the target pressure sensing element outputs the target pressing signal, thereby realizing the establishment of corresponding target control signals for various pressing methods such as double-click and long press, and improving the flexibility of the scanning pen's function control.
[0107] Please refer to Figure 7 The diagram illustrates a flowchart of a scanning pen control method provided in an exemplary embodiment of this application. This scanning pen control method can be applied to a scanning pen. Figure 7 As shown, the control method for this scanning pen may include the following steps:
[0108] Step 701: Obtain multiple target pressure values of multiple press signals corresponding to the same target pressure sensing element within a preset time period, wherein the times of the multiple press signals are different.
[0109] Taking the scanning pen in the above embodiment as an example, the target support component includes a first support component and / or a second support component. In this embodiment, the scanning pen also includes a timing element for acquiring the moment when the target pressure-sensitive element outputs a target pressing signal. Therefore, the processor can execute step 702 and subsequent steps based on the moment acquired by the timing element.
[0110] For example, if the preset duration is set to 1 second, and the user presses the target support component multiple times consecutively, the scanning pen will acquire the corresponding target pressure value for each press. The scanning pen can acquire the target pressure value received by the target support component as described above. Figure 3The description in the embodiments will not be repeated here. After the user presses the target support component multiple times, the scanning pen will acquire multiple target pressure values and determine the target pressure values within a preset time period based on the time recorded by the timing element.
[0111] It should be noted that the preset duration can be counted from the first press of the target support component. For example, if the user presses the first support component three times in a row within 1 second, and the time from the first press of the target support component to the last press of the target support component does not exceed 1 second, then the target pressure value corresponding to these three presses will be obtained.
[0112] Step 702: Determine the number of target pressure values that are greater than the third preset pressure value from among multiple target pressure values.
[0113] Optionally, the scanning pen can determine the number of values greater than a third preset pressure value from the multiple target pressure values acquired, thereby eliminating accidental touches. For example, the third preset pressure value can be the same as the second preset pressure value mentioned above, and can be preset in the scanning pen by the developers; they can be the same or different.
[0114] Continuing with the example of a user pressing three times consecutively within one second, the scanning pen can acquire target pressure values of target pressure value one, target pressure value two, and target pressure value three. It then detects these three target pressure values using a third preset pressure value, determining the number of values greater than the third preset pressure value. For instance, if target pressure value two is less than the third preset pressure value, but target pressure values one and three are both greater than the third preset pressure value, the determined number would be two. In other words, if a user presses a support component multiple times consecutively, the scanning pen can accurately determine the number of presses within a preset time period and execute subsequent steps based on this count, achieving accurate functional control.
[0115] Step 703: Determine the target control signal based on the sixth mapping relationship between the preset support components, the preset quantity, and the preset control signal.
[0116] Optionally, the sixth mapping relationship can also be preset by the developers based on the required functions and quantities. For example, please refer to Table 5, which shows a mapping relationship table between preset support components, preset quantities, and preset control signals according to an exemplary embodiment of this application.
[0117] Support components Preset quantity Preset control signal First support component 1 time First control signal First support component 2 times Second control signal First support component 3 times or more Third control signal Second support component 1 time Fourth control signal Second support component 2 times Fifth control signal Second support component 3 times or more Sixth control signal …… …… ……
[0118] Table 5
[0119] As shown in Table 5 above, it contains preset control signals for each support component under different numbers of presses. For example, the target support component obtained above is the first support component, the preset number of presses is 2, and by referring to Table 5 above, the target control signal can be found to be the second control signal.
[0120] Step 704: Based on the target control signal, control the scanning pen to perform the corresponding control function.
[0121] Optionally, after determining the target control signal, the scanning pen can respond to the target control signal and execute the corresponding control function. This process can be referred to the description in step 303 above, and will not be repeated here.
[0122] Through the above scheme, a sixth mapping relationship is established for user-triggered presses on the first and / or second support components. The scanning pen can use this sixth mapping relationship to obtain corresponding target control signals when the user presses a support component multiple times, thereby executing the corresponding control functions. For example, double-clicking the first support component could correspond to a screenshot of the content displayed on the scanning pen's screen. Double-clicking the second support component could correspond to sending the content displayed on the scanning pen's screen to a terminal device, etc. In practical applications, the design can be flexible based on the desired functionality; this is not limited here.
[0123] In one possible implementation, for the aforementioned scanning pen containing timing elements, the timing elements can also acquire the duration of the signal generated by a single press. There can be multiple timing elements, some specifically for recording the timing, and others for recording the duration of a single press. For example, a press of more than one second is considered a long press, while a press of less than one second is a normal press trigger. The scanning pen in this solution can also record the duration of the electrical signal generated by pressing the first or second support component based on the timing elements. If it exceeds one second, the corresponding target control signal is one type of control signal; if it does not exceed one second, the corresponding target control signal is another type of control signal.
[0124] Taking a pre-established mapping relationship as an example, the scanning pen can also be configured with a mapping relationship between press duration and preset control signals. The scanning pen can obtain the duration corresponding to the target pressure value generated by this press and obtain the corresponding control signal by querying the mapping relationship. That is, different control functions can be triggered for long press and normal press.
[0125] In summary, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire the target pressure value received by the target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value of the target support component is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled. Users can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen.
[0126] The following describes the internal circuit connection of the scanning pen, taking the example of the first support component connected to the first pressure-sensitive element, the second support component connected to the second pressure-sensitive element, and the first and second pressure-sensitive elements being resistive pressure sensors.
[0127] Please refer to Figure 8 This illustrates a circuit structure diagram of a pressure-sensitive element according to an exemplary embodiment of this application. Figure 8 As shown, the pressure-sensitive element 800 includes a first pressure-sensitive resistor 801, a second pressure-sensitive resistor 802, a third pressure-sensitive resistor 803, and a fourth pressure-sensitive resistor 804. There is a positive output terminal 805 and a negative output terminal 806.
[0128] In this circuit, the first pressure-sensitive resistor 801 and the second pressure-sensitive resistor 802 form a voltage divider circuit, and the third pressure-sensitive resistor 803 and the fourth pressure-sensitive resistor 804 form another voltage divider circuit. The resistances of the first and fourth pressure-sensitive resistors 801 and 804 are located at the strain notch, while the second and third pressure-sensitive resistors 802 and 803 are located at the other end. When the resistances of the first and fourth pressure-sensitive resistors 801 and 804 increase, the S_N0 voltage output from the negative output terminal 806 decreases, and the S_P0 voltage output from the positive output terminal 805 increases. Conversely, when the resistances of the first and fourth pressure-sensitive resistors 801 and 804 decrease, the S_N0 voltage output from the negative output terminal 806 increases, and the S_P0 voltage output from the positive output terminal 805 decreases. S_P0 and S_N0 form a pseudo-differential signal, which the control unit can use to calculate the corresponding target pressure value. The working principle and circuit structure of the other two pressure-sensitive elements can be the same and will not be described further here.
[0129] That is, the first and second pressure-sensitive resistors are connected in series to form a first series circuit, and the third and fourth pressure-sensitive resistors are connected in series to form a second series circuit; the first and second series circuits are connected in parallel. In the first series circuit, the connection between the first and second pressure-sensitive resistors is connected to the positive output terminal; in the second series circuit, the connection between the third and fourth pressure-sensitive resistors is connected to the negative output terminal. In the above-mentioned scanning pen, the first and second pressure-sensitive elements are connected to the control unit through their respective positive and negative output terminals, respectively. The target pressure signal is a combined signal output from the positive and negative output terminals of the target pressure-sensitive element. In other words... Figure 8 The signals S_P0 output from the positive output terminal 805 and S_N0 output from the negative output terminal 806 are combined to form the target pressure signal received by the control unit when the pressure-sensitive element is pressed. The control unit can be the processor in the scanning pen.
[0130] Please refer to Figure 9 This illustrates a schematic diagram of a control unit according to an exemplary embodiment of this application. Figure 9 As shown, the control unit 900 includes various input pins and output pins, where different output pins can output different control signals to achieve different control functions.
[0131] Optionally, in this solution, the following three functions will still be used as examples: Function 1: When the first support component and the second support component are pressed simultaneously, a scanning function needs to be executed. Function 2: If the user only presses the first support component, a function needs to be executed to control the content displayed on the screen to flip to the previous page. Function 3: If the user only presses the second support component, a function needs to be executed to control the content displayed on the screen to flip to the next page.
[0132] In the above Figure 1 In the structure of the scanning pen shown, to improve the control of more functions, these three functions can be achieved through the above... Figure 9 The control unit implements this. For example, the VS_POWER pin in the aforementioned control unit 900 serves as the aforementioned... Figure 8The power input for the pressure-sensitive element is connected to the positive and negative output terminals of the two supporting components via four pins: D1, G1, F1, and E1. For example, the first pressure-sensitive element connected to the first supporting component outputs a signal of S_P0 through its positive output terminal and S_N0 through its negative output terminal. Pin G1 is connected to the positive output terminal for S_P0, and pin D1 is connected to the negative output terminal for S_N0. The second pressure-sensitive element connected to the second supporting component outputs a signal of S_P1 through its positive output terminal and S_N1 through its negative output terminal. Pin E1 is connected to the positive output terminal for S_P1, and pin F1 is connected to the negative output terminal for S_N1.
[0133] The signal output from pin B6 is used to control the page-turning function of the displayed content on the screen, the signal output from pin B5 is used to control the page-turning function of the displayed content on the screen, and the signal output from pin G5 is used to control the scanning function. Different pins can perform different functions, and the specific settings can be preset by the developers. For example, by setting the above mapping relationships, after the control unit receives the press signal and obtains the target pressure value, it determines the control signal to be output based on the various mapping relationships, and controls the corresponding output pin to output the control signal, thereby realizing the setting of various functions. This embodiment also uses the above three functions as examples, but in actual applications, there can be many other types of functions, which are not limited here.
[0134] With the above pin configuration, when the first support component and / or the second support component is pressed, it is equivalent to pressing the target support component. The control unit can determine the target pin corresponding to the target support component at the target pressure value based on the received target pressure value. If the first and second support components are pressed simultaneously, the control unit determines that the target control signal is output through pin G5 based on the target pressure value and the corresponding mapping relationship, and outputs the corresponding signal through pin G5 to achieve the scanning function control. If the first support component is pressed, the control unit determines that the target control signal is output through pin B6 based on the target pressure value and the corresponding mapping relationship, and outputs the corresponding signal through pin B6 to achieve the forward page turning function control. If the first support component is pressed, the control unit determines that the target control signal is output through pin B5 based on the target pressure value and the corresponding mapping relationship, and outputs the corresponding signal through pin B5 to achieve the backward page turning function control.
[0135] Optionally, the above Figure 9The control unit shown can be a microcontroller unit (MCU). This solution can use a 32-bit MCU with integrated high-precision measurement AFE for signal processing and computation. The MCU can include an analog multiplexer (MUX), a programmable gain amplifier (PGA), a 16-bit SAR ADC, embedded 64KB of program (FLASH), including a 60KB user program memory (Application Program ROM, APROM), configurable data FLASH size (shared with the program FLASH), a 4KB load ROM (LDROM), and 12KB of static random access memory (SRAM), with a maximum operating frequency of 24MHz. It includes one I2C bus (Inter-Integrated Circuit) module, one Universal Asynchronous Receiver / Transmitter (UART) module, three timer modules, and two watchdog timer modules, etc.
[0136] In one possible implementation, the scanning pen further includes peripheral circuitry; the peripheral circuitry includes a first filtering unit and a second filtering unit; the first pressure-sensitive element is electrically connected to the input of the first filtering unit via its positive and negative output terminals, and the output of the first filtering unit is electrically connected to the control unit; the second pressure-sensitive element is electrically connected to the input of the second filtering unit via its positive and negative output terminals, and the output of the second filtering unit is electrically connected to the control unit; the first filtering unit is used to filter the target pressure signal output by the first pressure-sensitive element, and the second filtering unit is used to filter the target pressure signal output by the second pressure-sensitive element.
[0137] In one possible implementation, the peripheral circuit elements further include: a protection unit; a first pressure-sensitive element electrically connected to the input of the protection unit via its positive and negative output terminals, and the output of the protection unit electrically connected to the input of a first filter unit; a second pressure-sensitive element electrically connected to the input of the protection unit via its positive and negative output terminals, and the output of the protection unit electrically connected to the input of a second filter unit; the protection unit is used to reduce the transient pulse interference generated by the first pressure-sensitive element when it is pressed, and / or, reduce the transient pulse interference generated by the second pressure-sensitive element when it is pressed.
[0138] Optionally, consider two pressure-sensitive elements connected to a control unit via two support assemblies as an example. Please refer to [reference needed]. Figure 10This illustrates a schematic diagram of the connection structure of the internal circuitry of a scanning pen according to an exemplary embodiment of this application. Figure 10 As shown, the circuit includes a first pressure-sensitive element 1001, a second pressure-sensitive element 1002, peripheral circuit elements 1003, a first filter unit 1004, a second filter unit 1005, a protection unit 1006, and an MCU 1007. The MCU 1007 is connected to the external circuit via VDD and GND to ensure normal operation. The first pressure-sensitive element 1001 is electrically connected to the input of the protection unit 1006 through its positive and negative output terminals. The output of the protection unit 1006 is electrically connected to the input of the first filter unit 1004, and the output of the first filter unit 1004 is electrically connected to the control unit MCU 1007. The protection unit 1006 is exemplified by a resistor, specifically an R9-12 resistor. When there is a momentary pulse interference at the pressure-sensitive element (pressure sensor), the resistor can reduce the energy, thus protecting the downstream device. In practical applications, the protection unit can be omitted, or it can be replaced with other circuit elements to achieve the function of reducing momentary pulse interference.
[0139] Correspondingly, the second pressure-sensitive element 1002 is electrically connected to the input terminal of the protection unit 1006 through its positive and negative output terminals. The output terminal of the protection unit 1006 is electrically connected to the input terminal of the second filter unit 1005, and the output terminal of the second filter unit 1005 is electrically connected to the control unit MCU 1007. The first and second filter units mentioned above are also exemplified by capacitors. Figure 10 Capacitors C1-C6 in the filter unit have a filtering function, removing high-frequency jitter. For example, capacitors C1, C2, and C5 in the first filter unit can filter the high frequencies of the combined signal output by the first pressure-sensitive element, and capacitors C3, C4, and C6 in the second filter unit can filter the high frequencies of the combined signal output by the second pressure-sensitive element.
[0140] Optionally, the control unit also includes a reset pin; the control unit is further configured to, in the event of an abnormality in communication between the first pressure-sensitive element, the second pressure-sensitive element, and the control unit, output a reset level through the reset pin to trigger a reset of the first and second pressure-sensitive elements. In the above... Figure 10 In the process, the reset pin is G4. If there is an abnormality in the communication between the first pressure-sensitive element, the second pressure-sensitive element and the control unit, the reset pin of the scanning pen can be triggered, and the level signal of the scanning pen pin G4 can be controlled to be low, thereby resetting.
[0141] Optionally, if the MCU in the scanning pen communicates with other processors, it can connect and interact with them via an Inter-Integrated Circuit (IIC) interface, i.e., pins D5 and G6 connect to other processors. The reset process described above can be controlled by other processors. Besides monitoring for abnormal communication between the first and second pressure-sensitive elements and the control unit MCU, it can also monitor for MCU malfunctions or malfunctions between the MCU and other processors. A low-level reset pin can trigger a reset.
[0142] Through the above Figure 10 The circuit structure shown in the scanning pen utilizes pressure-sensitive elements connected to the two support components. These elements, processed by the MCU, simulate button signals to achieve the following functions: Function 1: When both the first and second support components are pressed simultaneously, the scanning function is executed. Function 2: If the user presses only the first support component, the display screen will scroll to the next page. Function 3: If the user presses only the second support component, the display screen will scroll to the next page.
[0143] In the MCU, this is reflected in the signals output through pins B6, B5, and G5. Normally, these three pins are high. When the first support component and / or the second support component is pressed, one of these pins outputs a low level, thus achieving the corresponding function. Specifically, LEFT_KEY_OUT corresponds to pressing the first support component, enabling the scanner to flip forward; RIGHT_KEY_OUT corresponds to pressing the second support component, enabling the scanner to flip backward; and AFE_KEY_OUT corresponds to pressing both support components simultaneously, enabling the scanner to perform a scan.
[0144] Optionally, when the MCU communicates with other controllers, such as when another controller acts as the main controller of the scanning pen, the MCU operates with low power and can wake up the main controller when it is in standby or powered off. The aforementioned main controller operation using the IIC interface can also transmit button events, but the main controller's IIC needs to remain active in standby mode, increasing power consumption; the IIC cannot wake up the main controller when it is powered off.
[0145] It should be noted that the above Figure 10 The connection structure shown is exemplary. In actual applications, different mapping relationships can be established based on different functions to control different pin output signals. This can be completely controlled by the developers. This solution does not limit this.
[0146] In summary, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire the target pressure value received by the target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value of the target support component is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled. Users can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen.
[0147] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0148] Please refer to Figure 11 This document illustrates a structural block diagram of a control device for a scanning pen provided in an exemplary embodiment of this application. The control device 1100 can be used with a scanning pen, which includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components are used to support the scanning pen during scanning. The scanning pen can perform all or part of the steps performed by the scanning pen in the methods provided in the above-described method embodiments. The control device 1100 includes:
[0149] The first acquisition module 1101 is used to acquire the target pressure value of the target support component, wherein the target support component includes the first support component and / or the second support component;
[0150] The first determining module 1102 is used to determine the target control signal corresponding to the target support component at the target pressure value; wherein, different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions.
[0151] The first control module 1103 is used to control the scanning pen to perform corresponding control functions based on the target control signal.
[0152] In summary, the scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first and second support components support the scanning pen during scanning. The scanning pen can acquire the target pressure value received by the target support component, which includes the first support component and / or the second support component. A target control signal corresponding to the target pressure value of the target support component is determined. Different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. Based on the target control signal, the scanning pen is controlled to execute the corresponding control function. The scanning pen of this application can acquire the target pressure value received by the first support component and / or the second support component on both sides of the scanning port and determine the target control signal corresponding to the target pressure value, thereby controlling the scanning pen to execute the corresponding control function. This expands the way the scanning pen is controlled. Users can press the target support component by pressing the main control, thereby causing the scanning pen to execute the corresponding control function, improving the flexibility and efficiency of controlling the scanning pen.
[0153] Optionally, the first determining module 1102 is further configured to:
[0154] Based on the first mapping relationship between the preset support component, the first preset pressure value, and the preset control signal, the target control signal corresponding to the target support component at the target pressure value is determined.
[0155] Optionally, the first determining module 1102 is further configured to:
[0156] The target mapping relationship corresponding to the target support component is obtained. The scanning pen stores a second mapping relationship corresponding to the first support component, a third mapping relationship corresponding to the second support component, and a fourth mapping relationship corresponding to the first support component and the second support component. The target mapping relationship is one of the second mapping relationship, the third mapping relationship, and the fourth mapping relationship.
[0157] The target control signal is determined from the target mapping relationship based on the target pressure value.
[0158] Optionally, the first determining module 1102 is further configured to:
[0159] Determine whether the target pressure value is greater than or equal to the second preset pressure value;
[0160] When the target pressure value is greater than or equal to the second preset pressure value, the target control signal corresponding to the target support component at the target pressure value is determined according to the fifth mapping relationship between the preset support component and the preset control signal.
[0161] Optionally, the scanning pen further includes a display element containing display content; when the target support component is the first support component and the second support component, the target control signal is a scanning control signal, which is used to control the scanning function of the scanning pen;
[0162] When the target support component is the first support component, the target control signal is the first target signal, which controls the display content to flip to the previous page.
[0163] When the target support component is the second support component, the target control signal is the second target signal, which controls the display content to turn to the next page.
[0164] Optionally, the first support assembly is connected to a first pressure-sensitive element, the second support assembly is connected to a second pressure-sensitive element, and the first acquisition module 1101 is further configured to:
[0165] When the target support component is pressed, the target pressing signal output by the target pressure sensing element is obtained, and the target pressure value pressed on the target support component is obtained based on the target pressing signal. The target pressure sensing element is a pressure sensing element connected to the target support component.
[0166] Optionally, the scanning pen further includes a timing element, which is used to acquire the moment when the target pressure-sensitive element outputs the target press signal; the first acquisition module 1101 is further used to:
[0167] Within a preset time period, acquire multiple target pressure values of multiple press signals corresponding to the same target pressure-sensitive element, wherein the times of the multiple press signals are different;
[0168] The first determining module 1102 is further configured to:
[0169] Determine the number of target pressure values that are greater than the third preset pressure value from among multiple target pressure values;
[0170] The target control signal is determined based on the sixth mapping relationship between the preset support components, the preset quantity, and the preset control signal.
[0171] Optionally, either the first pressure-sensitive element or the second pressure-sensitive element includes a positive output terminal and a negative output terminal. The first pressure-sensitive element and the second pressure-sensitive element are respectively connected to the control unit through their respective positive output terminals and negative output terminals. The target pressing signal is a combined signal output through the positive output terminal and the negative output terminal of the target pressure-sensitive element.
[0172] Optionally, any one of the first pressure-sensitive element and the second pressure-sensitive element includes a first pressure-sensitive resistor, a second pressure-sensitive resistor, a third pressure-sensitive resistor, and a fourth pressure-sensitive resistor;
[0173] The first pressure-sensitive resistor and the second pressure-sensitive resistor are connected in series to form a first series circuit, and the third pressure-sensitive resistor and the fourth pressure-sensitive resistor are connected in series to form a second series circuit;
[0174] The first series circuit and the second series circuit are connected in parallel. The line connecting the first pressure-sensitive resistor and the second pressure-sensitive resistor in the first series circuit is connected to the positive output terminal. The line connecting the third pressure-sensitive resistor and the fourth pressure-sensitive resistor in the second series circuit is connected to the negative output terminal.
[0175] Optionally, the scanning pen further includes peripheral circuit components; the peripheral circuit components include a first filtering unit and a second filtering unit;
[0176] The first pressure-sensitive element is electrically connected to the input terminal of the first filter unit through its positive and negative output terminals, and the output terminal of the first filter unit is electrically connected to the control unit.
[0177] The second pressure-sensitive element is electrically connected to the input terminal of the second filter unit through its positive and negative output terminals, and the output terminal of the second filter unit is electrically connected to the control unit.
[0178] The first filtering unit is used to filter the target pressing signal output by the first pressure-sensitive element, and the second filtering unit is used to filter the target pressing signal output by the second pressure-sensitive element.
[0179] Optionally, the peripheral circuit elements further include: a protection unit;
[0180] The first pressure-sensitive element is electrically connected to the input terminal of the protection unit through its positive and negative output terminals, and the output terminal of the protection unit is electrically connected to the input terminal of the first filter unit.
[0181] The second pressure-sensitive element is electrically connected to the input terminal of the protection unit through its positive and negative output terminals, and the output terminal of the protection unit is electrically connected to the input terminal of the second filter unit.
[0182] The protection unit is used to reduce the instantaneous pulse interference generated by the first pressure-sensitive element when it is pressed, and / or to reduce the instantaneous pulse interference generated by the second pressure-sensitive element when it is pressed.
[0183] Optionally, the control unit further includes a reset pin;
[0184] The control unit is further configured to, in the event of an abnormality in the communication between the first pressure-sensitive element, the second pressure-sensitive element and the control unit, output a reset level through the reset pin to trigger a reset of the first pressure-sensitive element and the second pressure-sensitive element.
[0185] Please refer to Figure 12 This is a schematic diagram illustrating another example of the control device for a scanning pen provided in this application embodiment. The control device 1200 can be a scanning pen itself, capable of implementing the functions of the method provided in this application embodiment. The control device 1200 can be a chip system. In this application embodiment, the chip system can be composed of chips or may include chips and other discrete devices.
[0186] In terms of hardware implementation, the aforementioned communication module can be a transceiver, which is integrated into the control device 1200 of the scanning pen to form a communication interface 1203.
[0187] The control device 1200 for the scanning pen includes at least one processor 1201, used to implement or support the control device 1200 in implementing the service discovery device function in the method provided in the embodiments of this application. Exemplarily, the processor 1201 can perform steps such as acquiring a target pressure value applied to a target support component; determining a target control signal corresponding to the target support component at the target pressure value; and controlling the scanning pen to perform corresponding control functions based on the target control signal. For details, please refer to the detailed description in the method examples; further elaboration is not provided here.
[0188] The control device 1200 for the scanning pen may further include at least one memory 1202 for storing program instructions and / or data. The memory 1202 is coupled to the processor 1201. The coupling in this embodiment is an indirect coupling or communication connection between devices, units, or modules, and can be electrical, mechanical, or other forms, used for information exchange between devices, units, or modules. The processor 1201 may operate in conjunction with the memory 1202. The processor 1201 may execute program instructions stored in the memory 1202. At least one of the at least one memory may be included in the processor.
[0189] The control device 1200 for the scanning pen may further include a communication interface 1203 for communicating with other devices via a transmission medium, thereby enabling the devices in the control device 1200 for the scanning pen to communicate with other devices. For example, the other device may be a network-side device. The processor 1201 may use the communication interface 1203 to send and receive data. Specifically, the communication interface 1203 may be a transceiver.
[0190] This application embodiment does not limit the specific connection medium between the communication interface 1203, processor 1201, and memory 1202. This application embodiment... Figure 12 The memory 1202, processor 1201, and communication interface 1203 are connected via a bus 1204. Figure 12 The connections between other components are shown in bold lines only and are not intended to be limiting. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, Figure 12 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0191] In the embodiments of this application, the processor 1201 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0192] In this embodiment, the memory 1202 can be non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or it can be volatile memory, such as random-access memory (RAM). Memory is any other medium capable of carrying or storing desired program code in the form of instructions or data structures, and accessible by a computer, but is not limited thereto. The memory in this embodiment can also be a circuit or any other device capable of implementing storage functions, used to store program instructions and / or data.
[0193] Optionally, embodiments of this application also provide a scanning pen, which includes a processor and a memory. The memory stores a computer program, which is executed by the processor to implement all or part of the steps performed by the scanning pen in the control methods of the scanning pen in the various embodiments above.
[0194] Optionally, embodiments of this application also provide a computer-readable medium storing a computer program that is executed by a processor to implement all or part of the steps performed by the scanning pen in the scanning pen control methods of the various embodiments described above.
[0195] Optionally, embodiments of this application also provide a computer program product that, when run on a computer, causes the computer to execute the control method of the scanning pen as described in the various embodiments above, including all or part of the steps performed by the scanning pen.
[0196] Optionally, this application embodiment also provides an application publishing platform for publishing computer program products, wherein when the computer program product is run on a computer, the computer executes the control method of the scanning pen as described in the above embodiments, including all or part of the steps performed by the scanning pen.
[0197] It should be noted that the device provided in the above embodiments is only illustrated by the division of the above functional modules when performing the corresponding control. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0198] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0199] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0200] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for controlling a scanning pen, characterized in that, The scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first support component and the second support component are used to support the scanning pen during scanning. The method includes: Obtain the target pressure value exerted on the target support component, wherein the target support component includes the first support component and / or the second support component; Determine the target control signal corresponding to the target support component at the target pressure value; wherein, different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions; Based on the target control signal, the scanning pen is controlled to perform corresponding control functions.
2. The method according to claim 1, characterized in that, The determination of the target control signal corresponding to the target support component at the target pressure value includes: Based on the first mapping relationship between the preset support component, the first preset pressure value, and the preset control signal, the target control signal corresponding to the target support component at the target pressure value is determined.
3. The method according to claim 1, characterized in that, The determination of the target control signal corresponding to the target support component at the target pressure value includes: The target mapping relationship corresponding to the target support component is obtained. The scanning pen stores a second mapping relationship corresponding to the first support component, a third mapping relationship corresponding to the second support component, and a fourth mapping relationship corresponding to the first support component and the second support component. The target mapping relationship is one of the second mapping relationship, the third mapping relationship, and the fourth mapping relationship. The target control signal is determined from the target mapping relationship based on the target pressure value.
4. The method according to claim 1, characterized in that, The determination of the target control signal corresponding to the target support component at the target pressure value includes: Determine whether the target pressure value is greater than or equal to the second preset pressure value; When the target pressure value is greater than or equal to the second preset pressure value, the target control signal corresponding to the target support component at the target pressure value is determined according to the fifth mapping relationship between the preset support component and the preset control signal.
5. The method according to any one of claims 1 to 4, characterized in that, The scanning pen also includes a display element containing display content; when the target support component is the first support component and the second support component, the target control signal is a scanning control signal, which is used to control the scanning function of the scanning pen. When the target support component is the first support component, the target control signal is the first target signal, which controls the display content to flip to the previous page. When the target support component is the second support component, the target control signal is the second target signal, which controls the display content to turn to the next page.
6. The method according to any one of claims 1 to 4, characterized in that, The first support component is connected to a first pressure-sensitive element, and the second support component is connected to a second pressure-sensitive element. The step of acquiring the target pressure value received by the target scanning component includes: When the target support component is pressed, the target pressing signal output by the target pressure sensing element is obtained, and the target pressure value pressed on the target support component is obtained based on the target pressing signal. The target pressure sensing element is the pressure sensing element connected to the target support component.
7. The method according to claim 6, characterized in that, The scanning pen also includes a timing element for acquiring the moment when the target pressure-sensitive element outputs the target pressing signal; acquiring the target pressure value received by the target support component includes: Within a preset time period, acquire multiple target pressure values of multiple press signals corresponding to the same target pressure-sensitive element, wherein the times of the multiple press signals are different; The determination of the target control signal corresponding to the target support component at the target pressure value includes: Determine the number of target pressure values that are greater than the third preset pressure value from among multiple target pressure values; The target control signal is determined based on the sixth mapping relationship between the preset support components, the preset quantity, and the preset control signal.
8. The method according to claim 6, characterized in that, Each of the first pressure-sensitive element and the second pressure-sensitive element includes a positive output terminal and a negative output terminal. The first pressure-sensitive element and the second pressure-sensitive element are respectively connected to the control unit through their respective positive output terminals and negative output terminals. The target pressing signal is a combined signal output through the positive output terminal and the negative output terminal of the target pressure-sensitive element.
9. The method according to claim 8, characterized in that, Each of the first pressure-sensitive element and the second pressure-sensitive element includes a first pressure-sensitive resistor, a second pressure-sensitive resistor, a third pressure-sensitive resistor, and a fourth pressure-sensitive resistor; The first pressure-sensitive resistor and the second pressure-sensitive resistor are connected in series to form a first series circuit, and the third pressure-sensitive resistor and the fourth pressure-sensitive resistor are connected in series to form a second series circuit; The first series circuit and the second series circuit are connected in parallel. The line connecting the first pressure-sensitive resistor and the second pressure-sensitive resistor in the first series circuit is connected to the positive output terminal. The line connecting the third pressure-sensitive resistor and the fourth pressure-sensitive resistor in the second series circuit is connected to the negative output terminal.
10. The method according to claim 9, characterized in that, The scanning pen also includes peripheral circuit components; the peripheral circuit components include a first filtering unit and a second filtering unit. The first pressure-sensitive element is electrically connected to the input terminal of the first filter unit through its positive and negative output terminals, and the output terminal of the first filter unit is electrically connected to the control unit. The second pressure-sensitive element is electrically connected to the input terminal of the second filter unit through its positive and negative output terminals, and the output terminal of the second filter unit is electrically connected to the control unit. The first filtering unit is used to filter the target pressing signal output by the first pressure-sensitive element, and the second filtering unit is used to filter the target pressing signal output by the second pressure-sensitive element.
11. The method according to claim 10, characterized in that, The peripheral circuit components also include: a protection unit; The first pressure-sensitive element is electrically connected to the input terminal of the protection unit through its positive and negative output terminals, and the output terminal of the protection unit is electrically connected to the input terminal of the first filter unit. The second pressure-sensitive element is electrically connected to the input terminal of the protection unit through its positive and negative output terminals, and the output terminal of the protection unit is electrically connected to the input terminal of the second filter unit. The protection unit is used to reduce the instantaneous pulse interference generated by the first pressure-sensitive element when it is pressed, and / or to reduce the instantaneous pulse interference generated by the second pressure-sensitive element when it is pressed.
12. The method according to claim 8, characterized in that, The control unit also includes a reset pin; The control unit is further configured to, in the event of an abnormality in the communication between the first pressure-sensitive element, the second pressure-sensitive element and the control unit, output a reset level through the reset pin to trigger a reset of the first pressure-sensitive element and the second pressure-sensitive element.
13. A control device for a scanning pen, characterized in that, The scanning pen includes a scanning port and a first support component and a second support component disposed on both sides of the scanning port. The first support component and the second support component are used to support the scanning pen during scanning. The device includes: The first acquisition module is used to acquire the target pressure value of the target support component, wherein the target support component includes the first support component and / or the second support component; The first determining module is used to determine the target control signal corresponding to the target support component at the target pressure value; wherein, different support components correspond to different control signals at different pressure values, and different control signals are used to control different functions. The first control module is used to control the scanning pen to perform corresponding control functions based on the target control signal.
14. A scanning pen, characterized in that, The scanning pen includes a processor and a memory, the memory storing a computer program that is executed by the processor to implement the scanning pen control method as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which is executed by a processor to implement the scanning pen control method as described in any one of claims 1 to 12.