[ detailed description ] embodiments
Fig. 1 is a system block diagram of a cursor generation system according to a first embodiment of the present invention. In the present embodiment, the cursor generating system 1 includes a digital pen 10 and a computer device 20. The computer device 20 may be an electronic device such as a smart phone, a tablet computer, or a notebook computer.
As shown in fig. 1, a first wireless communication module 11 and a displacement sensor 12 are disposed inside the digital pen 10, and identification data (for example, the identification data is stored in a memory inside the digital pen 10) is disposed inside the digital pen 10, where the identification data may be an identification code or a configuration descriptor (e.g., 0X00) for the computer device 20 to identify the digital pen 10, the first wireless communication module 11 may specifically be a WiFi module, an 802.11 module, a bluetooth module or a ZigBee module to receive or transmit a digital signal, the displacement sensor 12 may include a gyroscope (gyroscope) or a gravity sensor (or an accelerometer) to sense the movement of the digital pen 10 in a three-dimensional space to obtain displacement information, for example, the displacement information may be a continuous coordinate position (X, Y) or a displacement variation (Δ X, Δ Y) when the digital pen 10 moves, the first wireless communication module 11 is directly or indirectly electrically connected to the displacement sensor 12, and is used to send the pairing request signal and the identification data and displacement information to the computer device 20. As shown in FIG. 3, in one embodiment, the digital pen 10 can be a touch pen having a touch pen tip 14, so that the digital pen 10 can simultaneously write and select files on the screen of the computer device 20.
As shown in fig. 1, the computer device 20 includes a cursor application 21, a processor 22, a second wireless communication module 23 and a display screen 24, wherein the cursor application 21 may be an application downloaded from a network platform (e.g., App Store of apple inc.) or installed and stored in a memory inside the computer device 20 via a computer readable storage medium (e.g., a compact disc, a USB or a memory card), and the cursor application 21 is identification data associated with the digital pen 10 (as will be described in detail later). The processor 22 is electrically connected to the second wireless communication module 23 and the display screen 24, respectively. The second wireless communication module 23 may be a WiFi module, an 802.11 module, a bluetooth module or a ZigBee module to receive or transmit digital signals. When the second wireless communication module 23 receives the pairing request signal and successfully pairs with the first wireless communication module 11, the second wireless communication module 23 may establish a connection with the first wireless communication module 11 to wirelessly receive the identification data and the displacement information of the digital pen 10.
Accordingly, the processor 22 may execute the cursor application 21 corresponding to the identification data to register a custom-defined Usage Page (Ventor-defined Usage Page) associated with the digital pen 10, and the processor 22 may further execute the cursor application 21 to generate the cursor icon C to be displayed on the display screen 24 according to the custom Usage Page (as shown in FIG. 3), and read the displacement information and correspondingly control the moving display of the cursor icon C on the display screen 24 according to the custom Usage Page (as shown in FIG. 4).
To more clearly illustrate the above embodiments, please refer to fig. 1 and fig. 2, wherein fig. 2 is a flowchart illustrating steps of a first embodiment of a cursor generating method according to the present invention. The hardware structure mentioned below can be disclosed in comparison with the cursor generating system 1. In one embodiment, when a user uses the computer device 20 to perform brief news in a meeting situation, taking fig. 3 as an example, the computer device 20 is a tablet computer, and in a general meeting situation, the computer device 20 is connected to an extended screen 30 (such as a large tv screen or a projection screen) to facilitate the meeting participants to watch the brief news. The presenter can first operate the digital pen 10 (e.g. press the switch of the digital pen 10) to pair with the computer device 20, in step S1: after the digital pen 10 is controlled by the user, the first wireless communication module 11 sends a pairing request signal to the computer device 20, and the second wireless communication module 23 of the computer device 20 can receive the pairing request signal and successfully pair with the first wireless communication module 11, at this time, the first wireless communication module 11 and the second wireless communication module 23 can establish a connection to be able to transmit signals or data with each other.
Subsequently, in step S2: the computer device 20 first identifies the pen 10 and identifies whether the pen 10 is a vendor-defined device. In detail, after the first wireless communication module 11 and the second wireless communication module 23 are connected, the first wireless communication module 11 can send the identification data (such as the identification code or the configuration descriptor) of the digital pen 10 to the computer device 20, and the computer device 20 can compare the built-in data and the identification data to identify whether the digital pen 10 is a manufacturer-defined device. For example, please refer to the following table one:
generally, the computer device 20 is provided with a standard Usage Page (Generic Desktop Usage Page) as shown in table one, so that when a standard mouse or a standard keyboard is connected to the computer device 20, corresponding functions can be generated according to the standard Usage Page, for example, when the standard mouse is connected to the computer device 20, a mouse icon can be generated and the mouse icon can be controlled to operate, and when the standard keyboard is connected to the computer device 20, a user can perform typing operation. The computer device 20 can identify whether the digital pen 10 is a manufacturer-defined device according to the identification data of the digital pen 10 and the built-in data of the computer device 20 (for example, the digital pen 10 can be identified as the manufacturer-defined device if the identification data cannot be searched in the built-in data of the computer device 20), whereas the digital pen 10 of the embodiment is a manufacturer-defined device and is not a standard device (such as a standard mouse or a standard keyboard) corresponding to a standard usage page, so the computer device 20 can identify the digital pen 10 as the manufacturer-defined device according to the identification data of the digital pen 10.
Then, the flow proceeds to step S3: the computer device 20 executes the cursor application 21 corresponding to the identification data to register a custom-defined Usage Page (Vendor-defined Usage Page) associated with the digital pen 10. That is, the computer device 20 recognizes the digital pen 10 as a vendor-defined device rather than a standard device according to the identification data, and therefore, the cursor application 21 corresponding to the digital pen 10 needs to be executed additionally to register a custom application page associated with the digital pen 10 (i.e. the cursor application 21 corresponds to the identification data of the digital pen 10), wherein the cursor application 21 can be started by a user, automatically started when the computer device 20 is powered on, or started when the computer device 20 recognizes the digital pen 10 as a custom device, which is not limited in this embodiment, and in some embodiments, the computer device 20 can also assist in recognizing whether the digital pen 10 is a vendor-defined device according to the custom application page. The user-defined usage page can be referred to the following table two:
generally, the custom usage page will reserve a space (e.g., Vendor-Defined block FF 00-FFFF) for the Vendor to define and declare itself, so as to avoid malfunction of future devices that are mistakenly recognized by the operating system of the computer device 20 or other Vendor software. After the computer device 20 executes the cursor application 21 to register the custom usage page associated with the digital pen 10, the digital pen 10 is operable to generate a corresponding function.
Then, the process proceeds to step S4 and step S5: after the computer device 20 executes the cursor application 21 to register the user-defined usage page associated with the digital pen 10, the computer device 20 can receive the coordinate position (X, Y) or the displacement variation (Δ X, Δ Y) transmitted by the digital pen 10, so that the cursor application 21 can generate a cursor icon C according to the user-defined usage page and the coordinate position (X, Y) to be displayed on the display screen 24 (as shown in fig. 3, the cursor icon C can be a simulated laser spot, but can also be another pattern), and can control the movement of the cursor icon C according to the displacement variation (Δ X, Δ Y) generated by the movement of the user-defined usage page and the digital pen 10 (please refer to fig. 3 and 4). For example, the computer device 20 can compare the coordinate position (X, Y) and the displacement variation (Δ X, Δ Y) of the digital pen 10 to obtain the moving direction and the moving speed of the digital pen 10, and can control the cursor graph C to move on the display screen 24 corresponding to the moving direction and the moving speed. In one embodiment, the cursor application 21 may also directly generate the cursor icon C from the custom usage page and display it at a default position on the display screen 24 (e.g., the midpoint of the display screen 24) without the coordinate position (X, Y) transmitted by the digital pen 10. In addition, as shown in fig. 3 and 4, since the computer device 20 is connected to the extended screen 30 (such as a large-sized tv screen or a projection screen), the extended screen 30 can be set to display the same content synchronously with the display screen 24 of the computer device 20, so that the cursor icon C1 is also displayed on the extended screen 30, and when the cursor icon C moves on the display screen 24, the cursor icon C1 also moves on the extended screen 30 correspondingly, so as to perform a brief report operation during a meeting.
To sum up, the embodiment of the present invention uses the signal interaction between the digital pen 10 and the computer device 20, and the computer device 20 executes the cursor application 21 to display the cursor icon C on the display screen 24 and control the movement of the cursor icon C on the display screen 24, so that the digital pen 10 can achieve the indicating function without emitting laser to avoid hurting human eyes, and the brightness of the cursor icon C is not absorbed by the screen or weakened due to the working distance of the digital pen 10, thereby greatly improving the indicating effect and the definition.
As shown in fig. 3 to 5, in an embodiment, the digital pen 10 may further include an enabling switch 13 (e.g., a button or a key), and when the user presses the enabling switch 13, the first wireless communication module 11 outputs the displacement information of the digital pen 10, so that the computer device 20 can execute the cursor application 21 to generate the cursor icon C to be displayed on the display screen 24 and control the cursor icon C to move on the display screen 24. In other words, referring to fig. 6, which is a flowchart illustrating the steps of the cursor generating method according to the second embodiment of the present invention, the cursor application 21 first determines whether the activation switch 13 is activated (as in step S6), and when the user presses the activation switch 13, the second wireless communication module 23 of the computer device 20 can receive the displacement information of the digital pen 10 outputted by the first wireless communication module 11 to display the cursor icon C and control the movement of the cursor icon C on the display screen 24 (as in steps S4 and S5). On the contrary, if the user does not activate the enabling switch 13, the cursor icon C is hidden and disappears and is not continuously displayed on the display screen 24, so as to avoid blocking the content of the brief report. In some embodiments, the first wireless communication module 11 may also continuously output the displacement information of the digital pen 10, and when the user presses the start enabling switch 13, the cursor application 21 generates the cursor icon C to be displayed on the display screen 24.
As shown in fig. 7, in one embodiment, since the digital pen 10 of the present invention is a vendor-defined device, and thus may operate concurrently with a standard control device 31, such as a Mouse (Mouse) or an Air Mouse (Air Mouse), as shown in this figure, the computer device 20 may execute a cursor application 21 corresponding to the digital pen 10, to generate a cursor icon C (here the cursor icon C is a simulated laser spot) according to the custom usage page to be displayed on the display screen 24, and can control the cursor icon C to move according to the displacement information generated by the custom page and the movement of the digital pen 10 (as shown in figure 4), the computer device 20 may also generate a Mouse icon M according to a standard usage page in response to an input from a standard control device 31 (such as a Mouse (Mouse) or an Air Mouse (Air Mouse)), and display the Mouse icon M and the cursor icon C on the display screen 24 at the same time.
Alternatively, as shown in fig. 8, in an embodiment, the computer device 20 may generate the mouse icon M to be displayed on the display screen 24 according to the standard usage page instead corresponding to the switching signal sent by the first wireless communication module 11, and the computer device 20 reads the displacement information of the digital pen 10 and correspondingly controls the movement display of the mouse icon M on the display screen 24 according to the standard usage page. For example, the user may cause the first wireless communication module 11 to send a switching signal by pressing a switch of the digital pen 10, wherein the switching signal may include identification data corresponding to a standard usage page, so that the computer device 20 recognizes the digital pen 10 as a standard device according to the identification data, and generates a standard mouse icon M according to the standard usage page to be displayed on the display screen 24. The computer device 20 may respond to the reply signal sent by the first wireless communication module 11 (e.g., pressing another switch of the digital pen 10 to send the reply signal), and then execute the cursor application 21 to generate the cursor icon C to be displayed on the display screen 24 according to the user-defined usage page, and read the displacement information and correspondingly control the movement display of the cursor icon C on the display screen 24 according to the user-defined usage page (as shown in fig. 3 and 4). So that the digital pen 10 can selectively generate the mouse icon M or the cursor icon C according to the use requirement.
In one embodiment, the computer device 20 can execute the cursor application 21 to set the movable range of the cursor icon C on the display screen 24. For example, the movable range may be the edge of the display screen 24 (as shown in fig. 4) to avoid the cursor diagram C from exceeding the edge of the display screen 24 during the movement process to cause operational trouble. In some embodiments, the movable range may be smaller than the edge of the display screen 24 according to a user setting, and the embodiment is not limited thereto.
In addition, the cursor application 21 may control the movement of the cursor icon C on the display screen 24 in several embodiments as follows:
in one embodiment, the cursor application 21 can calculate the displacement speed (Δ VX, Δ VY) of the digital pen 10 according to the displacement information, and directly control the moving speed of the cursor icon C on the display screen 24 according to the displacement speed of the digital pen 10, so that the displacement amounts of the digital pen 10 and the cursor icon C are the same. For example, if the displacement speed of the digital pen 10 is V, the cursor application 21 controls the movement speed of the cursor icon C on the display screen 24 to be V.
As shown in fig. 10, in an embodiment, the cursor application 21 may calculate the displacement speed (Δ VX, Δ VY) of the digital pen 10 according to the displacement information, and the cursor application 21 has a plurality of different cursor movement speeds respectively set corresponding to the different displacement speeds (as shown in step S7), and the cursor application 21 controls the moving display of the cursor icon C on the display screen 24 according to the cursor movement speed corresponding to the displacement speed (as shown in step S8). For example, assuming that the displacement speed of the digital pen 10 is V, the cursor moving speed corresponding to the displacement speed may be 1.2V. If the displacement speed of the digital pen 10 is 1.2V, the cursor movement speed corresponding to the displacement speed may be 1.5V, so that the digital pen 10 and the cursor icon C generate different displacement amounts. Referring to fig. 9, the cursor application 21 can display a setting frame 25 on the display screen 24 according to the user operation, so that the user can set the cursor moving speed corresponding to the displacement speed of the digital pen 10 to meet the user requirement.
As shown in fig. 11, in an embodiment, the computer device 20 may execute the cursor application 21 to detect the screen resolution of the computer device 20, and a plurality of different cursor moving speeds are respectively set for the cursor application 21 corresponding to the different screen resolutions (as in step S9), and the cursor application 21 controls the moving display of the cursor icon C on the display screen according to the cursor moving speed corresponding to the screen resolution (as in step S10). For example, assuming that the displacement speed of the digital pen 10 is V, when the cursor application 21 detects that the screen resolution of the computer device 20 or the extended screen 30 is 1280 pixels (pixels), the corresponding cursor movement speed may be V. When the cursor application 21 detects that the screen resolution of the computer device 20 or the extended screen 30 is 1366 pixels, the corresponding cursor moving speed may be 1.05V. When the cursor application program 21 detects that the screen resolution of the computer device 20 or the extended screen 30 is 1600pixels, the corresponding cursor moving speed may be 1.1V (see the setting frame 26 in fig. 9), so as to achieve the goal of selecting an appropriate cursor moving speed according to the screen resolution of different computer devices 20, as shown in fig. 9, the cursor application program 21 may display the setting frame 26 on the display screen 24 according to the user operation, so that the user can set the cursor moving speed corresponding to the displacement speed of the digital pen 10 by himself to meet the user requirement. Referring to fig. 4, the cursor application program 21 can detect the screen resolutions of the computer device 20 and the extended screen 30 respectively to control the cursor movement speeds of the cursor icons on the computer device 20 and the extended screen 30 respectively, for example, the cursor application program 21 detects that the screen resolution of the computer device 20 is 1280 pixels, the screen resolution of the extended screen 30 is 1600pixels, and can control the cursor movement speed of the cursor icon C to be V and the cursor movement speed of the cursor icon C1 to be 1.1V, so that the cursor icon C, C1 has different displacement amounts according to different screen resolutions.
As shown in fig. 12, in an embodiment, the cursor application 21 calculates a displacement speed of the digital pen 10 according to the displacement information of the digital pen 10 and correspondingly generates a first cursor moving speed (as shown in step S11), for example, the displacement speed is V, and the corresponding first cursor moving speed is 1.1V. The cursor application 21 detects the screen resolution of the computer device 20 and generates a second cursor movement speed (step S12), for example, the screen resolution of the computer device 20 is 1366 pixels, the second cursor movement speed is 1.05V, the cursor application 21 generates a new cursor displacement (Δ X, Δ Y) according to the first cursor movement speed and the second cursor movement speed to control the movement and display of the cursor icon C on the display screen 24 (step S13), for example, the cursor application 21 generates a new cursor displacement (Δ X, Δ Y) according to the addition and multiplication of the first cursor movement speed and the second cursor movement speed. In some embodiments, the cursor application 21 may also calculate a new cursor displacement amount (Δ X, Δ Y) according to the first cursor movement speed or the second cursor movement speed, respectively, to control the moving display of the cursor icon C on the display screen 24.
An embodiment of the present invention further provides a computer program product, which can be a computer program stored in a computer readable storage medium (such as an optical disc, a USB or a memory card) for executing the steps (steps S2-S13) of the above embodiments by being loaded by the computer device 20.
In one embodiment, the computer program product may also be an application downloaded from a network platform (e.g., the application Store of apple, inc.) and installed on computer device 20. To be loaded through the computer device 20 to execute the steps of the above embodiments (steps S2-S13).
Although the present invention has been described with reference to the preferred embodiments, it should be understood that various changes and modifications can be made without departing from the spirit of the invention.